blob: 635a94fcd934bf60a7a5993f7989e9e5324528d4 [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
782ASM_TYPES_HEADER'
783 ac_precious_vars='build_alias
784host_alias
785target_alias
786CC
787CFLAGS
788LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400789LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400790CPPFLAGS
Theodore Ts'oa4ece352008-01-01 20:05:04 -0500791CPP
792PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400793
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794
795# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500796ac_init_help=
797ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000798# The variables have the same names as the options, with
799# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500800cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000801exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000802no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000803no_recursion=
804prefix=NONE
805program_prefix=NONE
806program_suffix=NONE
807program_transform_name=s,x,x,
808silent=
809site=
810srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000811verbose=
812x_includes=NONE
813x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500814
815# Installation directory options.
816# These are left unexpanded so users can "make install exec_prefix=/foo"
817# and all the variables that are supposed to be based on exec_prefix
818# by default will actually change.
819# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400820# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000821bindir='${exec_prefix}/bin'
822sbindir='${exec_prefix}/sbin'
823libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824datarootdir='${prefix}/share'
825datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000826sysconfdir='${prefix}/etc'
827sharedstatedir='${prefix}/com'
828localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000829includedir='${prefix}/include'
830oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831docdir='${datarootdir}/doc/${PACKAGE}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000843for ac_option
844do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848 ac_prev=
849 continue
850 fi
851
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 case $ac_option in
853 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *) ac_optarg=yes ;;
855 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000862
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500866 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867
868 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500869 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882
Theodore Ts'oe1052142006-10-21 21:46:47 -0400883 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000884 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500886 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000887
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500896 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000897 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500899 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
900 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902 eval enable_$ac_feature=no ;;
903
904 -docdir | --docdir | --docdi | --doc | --do)
905 ac_prev=docdir ;;
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
907 docdir=$ac_optarg ;;
908
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
910 ac_prev=dvidir ;;
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
912 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000913
914 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400917 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400920 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
924 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
925 | --exec | --exe | --ex)
926 ac_prev=exec_prefix ;;
927 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
928 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
929 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000931
932 -gas | --gas | --ga | --g)
933 # Obsolete; use --with-gas.
934 with_gas=yes ;;
935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 -help | --help | --hel | --he | -h)
937 ac_init_help=long ;;
938 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
939 ac_init_help=recursive ;;
940 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
941 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942
943 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500944 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500946 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000947
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 ac_prev=htmldir ;;
950 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 | --ht=*)
952 htmldir=$ac_optarg ;;
953
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000954 -includedir | --includedir | --includedi | --included | --include \
955 | --includ | --inclu | --incl | --inc)
956 ac_prev=includedir ;;
957 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
958 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500959 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960
961 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 ac_prev=infodir ;;
963 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500964 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000965
966 -libdir | --libdir | --libdi | --libd)
967 ac_prev=libdir ;;
968 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
971 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
972 | --libexe | --libex | --libe)
973 ac_prev=libexecdir ;;
974 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
975 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500976 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 -localedir | --localedir | --localedi | --localed | --locale)
979 ac_prev=localedir ;;
980 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
981 localedir=$ac_optarg ;;
982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400984 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985 ac_prev=localstatedir ;;
986 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400987 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989
990 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 ac_prev=mandir ;;
992 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000994
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 -nfp | --nfp | --nf)
996 # Obsolete; use --without-fp.
997 with_fp=no ;;
998
999 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001 no_create=yes ;;
1002
1003 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1004 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1005 no_recursion=yes ;;
1006
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1008 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1009 | --oldin | --oldi | --old | --ol | --o)
1010 ac_prev=oldincludedir ;;
1011 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1012 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1013 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001014 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 ac_prev=prefix ;;
1018 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1022 | --program-pre | --program-pr | --program-p)
1023 ac_prev=program_prefix ;;
1024 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1025 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1029 | --program-suf | --program-su | --program-s)
1030 ac_prev=program_suffix ;;
1031 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1032 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -program-transform-name | --program-transform-name \
1036 | --program-transform-nam | --program-transform-na \
1037 | --program-transform-n | --program-transform- \
1038 | --program-transform | --program-transfor \
1039 | --program-transfo | --program-transf \
1040 | --program-trans | --program-tran \
1041 | --progr-tra | --program-tr | --program-t)
1042 ac_prev=program_transform_name ;;
1043 -program-transform-name=* | --program-transform-name=* \
1044 | --program-transform-nam=* | --program-transform-na=* \
1045 | --program-transform-n=* | --program-transform-=* \
1046 | --program-transform=* | --program-transfor=* \
1047 | --program-transfo=* | --program-transf=* \
1048 | --program-trans=* | --program-tran=* \
1049 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001050 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051
Theodore Ts'oe1052142006-10-21 21:46:47 -04001052 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 ac_prev=pdfdir ;;
1054 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1055 pdfdir=$ac_optarg ;;
1056
1057 -psdir | --psdir | --psdi | --psd | --ps)
1058 ac_prev=psdir ;;
1059 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1060 psdir=$ac_optarg ;;
1061
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1064 silent=yes ;;
1065
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001066 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 ac_prev=sbindir ;;
1068 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071
1072 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1073 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1074 | --sharedst | --shareds | --shared | --share | --shar \
1075 | --sha | --sh)
1076 ac_prev=sharedstatedir ;;
1077 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1078 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1079 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001081 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001082
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001083 -site | --site | --sit)
1084 ac_prev=site ;;
1085 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 ac_prev=srcdir ;;
1090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001092
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1094 | --syscon | --sysco | --sysc | --sys | --sy)
1095 ac_prev=sysconfdir ;;
1096 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1097 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001100 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001102 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001104
1105 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1106 verbose=yes ;;
1107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 -version | --version | --versio | --versi | --vers | -V)
1109 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001112 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001113 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001114 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001115 { echo "$as_me: error: invalid package name: $ac_package" >&2
1116 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001117 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001123 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001124 { echo "$as_me: error: invalid package name: $ac_package" >&2
1125 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001126 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001127 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1132
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 -*) { echo "$as_me: error: unrecognized option: $ac_option
1148Try \`$0 --help' for more information." >&2
1149 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 ;;
1151
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 *=*)
1153 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1156 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1157 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001158 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 export $ac_envvar ;;
1160
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 # FIXME: should be removed in autoconf 3.0.
1163 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167 ;;
1168
1169 esac
1170done
1171
1172if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 { echo "$as_me: error: missing argument to $ac_option" >&2
1175 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176fi
1177
Theodore Ts'oe1052142006-10-21 21:46:47 -04001178# Be sure to have absolute directory names.
1179for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 [\\/$]* | ?:[\\/]* ) continue;;
1187 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001188 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001189 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1190 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193# There might be people who depend on the old broken behavior: `$host'
1194# used to hold the argument of --host etc.
1195# FIXME: To remove some day.
1196build=$build_alias
1197host=$host_alias
1198target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200# FIXME: To remove some day.
1201if test "x$host_alias" != x; then
1202 if test "x$build_alias" = x; then
1203 cross_compiling=maybe
1204 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1205 If a cross compiler is detected then cross compile mode will be used." >&2
1206 elif test "x$build_alias" != "x$host_alias"; then
1207 cross_compiling=yes
1208 fi
1209fi
1210
1211ac_tool_prefix=
1212test -n "$host_alias" && ac_tool_prefix=$host_alias-
1213
1214test "$silent" = yes && exec 6>/dev/null
1215
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001216
Theodore Ts'oe1052142006-10-21 21:46:47 -04001217ac_pwd=`pwd` && test -n "$ac_pwd" &&
1218ac_ls_di=`ls -di .` &&
1219ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1220 { echo "$as_me: error: Working directory cannot be determined" >&2
1221 { (exit 1); exit 1; }; }
1222test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1223 { echo "$as_me: error: pwd does not report name of working directory" >&2
1224 { (exit 1); exit 1; }; }
1225
1226
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227# Find the source files, if location was not specified.
1228if test -z "$srcdir"; then
1229 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 # Try the directory containing this script, then the parent directory.
1231 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1233 X"$0" : 'X\(//\)[^/]' \| \
1234 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001235 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001237 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1238 s//\1/
1239 q
1240 }
1241 /^X\(\/\/\)[^/].*/{
1242 s//\1/
1243 q
1244 }
1245 /^X\(\/\/\)$/{
1246 s//\1/
1247 q
1248 }
1249 /^X\(\/\).*/{
1250 s//\1/
1251 q
1252 }
1253 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001255 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 srcdir=..
1257 fi
1258else
1259 ac_srcdir_defaulted=no
1260fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261if test ! -r "$srcdir/$ac_unique_file"; then
1262 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1263 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001264 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001270 pwd)`
1271# When building in place, set srcdir=.
1272if test "$ac_abs_confdir" = "$ac_pwd"; then
1273 srcdir=.
1274fi
1275# Remove unnecessary trailing slashes from srcdir.
1276# Double slashes in file names in object file debugging info
1277# mess up M-x gdb in Emacs.
1278case $srcdir in
1279*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1280esac
1281for ac_var in $ac_precious_vars; do
1282 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1283 eval ac_env_${ac_var}_value=\$${ac_var}
1284 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288#
1289# Report the --help message.
1290#
1291if test "$ac_init_help" = "long"; then
1292 # Omit some internal or obsolete options to make the list less imposing.
1293 # This message is too long to be a string in the A/UX 3.1 sh.
1294 cat <<_ACEOF
1295\`configure' configures this package to adapt to many kinds of systems.
1296
1297Usage: $0 [OPTION]... [VAR=VALUE]...
1298
1299To assign environment variables (e.g., CC, CFLAGS...), specify them as
1300VAR=VALUE. See below for descriptions of some of the useful variables.
1301
1302Defaults for the options are specified in brackets.
1303
1304Configuration:
1305 -h, --help display this help and exit
1306 --help=short display options specific to this package
1307 --help=recursive display the short help of all the included packages
1308 -V, --version display version information and exit
1309 -q, --quiet, --silent do not print \`checking...' messages
1310 --cache-file=FILE cache test results in FILE [disabled]
1311 -C, --config-cache alias for \`--cache-file=config.cache'
1312 -n, --no-create do not create output files
1313 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315Installation directories:
1316 --prefix=PREFIX install architecture-independent files in PREFIX
1317 [$ac_default_prefix]
1318 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1319 [PREFIX]
1320
1321By default, \`make install' will install all the files in
1322\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1323an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1324for instance \`--prefix=\$HOME'.
1325
1326For better control, use the options below.
1327
1328Fine tuning of the installation directories:
1329 --bindir=DIR user executables [EPREFIX/bin]
1330 --sbindir=DIR system admin executables [EPREFIX/sbin]
1331 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001332 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1333 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1334 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1335 --libdir=DIR object code libraries [EPREFIX/lib]
1336 --includedir=DIR C header files [PREFIX/include]
1337 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1339 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1340 --infodir=DIR info documentation [DATAROOTDIR/info]
1341 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1342 --mandir=DIR man documentation [DATAROOTDIR/man]
1343 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1344 --htmldir=DIR html documentation [DOCDIR]
1345 --dvidir=DIR dvi documentation [DOCDIR]
1346 --pdfdir=DIR pdf documentation [DOCDIR]
1347 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001348_ACEOF
1349
1350 cat <<\_ACEOF
1351
1352System types:
1353 --build=BUILD configure for building on BUILD [guessed]
1354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1355_ACEOF
1356fi
1357
1358if test -n "$ac_init_help"; then
1359
1360 cat <<\_ACEOF
1361
1362Optional Features:
1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001365 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001366 --enable-compression enable EXPERIMENTAL compression support
1367 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368 --enable-elf-shlibs select ELF shared libraries
1369 --enable-bsd-shlibs select BSD shared libraries
1370 --enable-profile build profiling libraries
1371 --enable-checker build checker libraries
1372 --enable-jbd-debug enable journal debugging
1373 --enable-blkid-debug enable blkid debugging
1374 --enable-testio-debug enable the use of the test I/O manager for debugging
1375 --disable-swapfs disable support of legacy byte-swapped filesystems
1376 --disable-debugfs disable support of debugfs program
1377 --disable-imager disable support of e2image program
1378 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001379 --enable-fsck build fsck wrapper program
1380 --enable-e2initrd-helper build e2initrd-helper program
Karel Zak4db2f592006-03-08 14:17:28 -05001381 --enable-blkid-devmapper build with device-mapper support
Theodore Ts'o32493942007-12-31 10:45:01 -05001382 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001383 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001384 --disable-nls do not use Native Language Support
1385 --disable-rpath do not hardcode runtime library paths
1386
1387Optional Packages:
1388 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1389 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001390 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001391 --with-cc=COMPILER select compiler to use
1392 --with-linker=LINKER select linker to use
1393 --with-ccopts=CCOPTS select compiler command line options
1394 --with-ldopts=LDOPTS select linker command line options
1395 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1396 --with-gnu-ld assume the C compiler uses GNU ld default=no
1397 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1398 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1399 --with-included-gettext use the GNU gettext library included here
1400 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1401 --without-libintl-prefix don't search for libintl in includedir and libdir
1402
1403Some influential environment variables:
1404 CC C compiler command
1405 CFLAGS C compiler flags
1406 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1407 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001408 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001409 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1410 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001411 CPP C preprocessor
Theodore Ts'oa4ece352008-01-01 20:05:04 -05001412 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413
1414Use these variables to override the choices made by `configure' or to help
1415it to find libraries and programs with nonstandard names/locations.
1416
1417_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001418ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001419fi
1420
1421if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001424 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001425 ac_builddir=.
1426
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427case "$ac_dir" in
1428.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1429*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001430 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437esac
1438ac_abs_top_builddir=$ac_pwd
1439ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440# for backward compatibility:
1441ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442
1443case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001444 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001445 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001449 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001457ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458
Theodore Ts'oe1052142006-10-21 21:46:47 -04001459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467 else
1468 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001471 done
1472fi
1473
Theodore Ts'oe1052142006-10-21 21:46:47 -04001474test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001475if $ac_init_version; then
1476 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001477configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001478generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479
Theodore Ts'oe1052142006-10-21 21:46:47 -04001480Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14812002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482This configure script is free software; the Free Software Foundation
1483gives unlimited permission to copy, distribute and modify it.
1484_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001485 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001487cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488This file contains any messages produced by compilers while
1489running configure, to aid debugging if configure makes a mistake.
1490
1491It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001492generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001493
1494 $ $0 $@
1495
1496_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001497exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001498{
1499cat <<_ASUNAME
1500## --------- ##
1501## Platform. ##
1502## --------- ##
1503
1504hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1505uname -m = `(uname -m) 2>/dev/null || echo unknown`
1506uname -r = `(uname -r) 2>/dev/null || echo unknown`
1507uname -s = `(uname -s) 2>/dev/null || echo unknown`
1508uname -v = `(uname -v) 2>/dev/null || echo unknown`
1509
1510/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1511/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1512
1513/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1514/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1515/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001516/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1518/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1519/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1520
1521_ASUNAME
1522
1523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1524for as_dir in $PATH
1525do
1526 IFS=$as_save_IFS
1527 test -z "$as_dir" && as_dir=.
1528 echo "PATH: $as_dir"
1529done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001530IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531
1532} >&5
1533
1534cat >&5 <<_ACEOF
1535
1536
1537## ----------- ##
1538## Core tests. ##
1539## ----------- ##
1540
1541_ACEOF
1542
1543
1544# Keep a trace of the command line.
1545# Strip out --no-create and --no-recursion so they do not pile up.
1546# Strip out --silent because we don't want to record it for future runs.
1547# Also quote any args containing shell meta-characters.
1548# Make two passes to allow for proper duplicate-argument suppression.
1549ac_configure_args=
1550ac_configure_args0=
1551ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552ac_must_keep_next=false
1553for ac_pass in 1 2
1554do
1555 for ac_arg
1556 do
1557 case $ac_arg in
1558 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1559 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1560 | -silent | --silent | --silen | --sile | --sil)
1561 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001562 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 esac
1565 case $ac_pass in
1566 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1567 2)
1568 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1569 if test $ac_must_keep_next = true; then
1570 ac_must_keep_next=false # Got value, back to normal.
1571 else
1572 case $ac_arg in
1573 *=* | --config-cache | -C | -disable-* | --disable-* \
1574 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1575 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1576 | -with-* | --with-* | -without-* | --without-* | --x)
1577 case "$ac_configure_args0 " in
1578 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 esac
1580 ;;
1581 -* ) ac_must_keep_next=true ;;
1582 esac
1583 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001584 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585 ;;
1586 esac
1587 done
1588done
1589$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1590$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1591
1592# When interrupted or exit'd, cleanup temporary files, and complete
1593# config.log. We remove comments because anyway the quotes in there
1594# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595# WARNING: Use '\'' to represent an apostrophe within the trap.
1596# 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 -05001597trap 'exit_status=$?
1598 # Save into config.log some information that might help in debugging.
1599 {
1600 echo
1601
1602 cat <<\_ASBOX
1603## ---------------- ##
1604## Cache variables. ##
1605## ---------------- ##
1606_ASBOX
1607 echo
1608 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609(
1610 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1611 eval ac_val=\$$ac_var
1612 case $ac_val in #(
1613 *${as_nl}*)
1614 case $ac_var in #(
1615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1616echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1617 esac
1618 case $ac_var in #(
1619 _ | IFS | as_nl) ;; #(
1620 *) $as_unset $ac_var ;;
1621 esac ;;
1622 esac
1623 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1626 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001628 "s/'\''/'\''\\\\'\'''\''/g;
1629 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1630 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 esac |
1635 sort
1636)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 echo
1638
1639 cat <<\_ASBOX
1640## ----------------- ##
1641## Output variables. ##
1642## ----------------- ##
1643_ASBOX
1644 echo
1645 for ac_var in $ac_subst_vars
1646 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647 eval ac_val=\$$ac_var
1648 case $ac_val in
1649 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 esac
1651 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001652 done | sort
1653 echo
1654
1655 if test -n "$ac_subst_files"; then
1656 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657## ------------------- ##
1658## File substitutions. ##
1659## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660_ASBOX
1661 echo
1662 for ac_var in $ac_subst_files
1663 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001664 eval ac_val=\$$ac_var
1665 case $ac_val in
1666 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 esac
1668 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669 done | sort
1670 echo
1671 fi
1672
1673 if test -s confdefs.h; then
1674 cat <<\_ASBOX
1675## ----------- ##
1676## confdefs.h. ##
1677## ----------- ##
1678_ASBOX
1679 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001680 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681 echo
1682 fi
1683 test "$ac_signal" != 0 &&
1684 echo "$as_me: caught signal $ac_signal"
1685 echo "$as_me: exit $exit_status"
1686 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001687 rm -f core *.core core.conftest.* &&
1688 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001689 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001690' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001691for ac_signal in 1 2 13 15; do
1692 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1693done
1694ac_signal=0
1695
1696# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001697rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001698
1699# Predefined preprocessor variables.
1700
1701cat >>confdefs.h <<_ACEOF
1702#define PACKAGE_NAME "$PACKAGE_NAME"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_VERSION "$PACKAGE_VERSION"
1713_ACEOF
1714
1715
1716cat >>confdefs.h <<_ACEOF
1717#define PACKAGE_STRING "$PACKAGE_STRING"
1718_ACEOF
1719
1720
1721cat >>confdefs.h <<_ACEOF
1722#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1723_ACEOF
1724
1725
1726# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001727# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001728if test -n "$CONFIG_SITE"; then
1729 set x "$CONFIG_SITE"
1730elif test "x$prefix" != xNONE; then
1731 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1732else
1733 set x "$ac_default_prefix/share/config.site" \
1734 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001736shift
1737for ac_site_file
1738do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001739 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001740 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1741echo "$as_me: loading site script $ac_site_file" >&6;}
1742 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001743 . "$ac_site_file"
1744 fi
1745done
1746
1747if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001748 # Some versions of bash will fail to source /dev/null (special
1749 # files actually), so we avoid doing that.
1750 if test -f "$cache_file"; then
1751 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1752echo "$as_me: loading cache $cache_file" >&6;}
1753 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001754 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1755 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001756 esac
1757 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001758else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001759 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1760echo "$as_me: creating cache $cache_file" >&6;}
1761 >$cache_file
1762fi
1763
1764# Check that the precious variables saved in the cache have kept the same
1765# value.
1766ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001767for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001768 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1769 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001770 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1771 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001772 case $ac_old_set,$ac_new_set in
1773 set,)
1774 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1775echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1776 ac_cache_corrupted=: ;;
1777 ,set)
1778 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1779echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1780 ac_cache_corrupted=: ;;
1781 ,);;
1782 *)
1783 if test "x$ac_old_val" != "x$ac_new_val"; then
1784 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1785echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1786 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1787echo "$as_me: former value: $ac_old_val" >&2;}
1788 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1789echo "$as_me: current value: $ac_new_val" >&2;}
1790 ac_cache_corrupted=:
1791 fi;;
1792 esac
1793 # Pass precious variables to config.status.
1794 if test "$ac_new_set" = set; then
1795 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001796 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001797 *) ac_arg=$ac_var=$ac_new_val ;;
1798 esac
1799 case " $ac_configure_args " in
1800 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1801 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1802 esac
1803 fi
1804done
1805if $ac_cache_corrupted; then
1806 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1807echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1808 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1809echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1810 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001811fi
1812
Theodore Ts'oe1052142006-10-21 21:46:47 -04001813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001829ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001830ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001831ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1832ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1833ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001834
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001835
1836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001837ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001838for ac_dir in config "$srcdir"/config; do
1839 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001840 ac_aux_dir=$ac_dir
1841 ac_install_sh="$ac_aux_dir/install-sh -c"
1842 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001843 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001844 ac_aux_dir=$ac_dir
1845 ac_install_sh="$ac_aux_dir/install.sh -c"
1846 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001847 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001848 ac_aux_dir=$ac_dir
1849 ac_install_sh="$ac_aux_dir/shtool install -c"
1850 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001851 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001852done
1853if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001854 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1855echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001856 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001857fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001858
1859# These three variables are undocumented and unsupported,
1860# and are intended to be withdrawn in a future Autoconf release.
1861# They can cause serious problems if a builder's source tree is in a directory
1862# whose full name contains unusual characters.
1863ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1864ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1865ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1866
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001867
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001868MCONFIG=./MCONFIG
1869
Theodore Ts'o74becf31997-04-26 14:37:06 +00001870BINARY_TYPE=bin
1871E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1872 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1873DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1874 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001875E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001876MONTH=`echo $DATE | awk -F- '{print $2}'`
1877YEAR=`echo $DATE | awk -F- '{print $3}'`
1878
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001879if expr $YEAR ">" 1900 > /dev/null ; then
1880 E2FSPROGS_YEAR=$YEAR
1881elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001882 E2FSPROGS_YEAR=19$YEAR
1883else
1884 E2FSPROGS_YEAR=20$YEAR
1885fi
1886
1887case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001888Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1889Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1890Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1891Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1892May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1893Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1894Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1895Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1896Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1897Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1898Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1899Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001900*) echo "Unknown month $MONTH??" ;;
1901esac
1902
Andreas Dilger927566a2006-11-12 19:41:25 -05001903base_ver=`echo $E2FSPROGS_VERSION | \
1904 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001905
1906date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1907
1908case $E2FSPROGS_VERSION in
1909*-WIP|pre-*)
Theodore Ts'od69e7e22008-02-15 21:28:48 -05001910 pre_vers=`echo $base_ver 0.01 - p | dc`
Andreas Dilger927566a2006-11-12 19:41:25 -05001911 E2FSPROGS_PKGVER="$pre_vers+${base_ver}_WIP_$date_spec"
1912 ;;
1913*)
1914 E2FSPROGS_PKGVER="$base_ver"
1915 ;;
1916esac
1917
1918unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o74becf31997-04-26 14:37:06 +00001919echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION"
1920echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}"
1921
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001922
1923
1924
Andreas Dilger927566a2006-11-12 19:41:25 -05001925
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001926# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001927$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001930 { (exit 1); exit 1; }; }
1931
Theodore Ts'oe1052142006-10-21 21:46:47 -04001932{ echo "$as_me:$LINENO: checking build system type" >&5
1933echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001934if test "${ac_cv_build+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001937 ac_build_alias=$build_alias
1938test "x$ac_build_alias" = x &&
1939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001941 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001944ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001947 { (exit 1); exit 1; }; }
1948
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001949fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001950{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951echo "${ECHO_T}$ac_cv_build" >&6; }
1952case $ac_cv_build in
1953*-*-*) ;;
1954*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955echo "$as_me: error: invalid value of canonical build" >&2;}
1956 { (exit 1); exit 1; }; };;
1957esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001958build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001959ac_save_IFS=$IFS; IFS='-'
1960set x $ac_cv_build
1961shift
1962build_cpu=$1
1963build_vendor=$2
1964shift; shift
1965# Remember, the first character of IFS is used to create $*,
1966# except with old shells:
1967build_os=$*
1968IFS=$ac_save_IFS
1969case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001970
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001971
Theodore Ts'oe1052142006-10-21 21:46:47 -04001972{ echo "$as_me:$LINENO: checking host system type" >&5
1973echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001974if test "${ac_cv_host+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001977 if test "x$host_alias" = x; then
1978 ac_cv_host=$ac_cv_build
1979else
1980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001983 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001986fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001987{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988echo "${ECHO_T}$ac_cv_host" >&6; }
1989case $ac_cv_host in
1990*-*-*) ;;
1991*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992echo "$as_me: error: invalid value of canonical host" >&2;}
1993 { (exit 1); exit 1; }; };;
1994esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001995host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001996ac_save_IFS=$IFS; IFS='-'
1997set x $ac_cv_host
1998shift
1999host_cpu=$1
2000host_vendor=$2
2001shift; shift
2002# Remember, the first character of IFS is used to create $*,
2003# except with old shells:
2004host_os=$*
2005IFS=$ac_save_IFS
2006case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002007
2008
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002009
Theodore Ts'oe1052142006-10-21 21:46:47 -04002010# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002011if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002012 withval=$with_diet_libc; CC="diet cc -nostdinc"
2013{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2014echo "${ECHO_T}CC=$CC" >&6; }
2015fi
2016
2017# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002018if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002019 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2020echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002021CC=$withval
2022else
2023 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002024{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2025echo "${ECHO_T}CC defaults to $CC" >&6; }
2026fi
2027export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002029ac_ext=c
2030ac_cpp='$CPP $CPPFLAGS'
2031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2033ac_compiler_gnu=$ac_cv_c_compiler_gnu
2034if test -n "$ac_tool_prefix"; then
2035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2036set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002037{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2038echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039if test "${ac_cv_prog_CC+set}" = set; then
2040 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002041else
2042 if test -n "$CC"; then
2043 ac_cv_prog_CC="$CC" # Let the user override the test.
2044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046for as_dir in $PATH
2047do
2048 IFS=$as_save_IFS
2049 test -z "$as_dir" && as_dir=.
2050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2053 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 break 2
2055 fi
2056done
2057done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002059
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060fi
2061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002062CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002063if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002064 { echo "$as_me:$LINENO: result: $CC" >&5
2065echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002066else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002067 { echo "$as_me:$LINENO: result: no" >&5
2068echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069fi
2070
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002072fi
2073if test -z "$ac_cv_prog_CC"; then
2074 ac_ct_CC=$CC
2075 # Extract the first word of "gcc", so it can be a program name with args.
2076set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002077{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002079if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082 if test -n "$ac_ct_CC"; then
2083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088 IFS=$as_save_IFS
2089 test -z "$as_dir" && as_dir=.
2090 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002092 ac_cv_prog_ac_ct_CC="gcc"
2093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094 break 2
2095 fi
2096done
2097done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002099
2100fi
2101fi
2102ac_ct_CC=$ac_cv_prog_ac_ct_CC
2103if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2105echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002106else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002107 { echo "$as_me:$LINENO: result: no" >&5
2108echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002109fi
2110
Theodore Ts'oe1052142006-10-21 21:46:47 -04002111 if test "x$ac_ct_CC" = x; then
2112 CC=""
2113 else
2114 case $cross_compiling:$ac_tool_warned in
2115yes:)
2116{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2117whose name does not start with the host triplet. If you think this
2118configuration is useful to you, please write to autoconf@gnu.org." >&5
2119echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2120whose name does not start with the host triplet. If you think this
2121configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2122ac_tool_warned=yes ;;
2123esac
2124 CC=$ac_ct_CC
2125 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126else
2127 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002128fi
2129
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002130if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131 if test -n "$ac_tool_prefix"; then
2132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002133set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2135echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136if test "${ac_cv_prog_CC+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002138else
2139 if test -n "$CC"; then
2140 ac_cv_prog_CC="$CC" # Let the user override the test.
2141else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
2147 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002149 ac_cv_prog_CC="${ac_tool_prefix}cc"
2150 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 break 2
2152 fi
2153done
2154done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002156
2157fi
2158fi
2159CC=$ac_cv_prog_CC
2160if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002161 { echo "$as_me:$LINENO: result: $CC" >&5
2162echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002164 { echo "$as_me:$LINENO: result: no" >&5
2165echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002166fi
2167
Theodore Ts'oe1052142006-10-21 21:46:47 -04002168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002169 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170fi
2171if test -z "$CC"; then
2172 # Extract the first word of "cc", so it can be a program name with args.
2173set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002174{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2175echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002176if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178else
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2181else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002182 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184for as_dir in $PATH
2185do
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2191 ac_prog_rejected=yes
2192 continue
2193 fi
2194 ac_cv_prog_CC="cc"
2195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 break 2
2197 fi
2198done
2199done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002200IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002202if test $ac_prog_rejected = yes; then
2203 # We found a bogon in the path, so make sure we never use it.
2204 set dummy $ac_cv_prog_CC
2205 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002207 # We chose a different compiler from the bogus one.
2208 # However, it has the same basename, so the bogon will be chosen
2209 # first if we set CC to just the basename; use the full file name.
2210 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002211 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002212 fi
2213fi
2214fi
2215fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002216CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218 { echo "$as_me:$LINENO: result: $CC" >&5
2219echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002220else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002221 { echo "$as_me:$LINENO: result: no" >&5
2222echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002223fi
2224
Theodore Ts'oe1052142006-10-21 21:46:47 -04002225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226fi
2227if test -z "$CC"; then
2228 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002229 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002230 do
2231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2232set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002233{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002237else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2242for as_dir in $PATH
2243do
2244 IFS=$as_save_IFS
2245 test -z "$as_dir" && as_dir=.
2246 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2250 break 2
2251 fi
2252done
2253done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002255
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256fi
2257fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002260 { echo "$as_me:$LINENO: result: $CC" >&5
2261echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002262else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263 { echo "$as_me:$LINENO: result: no" >&5
2264echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002265fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002266
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268 test -n "$CC" && break
2269 done
2270fi
2271if test -z "$CC"; then
2272 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002273 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274do
2275 # Extract the first word of "$ac_prog", so it can be a program name with args.
2276set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002277{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2278echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2280 echo $ECHO_N "(cached) $ECHO_C" >&6
2281else
2282 if test -n "$ac_ct_CC"; then
2283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2284else
2285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292 ac_cv_prog_ac_ct_CC="$ac_prog"
2293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002295 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002296done
2297done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002299
2300fi
2301fi
2302ac_ct_CC=$ac_cv_prog_ac_ct_CC
2303if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002304 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2305echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002307 { echo "$as_me:$LINENO: result: no" >&5
2308echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002309fi
2310
Theodore Ts'oe1052142006-10-21 21:46:47 -04002311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312 test -n "$ac_ct_CC" && break
2313done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002314
Theodore Ts'oe1052142006-10-21 21:46:47 -04002315 if test "x$ac_ct_CC" = x; then
2316 CC=""
2317 else
2318 case $cross_compiling:$ac_tool_warned in
2319yes:)
2320{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321whose name does not start with the host triplet. If you think this
2322configuration is useful to you, please write to autoconf@gnu.org." >&5
2323echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324whose name does not start with the host triplet. If you think this
2325configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326ac_tool_warned=yes ;;
2327esac
2328 CC=$ac_ct_CC
2329 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002332fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002333
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2336See \`config.log' for more details." >&5
2337echo "$as_me: error: no acceptable C compiler found in \$PATH
2338See \`config.log' for more details." >&2;}
2339 { (exit 1); exit 1; }; }
2340
2341# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002342echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002344{ (ac_try="$ac_compiler --version >&5"
2345case "(($ac_try" in
2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2347 *) ac_try_echo=$ac_try;;
2348esac
2349eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2350 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002351 ac_status=$?
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002354{ (ac_try="$ac_compiler -v >&5"
2355case "(($ac_try" in
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2358esac
2359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2360 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002364{ (ac_try="$ac_compiler -V >&5"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2370 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002371 ac_status=$?
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }
2374
2375cat >conftest.$ac_ext <<_ACEOF
2376/* confdefs.h. */
2377_ACEOF
2378cat confdefs.h >>conftest.$ac_ext
2379cat >>conftest.$ac_ext <<_ACEOF
2380/* end confdefs.h. */
2381
2382int
2383main ()
2384{
2385
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390ac_clean_files_save=$ac_clean_files
2391ac_clean_files="$ac_clean_files a.out a.exe b.out"
2392# Try to create an executable without -o first, disregard a.out.
2393# It will help us diagnose broken compilers, and finding out an intuition
2394# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2396echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398#
2399# List of possible output files, starting from the most likely.
2400# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2401# only as a last resort. b.out is created by i960 compilers.
2402ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2403#
2404# The IRIX 6 linker writes into existing files which may not be
2405# executable, retaining their permissions. Remove them first so a
2406# subsequent execution test works.
2407ac_rmfiles=
2408for ac_file in $ac_files
2409do
2410 case $ac_file in
2411 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2412 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2413 esac
2414done
2415rm -f $ac_rmfiles
2416
2417if { (ac_try="$ac_link_default"
2418case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2421esac
2422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424 ac_status=$?
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2428# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2429# in a Makefile. We should not override ac_cv_exeext if it was cached,
2430# so that the user can short-circuit this test for compilers unknown to
2431# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002432for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433do
2434 test -f "$ac_file" || continue
2435 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 ;;
2438 [ab].out )
2439 # We found the default executable, but exeext='' is most
2440 # certainly right.
2441 break;;
2442 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2444 then :; else
2445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2446 fi
2447 # We set ac_cv_exeext here because the later test for it is not
2448 # safe: cross compilers may not add the suffix if given an `-o'
2449 # argument, so we may need to know it at that point already.
2450 # Even if this section looks crufty: it has the advantage of
2451 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 break;;
2453 * )
2454 break;;
2455 esac
2456done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002457test "$ac_cv_exeext" = no && ac_cv_exeext=
2458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002460 ac_file=''
2461fi
2462
2463{ echo "$as_me:$LINENO: result: $ac_file" >&5
2464echo "${ECHO_T}$ac_file" >&6; }
2465if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 echo "$as_me: failed program was:" >&5
2467sed 's/^/| /' conftest.$ac_ext >&5
2468
2469{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2470See \`config.log' for more details." >&5
2471echo "$as_me: error: C compiler cannot create executables
2472See \`config.log' for more details." >&2;}
2473 { (exit 77); exit 77; }; }
2474fi
2475
2476ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477
Theodore Ts'oe1052142006-10-21 21:46:47 -04002478# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2481echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2483# If not cross compiling, check that we can run a simple program.
2484if test "$cross_compiling" != yes; then
2485 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486 { (case "(($ac_try" in
2487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2488 *) ac_try_echo=$ac_try;;
2489esac
2490eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2491 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 ac_status=$?
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }; }; then
2495 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002496 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 if test "$cross_compiling" = maybe; then
2498 cross_compiling=yes
2499 else
2500 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2501If you meant to cross compile, use \`--host'.
2502See \`config.log' for more details." >&5
2503echo "$as_me: error: cannot run C compiled programs.
2504If you meant to cross compile, use \`--host'.
2505See \`config.log' for more details." >&2;}
2506 { (exit 1); exit 1; }; }
2507 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002508 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510{ echo "$as_me:$LINENO: result: yes" >&5
2511echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513rm -f a.out a.exe conftest$ac_cv_exeext b.out
2514ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002517{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2518echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2519{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2520echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002521
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2523echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2524if { (ac_try="$ac_link"
2525case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528esac
2529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }; then
2534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2536# work properly (i.e., refer to `conftest.exe'), while it won't with
2537# `rm'.
2538for ac_file in conftest.exe conftest conftest.*; do
2539 test -f "$ac_file" || continue
2540 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 break;;
2544 * ) break;;
2545 esac
2546done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2549See \`config.log' for more details." >&5
2550echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2551See \`config.log' for more details." >&2;}
2552 { (exit 1); exit 1; }; }
2553fi
2554
2555rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2557echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558
2559rm -f conftest.$ac_ext
2560EXEEXT=$ac_cv_exeext
2561ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2563echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564if test "${ac_cv_objext+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2566else
2567 cat >conftest.$ac_ext <<_ACEOF
2568/* confdefs.h. */
2569_ACEOF
2570cat confdefs.h >>conftest.$ac_ext
2571cat >>conftest.$ac_ext <<_ACEOF
2572/* end confdefs.h. */
2573
2574int
2575main ()
2576{
2577
2578 ;
2579 return 0;
2580}
2581_ACEOF
2582rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002583if { (ac_try="$ac_compile"
2584case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587esac
2588eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002593 for ac_file in conftest.o conftest.obj conftest.*; do
2594 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002595 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002597 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2598 break;;
2599 esac
2600done
2601else
2602 echo "$as_me: failed program was:" >&5
2603sed 's/^/| /' conftest.$ac_ext >&5
2604
2605{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2606See \`config.log' for more details." >&5
2607echo "$as_me: error: cannot compute suffix of object files: cannot compile
2608See \`config.log' for more details." >&2;}
2609 { (exit 1); exit 1; }; }
2610fi
2611
2612rm -f conftest.$ac_cv_objext conftest.$ac_ext
2613fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2615echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616OBJEXT=$ac_cv_objext
2617ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2619echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620if test "${ac_cv_c_compiler_gnu+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 cat >conftest.$ac_ext <<_ACEOF
2624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
2629
2630int
2631main ()
2632{
2633#ifndef __GNUC__
2634 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002635#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 ;
2638 return 0;
2639}
2640_ACEOF
2641rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002642if { (ac_try="$ac_compile"
2643case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646esac
2647eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 ac_status=$?
2650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
2653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002654 (exit $ac_status); } && {
2655 test -z "$ac_c_werror_flag" ||
2656 test ! -s conftest.err
2657 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002659else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660 echo "$as_me: failed program was:" >&5
2661sed 's/^/| /' conftest.$ac_ext >&5
2662
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002665
2666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2671echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672GCC=`test $ac_compiler_gnu = yes && echo yes`
2673ac_test_CFLAGS=${CFLAGS+set}
2674ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2676echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002677if test "${ac_cv_prog_cc_g+set}" = set; then
2678 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002679else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002680 ac_save_c_werror_flag=$ac_c_werror_flag
2681 ac_c_werror_flag=yes
2682 ac_cv_prog_cc_g=no
2683 CFLAGS="-g"
2684 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002685/* confdefs.h. */
2686_ACEOF
2687cat confdefs.h >>conftest.$ac_ext
2688cat >>conftest.$ac_ext <<_ACEOF
2689/* end confdefs.h. */
2690
2691int
2692main ()
2693{
2694
2695 ;
2696 return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002700if { (ac_try="$ac_compile"
2701case "(($ac_try" in
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2704esac
2705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707 ac_status=$?
2708 grep -v '^ *+' conftest.er1 >conftest.err
2709 rm -f conftest.er1
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002712 (exit $ac_status); } && {
2713 test -z "$ac_c_werror_flag" ||
2714 test ! -s conftest.err
2715 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002716 ac_cv_prog_cc_g=yes
2717else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718 echo "$as_me: failed program was:" >&5
2719sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002720
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721 CFLAGS=""
2722 cat >conftest.$ac_ext <<_ACEOF
2723/* confdefs.h. */
2724_ACEOF
2725cat confdefs.h >>conftest.$ac_ext
2726cat >>conftest.$ac_ext <<_ACEOF
2727/* end confdefs.h. */
2728
2729int
2730main ()
2731{
2732
2733 ;
2734 return 0;
2735}
2736_ACEOF
2737rm -f conftest.$ac_objext
2738if { (ac_try="$ac_compile"
2739case "(($ac_try" in
2740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2741 *) ac_try_echo=$ac_try;;
2742esac
2743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2744 (eval "$ac_compile") 2>conftest.er1
2745 ac_status=$?
2746 grep -v '^ *+' conftest.er1 >conftest.err
2747 rm -f conftest.er1
2748 cat conftest.err >&5
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002750 (exit $ac_status); } && {
2751 test -z "$ac_c_werror_flag" ||
2752 test ! -s conftest.err
2753 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002754 :
2755else
2756 echo "$as_me: failed program was:" >&5
2757sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_c_werror_flag=$ac_save_c_werror_flag
2760 CFLAGS="-g"
2761 cat >conftest.$ac_ext <<_ACEOF
2762/* confdefs.h. */
2763_ACEOF
2764cat confdefs.h >>conftest.$ac_ext
2765cat >>conftest.$ac_ext <<_ACEOF
2766/* end confdefs.h. */
2767
2768int
2769main ()
2770{
2771
2772 ;
2773 return 0;
2774}
2775_ACEOF
2776rm -f conftest.$ac_objext
2777if { (ac_try="$ac_compile"
2778case "(($ac_try" in
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2781esac
2782eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_compile") 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002789 (exit $ac_status); } && {
2790 test -z "$ac_c_werror_flag" ||
2791 test ! -s conftest.err
2792 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002793 ac_cv_prog_cc_g=yes
2794else
2795 echo "$as_me: failed program was:" >&5
2796sed 's/^/| /' conftest.$ac_ext >&5
2797
2798
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002799fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002803
2804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805fi
2806
2807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2808 ac_c_werror_flag=$ac_save_c_werror_flag
2809fi
2810{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2811echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002814elif test $ac_cv_prog_cc_g = yes; then
2815 if test "$GCC" = yes; then
2816 CFLAGS="-g -O2"
2817 else
2818 CFLAGS="-g"
2819 fi
2820else
2821 if test "$GCC" = yes; then
2822 CFLAGS="-O2"
2823 else
2824 CFLAGS=
2825 fi
2826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2828echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2829if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830 echo $ECHO_N "(cached) $ECHO_C" >&6
2831else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833ac_save_CC=$CC
2834cat >conftest.$ac_ext <<_ACEOF
2835/* confdefs.h. */
2836_ACEOF
2837cat confdefs.h >>conftest.$ac_ext
2838cat >>conftest.$ac_ext <<_ACEOF
2839/* end confdefs.h. */
2840#include <stdarg.h>
2841#include <stdio.h>
2842#include <sys/types.h>
2843#include <sys/stat.h>
2844/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2845struct buf { int x; };
2846FILE * (*rcsopen) (struct buf *, struct stat *, int);
2847static char *e (p, i)
2848 char **p;
2849 int i;
2850{
2851 return p[i];
2852}
2853static char *f (char * (*g) (char **, int), char **p, ...)
2854{
2855 char *s;
2856 va_list v;
2857 va_start (v,p);
2858 s = g (p, va_arg (v,int));
2859 va_end (v);
2860 return s;
2861}
2862
2863/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2864 function prototypes and stuff, but not '\xHH' hex character constants.
2865 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2868 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002870int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2871
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2873 inside strings and character constants. */
2874#define FOO(x) 'x'
2875int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877int test (int i, double x);
2878struct s1 {int (*f) (int a);};
2879struct s2 {int (*f) (double a);};
2880int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2881int argc;
2882char **argv;
2883int
2884main ()
2885{
2886return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2887 ;
2888 return 0;
2889}
2890_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2892 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893do
2894 CC="$ac_save_CC $ac_arg"
2895 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
2901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903 ac_status=$?
2904 grep -v '^ *+' conftest.er1 >conftest.err
2905 rm -f conftest.er1
2906 cat conftest.err >&5
2907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002908 (exit $ac_status); } && {
2909 test -z "$ac_c_werror_flag" ||
2910 test ! -s conftest.err
2911 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002912 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913else
2914 echo "$as_me: failed program was:" >&5
2915sed 's/^/| /' conftest.$ac_ext >&5
2916
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002919
2920rm -f core conftest.err conftest.$ac_objext
2921 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002923rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002924CC=$ac_save_CC
2925
2926fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927# AC_CACHE_VAL
2928case "x$ac_cv_prog_cc_c89" in
2929 x)
2930 { echo "$as_me:$LINENO: result: none needed" >&5
2931echo "${ECHO_T}none needed" >&6; } ;;
2932 xno)
2933 { echo "$as_me:$LINENO: result: unsupported" >&5
2934echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002936 CC="$CC $ac_cv_prog_cc_c89"
2937 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2938echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939esac
2940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
2947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948ac_ext=c
2949ac_cpp='$CPP $CPPFLAGS'
2950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2954echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002955# On Suns, sometimes $CPP names a directory.
2956if test -n "$CPP" && test -d "$CPP"; then
2957 CPP=
2958fi
2959if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960 if test "${ac_cv_prog_CPP+set}" = set; then
2961 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 # Double quotes because CPP needs to be expanded
2964 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2965 do
2966 ac_preproc_ok=false
2967for ac_c_preproc_warn_flag in '' yes
2968do
2969 # Use a header file that comes with gcc, so configuring glibc
2970 # with a fresh cross-compiler works.
2971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2972 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002973 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974 # not just through cpp. "Syntax error" is here to catch this case.
2975 cat >conftest.$ac_ext <<_ACEOF
2976/* confdefs.h. */
2977_ACEOF
2978cat confdefs.h >>conftest.$ac_ext
2979cat >>conftest.$ac_ext <<_ACEOF
2980/* end confdefs.h. */
2981#ifdef __STDC__
2982# include <limits.h>
2983#else
2984# include <assert.h>
2985#endif
2986 Syntax error
2987_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002988if { (ac_try="$ac_cpp conftest.$ac_ext"
2989case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992esac
2993eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995 ac_status=$?
2996 grep -v '^ *+' conftest.er1 >conftest.err
2997 rm -f conftest.er1
2998 cat conftest.err >&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003000 (exit $ac_status); } >/dev/null && {
3001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3002 test ! -s conftest.err
3003 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003004 :
3005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006 echo "$as_me: failed program was:" >&5
3007sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009 # Broken: fails on valid input.
3010continue
3011fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013rm -f conftest.err conftest.$ac_ext
3014
Theodore Ts'oe1052142006-10-21 21:46:47 -04003015 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 # can be detected and how.
3017 cat >conftest.$ac_ext <<_ACEOF
3018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#include <ac_nonexistent.h>
3024_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025if { (ac_try="$ac_cpp conftest.$ac_ext"
3026case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029esac
3030eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032 ac_status=$?
3033 grep -v '^ *+' conftest.er1 >conftest.err
3034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003037 (exit $ac_status); } >/dev/null && {
3038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3039 test ! -s conftest.err
3040 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 # Broken: success on invalid input.
3042continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003044 echo "$as_me: failed program was:" >&5
3045sed 's/^/| /' conftest.$ac_ext >&5
3046
3047 # Passes both tests.
3048ac_preproc_ok=:
3049break
3050fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052rm -f conftest.err conftest.$ac_ext
3053
3054done
3055# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3056rm -f conftest.err conftest.$ac_ext
3057if $ac_preproc_ok; then
3058 break
3059fi
3060
3061 done
3062 ac_cv_prog_CPP=$CPP
3063
3064fi
3065 CPP=$ac_cv_prog_CPP
3066else
3067 ac_cv_prog_CPP=$CPP
3068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003069{ echo "$as_me:$LINENO: result: $CPP" >&5
3070echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071ac_preproc_ok=false
3072for ac_c_preproc_warn_flag in '' yes
3073do
3074 # Use a header file that comes with gcc, so configuring glibc
3075 # with a fresh cross-compiler works.
3076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3077 # <limits.h> exists even on freestanding compilers.
3078 # On the NeXT, cc -E runs the code through the compiler's parser,
3079 # not just through cpp. "Syntax error" is here to catch this case.
3080 cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h. */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h. */
3086#ifdef __STDC__
3087# include <limits.h>
3088#else
3089# include <assert.h>
3090#endif
3091 Syntax error
3092_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093if { (ac_try="$ac_cpp conftest.$ac_ext"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003105 (exit $ac_status); } >/dev/null && {
3106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3107 test ! -s conftest.err
3108 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109 :
3110else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 # Broken: fails on valid input.
3115continue
3116fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118rm -f conftest.err conftest.$ac_ext
3119
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121 # can be detected and how.
3122 cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */
3128#include <ac_nonexistent.h>
3129_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003130if { (ac_try="$ac_cpp conftest.$ac_ext"
3131case "(($ac_try" in
3132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3133 *) ac_try_echo=$ac_try;;
3134esac
3135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 ac_status=$?
3138 grep -v '^ *+' conftest.er1 >conftest.err
3139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003142 (exit $ac_status); } >/dev/null && {
3143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3144 test ! -s conftest.err
3145 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146 # Broken: success on invalid input.
3147continue
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151
3152 # Passes both tests.
3153ac_preproc_ok=:
3154break
3155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157rm -f conftest.err conftest.$ac_ext
3158
3159done
3160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3161rm -f conftest.err conftest.$ac_ext
3162if $ac_preproc_ok; then
3163 :
3164else
3165 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3166See \`config.log' for more details." >&5
3167echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3168See \`config.log' for more details." >&2;}
3169 { (exit 1); exit 1; }; }
3170fi
3171
3172ac_ext=c
3173ac_cpp='$CPP $CPPFLAGS'
3174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3176ac_compiler_gnu=$ac_cv_c_compiler_gnu
3177
3178
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003179# Check whether --with-linker was given.
3180if test "${with_linker+set}" = set; then
3181 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3182echo "${ECHO_T}LD=$withval" >&6; }
3183LD=$withval
3184else
3185 if test -z "$LD" ; then LD=$CC; fi
3186{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3187echo "${ECHO_T}LD defaults to $LD" >&6; }
3188fi
3189export LD
3190
3191
3192# Check whether --with-ccopts was given.
3193if test "${with_ccopts+set}" = set; then
3194 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3195echo "${ECHO_T}CCOPTS is $withval" >&6; }
3196CFLAGS=$withval
3197fi
3198
3199
Theodore Ts'oe1052142006-10-21 21:46:47 -04003200{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3201echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3202if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205 # Extract the first word of "grep ggrep" to use in msg output
3206if test -z "$GREP"; then
3207set dummy grep ggrep; ac_prog_name=$2
3208if test "${ac_cv_path_GREP+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 ac_path_GREP_found=false
3212# Loop through the user's path and test for each of PROGNAME-LIST
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_prog in grep ggrep; do
3219 for ac_exec_ext in '' $ac_executable_extensions; do
3220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003222 # Check for GNU ac_path_GREP and select it if it is found.
3223 # Check for GNU $ac_path_GREP
3224case `"$ac_path_GREP" --version 2>&1` in
3225*GNU*)
3226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3227*)
3228 ac_count=0
3229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3230 while :
3231 do
3232 cat "conftest.in" "conftest.in" >"conftest.tmp"
3233 mv "conftest.tmp" "conftest.in"
3234 cp "conftest.in" "conftest.nl"
3235 echo 'GREP' >> "conftest.nl"
3236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3238 ac_count=`expr $ac_count + 1`
3239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3240 # Best one so far, save it but keep looking for a better one
3241 ac_cv_path_GREP="$ac_path_GREP"
3242 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003243 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003244 # 10*(2^10) chars as input seems more than enough
3245 test $ac_count -gt 10 && break
3246 done
3247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3248esac
3249
3250
3251 $ac_path_GREP_found && break 3
3252 done
3253done
3254
3255done
3256IFS=$as_save_IFS
3257
3258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260
3261GREP="$ac_cv_path_GREP"
3262if test -z "$GREP"; then
3263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3264echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3265 { (exit 1); exit 1; }; }
3266fi
3267
3268else
3269 ac_cv_path_GREP=$GREP
3270fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271
3272
Theodore Ts'oe1052142006-10-21 21:46:47 -04003273fi
3274{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3275echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
3277
3278
3279{ echo "$as_me:$LINENO: checking for egrep" >&5
3280echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3281if test "${ac_cv_path_EGREP+set}" = set; then
3282 echo $ECHO_N "(cached) $ECHO_C" >&6
3283else
3284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3286 else
3287 # Extract the first word of "egrep" to use in msg output
3288if test -z "$EGREP"; then
3289set dummy egrep; ac_prog_name=$2
3290if test "${ac_cv_path_EGREP+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 ac_path_EGREP_found=false
3294# Loop through the user's path and test for each of PROGNAME-LIST
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_prog in egrep; do
3301 for ac_exec_ext in '' $ac_executable_extensions; do
3302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003304 # Check for GNU ac_path_EGREP and select it if it is found.
3305 # Check for GNU $ac_path_EGREP
3306case `"$ac_path_EGREP" --version 2>&1` in
3307*GNU*)
3308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3309*)
3310 ac_count=0
3311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3312 while :
3313 do
3314 cat "conftest.in" "conftest.in" >"conftest.tmp"
3315 mv "conftest.tmp" "conftest.in"
3316 cp "conftest.in" "conftest.nl"
3317 echo 'EGREP' >> "conftest.nl"
3318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3320 ac_count=`expr $ac_count + 1`
3321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3322 # Best one so far, save it but keep looking for a better one
3323 ac_cv_path_EGREP="$ac_path_EGREP"
3324 ac_path_EGREP_max=$ac_count
3325 fi
3326 # 10*(2^10) chars as input seems more than enough
3327 test $ac_count -gt 10 && break
3328 done
3329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3330esac
3331
3332
3333 $ac_path_EGREP_found && break 3
3334 done
3335done
3336
3337done
3338IFS=$as_save_IFS
3339
3340
3341fi
3342
3343EGREP="$ac_cv_path_EGREP"
3344if test -z "$EGREP"; then
3345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3346echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3347 { (exit 1); exit 1; }; }
3348fi
3349
3350else
3351 ac_cv_path_EGREP=$EGREP
3352fi
3353
3354
3355 fi
3356fi
3357{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3358echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3359 EGREP="$ac_cv_path_EGREP"
3360
3361
3362{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3363echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364if test "${ac_cv_header_stdc+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3366else
3367 cat >conftest.$ac_ext <<_ACEOF
3368/* confdefs.h. */
3369_ACEOF
3370cat confdefs.h >>conftest.$ac_ext
3371cat >>conftest.$ac_ext <<_ACEOF
3372/* end confdefs.h. */
3373#include <stdlib.h>
3374#include <stdarg.h>
3375#include <string.h>
3376#include <float.h>
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003387if { (ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3393 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003394 ac_status=$?
3395 grep -v '^ *+' conftest.er1 >conftest.err
3396 rm -f conftest.er1
3397 cat conftest.err >&5
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403 ac_cv_header_stdc=yes
3404else
3405 echo "$as_me: failed program was:" >&5
3406sed 's/^/| /' conftest.$ac_ext >&5
3407
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410
3411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003412
3413if test $ac_cv_header_stdc = yes; then
3414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3415 cat >conftest.$ac_ext <<_ACEOF
3416/* confdefs.h. */
3417_ACEOF
3418cat confdefs.h >>conftest.$ac_ext
3419cat >>conftest.$ac_ext <<_ACEOF
3420/* end confdefs.h. */
3421#include <string.h>
3422
3423_ACEOF
3424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3425 $EGREP "memchr" >/dev/null 2>&1; then
3426 :
3427else
3428 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003429fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003430rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003432fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433
3434if test $ac_cv_header_stdc = yes; then
3435 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3436 cat >conftest.$ac_ext <<_ACEOF
3437/* confdefs.h. */
3438_ACEOF
3439cat confdefs.h >>conftest.$ac_ext
3440cat >>conftest.$ac_ext <<_ACEOF
3441/* end confdefs.h. */
3442#include <stdlib.h>
3443
3444_ACEOF
3445if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3446 $EGREP "free" >/dev/null 2>&1; then
3447 :
3448else
3449 ac_cv_header_stdc=no
3450fi
3451rm -f conftest*
3452
3453fi
3454
3455if test $ac_cv_header_stdc = yes; then
3456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3457 if test "$cross_compiling" = yes; then
3458 :
3459else
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003467#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468#if ((' ' & 0x0FF) == 0x020)
3469# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3470# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3471#else
3472# define ISLOWER(c) \
3473 (('a' <= (c) && (c) <= 'i') \
3474 || ('j' <= (c) && (c) <= 'r') \
3475 || ('s' <= (c) && (c) <= 'z'))
3476# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3477#endif
3478
3479#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3480int
3481main ()
3482{
3483 int i;
3484 for (i = 0; i < 256; i++)
3485 if (XOR (islower (i), ISLOWER (i))
3486 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487 return 2;
3488 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489}
3490_ACEOF
3491rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492if { (ac_try="$ac_link"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3498 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499 ac_status=$?
3500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003502 { (case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505esac
3506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }; }; then
3511 :
3512else
3513 echo "$as_me: program exited with status $ac_status" >&5
3514echo "$as_me: failed program was:" >&5
3515sed 's/^/| /' conftest.$ac_ext >&5
3516
3517( exit $ac_status )
3518ac_cv_header_stdc=no
3519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3521fi
3522
3523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003524fi
3525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3527echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528if test $ac_cv_header_stdc = yes; then
3529
3530cat >>confdefs.h <<\_ACEOF
3531#define STDC_HEADERS 1
3532_ACEOF
3533
3534fi
3535
3536# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3547 inttypes.h stdint.h unistd.h
3548do
3549as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3552if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554else
3555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h. */
3561$ac_includes_default
3562
3563#include <$ac_header>
3564_ACEOF
3565rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003566if { (ac_try="$ac_compile"
3567case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570esac
3571eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3572 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573 ac_status=$?
3574 grep -v '^ *+' conftest.er1 >conftest.err
3575 rm -f conftest.er1
3576 cat conftest.err >&5
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003578 (exit $ac_status); } && {
3579 test -z "$ac_c_werror_flag" ||
3580 test ! -s conftest.err
3581 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 eval "$as_ac_Header=yes"
3583else
3584 echo "$as_me: failed program was:" >&5
3585sed 's/^/| /' conftest.$ac_ext >&5
3586
Theodore Ts'oe1052142006-10-21 21:46:47 -04003587 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003589
3590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003592ac_res=`eval echo '${'$as_ac_Header'}'`
3593 { echo "$as_me:$LINENO: result: $ac_res" >&5
3594echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595if test `eval echo '${'$as_ac_Header'}'` = yes; then
3596 cat >>confdefs.h <<_ACEOF
3597#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3598_ACEOF
3599
3600fi
3601
3602done
3603
3604
3605if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003606 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3607echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608if test "${ac_cv_header_linux_fs_h+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003611{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3612echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003613else
3614 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3616echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623$ac_includes_default
3624#include <linux/fs.h>
3625_ACEOF
3626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627if { (ac_try="$ac_compile"
3628case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631esac
3632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634 ac_status=$?
3635 grep -v '^ *+' conftest.er1 >conftest.err
3636 rm -f conftest.er1
3637 cat conftest.err >&5
3638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003639 (exit $ac_status); } && {
3640 test -z "$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3642 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643 ac_header_compiler=yes
3644else
3645 echo "$as_me: failed program was:" >&5
3646sed 's/^/| /' conftest.$ac_ext >&5
3647
Theodore Ts'oe1052142006-10-21 21:46:47 -04003648 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650
3651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3653echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003654
3655# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3657echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658cat >conftest.$ac_ext <<_ACEOF
3659/* confdefs.h. */
3660_ACEOF
3661cat confdefs.h >>conftest.$ac_ext
3662cat >>conftest.$ac_ext <<_ACEOF
3663/* end confdefs.h. */
3664#include <linux/fs.h>
3665_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003666if { (ac_try="$ac_cpp conftest.$ac_ext"
3667case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670esac
3671eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003673 ac_status=$?
3674 grep -v '^ *+' conftest.er1 >conftest.err
3675 rm -f conftest.er1
3676 cat conftest.err >&5
3677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003678 (exit $ac_status); } >/dev/null && {
3679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3680 test ! -s conftest.err
3681 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682 ac_header_preproc=yes
3683else
3684 echo "$as_me: failed program was:" >&5
3685sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 ac_header_preproc=no
3688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003690rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003691{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3692echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003693
3694# So? What about this header?
3695case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3696 yes:no: )
3697 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3698echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3699 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3700echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3701 ac_header_preproc=yes
3702 ;;
3703 no:yes:* )
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3705echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3707echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3709echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3710 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3711echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3712 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3713echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3714 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3715echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003717 ;;
3718esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003719{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3720echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003721if test "${ac_cv_header_linux_fs_h+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3723else
3724 ac_cv_header_linux_fs_h=$ac_header_preproc
3725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003726{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3727echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003728
3729fi
3730if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003731 linux_headers=yes
3732else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003734fi
3735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003736
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003737if test "$linux_headers" != yes; then
3738 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003739fi
3740
Theodore Ts'oe1052142006-10-21 21:46:47 -04003741{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3742echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003743if test "$GCC" = yes
3744then
3745 case "$host_cpu" in
3746 alpha) addcflags="-mieee" ;;
3747 esac
3748fi
3749if test "x$addcflags" != x
3750then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003751 { echo "$as_me:$LINENO: result: $addcflags" >&5
3752echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003753 CFLAGS="$addcflags $CFLAGS"
3754else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003755 { echo "$as_me:$LINENO: result: (none)" >&5
3756echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003757fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003758LIB_EXT=.a
3759STATIC_LIB_EXT=.a
3760PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003761
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003763if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003764 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3765echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003766LDFLAGS=$withval
3767else
3768 LDFLAGS=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003770
Theodore Ts'oe1052142006-10-21 21:46:47 -04003771
3772# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003773if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003775else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003776 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003777fi
3778# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003779if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003781then
3782 MAINTAINER_CMT=#
3783 echo "Disabling maintainer mode"
3784else
3785 MAINTAINER_CMT=
3786 echo "Enabling maintainer mode"
3787fi
3788
3789else
3790 MAINTAINER_CMT=#
3791echo "Disabling maintainer mode by default"
3792
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003794
Theodore Ts'oe1052142006-10-21 21:46:47 -04003795
3796# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003797if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003798 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003799then
3800 echo "Disabling compression support"
3801else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003803#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003804_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003805
3806 echo "Enabling compression support"
3807 echo "WARNING: Compression support is experimental"
3808fi
3809
3810else
3811 echo "Disabling compression support by default"
3812
Theodore Ts'oe1052142006-10-21 21:46:47 -04003813fi
3814
3815# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003816if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003817 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003818then
3819 HTREE_CMT=#
3820 echo "Disabling htree directory support"
3821else
3822 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003825_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826
3827 echo "Enabling htree directory support"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003828fi
3829
3830else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003831 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003833#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003835
3836echo "Enabling htree directory support by default"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003837
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003839
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003841E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003843if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003844 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003845then
3846 ELF_CMT=#
3847 MAKEFILE_ELF=/dev/null
3848 echo "Disabling ELF shared libraries"
3849else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003850 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003851 ELF_CMT=
3852 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003853 case "$host_os" in
3854 solaris2.*)
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3856 ;;
3857 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003858 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003859 LIB_EXT=.so
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003860 echo "Enabling ELF shared libraries"
3861fi
3862
3863else
3864 MAKEFILE_ELF=/dev/null
3865ELF_CMT=#
3866echo "Disabling ELF shared libraries by default"
3867
Theodore Ts'oe1052142006-10-21 21:46:47 -04003868fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003869
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003870
Theodore Ts'oe1052142006-10-21 21:46:47 -04003871
3872# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003873if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003874 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003875then
3876 BSDLIB_CMT=#
3877 MAKEFILE_BSDLIB=/dev/null
3878 echo "Disabling BSD shared libraries"
3879else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003880 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003881 BSDLIB_CMT=
3882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003883 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003884 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003885 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3887 LIB_EXT=.dylib
3888 ;;
3889 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003890 echo "Enabling BSD shared libraries"
3891fi
3892
3893else
3894 MAKEFILE_BSDLIB=/dev/null
3895BSDLIB_CMT=#
3896echo "Disabling BSD shared libraries by default"
3897
Theodore Ts'oe1052142006-10-21 21:46:47 -04003898fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003899
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003900
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901
3902# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003903if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003904 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003905then
3906 PROFILE_CMT=#
3907 MAKEFILE_PROFILE=/dev/null
3908 echo "Disabling profiling libraries"
3909else
3910 PROFILE_CMT=
3911 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3912 PROFILED_LIB_EXT=_p.a
3913 echo "Building profiling libraries"
3914fi
3915
3916else
3917 PROFILE_CMT=#
3918MAKEFILE_PROFILE=/dev/null
3919echo "Disabling profiling libraries by default"
3920
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003922
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003923
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924
3925# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003926if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003927 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003928then
3929 CHECKER_CMT=#
3930 MAKEFILE_CHECKER=/dev/null
3931 echo "Disabling checker libraries"
3932else
3933 CHECKER_CMT=
3934 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
3935 echo "Building checker libraries"
3936fi
3937
3938else
3939 CHECKER_CMT=#
3940MAKEFILE_CHECKER=/dev/null
3941echo "Disabling checker libraries by default"
3942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003944
3945
3946
3947
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003948
Theodore Ts'oe1052142006-10-21 21:46:47 -04003949
3950# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003951if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003952 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003953then
3954 echo "Disabling journal debugging"
3955else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003956 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003957#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003958_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003959
3960 echo "Enabling journal debugging"
3961fi
3962
3963else
3964 echo "Disabling journal debugging by default"
3965
Theodore Ts'oe1052142006-10-21 21:46:47 -04003966fi
3967
3968# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003969if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003970 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003971then
3972 echo "Disabling blkid debugging"
3973else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003975#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003976_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003977
3978 echo "Enabling blkid debugging"
3979fi
3980
3981else
3982 echo "Disabling blkid debugging by default"
3983
Theodore Ts'oe1052142006-10-21 21:46:47 -04003984fi
3985
3986# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003987if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003988 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003989then
3990 echo "Disabling testio debugging"
3991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003993#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003994_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04003995
3996 echo "Enabling testio debugging"
3997fi
3998
3999else
4000 echo "Disabling testio debugging by default"
4001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002fi
4003
4004# Check whether --enable-swapfs was given.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004005if test "${enable_swapfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004006 enableval=$enable_swapfs; if test "$enableval" = "no"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004007then
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004008 SWAPFS_CMT=#
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004009 echo "Disabling swapfs support"
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004010else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004011 SWAPFS_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004012 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004013#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004014_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004015
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004016 echo "Enabling swapfs support"
4017fi
4018
4019else
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004020 SWAPFS_CMT=
4021echo "Enabling swapfs support by default"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004022cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004023#define ENABLE_SWAPFS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004024_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +00004025
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004026
Theodore Ts'oe1052142006-10-21 21:46:47 -04004027fi
Theodore Ts'ofeb44c62002-11-08 14:55:38 -05004028
Theodore Ts'oe1052142006-10-21 21:46:47 -04004029
4030# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004031if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004032 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004033then
4034 echo "Disabling debugfs support"
4035 DEBUGFS_CMT="#"
4036else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004037 DEBUGFS_CMT=
4038 echo "Enabling debugfs support"
4039fi
4040
4041else
4042 echo "Enabling debugfs support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004043DEBUGFS_CMT=
4044
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046
Theodore Ts'oe1052142006-10-21 21:46:47 -04004047
4048# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004049if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004050 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051then
4052 echo "Disabling e2image support"
4053 IMAGER_CMT="#"
4054else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004055 IMAGER_CMT=
4056 echo "Enabling e2image support"
4057fi
4058
4059else
4060 echo "Enabling e2image support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004061IMAGER_CMT=
4062
Theodore Ts'oe1052142006-10-21 21:46:47 -04004063fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064
Theodore Ts'oe1052142006-10-21 21:46:47 -04004065
4066# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004068 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004069then
4070 echo "Disabling e2resize support"
4071 RESIZER_CMT="#"
4072else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004073 RESIZER_CMT=
4074 echo "Enabling e2resize support"
4075fi
4076
4077else
4078 echo "Enabling e2resize support by default"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004079RESIZER_CMT=
4080
Theodore Ts'oe1052142006-10-21 21:46:47 -04004081fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004082
Theodore Ts'oe1052142006-10-21 21:46:47 -04004083
Theodore Ts'oe1052142006-10-21 21:46:47 -04004084# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004085if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004086 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004087then
4088 FSCK_PROG='' FSCK_MAN=''
4089 echo "Not building fsck wrapper"
4090else
4091 FSCK_PROG=fsck FSCK_MAN=fsck.8
4092 echo "Building fsck wrapper"
4093fi
4094
4095else
4096 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004097 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004098 FSCK_PROG='' FSCK_MAN=''
4099 echo "Not building fsck wrapper by default"
4100 ;;
4101 *)
4102 FSCK_PROG=fsck FSCK_MAN=fsck.8
4103 echo "Building fsck wrapper by default"
4104esac
4105
Theodore Ts'oe1052142006-10-21 21:46:47 -04004106fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004107
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108
Theodore Ts'oe1052142006-10-21 21:46:47 -04004109
4110# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004111if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004112 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004113then
4114 E2INITRD_PROG='' E2INITRD_MAN=''
4115 echo "Not building e2initrd helper"
4116else
4117 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4118 echo "Building e2initrd helper"
4119fi
4120
4121else
4122 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
4123echo "Building e2initrd helper by default"
4124
Theodore Ts'oe1052142006-10-21 21:46:47 -04004125fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004126
4127
Theodore Ts'oe1052142006-10-21 21:46:47 -04004128
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004129STATIC_BLKID_DEVMAPPER_LIBS=''
Theodore Ts'oe1052142006-10-21 21:46:47 -04004130# Check whether --enable-blkid-devmapper was given.
Karel Zak4db2f592006-03-08 14:17:28 -05004131if test "${enable_blkid_devmapper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004132 enableval=$enable_blkid_devmapper; if test "$enableval" = "no"
Karel Zak4db2f592006-03-08 14:17:28 -05004133then
4134 echo "Disabling device-mapper support"
4135 DEVMAPPER_REQ=''
4136 DEVMAPPER_LIBS=''
4137 STATIC_DEVMAPPER_LIBS=''
4138else
4139 cat >>confdefs.h <<\_ACEOF
4140#define HAVE_DEVMAPPER 1
4141_ACEOF
4142
4143 echo "Enabling device-mapper support"
4144
Karel Zak4db2f592006-03-08 14:17:28 -05004145
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004146
4147if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4148 if test -n "$ac_tool_prefix"; then
4149 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4150set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4151{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4152echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4153if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156 case $PKG_CONFIG in
4157 [\\/]* | ?:[\\/]*)
4158 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4159 ;;
4160 *)
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4168 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172done
4173done
4174IFS=$as_save_IFS
4175
4176 ;;
4177esac
4178fi
4179PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4180if test -n "$PKG_CONFIG"; then
4181 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4182echo "${ECHO_T}$PKG_CONFIG" >&6; }
4183else
4184 { echo "$as_me:$LINENO: result: no" >&5
4185echo "${ECHO_T}no" >&6; }
4186fi
4187
4188
4189fi
4190if test -z "$ac_cv_path_PKG_CONFIG"; then
4191 ac_pt_PKG_CONFIG=$PKG_CONFIG
4192 # Extract the first word of "pkg-config", so it can be a program name with args.
4193set dummy pkg-config; ac_word=$2
4194{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4196if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4197 echo $ECHO_N "(cached) $ECHO_C" >&6
4198else
4199 case $ac_pt_PKG_CONFIG in
4200 [\\/]* | ?:[\\/]*)
4201 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4202 ;;
4203 *)
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_exec_ext in '' $ac_executable_extensions; do
4210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4211 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4213 break 2
4214 fi
4215done
4216done
4217IFS=$as_save_IFS
4218
4219 ;;
4220esac
4221fi
4222ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4223if test -n "$ac_pt_PKG_CONFIG"; then
4224 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4225echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
4226else
4227 { echo "$as_me:$LINENO: result: no" >&5
4228echo "${ECHO_T}no" >&6; }
4229fi
4230
4231 if test "x$ac_pt_PKG_CONFIG" = x; then
4232 PKG_CONFIG=""
4233 else
4234 case $cross_compiling:$ac_tool_warned in
4235yes:)
4236{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4237whose name does not start with the host triplet. If you think this
4238configuration is useful to you, please write to autoconf@gnu.org." >&5
4239echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4240whose name does not start with the host triplet. If you think this
4241configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4242ac_tool_warned=yes ;;
4243esac
4244 PKG_CONFIG=$ac_pt_PKG_CONFIG
4245 fi
4246else
4247 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4248fi
4249
4250fi
4251if test -n "$PKG_CONFIG"; then
4252 _pkg_min_version=0.9.0
4253 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4254echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
4255 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4256 { echo "$as_me:$LINENO: result: yes" >&5
4257echo "${ECHO_T}yes" >&6; }
4258 else
4259 { echo "$as_me:$LINENO: result: no" >&5
4260echo "${ECHO_T}no" >&6; }
4261 PKG_CONFIG=""
4262 fi
4263
4264fi
4265
4266 if test -z "$PKG_CONFIG"; then
4267 echo "pkg-config not installed; please install it."
4268 exit 1;
4269 fi
4270
4271 { echo "$as_me:$LINENO: checking for dm_tree_create in -ldevmapper" >&5
4272echo $ECHO_N "checking for dm_tree_create in -ldevmapper... $ECHO_C" >&6; }
4273if test "${ac_cv_lib_devmapper_dm_tree_create+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 ac_check_lib_save_LIBS=$LIBS
4277LIBS="-ldevmapper $DEVMAPPER_LIBS $LIBS"
4278cat >conftest.$ac_ext <<_ACEOF
4279/* confdefs.h. */
4280_ACEOF
4281cat confdefs.h >>conftest.$ac_ext
4282cat >>conftest.$ac_ext <<_ACEOF
4283/* end confdefs.h. */
4284
4285/* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4288#ifdef __cplusplus
4289extern "C"
4290#endif
4291char dm_tree_create ();
4292int
4293main ()
4294{
4295return dm_tree_create ();
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (ac_try="$ac_link"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_lib_devmapper_dm_tree_create=yes
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_cv_lib_devmapper_dm_tree_create=no
4324fi
4325
4326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327 conftest$ac_exeext conftest.$ac_ext
4328LIBS=$ac_check_lib_save_LIBS
4329fi
4330{ echo "$as_me:$LINENO: result: $ac_cv_lib_devmapper_dm_tree_create" >&5
4331echo "${ECHO_T}$ac_cv_lib_devmapper_dm_tree_create" >&6; }
4332if test $ac_cv_lib_devmapper_dm_tree_create = yes; then
4333 DEVMAPPER_LIBS=`$PKG_CONFIG --libs devmapper`;
4334 STATIC_DEVMAPPER_LIBS=`$PKG_CONFIG --static --libs devmapper`;
4335 DEVMAPPER_REQ="devmapper";
4336 DEVMAPPER_PC_LIBS="-ldevmapper"
4337else
4338 { { echo "$as_me:$LINENO: error: device-mapper library not found" >&5
4339echo "$as_me: error: device-mapper library not found" >&2;}
4340 { (exit 1); exit 1; }; }
4341fi
4342
4343 # work around stupid devmapper.pc bug in Debian
4344 case "$STATIC_DEVMAPPER_LIBS" in
4345 *pthread*)
4346 ;;
4347 *)
4348 echo "Working around Debian bug #390243..."
4349 STATIC_DEVMAPPER_LIBS="-pthread $STATIC_DEVMAPPER_LIBS"
4350 ;;
4351 esac
4352 if test "$E2_PKG_CONFIG_STATIC" = "--static"; then
4353 DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4354 STATIC_BLKID_DEVMAPPER_LIBS="$STATIC_DEVMAPPER_LIBS"
4355 fi
Karel Zak4db2f592006-03-08 14:17:28 -05004356fi
4357
4358else
4359 echo "Disabling device-mapper support by default"
4360
Theodore Ts'oe1052142006-10-21 21:46:47 -04004361fi
4362
Karel Zak4db2f592006-03-08 14:17:28 -05004363
4364
4365
4366
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004367
Theodore Ts'o32493942007-12-31 10:45:01 -05004368# Check whether --enable-tls was given.
4369if test "${enable_tls+set}" = set; then
4370 enableval=$enable_tls; if test "$enableval" = "no"
4371then
4372 try_tls=""
4373 echo "Disabling thread local support"
4374else
4375 try_tls="yes"
4376 echo "Enabling thread local support"
4377fi
4378
4379else
4380 try_tls="yes"
4381echo "Try using thread local support by default"
4382
4383fi
4384
4385if test "$try_tls" = "yes"
4386then
4387
4388 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4389echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4390 if test "${ac_cv_tls+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393
4394 ax_tls_keywords="__thread __declspec(thread) none"
4395 for ax_tls_keyword in $ax_tls_keywords; do
4396 case $ax_tls_keyword in
4397 none) ac_cv_tls=none ; break ;;
4398 *)
4399 cat >conftest.$ac_ext <<_ACEOF
4400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
4405#include <stdlib.h>
4406 static void
4407 foo(void) {
4408 static $ax_tls_keyword int bar;
4409 exit(1);
4410 }
4411int
4412main ()
4413{
4414
4415 ;
4416 return 0;
4417}
4418_ACEOF
4419rm -f conftest.$ac_objext
4420if { (ac_try="$ac_compile"
4421case "(($ac_try" in
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4424esac
4425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4427 ac_status=$?
4428 grep -v '^ *+' conftest.er1 >conftest.err
4429 rm -f conftest.er1
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } && {
4433 test -z "$ac_c_werror_flag" ||
4434 test ! -s conftest.err
4435 } && test -s conftest.$ac_objext; then
4436 ac_cv_tls=$ax_tls_keyword ; break
4437else
4438 echo "$as_me: failed program was:" >&5
4439sed 's/^/| /' conftest.$ac_ext >&5
4440
4441 ac_cv_tls=none
4442
4443fi
4444
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446 esac
4447 done
4448
4449fi
4450
4451
4452 if test "$ac_cv_tls" != "none"; then
4453
4454cat >>confdefs.h <<_ACEOF
4455#define TLS $ac_cv_tls
4456_ACEOF
4457
4458 fi
4459 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4460echo "${ECHO_T}$ac_cv_tls" >&6; }
4461
4462fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004463# Check whether --enable-uuidd was given.
4464if test "${enable_uuidd+set}" = set; then
4465 enableval=$enable_uuidd; if test "$enableval" = "no"
4466then
4467 echo "Not building uuidd"
4468 UUIDD_CMT="#"
4469else
4470 cat >>confdefs.h <<\_ACEOF
4471#define USE_UUIDD 1
4472_ACEOF
4473
4474 UUIDD_CMT=""
4475 echo "Building uuidd"
4476fi
4477
4478else
4479 cat >>confdefs.h <<\_ACEOF
4480#define USE_UUIDD 1
4481_ACEOF
4482
4483UUIDD_CMT=""
4484echo "Building uuidd by default"
4485
4486fi
4487
4488
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004489MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004491GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004492PACKAGE=e2fsprogs
4493VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004494VERSION=0.14.1
4495cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004496#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004497_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004499cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004500#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004501_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004502
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004503
4504
4505
4506
Theodore Ts'oe1052142006-10-21 21:46:47 -04004507{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4508echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4509set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4510if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004511 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004512else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004513 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004515all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004516 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004517_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004518# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004519case `${MAKE-make} -f conftest.make 2>/dev/null` in
4520 *@@@%%%=?*=@@@%%%*)
4521 eval ac_cv_prog_make_${ac_make}_set=yes;;
4522 *)
4523 eval ac_cv_prog_make_${ac_make}_set=no;;
4524esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004527if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4528 { echo "$as_me:$LINENO: result: yes" >&5
4529echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004530 SET_MAKE=
4531else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004532 { echo "$as_me:$LINENO: result: no" >&5
4533echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004534 SET_MAKE="MAKE=${MAKE-make}"
4535fi
4536
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004537# Find a good install program. We prefer a C program (faster),
4538# so one script is as good as another. But avoid the broken or
4539# incompatible versions:
4540# SysV /etc/install, /usr/sbin/install
4541# SunOS /usr/etc/install
4542# IRIX /sbin/install
4543# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004544# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004545# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4546# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4547# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004548# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004549# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004550{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4551echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004552if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004553if test "${ac_cv_path_install+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
4561 # Account for people who put trailing slashes in PATH elements.
4562case $as_dir/ in
4563 ./ | .// | /cC/* | \
4564 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4565 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4566 /usr/ucb/* ) ;;
4567 *)
4568 # OSF1 and SCO ODT 3.0 have their own names for install.
4569 # Don't use installbsd from OSF since it installs stuff as root
4570 # by default.
4571 for ac_prog in ginstall scoinst install; do
4572 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004573 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 -04004574 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004575 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004576 # AIX install. It has an incompatible calling convention.
4577 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004578 elif test $ac_prog = install &&
4579 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4580 # program-specific install script used by HP pwplus--don't use.
4581 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004582 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4584 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004585 fi
4586 fi
4587 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004588 done
4589 ;;
4590esac
4591done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004592IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004594
4595fi
4596 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004597 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004598 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004599 # As a last resort, use the slow shell script. Don't cache a
4600 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004601 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004602 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004603 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004604 fi
4605fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004606{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4607echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004608
4609# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4610# It thinks the first close brace ends the variable substitution.
4611test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004613test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004614
4615test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4616
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004618 MKINSTALLDIRS=
4619 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004620 case "$ac_aux_dir" in
4621 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4622 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4623 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004624 fi
4625 if test -z "$MKINSTALLDIRS"; then
4626 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4627 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004629
4630
Theodore Ts'oe1052142006-10-21 21:46:47 -04004631 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4632echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4633 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004634if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004635 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004636else
4637 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004638fi
4639
4640 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4641echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004642
4643
4644
4645
4646
4647
4648# Prepare PATH_SEPARATOR.
4649# The user is always right.
4650if test "${PATH_SEPARATOR+set}" != set; then
4651 echo "#! /bin/sh" >conf$$.sh
4652 echo "exit 0" >>conf$$.sh
4653 chmod +x conf$$.sh
4654 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4655 PATH_SEPARATOR=';'
4656 else
4657 PATH_SEPARATOR=:
4658 fi
4659 rm -f conf$$.sh
4660fi
4661
4662# Find out how to test for executable files. Don't use a zero-byte file,
4663# as systems may use methods other than mode bits to determine executability.
4664cat >conf$$.file <<_ASEOF
4665#! /bin/sh
4666exit 0
4667_ASEOF
4668chmod +x conf$$.file
4669if test -x conf$$.file >/dev/null 2>&1; then
4670 ac_executable_p="test -x"
4671else
4672 ac_executable_p="test -f"
4673fi
4674rm -f conf$$.file
4675
4676# Extract the first word of "msgfmt", so it can be a program name with args.
4677set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004678{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4679echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004680if test "${ac_cv_path_MSGFMT+set}" = set; then
4681 echo $ECHO_N "(cached) $ECHO_C" >&6
4682else
4683 case "$MSGFMT" in
4684 [\\/]* | ?:[\\/]*)
4685 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4686 ;;
4687 *)
4688 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4689 for ac_dir in $PATH; do
4690 IFS="$ac_save_IFS"
4691 test -z "$ac_dir" && ac_dir=.
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4694 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4695 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4696 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4697 break 2
4698 fi
4699 fi
4700 done
4701 done
4702 IFS="$ac_save_IFS"
4703 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4704 ;;
4705esac
4706fi
4707MSGFMT="$ac_cv_path_MSGFMT"
4708if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4710echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004711else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004712 { echo "$as_me:$LINENO: result: no" >&5
4713echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004714fi
4715
4716 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4717set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004718{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4719echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004720if test "${ac_cv_path_GMSGFMT+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4722else
4723 case $GMSGFMT in
4724 [\\/]* | ?:[\\/]*)
4725 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4726 ;;
4727 *)
4728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4729for as_dir in $PATH
4730do
4731 IFS=$as_save_IFS
4732 test -z "$as_dir" && as_dir=.
4733 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004734 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 -05004735 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4737 break 2
4738 fi
4739done
4740done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004742
4743 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4744 ;;
4745esac
4746fi
4747GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004748if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004749 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4750echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004751else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004752 { echo "$as_me:$LINENO: result: no" >&5
4753echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004754fi
4755
4756
4757
Theodore Ts'oe1052142006-10-21 21:46:47 -04004758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004759# Prepare PATH_SEPARATOR.
4760# The user is always right.
4761if test "${PATH_SEPARATOR+set}" != set; then
4762 echo "#! /bin/sh" >conf$$.sh
4763 echo "exit 0" >>conf$$.sh
4764 chmod +x conf$$.sh
4765 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4766 PATH_SEPARATOR=';'
4767 else
4768 PATH_SEPARATOR=:
4769 fi
4770 rm -f conf$$.sh
4771fi
4772
4773# Find out how to test for executable files. Don't use a zero-byte file,
4774# as systems may use methods other than mode bits to determine executability.
4775cat >conf$$.file <<_ASEOF
4776#! /bin/sh
4777exit 0
4778_ASEOF
4779chmod +x conf$$.file
4780if test -x conf$$.file >/dev/null 2>&1; then
4781 ac_executable_p="test -x"
4782else
4783 ac_executable_p="test -f"
4784fi
4785rm -f conf$$.file
4786
4787# Extract the first word of "xgettext", so it can be a program name with args.
4788set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004789{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4790echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004791if test "${ac_cv_path_XGETTEXT+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793else
4794 case "$XGETTEXT" in
4795 [\\/]* | ?:[\\/]*)
4796 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4797 ;;
4798 *)
4799 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4800 for ac_dir in $PATH; do
4801 IFS="$ac_save_IFS"
4802 test -z "$ac_dir" && ac_dir=.
4803 for ac_exec_ext in '' $ac_executable_extensions; do
4804 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4805 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4806 (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
4807 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4808 break 2
4809 fi
4810 fi
4811 done
4812 done
4813 IFS="$ac_save_IFS"
4814 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4815 ;;
4816esac
4817fi
4818XGETTEXT="$ac_cv_path_XGETTEXT"
4819if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004820 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4821echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004822else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004823 { echo "$as_me:$LINENO: result: no" >&5
4824echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004825fi
4826
4827 rm -f messages.po
4828
4829
4830# Prepare PATH_SEPARATOR.
4831# The user is always right.
4832if test "${PATH_SEPARATOR+set}" != set; then
4833 echo "#! /bin/sh" >conf$$.sh
4834 echo "exit 0" >>conf$$.sh
4835 chmod +x conf$$.sh
4836 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4837 PATH_SEPARATOR=';'
4838 else
4839 PATH_SEPARATOR=:
4840 fi
4841 rm -f conf$$.sh
4842fi
4843
4844# Find out how to test for executable files. Don't use a zero-byte file,
4845# as systems may use methods other than mode bits to determine executability.
4846cat >conf$$.file <<_ASEOF
4847#! /bin/sh
4848exit 0
4849_ASEOF
4850chmod +x conf$$.file
4851if test -x conf$$.file >/dev/null 2>&1; then
4852 ac_executable_p="test -x"
4853else
4854 ac_executable_p="test -f"
4855fi
4856rm -f conf$$.file
4857
4858# Extract the first word of "msgmerge", so it can be a program name with args.
4859set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004860{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004862if test "${ac_cv_path_MSGMERGE+set}" = set; then
4863 echo $ECHO_N "(cached) $ECHO_C" >&6
4864else
4865 case "$MSGMERGE" in
4866 [\\/]* | ?:[\\/]*)
4867 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4868 ;;
4869 *)
4870 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4871 for ac_dir in $PATH; do
4872 IFS="$ac_save_IFS"
4873 test -z "$ac_dir" && ac_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4876 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4877 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4878 break 2
4879 fi
4880 fi
4881 done
4882 done
4883 IFS="$ac_save_IFS"
4884 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4885 ;;
4886esac
4887fi
4888MSGMERGE="$ac_cv_path_MSGMERGE"
4889if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004890 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4891echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004892else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004895fi
4896
4897
4898 if test "$GMSGFMT" != ":"; then
4899 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4900 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4901 : ;
4902 else
4903 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004904 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4905echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004906 GMSGFMT=":"
4907 fi
4908 fi
4909
4910 if test "$XGETTEXT" != ":"; then
4911 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4912 (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
4913 : ;
4914 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004915 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4916echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004917 XGETTEXT=":"
4918 fi
4919 rm -f messages.po
4920 fi
4921
Theodore Ts'oe1052142006-10-21 21:46:47 -04004922 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004923
4924
4925if test -n "$ac_tool_prefix"; then
4926 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4927set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004928{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4929echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004930if test "${ac_cv_prog_RANLIB+set}" = set; then
4931 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004932else
4933 if test -n "$RANLIB"; then
4934 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004942 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 -05004943 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4946 fi
4947done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004948done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004950
4951fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004952fi
4953RANLIB=$ac_cv_prog_RANLIB
4954if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4956echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004958 { echo "$as_me:$LINENO: result: no" >&5
4959echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004960fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004961
Theodore Ts'oe1052142006-10-21 21:46:47 -04004962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004963fi
4964if test -z "$ac_cv_prog_RANLIB"; then
4965 ac_ct_RANLIB=$RANLIB
4966 # Extract the first word of "ranlib", so it can be a program name with args.
4967set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004968{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004970if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4971 echo $ECHO_N "(cached) $ECHO_C" >&6
4972else
4973 if test -n "$ac_ct_RANLIB"; then
4974 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4975else
4976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977for as_dir in $PATH
4978do
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004982 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 -05004983 ac_cv_prog_ac_ct_RANLIB="ranlib"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987done
4988done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004989IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004991fi
4992fi
4993ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4994if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004995 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4996echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004997else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004998 { echo "$as_me:$LINENO: result: no" >&5
4999echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005000fi
5001
Theodore Ts'oe1052142006-10-21 21:46:47 -04005002 if test "x$ac_ct_RANLIB" = x; then
5003 RANLIB=":"
5004 else
5005 case $cross_compiling:$ac_tool_warned in
5006yes:)
5007{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5008whose name does not start with the host triplet. If you think this
5009configuration is useful to you, please write to autoconf@gnu.org." >&5
5010echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5011whose name does not start with the host triplet. If you think this
5012configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5013ac_tool_warned=yes ;;
5014esac
5015 RANLIB=$ac_ct_RANLIB
5016 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005017else
5018 RANLIB="$ac_cv_prog_RANLIB"
5019fi
5020
5021
Theodore Ts'oe1052142006-10-21 21:46:47 -04005022 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5023echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005024if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027 ac_check_lib_save_LIBS=$LIBS
5028LIBS="-lcposix $LIBS"
5029cat >conftest.$ac_ext <<_ACEOF
5030/* confdefs.h. */
5031_ACEOF
5032cat confdefs.h >>conftest.$ac_ext
5033cat >>conftest.$ac_ext <<_ACEOF
5034/* end confdefs.h. */
5035
Theodore Ts'oe1052142006-10-21 21:46:47 -04005036/* Override any GCC internal prototype to avoid an error.
5037 Use char because int might match the return type of a GCC
5038 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039#ifdef __cplusplus
5040extern "C"
5041#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042char strerror ();
5043int
5044main ()
5045{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047 ;
5048 return 0;
5049}
5050_ACEOF
5051rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052if { (ac_try="$ac_link"
5053case "(($ac_try" in
5054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055 *) ac_try_echo=$ac_try;;
5056esac
5057eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005059 ac_status=$?
5060 grep -v '^ *+' conftest.er1 >conftest.err
5061 rm -f conftest.er1
5062 cat conftest.err >&5
5063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005064 (exit $ac_status); } && {
5065 test -z "$ac_c_werror_flag" ||
5066 test ! -s conftest.err
5067 } && test -s conftest$ac_exeext &&
5068 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005069 ac_cv_lib_cposix_strerror=yes
5070else
5071 echo "$as_me: failed program was:" >&5
5072sed 's/^/| /' conftest.$ac_ext >&5
5073
Theodore Ts'oe1052142006-10-21 21:46:47 -04005074 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005076
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005077rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005078 conftest$ac_exeext conftest.$ac_ext
5079LIBS=$ac_check_lib_save_LIBS
5080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005081{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5082echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005083if test $ac_cv_lib_cposix_strerror = yes; then
5084 LIBS="$LIBS -lcposix"
5085fi
5086
5087
5088
Theodore Ts'oe1052142006-10-21 21:46:47 -04005089{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5090echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005091if test "${ac_cv_c_const+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093else
5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
5099/* end confdefs.h. */
5100
5101int
5102main ()
5103{
5104/* FIXME: Include the comments suggested by Paul. */
5105#ifndef __cplusplus
5106 /* Ultrix mips cc rejects this. */
5107 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005108 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005109 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005110 char const *const *pcpcc;
5111 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005112 /* NEC SVR4.0.2 mips cc rejects this. */
5113 struct point {int x, y;};
5114 static struct point const zero = {0,0};
5115 /* AIX XL C 1.02.0.0 rejects this.
5116 It does not let you subtract one const X* pointer from another in
5117 an arm of an if-expression whose if-part is not a constant
5118 expression */
5119 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005120 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005121 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005122 ++pcpcc;
5123 ppc = (char**) pcpcc;
5124 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005125 { /* SCO 3.2v4 cc rejects this. */
5126 char *t;
5127 char const *s = 0 ? (char *) 0 : (char const *) 0;
5128
5129 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005130 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005131 }
5132 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5133 int x[] = {25, 17};
5134 const int *foo = &x[0];
5135 ++foo;
5136 }
5137 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5138 typedef const int *iptr;
5139 iptr p = 0;
5140 ++p;
5141 }
5142 { /* AIX XL C 1.02.0.0 rejects this saying
5143 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5144 struct s { int j; const int *ap[3]; };
5145 struct s *b; b->j = 5;
5146 }
5147 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5148 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005149 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005150 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005151 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005152#endif
5153
5154 ;
5155 return 0;
5156}
5157_ACEOF
5158rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005159if { (ac_try="$ac_compile"
5160case "(($ac_try" in
5161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5162 *) ac_try_echo=$ac_try;;
5163esac
5164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5165 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005166 ac_status=$?
5167 grep -v '^ *+' conftest.er1 >conftest.err
5168 rm -f conftest.er1
5169 cat conftest.err >&5
5170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005171 (exit $ac_status); } && {
5172 test -z "$ac_c_werror_flag" ||
5173 test ! -s conftest.err
5174 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005175 ac_cv_c_const=yes
5176else
5177 echo "$as_me: failed program was:" >&5
5178sed 's/^/| /' conftest.$ac_ext >&5
5179
Theodore Ts'oe1052142006-10-21 21:46:47 -04005180 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005182
5183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005185{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5186echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005187if test $ac_cv_c_const = no; then
5188
5189cat >>confdefs.h <<\_ACEOF
5190#define const
5191_ACEOF
5192
5193fi
5194
5195
Theodore Ts'oe1052142006-10-21 21:46:47 -04005196 { echo "$as_me:$LINENO: checking for signed" >&5
5197echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005198if test "${bh_cv_c_signed+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200else
5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h. */
5207
5208int
5209main ()
5210{
5211signed char x;
5212 ;
5213 return 0;
5214}
5215_ACEOF
5216rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005217if { (ac_try="$ac_compile"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5223 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224 ac_status=$?
5225 grep -v '^ *+' conftest.er1 >conftest.err
5226 rm -f conftest.er1
5227 cat conftest.err >&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005229 (exit $ac_status); } && {
5230 test -z "$ac_c_werror_flag" ||
5231 test ! -s conftest.err
5232 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005233 bh_cv_c_signed=yes
5234else
5235 echo "$as_me: failed program was:" >&5
5236sed 's/^/| /' conftest.$ac_ext >&5
5237
Theodore Ts'oe1052142006-10-21 21:46:47 -04005238 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240
5241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005242fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005243{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5244echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005245 if test $bh_cv_c_signed = no; then
5246
5247cat >>confdefs.h <<\_ACEOF
5248#define signed
5249_ACEOF
5250
5251 fi
5252
Theodore Ts'oe1052142006-10-21 21:46:47 -04005253{ echo "$as_me:$LINENO: checking for inline" >&5
5254echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005255if test "${ac_cv_c_inline+set}" = set; then
5256 echo $ECHO_N "(cached) $ECHO_C" >&6
5257else
5258 ac_cv_c_inline=no
5259for ac_kw in inline __inline__ __inline; do
5260 cat >conftest.$ac_ext <<_ACEOF
5261/* confdefs.h. */
5262_ACEOF
5263cat confdefs.h >>conftest.$ac_ext
5264cat >>conftest.$ac_ext <<_ACEOF
5265/* end confdefs.h. */
5266#ifndef __cplusplus
5267typedef int foo_t;
5268static $ac_kw foo_t static_foo () {return 0; }
5269$ac_kw foo_t foo () {return 0; }
5270#endif
5271
5272_ACEOF
5273rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005274if { (ac_try="$ac_compile"
5275case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278esac
5279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005290 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005291else
5292 echo "$as_me: failed program was:" >&5
5293sed 's/^/| /' conftest.$ac_ext >&5
5294
Theodore Ts'oe1052142006-10-21 21:46:47 -04005295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005297
5298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5299 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005300done
5301
5302fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005303{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5304echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005305
5306
5307case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005308 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005309 *)
5310 case $ac_cv_c_inline in
5311 no) ac_val=;;
5312 *) ac_val=$ac_cv_c_inline;;
5313 esac
5314 cat >>confdefs.h <<_ACEOF
5315#ifndef __cplusplus
5316#define inline $ac_val
5317#endif
5318_ACEOF
5319 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005320esac
5321
Theodore Ts'oe1052142006-10-21 21:46:47 -04005322{ echo "$as_me:$LINENO: checking for off_t" >&5
5323echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005324if test "${ac_cv_type_off_t+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005327 cat >conftest.$ac_ext <<_ACEOF
5328/* confdefs.h. */
5329_ACEOF
5330cat confdefs.h >>conftest.$ac_ext
5331cat >>conftest.$ac_ext <<_ACEOF
5332/* end confdefs.h. */
5333$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005334typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005335int
5336main ()
5337{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005338if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005339 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005340if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005341 return 0;
5342 ;
5343 return 0;
5344}
5345_ACEOF
5346rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347if { (ac_try="$ac_compile"
5348case "(($ac_try" in
5349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5350 *) ac_try_echo=$ac_try;;
5351esac
5352eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5353 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005354 ac_status=$?
5355 grep -v '^ *+' conftest.er1 >conftest.err
5356 rm -f conftest.er1
5357 cat conftest.err >&5
5358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005359 (exit $ac_status); } && {
5360 test -z "$ac_c_werror_flag" ||
5361 test ! -s conftest.err
5362 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005363 ac_cv_type_off_t=yes
5364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005365 echo "$as_me: failed program was:" >&5
5366sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005367
Theodore Ts'oe1052142006-10-21 21:46:47 -04005368 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005370
5371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005373{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5374echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005375if test $ac_cv_type_off_t = yes; then
5376 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005377else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005378
5379cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005381_ACEOF
5382
5383fi
5384
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385{ echo "$as_me:$LINENO: checking for size_t" >&5
5386echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005387if test "${ac_cv_type_size_t+set}" = set; then
5388 echo $ECHO_N "(cached) $ECHO_C" >&6
5389else
5390 cat >conftest.$ac_ext <<_ACEOF
5391/* confdefs.h. */
5392_ACEOF
5393cat confdefs.h >>conftest.$ac_ext
5394cat >>conftest.$ac_ext <<_ACEOF
5395/* end confdefs.h. */
5396$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005397typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005398int
5399main ()
5400{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005402 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005403if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005404 return 0;
5405 ;
5406 return 0;
5407}
5408_ACEOF
5409rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005410if { (ac_try="$ac_compile"
5411case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414esac
5415eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5416 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005417 ac_status=$?
5418 grep -v '^ *+' conftest.er1 >conftest.err
5419 rm -f conftest.er1
5420 cat conftest.err >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005422 (exit $ac_status); } && {
5423 test -z "$ac_c_werror_flag" ||
5424 test ! -s conftest.err
5425 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005426 ac_cv_type_size_t=yes
5427else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005428 echo "$as_me: failed program was:" >&5
5429sed 's/^/| /' conftest.$ac_ext >&5
5430
Theodore Ts'oe1052142006-10-21 21:46:47 -04005431 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005432fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005433
5434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005435fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005436{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5437echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005438if test $ac_cv_type_size_t = yes; then
5439 :
5440else
5441
5442cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005443#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444_ACEOF
5445
5446fi
5447
5448
Theodore Ts'oe1052142006-10-21 21:46:47 -04005449 { echo "$as_me:$LINENO: checking for long long" >&5
5450echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005451if test "${ac_cv_type_long_long+set}" = set; then
5452 echo $ECHO_N "(cached) $ECHO_C" >&6
5453else
5454 cat >conftest.$ac_ext <<_ACEOF
5455/* confdefs.h. */
5456_ACEOF
5457cat confdefs.h >>conftest.$ac_ext
5458cat >>conftest.$ac_ext <<_ACEOF
5459/* end confdefs.h. */
5460long long ll = 1LL; int i = 63;
5461int
5462main ()
5463{
5464long long llmax = (long long) -1;
5465 return ll << i | ll >> i | llmax / ll | llmax % ll;
5466 ;
5467 return 0;
5468}
5469_ACEOF
5470rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471if { (ac_try="$ac_link"
5472case "(($ac_try" in
5473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5475esac
5476eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005478 ac_status=$?
5479 grep -v '^ *+' conftest.er1 >conftest.err
5480 rm -f conftest.er1
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005483 (exit $ac_status); } && {
5484 test -z "$ac_c_werror_flag" ||
5485 test ! -s conftest.err
5486 } && test -s conftest$ac_exeext &&
5487 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005488 ac_cv_type_long_long=yes
5489else
5490 echo "$as_me: failed program was:" >&5
5491sed 's/^/| /' conftest.$ac_ext >&5
5492
Theodore Ts'oe1052142006-10-21 21:46:47 -04005493 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005494fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005496rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005497 conftest$ac_exeext conftest.$ac_ext
5498fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005499{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5500echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005501 if test $ac_cv_type_long_long = yes; then
5502
5503cat >>confdefs.h <<\_ACEOF
5504#define HAVE_LONG_LONG 1
5505_ACEOF
5506
5507 fi
5508
5509
Theodore Ts'oe1052142006-10-21 21:46:47 -04005510 { echo "$as_me:$LINENO: checking for long double" >&5
5511echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005512if test "${gt_cv_c_long_double+set}" = set; then
5513 echo $ECHO_N "(cached) $ECHO_C" >&6
5514else
5515 if test "$GCC" = yes; then
5516 gt_cv_c_long_double=yes
5517 else
5518 cat >conftest.$ac_ext <<_ACEOF
5519/* confdefs.h. */
5520_ACEOF
5521cat confdefs.h >>conftest.$ac_ext
5522cat >>conftest.$ac_ext <<_ACEOF
5523/* end confdefs.h. */
5524
5525 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5526 long double foo = 0.0;
5527 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5528 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5529
5530int
5531main ()
5532{
5533
5534 ;
5535 return 0;
5536}
5537_ACEOF
5538rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539if { (ac_try="$ac_compile"
5540case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543esac
5544eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555 gt_cv_c_long_double=yes
5556else
5557 echo "$as_me: failed program was:" >&5
5558sed 's/^/| /' conftest.$ac_ext >&5
5559
Theodore Ts'oe1052142006-10-21 21:46:47 -04005560 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005562
5563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005564 fi
5565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005566{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5567echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005568 if test $gt_cv_c_long_double = yes; then
5569
5570cat >>confdefs.h <<\_ACEOF
5571#define HAVE_LONG_DOUBLE 1
5572_ACEOF
5573
5574 fi
5575
5576
Theodore Ts'oe1052142006-10-21 21:46:47 -04005577 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5578echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579if test "${gt_cv_c_wchar_t+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581else
5582 cat >conftest.$ac_ext <<_ACEOF
5583/* confdefs.h. */
5584_ACEOF
5585cat confdefs.h >>conftest.$ac_ext
5586cat >>conftest.$ac_ext <<_ACEOF
5587/* end confdefs.h. */
5588#include <stddef.h>
5589 wchar_t foo = (wchar_t)'\0';
5590int
5591main ()
5592{
5593
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005599if { (ac_try="$ac_compile"
5600case "(($ac_try" in
5601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5602 *) ac_try_echo=$ac_try;;
5603esac
5604eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606 ac_status=$?
5607 grep -v '^ *+' conftest.er1 >conftest.err
5608 rm -f conftest.er1
5609 cat conftest.err >&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005615 gt_cv_c_wchar_t=yes
5616else
5617 echo "$as_me: failed program was:" >&5
5618sed 's/^/| /' conftest.$ac_ext >&5
5619
Theodore Ts'oe1052142006-10-21 21:46:47 -04005620 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005621fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005622
5623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005625{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5626echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627 if test $gt_cv_c_wchar_t = yes; then
5628
5629cat >>confdefs.h <<\_ACEOF
5630#define HAVE_WCHAR_T 1
5631_ACEOF
5632
5633 fi
5634
5635
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636 { echo "$as_me:$LINENO: checking for wint_t" >&5
5637echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638if test "${gt_cv_c_wint_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640else
5641 cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */
5647#include <wchar.h>
5648 wint_t foo = (wchar_t)'\0';
5649int
5650main ()
5651{
5652
5653 ;
5654 return 0;
5655}
5656_ACEOF
5657rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005658if { (ac_try="$ac_compile"
5659case "(($ac_try" in
5660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5661 *) ac_try_echo=$ac_try;;
5662esac
5663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5664 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005670 (exit $ac_status); } && {
5671 test -z "$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674 gt_cv_c_wint_t=yes
5675else
5676 echo "$as_me: failed program was:" >&5
5677sed 's/^/| /' conftest.$ac_ext >&5
5678
Theodore Ts'oe1052142006-10-21 21:46:47 -04005679 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005681
5682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5685echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005686 if test $gt_cv_c_wint_t = yes; then
5687
5688cat >>confdefs.h <<\_ACEOF
5689#define HAVE_WINT_T 1
5690_ACEOF
5691
5692 fi
5693
5694
Theodore Ts'oe1052142006-10-21 21:46:47 -04005695 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5696echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706#include <sys/types.h>
5707#include <inttypes.h>
5708int
5709main ()
5710{
5711uintmax_t i = (uintmax_t) -1;
5712 ;
5713 return 0;
5714}
5715_ACEOF
5716rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005717if { (ac_try="$ac_compile"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005724 ac_status=$?
5725 grep -v '^ *+' conftest.er1 >conftest.err
5726 rm -f conftest.er1
5727 cat conftest.err >&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005729 (exit $ac_status); } && {
5730 test -z "$ac_c_werror_flag" ||
5731 test ! -s conftest.err
5732 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005733 jm_ac_cv_header_inttypes_h=yes
5734else
5735 echo "$as_me: failed program was:" >&5
5736sed 's/^/| /' conftest.$ac_ext >&5
5737
Theodore Ts'oe1052142006-10-21 21:46:47 -04005738 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740
5741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005743{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5744echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005745 if test $jm_ac_cv_header_inttypes_h = yes; then
5746
5747cat >>confdefs.h <<_ACEOF
5748#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5749_ACEOF
5750
5751 fi
5752
5753
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5755echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5757 echo $ECHO_N "(cached) $ECHO_C" >&6
5758else
5759 cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765#include <sys/types.h>
5766#include <stdint.h>
5767int
5768main ()
5769{
5770uintmax_t i = (uintmax_t) -1;
5771 ;
5772 return 0;
5773}
5774_ACEOF
5775rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005776if { (ac_try="$ac_compile"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005783 ac_status=$?
5784 grep -v '^ *+' conftest.er1 >conftest.err
5785 rm -f conftest.er1
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005788 (exit $ac_status); } && {
5789 test -z "$ac_c_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005792 jm_ac_cv_header_stdint_h=yes
5793else
5794 echo "$as_me: failed program was:" >&5
5795sed 's/^/| /' conftest.$ac_ext >&5
5796
Theodore Ts'oe1052142006-10-21 21:46:47 -04005797 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005799
5800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5803echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005804 if test $jm_ac_cv_header_stdint_h = yes; then
5805
5806cat >>confdefs.h <<_ACEOF
5807#define HAVE_STDINT_H_WITH_UINTMAX 1
5808_ACEOF
5809
5810 fi
5811
5812
5813
5814
Theodore Ts'oe1052142006-10-21 21:46:47 -04005815 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5816echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005817if test "${gt_cv_c_intmax_t+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819else
5820 cat >conftest.$ac_ext <<_ACEOF
5821/* confdefs.h. */
5822_ACEOF
5823cat confdefs.h >>conftest.$ac_ext
5824cat >>conftest.$ac_ext <<_ACEOF
5825/* end confdefs.h. */
5826
5827#include <stddef.h>
5828#include <stdlib.h>
5829#if HAVE_STDINT_H_WITH_UINTMAX
5830#include <stdint.h>
5831#endif
5832#if HAVE_INTTYPES_H_WITH_UINTMAX
5833#include <inttypes.h>
5834#endif
5835
5836int
5837main ()
5838{
5839intmax_t x = -1;
5840 ;
5841 return 0;
5842}
5843_ACEOF
5844rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005845if { (ac_try="$ac_compile"
5846case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5849esac
5850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005852 ac_status=$?
5853 grep -v '^ *+' conftest.er1 >conftest.err
5854 rm -f conftest.er1
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005857 (exit $ac_status); } && {
5858 test -z "$ac_c_werror_flag" ||
5859 test ! -s conftest.err
5860 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005861 gt_cv_c_intmax_t=yes
5862else
5863 echo "$as_me: failed program was:" >&5
5864sed 's/^/| /' conftest.$ac_ext >&5
5865
Theodore Ts'oe1052142006-10-21 21:46:47 -04005866 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005868
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005870fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005871{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5872echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005873 if test $gt_cv_c_intmax_t = yes; then
5874
5875cat >>confdefs.h <<\_ACEOF
5876#define HAVE_INTMAX_T 1
5877_ACEOF
5878
5879 fi
5880
5881
5882
Theodore Ts'oe1052142006-10-21 21:46:47 -04005883 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5884echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005885if test "${gt_cv_func_printf_posix+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887else
5888
5889 if test "$cross_compiling" = yes; then
5890
5891 cat >conftest.$ac_ext <<_ACEOF
5892/* confdefs.h. */
5893_ACEOF
5894cat confdefs.h >>conftest.$ac_ext
5895cat >>conftest.$ac_ext <<_ACEOF
5896/* end confdefs.h. */
5897
5898#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5899 notposix
5900#endif
5901
5902_ACEOF
5903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "notposix" >/dev/null 2>&1; then
5905 gt_cv_func_printf_posix="guessing no"
5906else
5907 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005908fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005909rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911
5912else
5913 cat >conftest.$ac_ext <<_ACEOF
5914/* confdefs.h. */
5915_ACEOF
5916cat confdefs.h >>conftest.$ac_ext
5917cat >>conftest.$ac_ext <<_ACEOF
5918/* end confdefs.h. */
5919
5920#include <stdio.h>
5921#include <string.h>
5922/* The string "%2$d %1$d", with dollar characters protected from the shell's
5923 dollar expansion (possibly an autoconf bug). */
5924static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5925static char buf[100];
5926int main ()
5927{
5928 sprintf (buf, format, 33, 55);
5929 return (strcmp (buf, "55 33") != 0);
5930}
5931_ACEOF
5932rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005933if { (ac_try="$ac_link"
5934case "(($ac_try" in
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5937esac
5938eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005940 ac_status=$?
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005943 { (case "(($ac_try" in
5944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5945 *) ac_try_echo=$ac_try;;
5946esac
5947eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5948 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005949 ac_status=$?
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; }; then
5952 gt_cv_func_printf_posix=yes
5953else
5954 echo "$as_me: program exited with status $ac_status" >&5
5955echo "$as_me: failed program was:" >&5
5956sed 's/^/| /' conftest.$ac_ext >&5
5957
5958( exit $ac_status )
5959gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005961rm -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 -05005962fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005963
Theodore Ts'oe1052142006-10-21 21:46:47 -04005964
5965
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005967{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5968echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005969 case $gt_cv_func_printf_posix in
5970 *yes)
5971
5972cat >>confdefs.h <<\_ACEOF
5973#define HAVE_POSIX_PRINTF 1
5974_ACEOF
5975
5976 ;;
5977 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005978
5979# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5980# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005981{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5982echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983if test "${ac_cv_working_alloca_h+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005985else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993int
5994main ()
5995{
5996char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998 ;
5999 return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003if { (ac_try="$ac_link"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024
Theodore Ts'oe1052142006-10-21 21:46:47 -04006025 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006027
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 conftest$ac_exeext conftest.$ac_ext
6030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6032echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033if test $ac_cv_working_alloca_h = yes; then
6034
6035cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006036#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038
6039fi
6040
Theodore Ts'oe1052142006-10-21 21:46:47 -04006041{ echo "$as_me:$LINENO: checking for alloca" >&5
6042echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043if test "${ac_cv_func_alloca_works+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006045else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046 cat >conftest.$ac_ext <<_ACEOF
6047/* confdefs.h. */
6048_ACEOF
6049cat confdefs.h >>conftest.$ac_ext
6050cat >>conftest.$ac_ext <<_ACEOF
6051/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006052#ifdef __GNUC__
6053# define alloca __builtin_alloca
6054#else
6055# ifdef _MSC_VER
6056# include <malloc.h>
6057# define alloca _alloca
6058# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006059# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006060# include <alloca.h>
6061# else
6062# ifdef _AIX
6063 #pragma alloca
6064# else
6065# ifndef alloca /* predefined by HP cc +Olibcalls */
6066char *alloca ();
6067# endif
6068# endif
6069# endif
6070# endif
6071#endif
6072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073int
6074main ()
6075{
6076char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078 ;
6079 return 0;
6080}
6081_ACEOF
6082rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006083if { (ac_try="$ac_link"
6084case "(($ac_try" in
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6087esac
6088eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006090 ac_status=$?
6091 grep -v '^ *+' conftest.er1 >conftest.err
6092 rm -f conftest.er1
6093 cat conftest.err >&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006095 (exit $ac_status); } && {
6096 test -z "$ac_c_werror_flag" ||
6097 test ! -s conftest.err
6098 } && test -s conftest$ac_exeext &&
6099 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006100 ac_cv_func_alloca_works=yes
6101else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 echo "$as_me: failed program was:" >&5
6103sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006104
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006107
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006108rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109 conftest$ac_exeext conftest.$ac_ext
6110fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006111{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6112echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006113
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006114if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115
6116cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006117#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006120else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6122# that cause trouble. Some versions do not even contain alloca or
6123# contain a buggy version. If you still want to use their alloca,
6124# use ar to extract alloca.o from them instead of compiling alloca.c.
6125
Theodore Ts'oe1052142006-10-21 21:46:47 -04006126ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127
6128cat >>confdefs.h <<\_ACEOF
6129#define C_ALLOCA 1
6130_ACEOF
6131
6132
Theodore Ts'oe1052142006-10-21 21:46:47 -04006133{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6134echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135if test "${ac_cv_os_cray+set}" = set; then
6136 echo $ECHO_N "(cached) $ECHO_C" >&6
6137else
6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
6143/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006144#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006145webecray
6146#else
6147wenotbecray
6148#endif
6149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006151if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006153 ac_cv_os_cray=yes
6154else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006155 ac_cv_os_cray=no
6156fi
6157rm -f conftest*
6158
6159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006160{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6161echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006162if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163 for ac_func in _getb67 GETB67 getb67; do
6164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006165{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6166echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6167if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006169else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170 cat >conftest.$ac_ext <<_ACEOF
6171/* confdefs.h. */
6172_ACEOF
6173cat confdefs.h >>conftest.$ac_ext
6174cat >>conftest.$ac_ext <<_ACEOF
6175/* end confdefs.h. */
6176/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6178#define $ac_func innocuous_$ac_func
6179
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006180/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006181 which can conflict with char $ac_func (); below.
6182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6183 <limits.h> exists even on freestanding compilers. */
6184
6185#ifdef __STDC__
6186# include <limits.h>
6187#else
6188# include <assert.h>
6189#endif
6190
6191#undef $ac_func
6192
Theodore Ts'oe1052142006-10-21 21:46:47 -04006193/* Override any GCC internal prototype to avoid an error.
6194 Use char because int might match the return type of a GCC
6195 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196#ifdef __cplusplus
6197extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006200/* The GNU C library defines this for functions which it implements
6201 to always fail with ENOSYS. Some functions are actually named
6202 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006203#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006204choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006205#endif
6206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006207int
6208main ()
6209{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006210return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211 ;
6212 return 0;
6213}
6214_ACEOF
6215rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006216if { (ac_try="$ac_link"
6217case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220esac
6221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006235 echo "$as_me: failed program was:" >&5
6236sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006237
Theodore Ts'oe1052142006-10-21 21:46:47 -04006238 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006240
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242 conftest$ac_exeext conftest.$ac_ext
6243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006244ac_res=`eval echo '${'$as_ac_var'}'`
6245 { echo "$as_me:$LINENO: result: $ac_res" >&5
6246echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006247if test `eval echo '${'$as_ac_var'}'` = yes; then
6248
6249cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006250#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006254fi
6255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006256 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006257fi
6258
Theodore Ts'oe1052142006-10-21 21:46:47 -04006259{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6260echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006261if test "${ac_cv_c_stack_direction+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006263else
6264 if test "$cross_compiling" = yes; then
6265 ac_cv_c_stack_direction=0
6266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006273$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006274int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006275find_stack_direction ()
6276{
6277 static char *addr = 0;
6278 auto char dummy;
6279 if (addr == 0)
6280 {
6281 addr = &dummy;
6282 return find_stack_direction ();
6283 }
6284 else
6285 return (&dummy > addr) ? 1 : -1;
6286}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006287
6288int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006289main ()
6290{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006291 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006292}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293_ACEOF
6294rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295if { (ac_try="$ac_link"
6296case "(($ac_try" in
6297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6298 *) ac_try_echo=$ac_try;;
6299esac
6300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6301 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302 ac_status=$?
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006305 { (case "(($ac_try" in
6306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6308esac
6309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311 ac_status=$?
6312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006314 ac_cv_c_stack_direction=1
6315else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316 echo "$as_me: program exited with status $ac_status" >&5
6317echo "$as_me: failed program was:" >&5
6318sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320( exit $ac_status )
6321ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006322fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006323rm -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 -05006324fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006325
6326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006328{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6329echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006332#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333_ACEOF
6334
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006335
6336fi
6337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338
6339
6340for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006341do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6346if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349ac_res=`eval echo '${'$as_ac_Header'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006352else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006354{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356cat >conftest.$ac_ext <<_ACEOF
6357/* confdefs.h. */
6358_ACEOF
6359cat confdefs.h >>conftest.$ac_ext
6360cat >>conftest.$ac_ext <<_ACEOF
6361/* end confdefs.h. */
6362$ac_includes_default
6363#include <$ac_header>
6364_ACEOF
6365rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006366if { (ac_try="$ac_compile"
6367case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370esac
6371eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373 ac_status=$?
6374 grep -v '^ *+' conftest.er1 >conftest.err
6375 rm -f conftest.er1
6376 cat conftest.err >&5
6377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006378 (exit $ac_status); } && {
6379 test -z "$ac_c_werror_flag" ||
6380 test ! -s conftest.err
6381 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382 ac_header_compiler=yes
6383else
6384 echo "$as_me: failed program was:" >&5
6385sed 's/^/| /' conftest.$ac_ext >&5
6386
Theodore Ts'oe1052142006-10-21 21:46:47 -04006387 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006389
6390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6391{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6392echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393
6394# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006395{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6396echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */
6403#include <$ac_header>
6404_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006405if { (ac_try="$ac_cpp conftest.$ac_ext"
6406case "(($ac_try" in
6407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408 *) ac_try_echo=$ac_try;;
6409esac
6410eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412 ac_status=$?
6413 grep -v '^ *+' conftest.er1 >conftest.err
6414 rm -f conftest.er1
6415 cat conftest.err >&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006417 (exit $ac_status); } >/dev/null && {
6418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6419 test ! -s conftest.err
6420 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421 ac_header_preproc=yes
6422else
6423 echo "$as_me: failed program was:" >&5
6424sed 's/^/| /' conftest.$ac_ext >&5
6425
6426 ac_header_preproc=no
6427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6431echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006432
6433# So? What about this header?
6434case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6435 yes:no: )
6436 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6437echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6439echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6440 ac_header_preproc=yes
6441 ;;
6442 no:yes:* )
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6444echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6445 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6446echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6448echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6450echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6452echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6454echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006455
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006456 ;;
6457esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006458{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6459echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6460if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 eval "$as_ac_Header=\$ac_header_preproc"
6464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006465ac_res=`eval echo '${'$as_ac_Header'}'`
6466 { echo "$as_me:$LINENO: result: $ac_res" >&5
6467echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006468
6469fi
6470if test `eval echo '${'$as_ac_Header'}'` = yes; then
6471 cat >>confdefs.h <<_ACEOF
6472#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6473_ACEOF
6474
6475fi
6476
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006477done
6478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006480for ac_func in getpagesize
6481do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006483{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6485if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488 cat >conftest.$ac_ext <<_ACEOF
6489/* confdefs.h. */
6490_ACEOF
6491cat confdefs.h >>conftest.$ac_ext
6492cat >>conftest.$ac_ext <<_ACEOF
6493/* end confdefs.h. */
6494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6496#define $ac_func innocuous_$ac_func
6497
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006498/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499 which can conflict with char $ac_func (); below.
6500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6501 <limits.h> exists even on freestanding compilers. */
6502
6503#ifdef __STDC__
6504# include <limits.h>
6505#else
6506# include <assert.h>
6507#endif
6508
6509#undef $ac_func
6510
Theodore Ts'oe1052142006-10-21 21:46:47 -04006511/* Override any GCC internal prototype to avoid an error.
6512 Use char because int might match the return type of a GCC
6513 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514#ifdef __cplusplus
6515extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006518/* The GNU C library defines this for functions which it implements
6519 to always fail with ENOSYS. Some functions are actually named
6520 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006521#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006522choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006523#endif
6524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525int
6526main ()
6527{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006528return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529 ;
6530 return 0;
6531}
6532_ACEOF
6533rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006534if { (ac_try="$ac_link"
6535case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538esac
6539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541 ac_status=$?
6542 grep -v '^ *+' conftest.er1 >conftest.err
6543 rm -f conftest.er1
6544 cat conftest.err >&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006546 (exit $ac_status); } && {
6547 test -z "$ac_c_werror_flag" ||
6548 test ! -s conftest.err
6549 } && test -s conftest$ac_exeext &&
6550 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006553 echo "$as_me: failed program was:" >&5
6554sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006555
Theodore Ts'oe1052142006-10-21 21:46:47 -04006556 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006558
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560 conftest$ac_exeext conftest.$ac_ext
6561fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006562ac_res=`eval echo '${'$as_ac_var'}'`
6563 { echo "$as_me:$LINENO: result: $ac_res" >&5
6564echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565if test `eval echo '${'$as_ac_var'}'` = yes; then
6566 cat >>confdefs.h <<_ACEOF
6567#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6568_ACEOF
6569
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006570fi
6571done
6572
Theodore Ts'oe1052142006-10-21 21:46:47 -04006573{ echo "$as_me:$LINENO: checking for working mmap" >&5
6574echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006577else
6578 if test "$cross_compiling" = yes; then
6579 ac_cv_func_mmap_fixed_mapped=no
6580else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006581 cat >conftest.$ac_ext <<_ACEOF
6582/* confdefs.h. */
6583_ACEOF
6584cat confdefs.h >>conftest.$ac_ext
6585cat >>conftest.$ac_ext <<_ACEOF
6586/* end confdefs.h. */
6587$ac_includes_default
6588/* malloc might have been renamed as rpl_malloc. */
6589#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006590
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006591/* Thanks to Mike Haertel and Jim Avera for this test.
6592 Here is a matrix of mmap possibilities:
6593 mmap private not fixed
6594 mmap private fixed at somewhere currently unmapped
6595 mmap private fixed at somewhere already mapped
6596 mmap shared not fixed
6597 mmap shared fixed at somewhere currently unmapped
6598 mmap shared fixed at somewhere already mapped
6599 For private mappings, we should verify that changes cannot be read()
6600 back from the file, nor mmap's back from the file at a different
6601 address. (There have been systems where private was not correctly
6602 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604 like early versions of FreeBSD and possibly contemporary NetBSD.)
6605 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607
6608 Grep wants private fixed already mapped.
6609 The main things grep needs to know about mmap are:
6610 * does it exist and is it safe to write into the mmap'd area
6611 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006613#include <fcntl.h>
6614#include <sys/mman.h>
6615
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006616#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617char *malloc ();
6618#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006621#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006622/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006623# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006624# define HAVE_SYS_PARAM_H 1
6625# endif
6626
6627# ifdef _SC_PAGESIZE
6628# define getpagesize() sysconf(_SC_PAGESIZE)
6629# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006630# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006631# include <sys/param.h>
6632# ifdef EXEC_PAGESIZE
6633# define getpagesize() EXEC_PAGESIZE
6634# else /* no EXEC_PAGESIZE */
6635# ifdef NBPG
6636# define getpagesize() NBPG * CLSIZE
6637# ifndef CLSIZE
6638# define CLSIZE 1
6639# endif /* no CLSIZE */
6640# else /* no NBPG */
6641# ifdef NBPC
6642# define getpagesize() NBPC
6643# else /* no NBPC */
6644# ifdef PAGESIZE
6645# define getpagesize() PAGESIZE
6646# endif /* PAGESIZE */
6647# endif /* no NBPC */
6648# endif /* no NBPG */
6649# endif /* no EXEC_PAGESIZE */
6650# else /* no HAVE_SYS_PARAM_H */
6651# define getpagesize() 8192 /* punt totally */
6652# endif /* no HAVE_SYS_PARAM_H */
6653# endif /* no _SC_PAGESIZE */
6654
6655#endif /* no HAVE_GETPAGESIZE */
6656
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006657int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006659{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006660 char *data, *data2, *data3;
6661 int i, pagesize;
6662 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 /* First, make a file with some known garbage in it. */
6667 data = (char *) malloc (pagesize);
6668 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006669 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670 for (i = 0; i < pagesize; ++i)
6671 *(data + i) = rand ();
6672 umask (0);
6673 fd = creat ("conftest.mmap", 0600);
6674 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006675 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006676 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006677 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006678 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 /* Next, try to mmap the file at a fixed address which already has
6681 something else allocated at it. If we can, also make sure that
6682 we see the same garbage. */
6683 fd = open ("conftest.mmap", O_RDWR);
6684 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006685 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686 data2 = (char *) malloc (2 * pagesize);
6687 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006688 return 1;
6689 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6691 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006692 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693 for (i = 0; i < pagesize; ++i)
6694 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006696
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 /* Finally, make sure that changes to the mapped area do not
6698 percolate back to the file as seen by read(). (This is a bug on
6699 some variants of i386 svr4.0.) */
6700 for (i = 0; i < pagesize; ++i)
6701 *(data2 + i) = *(data2 + i) + 1;
6702 data3 = (char *) malloc (pagesize);
6703 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006704 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006706 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707 for (i = 0; i < pagesize; ++i)
6708 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006709 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006711 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006712}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713_ACEOF
6714rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006715if { (ac_try="$ac_link"
6716case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719esac
6720eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722 ac_status=$?
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006725 { (case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728esac
6729eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731 ac_status=$?
6732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006734 ac_cv_func_mmap_fixed_mapped=yes
6735else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736 echo "$as_me: program exited with status $ac_status" >&5
6737echo "$as_me: failed program was:" >&5
6738sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740( exit $ac_status )
6741ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006743rm -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 -05006744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006745
6746
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006748{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6749echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006750if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751
6752cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006753#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006755
6756fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006758
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006759
Theodore Ts'oe1052142006-10-21 21:46:47 -04006760 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6761echo $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 -05006762if test "${ac_cv_gnu_library_2_1+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006764else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765 cat >conftest.$ac_ext <<_ACEOF
6766/* confdefs.h. */
6767_ACEOF
6768cat confdefs.h >>conftest.$ac_ext
6769cat >>conftest.$ac_ext <<_ACEOF
6770/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006771
6772#include <features.h>
6773#ifdef __GNU_LIBRARY__
6774 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6775 Lucky GNU user
6776 #endif
6777#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006778
6779_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006780if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006782 ac_cv_gnu_library_2_1=yes
6783else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006784 ac_cv_gnu_library_2_1=no
6785fi
6786rm -f conftest*
6787
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788
6789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006791{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6792echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006795
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797
6798
Theodore Ts'oe1052142006-10-21 21:46:47 -04006799 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6800echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6802 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006805 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006807 # Guess based on the CPU.
6808 case "$host_cpu" in
6809 alpha* | i3456786 | m68k | s390*)
6810 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6811 *)
6812 gt_cv_int_divbyzero_sigfpe="guessing no";;
6813 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006815else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 cat >conftest.$ac_ext <<_ACEOF
6817/* confdefs.h. */
6818_ACEOF
6819cat confdefs.h >>conftest.$ac_ext
6820cat >>conftest.$ac_ext <<_ACEOF
6821/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006822
6823#include <stdlib.h>
6824#include <signal.h>
6825
6826static void
6827#ifdef __cplusplus
6828sigfpe_handler (int sig)
6829#else
6830sigfpe_handler (sig) int sig;
6831#endif
6832{
6833 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6834 exit (sig != SIGFPE);
6835}
6836
6837int x = 1;
6838int y = 0;
6839int z;
6840int nan;
6841
6842int main ()
6843{
6844 signal (SIGFPE, sigfpe_handler);
6845/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6846#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6847 signal (SIGTRAP, sigfpe_handler);
6848#endif
6849/* Linux/SPARC yields signal SIGILL. */
6850#if defined (__sparc__) && defined (__linux__)
6851 signal (SIGILL, sigfpe_handler);
6852#endif
6853
6854 z = x / y;
6855 nan = y / y;
6856 exit (1);
6857}
6858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859_ACEOF
6860rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868 ac_status=$?
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006871 { (case "(($ac_try" in
6872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6874esac
6875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877 ac_status=$?
6878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6879 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006880 gt_cv_int_divbyzero_sigfpe=yes
6881else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882 echo "$as_me: program exited with status $ac_status" >&5
6883echo "$as_me: failed program was:" >&5
6884sed 's/^/| /' conftest.$ac_ext >&5
6885
6886( exit $ac_status )
6887gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889rm -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 -04006890fi
6891
Theodore Ts'oe1052142006-10-21 21:46:47 -04006892
6893
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006895{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6896echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006897 case "$gt_cv_int_divbyzero_sigfpe" in
6898 *yes) value=1;;
6899 *) value=0;;
6900 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901
6902cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006903#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006905
6906
6907
Theodore Ts'oe1052142006-10-21 21:46:47 -04006908 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6909echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6912else
6913 cat >conftest.$ac_ext <<_ACEOF
6914/* confdefs.h. */
6915_ACEOF
6916cat confdefs.h >>conftest.$ac_ext
6917cat >>conftest.$ac_ext <<_ACEOF
6918/* end confdefs.h. */
6919unsigned long long ull = 1ULL; int i = 63;
6920int
6921main ()
6922{
6923unsigned long long ullmax = (unsigned long long) -1;
6924 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006930if { (ac_try="$ac_link"
6931case "(($ac_try" in
6932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6933 *) ac_try_echo=$ac_try;;
6934esac
6935eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937 ac_status=$?
6938 grep -v '^ *+' conftest.er1 >conftest.err
6939 rm -f conftest.er1
6940 cat conftest.err >&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest$ac_exeext &&
6946 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006947 ac_cv_type_unsigned_long_long=yes
6948else
6949 echo "$as_me: failed program was:" >&5
6950sed 's/^/| /' conftest.$ac_ext >&5
6951
Theodore Ts'oe1052142006-10-21 21:46:47 -04006952 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006954
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006955rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 conftest$ac_exeext conftest.$ac_ext
6957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006958{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6959echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960 if test $ac_cv_type_unsigned_long_long = yes; then
6961
6962cat >>confdefs.h <<\_ACEOF
6963#define HAVE_UNSIGNED_LONG_LONG 1
6964_ACEOF
6965
6966 fi
6967
6968
6969
6970
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006971 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 -05006972
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006973 test $ac_cv_type_unsigned_long_long = yes \
6974 && ac_type='unsigned long long' \
6975 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976
6977cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006978#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979_ACEOF
6980
6981 else
6982
6983cat >>confdefs.h <<\_ACEOF
6984#define HAVE_UINTMAX_T 1
6985_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006986
6987 fi
6988
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006989
Theodore Ts'oe1052142006-10-21 21:46:47 -04006990 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6991echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992if test "${gt_cv_header_inttypes_h+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995
6996 cat >conftest.$ac_ext <<_ACEOF
6997/* confdefs.h. */
6998_ACEOF
6999cat confdefs.h >>conftest.$ac_ext
7000cat >>conftest.$ac_ext <<_ACEOF
7001/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007002#include <sys/types.h>
7003#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004int
7005main ()
7006{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 ;
7009 return 0;
7010}
7011_ACEOF
7012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007013if { (ac_try="$ac_compile"
7014case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017esac
7018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007029 gt_cv_header_inttypes_h=yes
7030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007031 echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007033
Theodore Ts'oe1052142006-10-21 21:46:47 -04007034 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007036
7037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007038
7039fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007040{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7041echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007042 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043
7044cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007045#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007047
7048 fi
7049
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007052 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04007053 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7054echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055if test "${gt_cv_inttypes_pri_broken+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058
7059 cat >conftest.$ac_ext <<_ACEOF
7060/* confdefs.h. */
7061_ACEOF
7062cat confdefs.h >>conftest.$ac_ext
7063cat >>conftest.$ac_ext <<_ACEOF
7064/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007065#include <inttypes.h>
7066#ifdef PRId32
7067char *p = PRId32;
7068#endif
7069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070int
7071main ()
7072{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074 ;
7075 return 0;
7076}
7077_ACEOF
7078rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007079if { (ac_try="$ac_compile"
7080case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083esac
7084eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007095 gt_cv_inttypes_pri_broken=no
7096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007097 echo "$as_me: failed program was:" >&5
7098sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007099
Theodore Ts'oe1052142006-10-21 21:46:47 -04007100 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007102
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104
7105fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007106{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7107echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007108 fi
7109 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007110
7111cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007112#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007113_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007114
7115 fi
7116
7117
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007119for ac_header in stdint.h
7120do
7121as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007122if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7124echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007126 echo $ECHO_N "(cached) $ECHO_C" >&6
7127fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007128ac_res=`eval echo '${'$as_ac_Header'}'`
7129 { echo "$as_me:$LINENO: result: $ac_res" >&5
7130echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007131else
7132 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007133{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135cat >conftest.$ac_ext <<_ACEOF
7136/* confdefs.h. */
7137_ACEOF
7138cat confdefs.h >>conftest.$ac_ext
7139cat >>conftest.$ac_ext <<_ACEOF
7140/* end confdefs.h. */
7141$ac_includes_default
7142#include <$ac_header>
7143_ACEOF
7144rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145if { (ac_try="$ac_compile"
7146case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149esac
7150eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161 ac_header_compiler=yes
7162else
7163 echo "$as_me: failed program was:" >&5
7164sed 's/^/| /' conftest.$ac_ext >&5
7165
Theodore Ts'oe1052142006-10-21 21:46:47 -04007166 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007168
7169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7171echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172
7173# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04007174{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7175echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176cat >conftest.$ac_ext <<_ACEOF
7177/* confdefs.h. */
7178_ACEOF
7179cat confdefs.h >>conftest.$ac_ext
7180cat >>conftest.$ac_ext <<_ACEOF
7181/* end confdefs.h. */
7182#include <$ac_header>
7183_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007184if { (ac_try="$ac_cpp conftest.$ac_ext"
7185case "(($ac_try" in
7186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7187 *) ac_try_echo=$ac_try;;
7188esac
7189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191 ac_status=$?
7192 grep -v '^ *+' conftest.er1 >conftest.err
7193 rm -f conftest.er1
7194 cat conftest.err >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007196 (exit $ac_status); } >/dev/null && {
7197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7198 test ! -s conftest.err
7199 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007200 ac_header_preproc=yes
7201else
7202 echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205 ac_header_preproc=no
7206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007207
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007209{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7210echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211
7212# So? What about this header?
7213case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7214 yes:no: )
7215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7216echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7218echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7219 ac_header_preproc=yes
7220 ;;
7221 no:yes:* )
7222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7223echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7225echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7227echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7229echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7231echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7233echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235 ;;
7236esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007237{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7239if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241else
7242 eval "$as_ac_Header=\$ac_header_preproc"
7243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007244ac_res=`eval echo '${'$as_ac_Header'}'`
7245 { echo "$as_me:$LINENO: result: $ac_res" >&5
7246echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007247
7248fi
7249if test `eval echo '${'$as_ac_Header'}'` = yes; then
7250 cat >>confdefs.h <<_ACEOF
7251#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7252_ACEOF
7253
7254fi
7255
7256done
7257
Theodore Ts'oe1052142006-10-21 21:46:47 -04007258 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7259echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260 result=
7261 cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267
7268#include <limits.h>
7269#if HAVE_STDINT_H
7270#include <stdint.h>
7271#endif
7272#ifdef SIZE_MAX
7273Found it
7274#endif
7275
7276_ACEOF
7277if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7278 $EGREP "Found it" >/dev/null 2>&1; then
7279 result=yes
7280fi
7281rm -f conftest*
7282
7283 if test -z "$result"; then
7284 if test "$cross_compiling" = yes; then
7285 # Depending upon the size, compute the lo and hi bounds.
7286cat >conftest.$ac_ext <<_ACEOF
7287/* confdefs.h. */
7288_ACEOF
7289cat confdefs.h >>conftest.$ac_ext
7290cat >>conftest.$ac_ext <<_ACEOF
7291/* end confdefs.h. */
7292#include <stddef.h>
7293int
7294main ()
7295{
7296static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7297test_array [0] = 0
7298
7299 ;
7300 return 0;
7301}
7302_ACEOF
7303rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007304if { (ac_try="$ac_compile"
7305case "(($ac_try" in
7306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7307 *) ac_try_echo=$ac_try;;
7308esac
7309eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7310 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311 ac_status=$?
7312 grep -v '^ *+' conftest.er1 >conftest.err
7313 rm -f conftest.er1
7314 cat conftest.err >&5
7315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007316 (exit $ac_status); } && {
7317 test -z "$ac_c_werror_flag" ||
7318 test ! -s conftest.err
7319 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320 ac_lo=0 ac_mid=0
7321 while :; do
7322 cat >conftest.$ac_ext <<_ACEOF
7323/* confdefs.h. */
7324_ACEOF
7325cat confdefs.h >>conftest.$ac_ext
7326cat >>conftest.$ac_ext <<_ACEOF
7327/* end confdefs.h. */
7328#include <stddef.h>
7329int
7330main ()
7331{
7332static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7333test_array [0] = 0
7334
7335 ;
7336 return 0;
7337}
7338_ACEOF
7339rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340if { (ac_try="$ac_compile"
7341case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344esac
7345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356 ac_hi=$ac_mid; break
7357else
7358 echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
Theodore Ts'oe1052142006-10-21 21:46:47 -04007361 ac_lo=`expr $ac_mid + 1`
7362 if test $ac_lo -le $ac_mid; then
7363 ac_lo= ac_hi=
7364 break
7365 fi
7366 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007368
7369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370 done
7371else
7372 echo "$as_me: failed program was:" >&5
7373sed 's/^/| /' conftest.$ac_ext >&5
7374
Theodore Ts'oe1052142006-10-21 21:46:47 -04007375 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376/* confdefs.h. */
7377_ACEOF
7378cat confdefs.h >>conftest.$ac_ext
7379cat >>conftest.$ac_ext <<_ACEOF
7380/* end confdefs.h. */
7381#include <stddef.h>
7382int
7383main ()
7384{
7385static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7386test_array [0] = 0
7387
7388 ;
7389 return 0;
7390}
7391_ACEOF
7392rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007393if { (ac_try="$ac_compile"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007409 ac_hi=-1 ac_mid=-1
7410 while :; do
7411 cat >conftest.$ac_ext <<_ACEOF
7412/* confdefs.h. */
7413_ACEOF
7414cat confdefs.h >>conftest.$ac_ext
7415cat >>conftest.$ac_ext <<_ACEOF
7416/* end confdefs.h. */
7417#include <stddef.h>
7418int
7419main ()
7420{
7421static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7422test_array [0] = 0
7423
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007429if { (ac_try="$ac_compile"
7430case "(($ac_try" in
7431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7432 *) ac_try_echo=$ac_try;;
7433esac
7434eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7435 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436 ac_status=$?
7437 grep -v '^ *+' conftest.er1 >conftest.err
7438 rm -f conftest.er1
7439 cat conftest.err >&5
7440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007441 (exit $ac_status); } && {
7442 test -z "$ac_c_werror_flag" ||
7443 test ! -s conftest.err
7444 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445 ac_lo=$ac_mid; break
7446else
7447 echo "$as_me: failed program was:" >&5
7448sed 's/^/| /' conftest.$ac_ext >&5
7449
Theodore Ts'oe1052142006-10-21 21:46:47 -04007450 ac_hi=`expr '(' $ac_mid ')' - 1`
7451 if test $ac_mid -le $ac_hi; then
7452 ac_lo= ac_hi=
7453 break
7454 fi
7455 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007457
7458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459 done
7460else
7461 echo "$as_me: failed program was:" >&5
7462sed 's/^/| /' conftest.$ac_ext >&5
7463
Theodore Ts'oe1052142006-10-21 21:46:47 -04007464 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007465fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007466
7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007469
7470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471# Binary search between lo and hi bounds.
7472while test "x$ac_lo" != "x$ac_hi"; do
7473 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7474 cat >conftest.$ac_ext <<_ACEOF
7475/* confdefs.h. */
7476_ACEOF
7477cat confdefs.h >>conftest.$ac_ext
7478cat >>conftest.$ac_ext <<_ACEOF
7479/* end confdefs.h. */
7480#include <stddef.h>
7481int
7482main ()
7483{
7484static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7485test_array [0] = 0
7486
7487 ;
7488 return 0;
7489}
7490_ACEOF
7491rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007492if { (ac_try="$ac_compile"
7493case "(($ac_try" in
7494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7495 *) ac_try_echo=$ac_try;;
7496esac
7497eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7498 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499 ac_status=$?
7500 grep -v '^ *+' conftest.er1 >conftest.err
7501 rm -f conftest.er1
7502 cat conftest.err >&5
7503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007504 (exit $ac_status); } && {
7505 test -z "$ac_c_werror_flag" ||
7506 test ! -s conftest.err
7507 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508 ac_hi=$ac_mid
7509else
7510 echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
Theodore Ts'oe1052142006-10-21 21:46:47 -04007513 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515
7516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007517done
7518case $ac_lo in
7519?*) res_hi=$ac_lo;;
7520'') result=? ;;
7521esac
7522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 cat >conftest.$ac_ext <<_ACEOF
7524/* confdefs.h. */
7525_ACEOF
7526cat confdefs.h >>conftest.$ac_ext
7527cat >>conftest.$ac_ext <<_ACEOF
7528/* end confdefs.h. */
7529#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007530static long int longval () { return ~(size_t)0 / 10; }
7531static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532#include <stdio.h>
7533#include <stdlib.h>
7534int
7535main ()
7536{
7537
7538 FILE *f = fopen ("conftest.val", "w");
7539 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007540 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541 if ((~(size_t)0 / 10) < 0)
7542 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546 fprintf (f, "%ld\n", i);
7547 }
7548 else
7549 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007550 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007552 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553 fprintf (f, "%lu\n", i);
7554 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007555 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556
7557 ;
7558 return 0;
7559}
7560_ACEOF
7561rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562if { (ac_try="$ac_link"
7563case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566esac
7567eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007569 ac_status=$?
7570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572 { (case "(($ac_try" in
7573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7574 *) ac_try_echo=$ac_try;;
7575esac
7576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7577 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007578 ac_status=$?
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); }; }; then
7581 res_hi=`cat conftest.val`
7582else
7583 echo "$as_me: program exited with status $ac_status" >&5
7584echo "$as_me: failed program was:" >&5
7585sed 's/^/| /' conftest.$ac_ext >&5
7586
7587( exit $ac_status )
7588result=?
7589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007590rm -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 -05007591fi
7592rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594 if test "$cross_compiling" = yes; then
7595 # Depending upon the size, compute the lo and hi bounds.
7596cat >conftest.$ac_ext <<_ACEOF
7597/* confdefs.h. */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
7601/* end confdefs.h. */
7602#include <stddef.h>
7603int
7604main ()
7605{
7606static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7607test_array [0] = 0
7608
7609 ;
7610 return 0;
7611}
7612_ACEOF
7613rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007614if { (ac_try="$ac_compile"
7615case "(($ac_try" in
7616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617 *) ac_try_echo=$ac_try;;
7618esac
7619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7620 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621 ac_status=$?
7622 grep -v '^ *+' conftest.er1 >conftest.err
7623 rm -f conftest.er1
7624 cat conftest.err >&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007626 (exit $ac_status); } && {
7627 test -z "$ac_c_werror_flag" ||
7628 test ! -s conftest.err
7629 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 ac_lo=0 ac_mid=0
7631 while :; do
7632 cat >conftest.$ac_ext <<_ACEOF
7633/* confdefs.h. */
7634_ACEOF
7635cat confdefs.h >>conftest.$ac_ext
7636cat >>conftest.$ac_ext <<_ACEOF
7637/* end confdefs.h. */
7638#include <stddef.h>
7639int
7640main ()
7641{
7642static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7643test_array [0] = 0
7644
7645 ;
7646 return 0;
7647}
7648_ACEOF
7649rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007650if { (ac_try="$ac_compile"
7651case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7654esac
7655eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7656 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 ac_status=$?
7658 grep -v '^ *+' conftest.er1 >conftest.err
7659 rm -f conftest.er1
7660 cat conftest.err >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007662 (exit $ac_status); } && {
7663 test -z "$ac_c_werror_flag" ||
7664 test ! -s conftest.err
7665 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 ac_hi=$ac_mid; break
7667else
7668 echo "$as_me: failed program was:" >&5
7669sed 's/^/| /' conftest.$ac_ext >&5
7670
Theodore Ts'oe1052142006-10-21 21:46:47 -04007671 ac_lo=`expr $ac_mid + 1`
7672 if test $ac_lo -le $ac_mid; then
7673 ac_lo= ac_hi=
7674 break
7675 fi
7676 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007677fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007678
7679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 done
7681else
7682 echo "$as_me: failed program was:" >&5
7683sed 's/^/| /' conftest.$ac_ext >&5
7684
Theodore Ts'oe1052142006-10-21 21:46:47 -04007685 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007686/* confdefs.h. */
7687_ACEOF
7688cat confdefs.h >>conftest.$ac_ext
7689cat >>conftest.$ac_ext <<_ACEOF
7690/* end confdefs.h. */
7691#include <stddef.h>
7692int
7693main ()
7694{
7695static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7696test_array [0] = 0
7697
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007703if { (ac_try="$ac_compile"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
7708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007710 ac_status=$?
7711 grep -v '^ *+' conftest.er1 >conftest.err
7712 rm -f conftest.er1
7713 cat conftest.err >&5
7714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007715 (exit $ac_status); } && {
7716 test -z "$ac_c_werror_flag" ||
7717 test ! -s conftest.err
7718 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719 ac_hi=-1 ac_mid=-1
7720 while :; do
7721 cat >conftest.$ac_ext <<_ACEOF
7722/* confdefs.h. */
7723_ACEOF
7724cat confdefs.h >>conftest.$ac_ext
7725cat >>conftest.$ac_ext <<_ACEOF
7726/* end confdefs.h. */
7727#include <stddef.h>
7728int
7729main ()
7730{
7731static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7732test_array [0] = 0
7733
7734 ;
7735 return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007739if { (ac_try="$ac_compile"
7740case "(($ac_try" in
7741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7743esac
7744eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746 ac_status=$?
7747 grep -v '^ *+' conftest.er1 >conftest.err
7748 rm -f conftest.er1
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007755 ac_lo=$ac_mid; break
7756else
7757 echo "$as_me: failed program was:" >&5
7758sed 's/^/| /' conftest.$ac_ext >&5
7759
Theodore Ts'oe1052142006-10-21 21:46:47 -04007760 ac_hi=`expr '(' $ac_mid ')' - 1`
7761 if test $ac_mid -le $ac_hi; then
7762 ac_lo= ac_hi=
7763 break
7764 fi
7765 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007767
7768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007769 done
7770else
7771 echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
Theodore Ts'oe1052142006-10-21 21:46:47 -04007774 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007775fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007776
7777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007778fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007779
7780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781# Binary search between lo and hi bounds.
7782while test "x$ac_lo" != "x$ac_hi"; do
7783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7784 cat >conftest.$ac_ext <<_ACEOF
7785/* confdefs.h. */
7786_ACEOF
7787cat confdefs.h >>conftest.$ac_ext
7788cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */
7790#include <stddef.h>
7791int
7792main ()
7793{
7794static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7795test_array [0] = 0
7796
7797 ;
7798 return 0;
7799}
7800_ACEOF
7801rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007802if { (ac_try="$ac_compile"
7803case "(($ac_try" in
7804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7805 *) ac_try_echo=$ac_try;;
7806esac
7807eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7808 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007814 (exit $ac_status); } && {
7815 test -z "$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007818 ac_hi=$ac_mid
7819else
7820 echo "$as_me: failed program was:" >&5
7821sed 's/^/| /' conftest.$ac_ext >&5
7822
Theodore Ts'oe1052142006-10-21 21:46:47 -04007823 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007824fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007825
7826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827done
7828case $ac_lo in
7829?*) res_lo=$ac_lo;;
7830'') result=? ;;
7831esac
7832else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007833 cat >conftest.$ac_ext <<_ACEOF
7834/* confdefs.h. */
7835_ACEOF
7836cat confdefs.h >>conftest.$ac_ext
7837cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */
7839#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007840static long int longval () { return ~(size_t)0 % 10; }
7841static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007842#include <stdio.h>
7843#include <stdlib.h>
7844int
7845main ()
7846{
7847
7848 FILE *f = fopen ("conftest.val", "w");
7849 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007850 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007851 if ((~(size_t)0 % 10) < 0)
7852 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007853 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007854 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007855 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856 fprintf (f, "%ld\n", i);
7857 }
7858 else
7859 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007860 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863 fprintf (f, "%lu\n", i);
7864 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866
7867 ;
7868 return 0;
7869}
7870_ACEOF
7871rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007872if { (ac_try="$ac_link"
7873case "(($ac_try" in
7874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7875 *) ac_try_echo=$ac_try;;
7876esac
7877eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7878 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007879 ac_status=$?
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007882 { (case "(($ac_try" in
7883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7884 *) ac_try_echo=$ac_try;;
7885esac
7886eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7887 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007888 ac_status=$?
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); }; }; then
7891 res_lo=`cat conftest.val`
7892else
7893 echo "$as_me: program exited with status $ac_status" >&5
7894echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897( exit $ac_status )
7898result=?
7899fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007900rm -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 -05007901fi
7902rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007903
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904 if test "$cross_compiling" = yes; then
7905 # Depending upon the size, compute the lo and hi bounds.
7906cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912#include <stddef.h>
7913int
7914main ()
7915{
7916static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7917test_array [0] = 0
7918
7919 ;
7920 return 0;
7921}
7922_ACEOF
7923rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007924if { (ac_try="$ac_compile"
7925case "(($ac_try" in
7926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7927 *) ac_try_echo=$ac_try;;
7928esac
7929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7930 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007931 ac_status=$?
7932 grep -v '^ *+' conftest.er1 >conftest.err
7933 rm -f conftest.er1
7934 cat conftest.err >&5
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007936 (exit $ac_status); } && {
7937 test -z "$ac_c_werror_flag" ||
7938 test ! -s conftest.err
7939 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007940 ac_lo=0 ac_mid=0
7941 while :; do
7942 cat >conftest.$ac_ext <<_ACEOF
7943/* confdefs.h. */
7944_ACEOF
7945cat confdefs.h >>conftest.$ac_ext
7946cat >>conftest.$ac_ext <<_ACEOF
7947/* end confdefs.h. */
7948#include <stddef.h>
7949int
7950main ()
7951{
7952static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7953test_array [0] = 0
7954
7955 ;
7956 return 0;
7957}
7958_ACEOF
7959rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007960if { (ac_try="$ac_compile"
7961case "(($ac_try" in
7962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7963 *) ac_try_echo=$ac_try;;
7964esac
7965eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7966 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007967 ac_status=$?
7968 grep -v '^ *+' conftest.er1 >conftest.err
7969 rm -f conftest.er1
7970 cat conftest.err >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007972 (exit $ac_status); } && {
7973 test -z "$ac_c_werror_flag" ||
7974 test ! -s conftest.err
7975 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007976 ac_hi=$ac_mid; break
7977else
7978 echo "$as_me: failed program was:" >&5
7979sed 's/^/| /' conftest.$ac_ext >&5
7980
Theodore Ts'oe1052142006-10-21 21:46:47 -04007981 ac_lo=`expr $ac_mid + 1`
7982 if test $ac_lo -le $ac_mid; then
7983 ac_lo= ac_hi=
7984 break
7985 fi
7986 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988
7989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007990 done
7991else
7992 echo "$as_me: failed program was:" >&5
7993sed 's/^/| /' conftest.$ac_ext >&5
7994
Theodore Ts'oe1052142006-10-21 21:46:47 -04007995 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007996/* confdefs.h. */
7997_ACEOF
7998cat confdefs.h >>conftest.$ac_ext
7999cat >>conftest.$ac_ext <<_ACEOF
8000/* end confdefs.h. */
8001#include <stddef.h>
8002int
8003main ()
8004{
8005static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8006test_array [0] = 0
8007
8008 ;
8009 return 0;
8010}
8011_ACEOF
8012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008013if { (ac_try="$ac_compile"
8014case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017esac
8018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008029 ac_hi=-1 ac_mid=-1
8030 while :; do
8031 cat >conftest.$ac_ext <<_ACEOF
8032/* confdefs.h. */
8033_ACEOF
8034cat confdefs.h >>conftest.$ac_ext
8035cat >>conftest.$ac_ext <<_ACEOF
8036/* end confdefs.h. */
8037#include <stddef.h>
8038int
8039main ()
8040{
8041static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8042test_array [0] = 0
8043
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008049if { (ac_try="$ac_compile"
8050case "(($ac_try" in
8051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052 *) ac_try_echo=$ac_try;;
8053esac
8054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008056 ac_status=$?
8057 grep -v '^ *+' conftest.er1 >conftest.err
8058 rm -f conftest.er1
8059 cat conftest.err >&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008065 ac_lo=$ac_mid; break
8066else
8067 echo "$as_me: failed program was:" >&5
8068sed 's/^/| /' conftest.$ac_ext >&5
8069
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070 ac_hi=`expr '(' $ac_mid ')' - 1`
8071 if test $ac_mid -le $ac_hi; then
8072 ac_lo= ac_hi=
8073 break
8074 fi
8075 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008076fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008077
8078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008079 done
8080else
8081 echo "$as_me: failed program was:" >&5
8082sed 's/^/| /' conftest.$ac_ext >&5
8083
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008086
8087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008088fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008089
8090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091# Binary search between lo and hi bounds.
8092while test "x$ac_lo" != "x$ac_hi"; do
8093 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8094 cat >conftest.$ac_ext <<_ACEOF
8095/* confdefs.h. */
8096_ACEOF
8097cat confdefs.h >>conftest.$ac_ext
8098cat >>conftest.$ac_ext <<_ACEOF
8099/* end confdefs.h. */
8100#include <stddef.h>
8101int
8102main ()
8103{
8104static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8105test_array [0] = 0
8106
8107 ;
8108 return 0;
8109}
8110_ACEOF
8111rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008112if { (ac_try="$ac_compile"
8113case "(($ac_try" in
8114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8115 *) ac_try_echo=$ac_try;;
8116esac
8117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8118 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008128 ac_hi=$ac_mid
8129else
8130 echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
Theodore Ts'oe1052142006-10-21 21:46:47 -04008133 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008134fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137done
8138case $ac_lo in
8139?*) fits_in_uint=$ac_lo;;
8140'') result=? ;;
8141esac
8142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008143 cat >conftest.$ac_ext <<_ACEOF
8144/* confdefs.h. */
8145_ACEOF
8146cat confdefs.h >>conftest.$ac_ext
8147cat >>conftest.$ac_ext <<_ACEOF
8148/* end confdefs.h. */
8149#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008150static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8151static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152#include <stdio.h>
8153#include <stdlib.h>
8154int
8155main ()
8156{
8157
8158 FILE *f = fopen ("conftest.val", "w");
8159 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008160 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008161 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8162 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008163 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008164 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008165 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008166 fprintf (f, "%ld\n", i);
8167 }
8168 else
8169 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008170 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008171 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008172 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008173 fprintf (f, "%lu\n", i);
8174 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008175 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008176
8177 ;
8178 return 0;
8179}
8180_ACEOF
8181rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008182if { (ac_try="$ac_link"
8183case "(($ac_try" in
8184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8186esac
8187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008192 { (case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195esac
8196eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198 ac_status=$?
8199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8200 (exit $ac_status); }; }; then
8201 fits_in_uint=`cat conftest.val`
8202else
8203 echo "$as_me: program exited with status $ac_status" >&5
8204echo "$as_me: failed program was:" >&5
8205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207( exit $ac_status )
8208result=?
8209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008210rm -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 -05008211fi
8212rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008214 if test "$fits_in_uint" = 1; then
8215 cat >conftest.$ac_ext <<_ACEOF
8216/* confdefs.h. */
8217_ACEOF
8218cat confdefs.h >>conftest.$ac_ext
8219cat >>conftest.$ac_ext <<_ACEOF
8220/* end confdefs.h. */
8221#include <stddef.h>
8222 extern size_t foo;
8223 extern unsigned long foo;
8224
8225int
8226main ()
8227{
8228
8229 ;
8230 return 0;
8231}
8232_ACEOF
8233rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008234if { (ac_try="$ac_compile"
8235case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238esac
8239eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008250 fits_in_uint=0
8251else
8252 echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
Theodore Ts'oe1052142006-10-21 21:46:47 -04008255
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257
8258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008259 fi
8260 if test -z "$result"; then
8261 if test "$fits_in_uint" = 1; then
8262 result="$res_hi$res_lo"U
8263 else
8264 result="$res_hi$res_lo"UL
8265 fi
8266 else
8267 result='~(size_t)0'
8268 fi
8269 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008270 { echo "$as_me:$LINENO: result: $result" >&5
8271echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272 if test "$result" != yes; then
8273
8274cat >>confdefs.h <<_ACEOF
8275#define SIZE_MAX $result
8276_ACEOF
8277
8278 fi
8279
8280
8281
8282
8283for ac_header in stdint.h
8284do
8285as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8288echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8289if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008290 echo $ECHO_N "(cached) $ECHO_C" >&6
8291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008292ac_res=`eval echo '${'$as_ac_Header'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008295else
8296 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8298echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299cat >conftest.$ac_ext <<_ACEOF
8300/* confdefs.h. */
8301_ACEOF
8302cat confdefs.h >>conftest.$ac_ext
8303cat >>conftest.$ac_ext <<_ACEOF
8304/* end confdefs.h. */
8305$ac_includes_default
8306#include <$ac_header>
8307_ACEOF
8308rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008309if { (ac_try="$ac_compile"
8310case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8313esac
8314eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008321 (exit $ac_status); } && {
8322 test -z "$ac_c_werror_flag" ||
8323 test ! -s conftest.err
8324 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008325 ac_header_compiler=yes
8326else
8327 echo "$as_me: failed program was:" >&5
8328sed 's/^/| /' conftest.$ac_ext >&5
8329
Theodore Ts'oe1052142006-10-21 21:46:47 -04008330 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008331fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008332
8333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8335echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336
8337# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008338{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8339echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008340cat >conftest.$ac_ext <<_ACEOF
8341/* confdefs.h. */
8342_ACEOF
8343cat confdefs.h >>conftest.$ac_ext
8344cat >>conftest.$ac_ext <<_ACEOF
8345/* end confdefs.h. */
8346#include <$ac_header>
8347_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008348if { (ac_try="$ac_cpp conftest.$ac_ext"
8349case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352esac
8353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008360 (exit $ac_status); } >/dev/null && {
8361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364 ac_header_preproc=yes
8365else
8366 echo "$as_me: failed program was:" >&5
8367sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_header_preproc=no
8370fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008372rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8374echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008375
8376# So? What about this header?
8377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8378 yes:no: )
8379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8380echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8382echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8383 ac_header_preproc=yes
8384 ;;
8385 no:yes:* )
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8387echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8389echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8391echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8393echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8395echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8397echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008399 ;;
8400esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008401{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404 echo $ECHO_N "(cached) $ECHO_C" >&6
8405else
8406 eval "$as_ac_Header=\$ac_header_preproc"
8407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008408ac_res=`eval echo '${'$as_ac_Header'}'`
8409 { echo "$as_me:$LINENO: result: $ac_res" >&5
8410echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008411
8412fi
8413if test `eval echo '${'$as_ac_Header'}'` = yes; then
8414 cat >>confdefs.h <<_ACEOF
8415#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8416_ACEOF
8417
8418fi
8419
8420done
8421
8422
8423
8424 if test "X$prefix" = "XNONE"; then
8425 acl_final_prefix="$ac_default_prefix"
8426 else
8427 acl_final_prefix="$prefix"
8428 fi
8429 if test "X$exec_prefix" = "XNONE"; then
8430 acl_final_exec_prefix='${prefix}'
8431 else
8432 acl_final_exec_prefix="$exec_prefix"
8433 fi
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8437 prefix="$acl_save_prefix"
8438
8439
Theodore Ts'oe1052142006-10-21 21:46:47 -04008440# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008441if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008442 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008443else
8444 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008445fi
8446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008447# Prepare PATH_SEPARATOR.
8448# The user is always right.
8449if test "${PATH_SEPARATOR+set}" != set; then
8450 echo "#! /bin/sh" >conf$$.sh
8451 echo "exit 0" >>conf$$.sh
8452 chmod +x conf$$.sh
8453 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8454 PATH_SEPARATOR=';'
8455 else
8456 PATH_SEPARATOR=:
8457 fi
8458 rm -f conf$$.sh
8459fi
8460ac_prog=ld
8461if test "$GCC" = yes; then
8462 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008463 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8464echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465 case $host in
8466 *-*-mingw*)
8467 # gcc leaves a trailing carriage return which upsets mingw
8468 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8469 *)
8470 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8471 esac
8472 case $ac_prog in
8473 # Accept absolute paths.
8474 [\\/]* | [A-Za-z]:[\\/]*)
8475 re_direlt='/[^/][^/]*/\.\./'
8476 # Canonicalize the path of ld
8477 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8478 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8479 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8480 done
8481 test -z "$LD" && LD="$ac_prog"
8482 ;;
8483 "")
8484 # If it fails, then pretend we aren't using GCC.
8485 ac_prog=ld
8486 ;;
8487 *)
8488 # If it is relative, then search for the first ld in PATH.
8489 with_gnu_ld=unknown
8490 ;;
8491 esac
8492elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008493 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8494echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008495else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008496 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8497echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008498fi
8499if test "${acl_cv_path_LD+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8501else
8502 if test -z "$LD"; then
8503 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8504 for ac_dir in $PATH; do
8505 test -z "$ac_dir" && ac_dir=.
8506 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8507 acl_cv_path_LD="$ac_dir/$ac_prog"
8508 # Check to see if the program is GNU ld. I'd rather use --version,
8509 # but apparently some GNU ld's only accept -v.
8510 # Break only if it was the GNU/non-GNU ld that we prefer.
8511 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8512 *GNU* | *'with BFD'*)
8513 test "$with_gnu_ld" != no && break ;;
8514 *)
8515 test "$with_gnu_ld" != yes && break ;;
8516 esac
8517 fi
8518 done
8519 IFS="$ac_save_ifs"
8520else
8521 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8522fi
8523fi
8524
8525LD="$acl_cv_path_LD"
8526if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 { echo "$as_me:$LINENO: result: $LD" >&5
8528echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008530 { echo "$as_me:$LINENO: result: no" >&5
8531echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008532fi
8533test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8534echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8535 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008536{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8537echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538if test "${acl_cv_prog_gnu_ld+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8542case `$LD -v 2>&1 </dev/null` in
8543*GNU* | *'with BFD'*)
8544 acl_cv_prog_gnu_ld=yes ;;
8545*)
8546 acl_cv_prog_gnu_ld=no ;;
8547esac
8548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8550echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551with_gnu_ld=$acl_cv_prog_gnu_ld
8552
8553
8554
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8556echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008557if test "${acl_cv_rpath+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8559else
8560
8561 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8562 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8563 . ./conftest.sh
8564 rm -f ./conftest.sh
8565 acl_cv_rpath=done
8566
8567fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8569echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008570 wl="$acl_cv_wl"
8571 libext="$acl_cv_libext"
8572 shlibext="$acl_cv_shlibext"
8573 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8574 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8575 hardcode_direct="$acl_cv_hardcode_direct"
8576 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008577 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008578if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008579 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008580else
8581 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008582fi
8583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008584
8585
8586
8587
8588
8589
8590
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008593 acl_save_prefix="$prefix"
8594 prefix="$acl_final_prefix"
8595 acl_save_exec_prefix="$exec_prefix"
8596 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008598 eval additional_includedir=\"$includedir\"
8599 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 exec_prefix="$acl_save_exec_prefix"
8602 prefix="$acl_save_prefix"
8603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008604
Theodore Ts'oe1052142006-10-21 21:46:47 -04008605# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008606if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008607 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008608 if test "X$withval" = "Xno"; then
8609 use_additional=no
8610 else
8611 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008613 acl_save_prefix="$prefix"
8614 prefix="$acl_final_prefix"
8615 acl_save_exec_prefix="$exec_prefix"
8616 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008618 eval additional_includedir=\"$includedir\"
8619 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008621 exec_prefix="$acl_save_exec_prefix"
8622 prefix="$acl_save_prefix"
8623
8624 else
8625 additional_includedir="$withval/include"
8626 additional_libdir="$withval/lib"
8627 fi
8628 fi
8629
Theodore Ts'oe1052142006-10-21 21:46:47 -04008630fi
8631
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008632 LIBICONV=
8633 LTLIBICONV=
8634 INCICONV=
8635 rpathdirs=
8636 ltrpathdirs=
8637 names_already_handled=
8638 names_next_round='iconv '
8639 while test -n "$names_next_round"; do
8640 names_this_round="$names_next_round"
8641 names_next_round=
8642 for name in $names_this_round; do
8643 already_handled=
8644 for n in $names_already_handled; do
8645 if test "$n" = "$name"; then
8646 already_handled=yes
8647 break
8648 fi
8649 done
8650 if test -z "$already_handled"; then
8651 names_already_handled="$names_already_handled $name"
8652 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8653 eval value=\"\$HAVE_LIB$uppername\"
8654 if test -n "$value"; then
8655 if test "$value" = yes; then
8656 eval value=\"\$LIB$uppername\"
8657 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8658 eval value=\"\$LTLIB$uppername\"
8659 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8660 else
8661 :
8662 fi
8663 else
8664 found_dir=
8665 found_la=
8666 found_so=
8667 found_a=
8668 if test $use_additional = yes; then
8669 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8670 found_dir="$additional_libdir"
8671 found_so="$additional_libdir/lib$name.$shlibext"
8672 if test -f "$additional_libdir/lib$name.la"; then
8673 found_la="$additional_libdir/lib$name.la"
8674 fi
8675 else
8676 if test -f "$additional_libdir/lib$name.$libext"; then
8677 found_dir="$additional_libdir"
8678 found_a="$additional_libdir/lib$name.$libext"
8679 if test -f "$additional_libdir/lib$name.la"; then
8680 found_la="$additional_libdir/lib$name.la"
8681 fi
8682 fi
8683 fi
8684 fi
8685 if test "X$found_dir" = "X"; then
8686 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008687
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008688 acl_save_prefix="$prefix"
8689 prefix="$acl_final_prefix"
8690 acl_save_exec_prefix="$exec_prefix"
8691 exec_prefix="$acl_final_exec_prefix"
8692 eval x=\"$x\"
8693 exec_prefix="$acl_save_exec_prefix"
8694 prefix="$acl_save_prefix"
8695
8696 case "$x" in
8697 -L*)
8698 dir=`echo "X$x" | sed -e 's/^X-L//'`
8699 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8700 found_dir="$dir"
8701 found_so="$dir/lib$name.$shlibext"
8702 if test -f "$dir/lib$name.la"; then
8703 found_la="$dir/lib$name.la"
8704 fi
8705 else
8706 if test -f "$dir/lib$name.$libext"; then
8707 found_dir="$dir"
8708 found_a="$dir/lib$name.$libext"
8709 if test -f "$dir/lib$name.la"; then
8710 found_la="$dir/lib$name.la"
8711 fi
8712 fi
8713 fi
8714 ;;
8715 esac
8716 if test "X$found_dir" != "X"; then
8717 break
8718 fi
8719 done
8720 fi
8721 if test "X$found_dir" != "X"; then
8722 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8723 if test "X$found_so" != "X"; then
8724 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8726 else
8727 haveit=
8728 for x in $ltrpathdirs; do
8729 if test "X$x" = "X$found_dir"; then
8730 haveit=yes
8731 break
8732 fi
8733 done
8734 if test -z "$haveit"; then
8735 ltrpathdirs="$ltrpathdirs $found_dir"
8736 fi
8737 if test "$hardcode_direct" = yes; then
8738 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8739 else
8740 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8741 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8742 haveit=
8743 for x in $rpathdirs; do
8744 if test "X$x" = "X$found_dir"; then
8745 haveit=yes
8746 break
8747 fi
8748 done
8749 if test -z "$haveit"; then
8750 rpathdirs="$rpathdirs $found_dir"
8751 fi
8752 else
8753 haveit=
8754 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008756 acl_save_prefix="$prefix"
8757 prefix="$acl_final_prefix"
8758 acl_save_exec_prefix="$exec_prefix"
8759 exec_prefix="$acl_final_exec_prefix"
8760 eval x=\"$x\"
8761 exec_prefix="$acl_save_exec_prefix"
8762 prefix="$acl_save_prefix"
8763
8764 if test "X$x" = "X-L$found_dir"; then
8765 haveit=yes
8766 break
8767 fi
8768 done
8769 if test -z "$haveit"; then
8770 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8771 fi
8772 if test "$hardcode_minus_L" != no; then
8773 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8774 else
8775 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8776 fi
8777 fi
8778 fi
8779 fi
8780 else
8781 if test "X$found_a" != "X"; then
8782 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8783 else
8784 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8785 fi
8786 fi
8787 additional_includedir=
8788 case "$found_dir" in
8789 */lib | */lib/)
8790 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8791 additional_includedir="$basedir/include"
8792 ;;
8793 esac
8794 if test "X$additional_includedir" != "X"; then
8795 if test "X$additional_includedir" != "X/usr/include"; then
8796 haveit=
8797 if test "X$additional_includedir" = "X/usr/local/include"; then
8798 if test -n "$GCC"; then
8799 case $host_os in
8800 linux*) haveit=yes;;
8801 esac
8802 fi
8803 fi
8804 if test -z "$haveit"; then
8805 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008807 acl_save_prefix="$prefix"
8808 prefix="$acl_final_prefix"
8809 acl_save_exec_prefix="$exec_prefix"
8810 exec_prefix="$acl_final_exec_prefix"
8811 eval x=\"$x\"
8812 exec_prefix="$acl_save_exec_prefix"
8813 prefix="$acl_save_prefix"
8814
8815 if test "X$x" = "X-I$additional_includedir"; then
8816 haveit=yes
8817 break
8818 fi
8819 done
8820 if test -z "$haveit"; then
8821 if test -d "$additional_includedir"; then
8822 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8823 fi
8824 fi
8825 fi
8826 fi
8827 fi
8828 if test -n "$found_la"; then
8829 save_libdir="$libdir"
8830 case "$found_la" in
8831 */* | *\\*) . "$found_la" ;;
8832 *) . "./$found_la" ;;
8833 esac
8834 libdir="$save_libdir"
8835 for dep in $dependency_libs; do
8836 case "$dep" in
8837 -L*)
8838 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8839 if test "X$additional_libdir" != "X/usr/lib"; then
8840 haveit=
8841 if test "X$additional_libdir" = "X/usr/local/lib"; then
8842 if test -n "$GCC"; then
8843 case $host_os in
8844 linux*) haveit=yes;;
8845 esac
8846 fi
8847 fi
8848 if test -z "$haveit"; then
8849 haveit=
8850 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 acl_save_prefix="$prefix"
8853 prefix="$acl_final_prefix"
8854 acl_save_exec_prefix="$exec_prefix"
8855 exec_prefix="$acl_final_exec_prefix"
8856 eval x=\"$x\"
8857 exec_prefix="$acl_save_exec_prefix"
8858 prefix="$acl_save_prefix"
8859
8860 if test "X$x" = "X-L$additional_libdir"; then
8861 haveit=yes
8862 break
8863 fi
8864 done
8865 if test -z "$haveit"; then
8866 if test -d "$additional_libdir"; then
8867 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8868 fi
8869 fi
8870 haveit=
8871 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873 acl_save_prefix="$prefix"
8874 prefix="$acl_final_prefix"
8875 acl_save_exec_prefix="$exec_prefix"
8876 exec_prefix="$acl_final_exec_prefix"
8877 eval x=\"$x\"
8878 exec_prefix="$acl_save_exec_prefix"
8879 prefix="$acl_save_prefix"
8880
8881 if test "X$x" = "X-L$additional_libdir"; then
8882 haveit=yes
8883 break
8884 fi
8885 done
8886 if test -z "$haveit"; then
8887 if test -d "$additional_libdir"; then
8888 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8889 fi
8890 fi
8891 fi
8892 fi
8893 ;;
8894 -R*)
8895 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8896 if test "$enable_rpath" != no; then
8897 haveit=
8898 for x in $rpathdirs; do
8899 if test "X$x" = "X$dir"; then
8900 haveit=yes
8901 break
8902 fi
8903 done
8904 if test -z "$haveit"; then
8905 rpathdirs="$rpathdirs $dir"
8906 fi
8907 haveit=
8908 for x in $ltrpathdirs; do
8909 if test "X$x" = "X$dir"; then
8910 haveit=yes
8911 break
8912 fi
8913 done
8914 if test -z "$haveit"; then
8915 ltrpathdirs="$ltrpathdirs $dir"
8916 fi
8917 fi
8918 ;;
8919 -l*)
8920 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8921 ;;
8922 *.la)
8923 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8924 ;;
8925 *)
8926 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8928 ;;
8929 esac
8930 done
8931 fi
8932 else
8933 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8935 fi
8936 fi
8937 fi
8938 done
8939 done
8940 if test "X$rpathdirs" != "X"; then
8941 if test -n "$hardcode_libdir_separator"; then
8942 alldirs=
8943 for found_dir in $rpathdirs; do
8944 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8945 done
8946 acl_save_libdir="$libdir"
8947 libdir="$alldirs"
8948 eval flag=\"$hardcode_libdir_flag_spec\"
8949 libdir="$acl_save_libdir"
8950 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8951 else
8952 for found_dir in $rpathdirs; do
8953 acl_save_libdir="$libdir"
8954 libdir="$found_dir"
8955 eval flag=\"$hardcode_libdir_flag_spec\"
8956 libdir="$acl_save_libdir"
8957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8958 done
8959 fi
8960 fi
8961 if test "X$ltrpathdirs" != "X"; then
8962 for found_dir in $ltrpathdirs; do
8963 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8964 done
8965 fi
8966
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008967
8968
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008970
8971
8972
8973
Theodore Ts'oe1052142006-10-21 21:46:47 -04008974 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8975echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008976if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008978else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008979 cat >conftest.$ac_ext <<_ACEOF
8980/* confdefs.h. */
8981_ACEOF
8982cat confdefs.h >>conftest.$ac_ext
8983cat >>conftest.$ac_ext <<_ACEOF
8984/* end confdefs.h. */
8985$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008986typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008987int
8988main ()
8989{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008990if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008991 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993 return 0;
8994 ;
8995 return 0;
8996}
8997_ACEOF
8998rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008999if { (ac_try="$ac_compile"
9000case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003esac
9004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009015 ac_cv_type_ptrdiff_t=yes
9016else
9017 echo "$as_me: failed program was:" >&5
9018sed 's/^/| /' conftest.$ac_ext >&5
9019
Theodore Ts'oe1052142006-10-21 21:46:47 -04009020 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009022
9023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009025{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9026echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027if test $ac_cv_type_ptrdiff_t = yes; then
9028 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009030
9031cat >>confdefs.h <<\_ACEOF
9032#define ptrdiff_t long
9033_ACEOF
9034
9035
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009036fi
9037
9038
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009039
9040
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009041
9042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009043
9044
9045
9046
9047
9048for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009049stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009050do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9055if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009057fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009058ac_res=`eval echo '${'$as_ac_Header'}'`
9059 { echo "$as_me:$LINENO: result: $ac_res" >&5
9060echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009061else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009063{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9064echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009065cat >conftest.$ac_ext <<_ACEOF
9066/* confdefs.h. */
9067_ACEOF
9068cat confdefs.h >>conftest.$ac_ext
9069cat >>conftest.$ac_ext <<_ACEOF
9070/* end confdefs.h. */
9071$ac_includes_default
9072#include <$ac_header>
9073_ACEOF
9074rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009075if { (ac_try="$ac_compile"
9076case "(($ac_try" in
9077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9078 *) ac_try_echo=$ac_try;;
9079esac
9080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9081 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082 ac_status=$?
9083 grep -v '^ *+' conftest.er1 >conftest.err
9084 rm -f conftest.er1
9085 cat conftest.err >&5
9086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009087 (exit $ac_status); } && {
9088 test -z "$ac_c_werror_flag" ||
9089 test ! -s conftest.err
9090 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091 ac_header_compiler=yes
9092else
9093 echo "$as_me: failed program was:" >&5
9094sed 's/^/| /' conftest.$ac_ext >&5
9095
Theodore Ts'oe1052142006-10-21 21:46:47 -04009096 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009098
9099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9100{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9101echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102
9103# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04009104{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9105echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009106cat >conftest.$ac_ext <<_ACEOF
9107/* confdefs.h. */
9108_ACEOF
9109cat confdefs.h >>conftest.$ac_ext
9110cat >>conftest.$ac_ext <<_ACEOF
9111/* end confdefs.h. */
9112#include <$ac_header>
9113_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009114if { (ac_try="$ac_cpp conftest.$ac_ext"
9115case "(($ac_try" in
9116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9117 *) ac_try_echo=$ac_try;;
9118esac
9119eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9120 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009121 ac_status=$?
9122 grep -v '^ *+' conftest.er1 >conftest.err
9123 rm -f conftest.er1
9124 cat conftest.err >&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009126 (exit $ac_status); } >/dev/null && {
9127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9128 test ! -s conftest.err
9129 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009130 ac_header_preproc=yes
9131else
9132 echo "$as_me: failed program was:" >&5
9133sed 's/^/| /' conftest.$ac_ext >&5
9134
9135 ac_header_preproc=no
9136fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009139{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9140echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009141
9142# So? What about this header?
9143case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9144 yes:no: )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9146echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9148echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9149 ac_header_preproc=yes
9150 ;;
9151 no:yes:* )
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9153echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9155echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9156 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9157echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9158 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9159echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9160 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9161echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9162 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9163echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009165 ;;
9166esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009167{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9168echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9169if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009170 echo $ECHO_N "(cached) $ECHO_C" >&6
9171else
9172 eval "$as_ac_Header=\$ac_header_preproc"
9173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009174ac_res=`eval echo '${'$as_ac_Header'}'`
9175 { echo "$as_me:$LINENO: result: $ac_res" >&5
9176echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009177
9178fi
9179if test `eval echo '${'$as_ac_Header'}'` = yes; then
9180 cat >>confdefs.h <<_ACEOF
9181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9182_ACEOF
9183
9184fi
9185
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009186done
9187
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9212mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9213strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9214__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009215do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009216as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9218echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9219if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222 cat >conftest.$ac_ext <<_ACEOF
9223/* confdefs.h. */
9224_ACEOF
9225cat confdefs.h >>conftest.$ac_ext
9226cat >>conftest.$ac_ext <<_ACEOF
9227/* end confdefs.h. */
9228/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9229 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9230#define $ac_func innocuous_$ac_func
9231
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009232/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233 which can conflict with char $ac_func (); below.
9234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9235 <limits.h> exists even on freestanding compilers. */
9236
9237#ifdef __STDC__
9238# include <limits.h>
9239#else
9240# include <assert.h>
9241#endif
9242
9243#undef $ac_func
9244
Theodore Ts'oe1052142006-10-21 21:46:47 -04009245/* Override any GCC internal prototype to avoid an error.
9246 Use char because int might match the return type of a GCC
9247 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248#ifdef __cplusplus
9249extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009250#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009251char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009252/* The GNU C library defines this for functions which it implements
9253 to always fail with ENOSYS. Some functions are actually named
9254 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009255#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009256choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009257#endif
9258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259int
9260main ()
9261{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009262return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263 ;
9264 return 0;
9265}
9266_ACEOF
9267rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009268if { (ac_try="$ac_link"
9269case "(($ac_try" in
9270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9272esac
9273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275 ac_status=$?
9276 grep -v '^ *+' conftest.er1 >conftest.err
9277 rm -f conftest.er1
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009280 (exit $ac_status); } && {
9281 test -z "$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9283 } && test -s conftest$ac_exeext &&
9284 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009287 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009289
Theodore Ts'oe1052142006-10-21 21:46:47 -04009290 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009292
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009293rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 conftest$ac_exeext conftest.$ac_ext
9295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009296ac_res=`eval echo '${'$as_ac_var'}'`
9297 { echo "$as_me:$LINENO: result: $ac_res" >&5
9298echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009299if test `eval echo '${'$as_ac_var'}'` = yes; then
9300 cat >>confdefs.h <<_ACEOF
9301#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9302_ACEOF
9303
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009304fi
9305done
9306
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009308
Theodore Ts'oe1052142006-10-21 21:46:47 -04009309 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9310echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009311if test "${ac_cv_have_decl__snprintf+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9313else
9314 cat >conftest.$ac_ext <<_ACEOF
9315/* confdefs.h. */
9316_ACEOF
9317cat confdefs.h >>conftest.$ac_ext
9318cat >>conftest.$ac_ext <<_ACEOF
9319/* end confdefs.h. */
9320#include <stdio.h>
9321int
9322main ()
9323{
9324
9325#ifndef _snprintf
9326 char *p = (char *) _snprintf;
9327#endif
9328
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009334if { (ac_try="$ac_compile"
9335case "(($ac_try" in
9336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337 *) ac_try_echo=$ac_try;;
9338esac
9339eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009341 ac_status=$?
9342 grep -v '^ *+' conftest.er1 >conftest.err
9343 rm -f conftest.er1
9344 cat conftest.err >&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009346 (exit $ac_status); } && {
9347 test -z "$ac_c_werror_flag" ||
9348 test ! -s conftest.err
9349 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009350 ac_cv_have_decl__snprintf=yes
9351else
9352 echo "$as_me: failed program was:" >&5
9353sed 's/^/| /' conftest.$ac_ext >&5
9354
Theodore Ts'oe1052142006-10-21 21:46:47 -04009355 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009357
9358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009360{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9361echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009362 if test $ac_cv_have_decl__snprintf = yes; then
9363 gt_value=1
9364 else
9365 gt_value=0
9366 fi
9367
9368cat >>confdefs.h <<_ACEOF
9369#define HAVE_DECL__SNPRINTF $gt_value
9370_ACEOF
9371
9372
9373
Theodore Ts'oe1052142006-10-21 21:46:47 -04009374 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9375echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378else
9379 cat >conftest.$ac_ext <<_ACEOF
9380/* confdefs.h. */
9381_ACEOF
9382cat confdefs.h >>conftest.$ac_ext
9383cat >>conftest.$ac_ext <<_ACEOF
9384/* end confdefs.h. */
9385#include <stdio.h>
9386int
9387main ()
9388{
9389
9390#ifndef _snwprintf
9391 char *p = (char *) _snwprintf;
9392#endif
9393
9394 ;
9395 return 0;
9396}
9397_ACEOF
9398rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009399if { (ac_try="$ac_compile"
9400case "(($ac_try" in
9401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9402 *) ac_try_echo=$ac_try;;
9403esac
9404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9405 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009406 ac_status=$?
9407 grep -v '^ *+' conftest.er1 >conftest.err
9408 rm -f conftest.er1
9409 cat conftest.err >&5
9410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009411 (exit $ac_status); } && {
9412 test -z "$ac_c_werror_flag" ||
9413 test ! -s conftest.err
9414 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415 ac_cv_have_decl__snwprintf=yes
9416else
9417 echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
Theodore Ts'oe1052142006-10-21 21:46:47 -04009420 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009422
9423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009425{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9426echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427 if test $ac_cv_have_decl__snwprintf = yes; then
9428 gt_value=1
9429 else
9430 gt_value=0
9431 fi
9432
9433cat >>confdefs.h <<_ACEOF
9434#define HAVE_DECL__SNWPRINTF $gt_value
9435_ACEOF
9436
9437
9438
9439
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9441echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009442if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9444else
9445 cat >conftest.$ac_ext <<_ACEOF
9446/* confdefs.h. */
9447_ACEOF
9448cat confdefs.h >>conftest.$ac_ext
9449cat >>conftest.$ac_ext <<_ACEOF
9450/* end confdefs.h. */
9451#include <stdio.h>
9452int
9453main ()
9454{
9455
9456#ifndef feof_unlocked
9457 char *p = (char *) feof_unlocked;
9458#endif
9459
9460 ;
9461 return 0;
9462}
9463_ACEOF
9464rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009465if { (ac_try="$ac_compile"
9466case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469esac
9470eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481 ac_cv_have_decl_feof_unlocked=yes
9482else
9483 echo "$as_me: failed program was:" >&5
9484sed 's/^/| /' conftest.$ac_ext >&5
9485
Theodore Ts'oe1052142006-10-21 21:46:47 -04009486 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009487fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009488
9489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009491{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9492echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493 if test $ac_cv_have_decl_feof_unlocked = yes; then
9494 gt_value=1
9495 else
9496 gt_value=0
9497 fi
9498
9499cat >>confdefs.h <<_ACEOF
9500#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9501_ACEOF
9502
9503
9504
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9506echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009507if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509else
9510 cat >conftest.$ac_ext <<_ACEOF
9511/* confdefs.h. */
9512_ACEOF
9513cat confdefs.h >>conftest.$ac_ext
9514cat >>conftest.$ac_ext <<_ACEOF
9515/* end confdefs.h. */
9516#include <stdio.h>
9517int
9518main ()
9519{
9520
9521#ifndef fgets_unlocked
9522 char *p = (char *) fgets_unlocked;
9523#endif
9524
9525 ;
9526 return 0;
9527}
9528_ACEOF
9529rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009530if { (ac_try="$ac_compile"
9531case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534esac
9535eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546 ac_cv_have_decl_fgets_unlocked=yes
9547else
9548 echo "$as_me: failed program was:" >&5
9549sed 's/^/| /' conftest.$ac_ext >&5
9550
Theodore Ts'oe1052142006-10-21 21:46:47 -04009551 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009553
9554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009556{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9557echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9559 gt_value=1
9560 else
9561 gt_value=0
9562 fi
9563
9564cat >>confdefs.h <<_ACEOF
9565#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9566_ACEOF
9567
9568
9569
Theodore Ts'oe1052142006-10-21 21:46:47 -04009570 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9571echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>conftest.$ac_ext <<_ACEOF
9580/* end confdefs.h. */
9581#include <stdio.h>
9582int
9583main ()
9584{
9585
9586#ifndef getc_unlocked
9587 char *p = (char *) getc_unlocked;
9588#endif
9589
9590 ;
9591 return 0;
9592}
9593_ACEOF
9594rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009595if { (ac_try="$ac_compile"
9596case "(($ac_try" in
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9599esac
9600eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009611 ac_cv_have_decl_getc_unlocked=yes
9612else
9613 echo "$as_me: failed program was:" >&5
9614sed 's/^/| /' conftest.$ac_ext >&5
9615
Theodore Ts'oe1052142006-10-21 21:46:47 -04009616 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009617fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009618
9619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009621{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9622echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623 if test $ac_cv_have_decl_getc_unlocked = yes; then
9624 gt_value=1
9625 else
9626 gt_value=0
9627 fi
9628
9629cat >>confdefs.h <<_ACEOF
9630#define HAVE_DECL_GETC_UNLOCKED $gt_value
9631_ACEOF
9632
9633
9634
9635 case $gt_cv_func_printf_posix in
9636 *yes) HAVE_POSIX_PRINTF=1 ;;
9637 *) HAVE_POSIX_PRINTF=0 ;;
9638 esac
9639
9640 if test "$ac_cv_func_asprintf" = yes; then
9641 HAVE_ASPRINTF=1
9642 else
9643 HAVE_ASPRINTF=0
9644 fi
9645
9646 if test "$ac_cv_func_snprintf" = yes; then
9647 HAVE_SNPRINTF=1
9648 else
9649 HAVE_SNPRINTF=0
9650 fi
9651
9652 if test "$ac_cv_func_wprintf" = yes; then
9653 HAVE_WPRINTF=1
9654 else
9655 HAVE_WPRINTF=0
9656 fi
9657
9658
9659
9660
9661
9662
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009663
9664 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009665
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009666 for element in $INCICONV; do
9667 haveit=
9668 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009669
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009670 acl_save_prefix="$prefix"
9671 prefix="$acl_final_prefix"
9672 acl_save_exec_prefix="$exec_prefix"
9673 exec_prefix="$acl_final_exec_prefix"
9674 eval x=\"$x\"
9675 exec_prefix="$acl_save_exec_prefix"
9676 prefix="$acl_save_prefix"
9677
9678 if test "X$x" = "X$element"; then
9679 haveit=yes
9680 break
9681 fi
9682 done
9683 if test -z "$haveit"; then
9684 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9685 fi
9686 done
9687
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009688
Theodore Ts'oe1052142006-10-21 21:46:47 -04009689 { echo "$as_me:$LINENO: checking for iconv" >&5
9690echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009691if test "${am_cv_func_iconv+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009693else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009695 am_cv_func_iconv="no, consider installing GNU libiconv"
9696 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697 cat >conftest.$ac_ext <<_ACEOF
9698/* confdefs.h. */
9699_ACEOF
9700cat confdefs.h >>conftest.$ac_ext
9701cat >>conftest.$ac_ext <<_ACEOF
9702/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009703#include <stdlib.h>
9704#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009705int
9706main ()
9707{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009708iconv_t cd = iconv_open("","");
9709 iconv(cd,NULL,NULL,NULL,NULL);
9710 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009711 ;
9712 return 0;
9713}
9714_ACEOF
9715rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009716if { (ac_try="$ac_link"
9717case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720esac
9721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9722 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009723 ac_status=$?
9724 grep -v '^ *+' conftest.er1 >conftest.err
9725 rm -f conftest.er1
9726 cat conftest.err >&5
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009728 (exit $ac_status); } && {
9729 test -z "$ac_c_werror_flag" ||
9730 test ! -s conftest.err
9731 } && test -s conftest$ac_exeext &&
9732 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009733 am_cv_func_iconv=yes
9734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735 echo "$as_me: failed program was:" >&5
9736sed 's/^/| /' conftest.$ac_ext >&5
9737
Theodore Ts'oe1052142006-10-21 21:46:47 -04009738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009740
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009742 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009743 if test "$am_cv_func_iconv" != yes; then
9744 am_save_LIBS="$LIBS"
9745 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746 cat >conftest.$ac_ext <<_ACEOF
9747/* confdefs.h. */
9748_ACEOF
9749cat confdefs.h >>conftest.$ac_ext
9750cat >>conftest.$ac_ext <<_ACEOF
9751/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009752#include <stdlib.h>
9753#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009754int
9755main ()
9756{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009757iconv_t cd = iconv_open("","");
9758 iconv(cd,NULL,NULL,NULL,NULL);
9759 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009782 am_cv_lib_iconv=yes
9783 am_cv_func_iconv=yes
9784else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785 echo "$as_me: failed program was:" >&5
9786sed 's/^/| /' conftest.$ac_ext >&5
9787
Theodore Ts'oe1052142006-10-21 21:46:47 -04009788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009789fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009792 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009793 LIBS="$am_save_LIBS"
9794 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009797{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9798echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009799 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800
9801cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009802#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009804
9805 fi
9806 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9808echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9809 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9810echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009811 else
9812 CPPFLAGS="$am_save_CPPFLAGS"
9813 LIBICONV=
9814 LTLIBICONV=
9815 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009816
9817
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009818
9819 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009820 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9821echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822 if test "${am_cv_proto_iconv+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009824else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825
9826 cat >conftest.$ac_ext <<_ACEOF
9827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009832
9833#include <stdlib.h>
9834#include <iconv.h>
9835extern
9836#ifdef __cplusplus
9837"C"
9838#endif
9839#if defined(__STDC__) || defined(__cplusplus)
9840size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9841#else
9842size_t iconv();
9843#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009844
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845int
9846main ()
9847{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009849 ;
9850 return 0;
9851}
9852_ACEOF
9853rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009854if { (ac_try="$ac_compile"
9855case "(($ac_try" in
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9858esac
9859eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 ac_status=$?
9862 grep -v '^ *+' conftest.er1 >conftest.err
9863 rm -f conftest.er1
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009870 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
Theodore Ts'oe1052142006-10-21 21:46:47 -04009875 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009877
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009879 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 +00009880fi
9881
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009882 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009883 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009884 }$am_cv_proto_iconv" >&5
9885echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009886 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009887
9888cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009889#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009891
9892 fi
9893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894
Theodore Ts'oe1052142006-10-21 21:46:47 -04009895 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9896echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009897if test "${am_cv_langinfo_codeset+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009900 cat >conftest.$ac_ext <<_ACEOF
9901/* confdefs.h. */
9902_ACEOF
9903cat confdefs.h >>conftest.$ac_ext
9904cat >>conftest.$ac_ext <<_ACEOF
9905/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009906#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907int
9908main ()
9909{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009910char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911 ;
9912 return 0;
9913}
9914_ACEOF
9915rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9922 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009923 ac_status=$?
9924 grep -v '^ *+' conftest.er1 >conftest.err
9925 rm -f conftest.er1
9926 cat conftest.err >&5
9927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009928 (exit $ac_status); } && {
9929 test -z "$ac_c_werror_flag" ||
9930 test ! -s conftest.err
9931 } && test -s conftest$ac_exeext &&
9932 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009933 am_cv_langinfo_codeset=yes
9934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 echo "$as_me: failed program was:" >&5
9936sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009937
Theodore Ts'oe1052142006-10-21 21:46:47 -04009938 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009940
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009941rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942 conftest$ac_exeext conftest.$ac_ext
9943
9944fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009945{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9946echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009947 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948
9949cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009950#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009951_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009952
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009953 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009954
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009955 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956
Theodore Ts'oe1052142006-10-21 21:46:47 -04009957 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9958echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009959if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962 cat >conftest.$ac_ext <<_ACEOF
9963/* confdefs.h. */
9964_ACEOF
9965cat confdefs.h >>conftest.$ac_ext
9966cat >>conftest.$ac_ext <<_ACEOF
9967/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009968#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009969int
9970main ()
9971{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009972return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009973 ;
9974 return 0;
9975}
9976_ACEOF
9977rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009978if { (ac_try="$ac_link"
9979case "(($ac_try" in
9980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9982esac
9983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985 ac_status=$?
9986 grep -v '^ *+' conftest.er1 >conftest.err
9987 rm -f conftest.er1
9988 cat conftest.err >&5
9989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009990 (exit $ac_status); } && {
9991 test -z "$ac_c_werror_flag" ||
9992 test ! -s conftest.err
9993 } && test -s conftest$ac_exeext &&
9994 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009995 am_cv_val_LC_MESSAGES=yes
9996else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009997 echo "$as_me: failed program was:" >&5
9998sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009999
Theodore Ts'oe1052142006-10-21 21:46:47 -040010000 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010003rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004 conftest$ac_exeext conftest.$ac_ext
10005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010006{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10007echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010008 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009
10010cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010011#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010013
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010014 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010015
10016 fi
10017
10018 for ac_prog in bison
10019do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010021set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010022{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10023echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024if test "${ac_cv_prog_INTLBISON+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010026else
10027 if test -n "$INTLBISON"; then
10028 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10029else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10031for as_dir in $PATH
10032do
10033 IFS=$as_save_IFS
10034 test -z "$as_dir" && as_dir=.
10035 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010036 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 -050010037 ac_cv_prog_INTLBISON="$ac_prog"
10038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10039 break 2
10040 fi
10041done
10042done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010045fi
10046fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010047INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010048if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010049 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
10050echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010051else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010052 { echo "$as_me:$LINENO: result: no" >&5
10053echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010054fi
10055
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010058done
10059
10060 if test -z "$INTLBISON"; then
10061 ac_verc_fail=yes
10062 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010063 { echo "$as_me:$LINENO: checking version of bison" >&5
10064echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010065 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10066 case $ac_prog_version in
10067 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10068 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10069 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10070 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10071 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040010072 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10073echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010074 fi
10075 if test $ac_verc_fail = yes; then
10076 INTLBISON=:
10077 fi
10078
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010079
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'ob0cacab2004-11-30 19:00:19 -050010084
10085
10086
10087
10088
10089
10090
10091
10092
10093
Theodore Ts'oe1052142006-10-21 21:46:47 -040010094 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10095echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
10096 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010097if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010099else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010100 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010101fi
10102
10103 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10104echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010105
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010107
10108
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010109 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010110 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010112 LIBINTL=
10113 LTLIBINTL=
10114 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010115
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010116 if test "$USE_NLS" = "yes"; then
10117 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118
Theodore Ts'oe1052142006-10-21 21:46:47 -040010119 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10120echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121
Theodore Ts'oe1052142006-10-21 21:46:47 -040010122# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010123if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010124 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010125else
10126 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010127fi
10128
10129 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10130echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010131
10132 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10133 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010134
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135
10136
10137
10138
10139
Theodore Ts'oe1052142006-10-21 21:46:47 -040010140 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10141echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
10143 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010144else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145 cat >conftest.$ac_ext <<_ACEOF
10146/* confdefs.h. */
10147_ACEOF
10148cat confdefs.h >>conftest.$ac_ext
10149cat >>conftest.$ac_ext <<_ACEOF
10150/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010151#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010152extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010153extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154int
10155main ()
10156{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010157bindtextdomain ("", "");
10158return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010159 ;
10160 return 0;
10161}
10162_ACEOF
10163rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010164if { (ac_try="$ac_link"
10165case "(($ac_try" in
10166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10167 *) ac_try_echo=$ac_try;;
10168esac
10169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10170 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010171 ac_status=$?
10172 grep -v '^ *+' conftest.er1 >conftest.err
10173 rm -f conftest.er1
10174 cat conftest.err >&5
10175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010176 (exit $ac_status); } && {
10177 test -z "$ac_c_werror_flag" ||
10178 test ! -s conftest.err
10179 } && test -s conftest$ac_exeext &&
10180 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010181 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010182else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010183 echo "$as_me: failed program was:" >&5
10184sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010185
Theodore Ts'oe1052142006-10-21 21:46:47 -040010186 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010190 conftest$ac_exeext conftest.$ac_ext
10191fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010192{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10193echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010194
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010195 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010196
10197
10198
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010199 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010200
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010201 acl_save_prefix="$prefix"
10202 prefix="$acl_final_prefix"
10203 acl_save_exec_prefix="$exec_prefix"
10204 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010205
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010206 eval additional_includedir=\"$includedir\"
10207 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010208
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010209 exec_prefix="$acl_save_exec_prefix"
10210 prefix="$acl_save_prefix"
10211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212
Theodore Ts'oe1052142006-10-21 21:46:47 -040010213# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010214if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010215 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010216 if test "X$withval" = "Xno"; then
10217 use_additional=no
10218 else
10219 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010220
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010221 acl_save_prefix="$prefix"
10222 prefix="$acl_final_prefix"
10223 acl_save_exec_prefix="$exec_prefix"
10224 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010225
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010226 eval additional_includedir=\"$includedir\"
10227 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010228
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010229 exec_prefix="$acl_save_exec_prefix"
10230 prefix="$acl_save_prefix"
10231
10232 else
10233 additional_includedir="$withval/include"
10234 additional_libdir="$withval/lib"
10235 fi
10236 fi
10237
Theodore Ts'oe1052142006-10-21 21:46:47 -040010238fi
10239
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010240 LIBINTL=
10241 LTLIBINTL=
10242 INCINTL=
10243 rpathdirs=
10244 ltrpathdirs=
10245 names_already_handled=
10246 names_next_round='intl '
10247 while test -n "$names_next_round"; do
10248 names_this_round="$names_next_round"
10249 names_next_round=
10250 for name in $names_this_round; do
10251 already_handled=
10252 for n in $names_already_handled; do
10253 if test "$n" = "$name"; then
10254 already_handled=yes
10255 break
10256 fi
10257 done
10258 if test -z "$already_handled"; then
10259 names_already_handled="$names_already_handled $name"
10260 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10261 eval value=\"\$HAVE_LIB$uppername\"
10262 if test -n "$value"; then
10263 if test "$value" = yes; then
10264 eval value=\"\$LIB$uppername\"
10265 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10266 eval value=\"\$LTLIB$uppername\"
10267 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10268 else
10269 :
10270 fi
10271 else
10272 found_dir=
10273 found_la=
10274 found_so=
10275 found_a=
10276 if test $use_additional = yes; then
10277 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10278 found_dir="$additional_libdir"
10279 found_so="$additional_libdir/lib$name.$shlibext"
10280 if test -f "$additional_libdir/lib$name.la"; then
10281 found_la="$additional_libdir/lib$name.la"
10282 fi
10283 else
10284 if test -f "$additional_libdir/lib$name.$libext"; then
10285 found_dir="$additional_libdir"
10286 found_a="$additional_libdir/lib$name.$libext"
10287 if test -f "$additional_libdir/lib$name.la"; then
10288 found_la="$additional_libdir/lib$name.la"
10289 fi
10290 fi
10291 fi
10292 fi
10293 if test "X$found_dir" = "X"; then
10294 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010295
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010296 acl_save_prefix="$prefix"
10297 prefix="$acl_final_prefix"
10298 acl_save_exec_prefix="$exec_prefix"
10299 exec_prefix="$acl_final_exec_prefix"
10300 eval x=\"$x\"
10301 exec_prefix="$acl_save_exec_prefix"
10302 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010303
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010304 case "$x" in
10305 -L*)
10306 dir=`echo "X$x" | sed -e 's/^X-L//'`
10307 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10308 found_dir="$dir"
10309 found_so="$dir/lib$name.$shlibext"
10310 if test -f "$dir/lib$name.la"; then
10311 found_la="$dir/lib$name.la"
10312 fi
10313 else
10314 if test -f "$dir/lib$name.$libext"; then
10315 found_dir="$dir"
10316 found_a="$dir/lib$name.$libext"
10317 if test -f "$dir/lib$name.la"; then
10318 found_la="$dir/lib$name.la"
10319 fi
10320 fi
10321 fi
10322 ;;
10323 esac
10324 if test "X$found_dir" != "X"; then
10325 break
10326 fi
10327 done
10328 fi
10329 if test "X$found_dir" != "X"; then
10330 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10331 if test "X$found_so" != "X"; then
10332 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10333 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10334 else
10335 haveit=
10336 for x in $ltrpathdirs; do
10337 if test "X$x" = "X$found_dir"; then
10338 haveit=yes
10339 break
10340 fi
10341 done
10342 if test -z "$haveit"; then
10343 ltrpathdirs="$ltrpathdirs $found_dir"
10344 fi
10345 if test "$hardcode_direct" = yes; then
10346 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10347 else
10348 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10349 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10350 haveit=
10351 for x in $rpathdirs; do
10352 if test "X$x" = "X$found_dir"; then
10353 haveit=yes
10354 break
10355 fi
10356 done
10357 if test -z "$haveit"; then
10358 rpathdirs="$rpathdirs $found_dir"
10359 fi
10360 else
10361 haveit=
10362 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010363
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010364 acl_save_prefix="$prefix"
10365 prefix="$acl_final_prefix"
10366 acl_save_exec_prefix="$exec_prefix"
10367 exec_prefix="$acl_final_exec_prefix"
10368 eval x=\"$x\"
10369 exec_prefix="$acl_save_exec_prefix"
10370 prefix="$acl_save_prefix"
10371
10372 if test "X$x" = "X-L$found_dir"; then
10373 haveit=yes
10374 break
10375 fi
10376 done
10377 if test -z "$haveit"; then
10378 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10379 fi
10380 if test "$hardcode_minus_L" != no; then
10381 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10382 else
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10384 fi
10385 fi
10386 fi
10387 fi
10388 else
10389 if test "X$found_a" != "X"; then
10390 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10391 else
10392 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10393 fi
10394 fi
10395 additional_includedir=
10396 case "$found_dir" in
10397 */lib | */lib/)
10398 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10399 additional_includedir="$basedir/include"
10400 ;;
10401 esac
10402 if test "X$additional_includedir" != "X"; then
10403 if test "X$additional_includedir" != "X/usr/include"; then
10404 haveit=
10405 if test "X$additional_includedir" = "X/usr/local/include"; then
10406 if test -n "$GCC"; then
10407 case $host_os in
10408 linux*) haveit=yes;;
10409 esac
10410 fi
10411 fi
10412 if test -z "$haveit"; then
10413 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010414
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010415 acl_save_prefix="$prefix"
10416 prefix="$acl_final_prefix"
10417 acl_save_exec_prefix="$exec_prefix"
10418 exec_prefix="$acl_final_exec_prefix"
10419 eval x=\"$x\"
10420 exec_prefix="$acl_save_exec_prefix"
10421 prefix="$acl_save_prefix"
10422
10423 if test "X$x" = "X-I$additional_includedir"; then
10424 haveit=yes
10425 break
10426 fi
10427 done
10428 if test -z "$haveit"; then
10429 if test -d "$additional_includedir"; then
10430 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10431 fi
10432 fi
10433 fi
10434 fi
10435 fi
10436 if test -n "$found_la"; then
10437 save_libdir="$libdir"
10438 case "$found_la" in
10439 */* | *\\*) . "$found_la" ;;
10440 *) . "./$found_la" ;;
10441 esac
10442 libdir="$save_libdir"
10443 for dep in $dependency_libs; do
10444 case "$dep" in
10445 -L*)
10446 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10447 if test "X$additional_libdir" != "X/usr/lib"; then
10448 haveit=
10449 if test "X$additional_libdir" = "X/usr/local/lib"; then
10450 if test -n "$GCC"; then
10451 case $host_os in
10452 linux*) haveit=yes;;
10453 esac
10454 fi
10455 fi
10456 if test -z "$haveit"; then
10457 haveit=
10458 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010459
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010460 acl_save_prefix="$prefix"
10461 prefix="$acl_final_prefix"
10462 acl_save_exec_prefix="$exec_prefix"
10463 exec_prefix="$acl_final_exec_prefix"
10464 eval x=\"$x\"
10465 exec_prefix="$acl_save_exec_prefix"
10466 prefix="$acl_save_prefix"
10467
10468 if test "X$x" = "X-L$additional_libdir"; then
10469 haveit=yes
10470 break
10471 fi
10472 done
10473 if test -z "$haveit"; then
10474 if test -d "$additional_libdir"; then
10475 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10476 fi
10477 fi
10478 haveit=
10479 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010480
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010481 acl_save_prefix="$prefix"
10482 prefix="$acl_final_prefix"
10483 acl_save_exec_prefix="$exec_prefix"
10484 exec_prefix="$acl_final_exec_prefix"
10485 eval x=\"$x\"
10486 exec_prefix="$acl_save_exec_prefix"
10487 prefix="$acl_save_prefix"
10488
10489 if test "X$x" = "X-L$additional_libdir"; then
10490 haveit=yes
10491 break
10492 fi
10493 done
10494 if test -z "$haveit"; then
10495 if test -d "$additional_libdir"; then
10496 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10497 fi
10498 fi
10499 fi
10500 fi
10501 ;;
10502 -R*)
10503 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10504 if test "$enable_rpath" != no; then
10505 haveit=
10506 for x in $rpathdirs; do
10507 if test "X$x" = "X$dir"; then
10508 haveit=yes
10509 break
10510 fi
10511 done
10512 if test -z "$haveit"; then
10513 rpathdirs="$rpathdirs $dir"
10514 fi
10515 haveit=
10516 for x in $ltrpathdirs; do
10517 if test "X$x" = "X$dir"; then
10518 haveit=yes
10519 break
10520 fi
10521 done
10522 if test -z "$haveit"; then
10523 ltrpathdirs="$ltrpathdirs $dir"
10524 fi
10525 fi
10526 ;;
10527 -l*)
10528 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10529 ;;
10530 *.la)
10531 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10532 ;;
10533 *)
10534 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10535 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10536 ;;
10537 esac
10538 done
10539 fi
10540 else
10541 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10542 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10543 fi
10544 fi
10545 fi
10546 done
10547 done
10548 if test "X$rpathdirs" != "X"; then
10549 if test -n "$hardcode_libdir_separator"; then
10550 alldirs=
10551 for found_dir in $rpathdirs; do
10552 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10553 done
10554 acl_save_libdir="$libdir"
10555 libdir="$alldirs"
10556 eval flag=\"$hardcode_libdir_flag_spec\"
10557 libdir="$acl_save_libdir"
10558 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10559 else
10560 for found_dir in $rpathdirs; do
10561 acl_save_libdir="$libdir"
10562 libdir="$found_dir"
10563 eval flag=\"$hardcode_libdir_flag_spec\"
10564 libdir="$acl_save_libdir"
10565 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10566 done
10567 fi
10568 fi
10569 if test "X$ltrpathdirs" != "X"; then
10570 for found_dir in $ltrpathdirs; do
10571 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10572 done
10573 fi
10574
Theodore Ts'oe1052142006-10-21 21:46:47 -040010575 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10576echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010579else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010580 gt_save_CPPFLAGS="$CPPFLAGS"
10581 CPPFLAGS="$CPPFLAGS $INCINTL"
10582 gt_save_LIBS="$LIBS"
10583 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010584 cat >conftest.$ac_ext <<_ACEOF
10585/* confdefs.h. */
10586_ACEOF
10587cat confdefs.h >>conftest.$ac_ext
10588cat >>conftest.$ac_ext <<_ACEOF
10589/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010590#include <libintl.h>
10591extern int _nl_msg_cat_cntr;
10592extern
10593#ifdef __cplusplus
10594"C"
10595#endif
10596const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597int
10598main ()
10599{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010600bindtextdomain ("", "");
10601return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602 ;
10603 return 0;
10604}
10605_ACEOF
10606rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010607if { (ac_try="$ac_link"
10608case "(($ac_try" in
10609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10610 *) ac_try_echo=$ac_try;;
10611esac
10612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10613 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614 ac_status=$?
10615 grep -v '^ *+' conftest.er1 >conftest.err
10616 rm -f conftest.er1
10617 cat conftest.err >&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010619 (exit $ac_status); } && {
10620 test -z "$ac_c_werror_flag" ||
10621 test ! -s conftest.err
10622 } && test -s conftest$ac_exeext &&
10623 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010624 gt_cv_func_gnugettext1_libintl=yes
10625else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626 echo "$as_me: failed program was:" >&5
10627sed 's/^/| /' conftest.$ac_ext >&5
10628
Theodore Ts'oe1052142006-10-21 21:46:47 -040010629 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010630fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010631
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010634 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10635 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010636 cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010642#include <libintl.h>
10643extern int _nl_msg_cat_cntr;
10644extern
10645#ifdef __cplusplus
10646"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010647#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010648const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010649int
10650main ()
10651{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010652bindtextdomain ("", "");
10653return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010654 ;
10655 return 0;
10656}
10657_ACEOF
10658rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659if { (ac_try="$ac_link"
10660case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10663esac
10664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010666 ac_status=$?
10667 grep -v '^ *+' conftest.er1 >conftest.err
10668 rm -f conftest.er1
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest$ac_exeext &&
10675 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010676 LIBINTL="$LIBINTL $LIBICONV"
10677 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10678 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010680else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010681 echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
Theodore Ts'oe1052142006-10-21 21:46:47 -040010684
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010685fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010686
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010687rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010689 fi
10690 CPPFLAGS="$gt_save_CPPFLAGS"
10691 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010693{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10694echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010695 fi
10696
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010697 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10698 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699 && test "$PACKAGE" != gettext-runtime \
10700 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010701 gt_use_preinstalled_gnugettext=yes
10702 else
10703 LIBINTL=
10704 LTLIBINTL=
10705 INCINTL=
10706 fi
10707
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010708
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010709 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10710 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010711 fi
10712 fi
10713
10714 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010715 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010716 USE_INCLUDED_LIBINTL=yes
10717 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10718 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10719 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010720 fi
10721
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010722 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10723 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10724 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010725 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010726
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10729 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730
10731cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010732#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010734
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010735 else
10736 USE_NLS=no
10737 fi
10738 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010739
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10741echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10742 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10743echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010745 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10746echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10748 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10749 gt_source="external libintl"
10750 else
10751 gt_source="libc"
10752 fi
10753 else
10754 gt_source="included intl directory"
10755 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010756 { echo "$as_me:$LINENO: result: $gt_source" >&5
10757echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010758 fi
10759
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010760 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010761
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10763 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010764 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10765echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10766 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10767echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769 for element in $INCINTL; do
10770 haveit=
10771 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010773 acl_save_prefix="$prefix"
10774 prefix="$acl_final_prefix"
10775 acl_save_exec_prefix="$exec_prefix"
10776 exec_prefix="$acl_final_exec_prefix"
10777 eval x=\"$x\"
10778 exec_prefix="$acl_save_exec_prefix"
10779 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010780
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010781 if test "X$x" = "X$element"; then
10782 haveit=yes
10783 break
10784 fi
10785 done
10786 if test -z "$haveit"; then
10787 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10788 fi
10789 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010790
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010791 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010792
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794cat >>confdefs.h <<\_ACEOF
10795#define HAVE_GETTEXT 1
10796_ACEOF
10797
10798
10799cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010800#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802
10803 fi
10804
10805 POSUB=po
10806 fi
10807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808
10809 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810 BUILD_INCLUDED_LIBINTL=yes
10811 fi
10812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813
10814
10815
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010816
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010817 nls_cv_header_intl=
10818 nls_cv_header_libgt=
10819
10820 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822
10823 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010825
10826 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827
10828
10829 if test "$USE_INCLUDED_LIBINTL" = yes; then
10830 INTLOBJS="\$(GETTOBJS)"
10831 fi
10832
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833
10834 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835
10836
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010837
10838 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010839
10840
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841
10842
10843
10844
10845
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10847echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10848set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10849if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010851else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010852 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010853SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010854all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010855 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010856_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010857# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010858case `${MAKE-make} -f conftest.make 2>/dev/null` in
10859 *@@@%%%=?*=@@@%%%*)
10860 eval ac_cv_prog_make_${ac_make}_set=yes;;
10861 *)
10862 eval ac_cv_prog_make_${ac_make}_set=no;;
10863esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010866if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10867 { echo "$as_me:$LINENO: result: yes" >&5
10868echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010869 SET_MAKE=
10870else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010871 { echo "$as_me:$LINENO: result: no" >&5
10872echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010873 SET_MAKE="MAKE=${MAKE-make}"
10874fi
10875
10876# Extract the first word of "ln", so it can be a program name with args.
10877set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010878{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10879echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010880if test "${ac_cv_path_LN+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883 case $LN in
10884 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010885 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10886 ;;
10887 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10889for as_dir in $PATH
10890do
10891 IFS=$as_save_IFS
10892 test -z "$as_dir" && as_dir=.
10893 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010894 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 -050010895 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10897 break 2
10898 fi
10899done
10900done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010901IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010903 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10904 ;;
10905esac
10906fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010908if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010909 { echo "$as_me:$LINENO: result: $LN" >&5
10910echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010911else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010912 { echo "$as_me:$LINENO: result: no" >&5
10913echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010914fi
10915
Theodore Ts'oe1052142006-10-21 21:46:47 -040010916
10917{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10918echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010919LN_S=$as_ln_s
10920if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010921 { echo "$as_me:$LINENO: result: yes" >&5
10922echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010923else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010924 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10925echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010926fi
10927
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010928# Extract the first word of "mv", so it can be a program name with args.
10929set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010932if test "${ac_cv_path_MV+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010935 case $MV in
10936 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010937 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10938 ;;
10939 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010946 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 -050010947 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10949 break 2
10950 fi
10951done
10952done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010953IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010955 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10956 ;;
10957esac
10958fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010959MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010960if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010961 { echo "$as_me:$LINENO: result: $MV" >&5
10962echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010963else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010964 { echo "$as_me:$LINENO: result: no" >&5
10965echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010966fi
10967
Theodore Ts'oe1052142006-10-21 21:46:47 -040010968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010969# Extract the first word of "cp", so it can be a program name with args.
10970set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010971{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10972echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973if test "${ac_cv_path_CP+set}" = set; then
10974 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010976 case $CP in
10977 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010978 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10979 ;;
10980 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10982for as_dir in $PATH
10983do
10984 IFS=$as_save_IFS
10985 test -z "$as_dir" && as_dir=.
10986 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010987 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 -050010988 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10990 break 2
10991 fi
10992done
10993done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010994IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010995
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010996 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10997 ;;
10998esac
10999fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011000CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011001if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011002 { echo "$as_me:$LINENO: result: $CP" >&5
11003echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011004else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011005 { echo "$as_me:$LINENO: result: no" >&5
11006echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011007fi
11008
Theodore Ts'oe1052142006-10-21 21:46:47 -040011009
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011010# Extract the first word of "rm", so it can be a program name with args.
11011set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011012{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11013echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011014if test "${ac_cv_path_RM+set}" = set; then
11015 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011017 case $RM in
11018 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011019 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11020 ;;
11021 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11023for as_dir in $PATH
11024do
11025 IFS=$as_save_IFS
11026 test -z "$as_dir" && as_dir=.
11027 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011028 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 -050011029 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11031 break 2
11032 fi
11033done
11034done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011035IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011036
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011037 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11038 ;;
11039esac
11040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011043 { echo "$as_me:$LINENO: result: $RM" >&5
11044echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011045else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011046 { echo "$as_me:$LINENO: result: no" >&5
11047echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011048fi
11049
Theodore Ts'oe1052142006-10-21 21:46:47 -040011050
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011051# Extract the first word of "chmod", so it can be a program name with args.
11052set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011053{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11054echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011055if test "${ac_cv_path_CHMOD+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011058 case $CHMOD in
11059 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011060 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11061 ;;
11062 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11064for as_dir in $PATH
11065do
11066 IFS=$as_save_IFS
11067 test -z "$as_dir" && as_dir=.
11068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011069 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 -050011070 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11072 break 2
11073 fi
11074done
11075done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011077
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011078 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11079 ;;
11080esac
11081fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011083if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011084 { echo "$as_me:$LINENO: result: $CHMOD" >&5
11085echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011086else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011087 { echo "$as_me:$LINENO: result: no" >&5
11088echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011089fi
11090
Theodore Ts'oe1052142006-10-21 21:46:47 -040011091
Theodore Ts'o32237012005-01-17 19:13:39 -050011092for ac_prog in gawk mawk nawk awk
11093do
11094 # Extract the first word of "$ac_prog", so it can be a program name with args.
11095set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011096{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11097echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011098if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011099 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011100else
Theodore Ts'o32237012005-01-17 19:13:39 -050011101 if test -n "$AWK"; then
11102 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11103else
11104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105for as_dir in $PATH
11106do
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011110 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 -050011111 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11114 fi
11115done
11116done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011117IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011118
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011119fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011120fi
11121AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011122if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011123 { echo "$as_me:$LINENO: result: $AWK" >&5
11124echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011125else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126 { echo "$as_me:$LINENO: result: no" >&5
11127echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011128fi
11129
Theodore Ts'oe1052142006-10-21 21:46:47 -040011130
Theodore Ts'o32237012005-01-17 19:13:39 -050011131 test -n "$AWK" && break
11132done
11133
Theodore Ts'oe1052142006-10-21 21:46:47 -040011134{ echo "$as_me:$LINENO: checking for egrep" >&5
11135echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
11136if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011137 echo $ECHO_N "(cached) $ECHO_C" >&6
11138else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011139 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11140 then ac_cv_path_EGREP="$GREP -E"
11141 else
11142 # Extract the first word of "egrep" to use in msg output
11143if test -z "$EGREP"; then
11144set dummy egrep; ac_prog_name=$2
11145if test "${ac_cv_path_EGREP+set}" = set; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11147else
11148 ac_path_EGREP_found=false
11149# Loop through the user's path and test for each of PROGNAME-LIST
11150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11151for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11152do
11153 IFS=$as_save_IFS
11154 test -z "$as_dir" && as_dir=.
11155 for ac_prog in egrep; do
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011158 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040011159 # Check for GNU ac_path_EGREP and select it if it is found.
11160 # Check for GNU $ac_path_EGREP
11161case `"$ac_path_EGREP" --version 2>&1` in
11162*GNU*)
11163 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11164*)
11165 ac_count=0
11166 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
11167 while :
11168 do
11169 cat "conftest.in" "conftest.in" >"conftest.tmp"
11170 mv "conftest.tmp" "conftest.in"
11171 cp "conftest.in" "conftest.nl"
11172 echo 'EGREP' >> "conftest.nl"
11173 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11174 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11175 ac_count=`expr $ac_count + 1`
11176 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11177 # Best one so far, save it but keep looking for a better one
11178 ac_cv_path_EGREP="$ac_path_EGREP"
11179 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011180 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011181 # 10*(2^10) chars as input seems more than enough
11182 test $ac_count -gt 10 && break
11183 done
11184 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11185esac
11186
11187
11188 $ac_path_EGREP_found && break 3
11189 done
11190done
11191
11192done
11193IFS=$as_save_IFS
11194
11195
Theodore Ts'o32237012005-01-17 19:13:39 -050011196fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011197
11198EGREP="$ac_cv_path_EGREP"
11199if test -z "$EGREP"; then
11200 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11201echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
11202 { (exit 1); exit 1; }; }
11203fi
11204
11205else
11206 ac_cv_path_EGREP=$EGREP
11207fi
11208
11209
11210 fi
11211fi
11212{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11213echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11214 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011215
11216
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011217# Extract the first word of "sed", so it can be a program name with args.
11218set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011219{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011221if test "${ac_cv_path_SED+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011224 case $SED in
11225 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011226 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11227 ;;
11228 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011235 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 -050011236 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
11241done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011242IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011243
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011244 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11245 ;;
11246esac
11247fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011249if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011250 { echo "$as_me:$LINENO: result: $SED" >&5
11251echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011252else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011253 { echo "$as_me:$LINENO: result: no" >&5
11254echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011255fi
11256
Theodore Ts'oe1052142006-10-21 21:46:47 -040011257
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011258# Extract the first word of "perl", so it can be a program name with args.
11259set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011260{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011262if test "${ac_cv_path_PERL+set}" = set; then
11263 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011264else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011265 case $PERL in
11266 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011267 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11268 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011269 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11271for as_dir in $PATH
11272do
11273 IFS=$as_save_IFS
11274 test -z "$as_dir" && as_dir=.
11275 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011276 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 -050011277 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11279 break 2
11280 fi
11281done
11282done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011283IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011285 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11286 ;;
11287esac
11288fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011290if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011291 { echo "$as_me:$LINENO: result: $PERL" >&5
11292echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011293else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011294 { echo "$as_me:$LINENO: result: no" >&5
11295echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011296fi
11297
Theodore Ts'oe1052142006-10-21 21:46:47 -040011298
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011299# Extract the first word of "ldconfig", so it can be a program name with args.
11300set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011301{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303if test "${ac_cv_path_LDCONFIG+set}" = set; then
11304 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011305else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011306 case $LDCONFIG in
11307 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011308 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11309 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011310 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312for as_dir in $PATH
11313do
11314 IFS=$as_save_IFS
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011317 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 -050011318 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11320 break 2
11321 fi
11322done
11323done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011324IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011326 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11327 ;;
11328esac
11329fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011331if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011332 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11333echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011334else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335 { echo "$as_me:$LINENO: result: no" >&5
11336echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011337fi
11338
Theodore Ts'oe1052142006-10-21 21:46:47 -040011339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011340if test -n "$ac_tool_prefix"; then
11341 # 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 +000011342set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011343{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345if test "${ac_cv_prog_AR+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347else
11348 if test -n "$AR"; then
11349 ac_cv_prog_AR="$AR" # Let the user override the test.
11350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11352for as_dir in $PATH
11353do
11354 IFS=$as_save_IFS
11355 test -z "$as_dir" && as_dir=.
11356 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011357 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 -050011358 ac_cv_prog_AR="${ac_tool_prefix}ar"
11359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11360 break 2
11361 fi
11362done
11363done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011364IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366fi
11367fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011369if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011370 { echo "$as_me:$LINENO: result: $AR" >&5
11371echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011372else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011373 { echo "$as_me:$LINENO: result: no" >&5
11374echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011375fi
11376
Theodore Ts'oe1052142006-10-21 21:46:47 -040011377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011381 # Extract the first word of "ar", so it can be a program name with args.
11382set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11386 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 if test -n "$ac_ct_AR"; then
11389 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011390else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392for as_dir in $PATH
11393do
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011397 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 -050011398 ac_cv_prog_ac_ct_AR="ar"
11399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11400 break 2
11401 fi
11402done
11403done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011404IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011405
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011406fi
11407fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408ac_ct_AR=$ac_cv_prog_ac_ct_AR
11409if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11411echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011412else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011413 { echo "$as_me:$LINENO: result: no" >&5
11414echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011415fi
11416
Theodore Ts'oe1052142006-10-21 21:46:47 -040011417 if test "x$ac_ct_AR" = x; then
11418 AR="ar"
11419 else
11420 case $cross_compiling:$ac_tool_warned in
11421yes:)
11422{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11423whose name does not start with the host triplet. If you think this
11424configuration is useful to you, please write to autoconf@gnu.org." >&5
11425echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11426whose name does not start with the host triplet. If you think this
11427configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11428ac_tool_warned=yes ;;
11429esac
11430 AR=$ac_ct_AR
11431 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011434fi
11435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436if test -n "$ac_tool_prefix"; then
11437 # 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 +000011438set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011441if test "${ac_cv_prog_RANLIB+set}" = set; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011443else
11444 if test -n "$RANLIB"; then
11445 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11446else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448for as_dir in $PATH
11449do
11450 IFS=$as_save_IFS
11451 test -z "$as_dir" && as_dir=.
11452 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011453 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 -050011454 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 break 2
11457 fi
11458done
11459done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011460IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011462fi
11463fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011465if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011466 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11467echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011468else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011469 { echo "$as_me:$LINENO: result: no" >&5
11470echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011471fi
11472
Theodore Ts'oe1052142006-10-21 21:46:47 -040011473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011475if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011477 # Extract the first word of "ranlib", so it can be a program name with args.
11478set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011479{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11480echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011481if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11482 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484 if test -n "$ac_ct_RANLIB"; then
11485 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011486else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488for as_dir in $PATH
11489do
11490 IFS=$as_save_IFS
11491 test -z "$as_dir" && as_dir=.
11492 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011493 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 -050011494 ac_cv_prog_ac_ct_RANLIB="ranlib"
11495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 break 2
11497 fi
11498done
11499done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011500IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011502fi
11503fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11505if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011506 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11507echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011509 { echo "$as_me:$LINENO: result: no" >&5
11510echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511fi
11512
Theodore Ts'oe1052142006-10-21 21:46:47 -040011513 if test "x$ac_ct_RANLIB" = x; then
11514 RANLIB=":"
11515 else
11516 case $cross_compiling:$ac_tool_warned in
11517yes:)
11518{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11519whose name does not start with the host triplet. If you think this
11520configuration is useful to you, please write to autoconf@gnu.org." >&5
11521echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11522whose name does not start with the host triplet. If you think this
11523configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11524ac_tool_warned=yes ;;
11525esac
11526 RANLIB=$ac_ct_RANLIB
11527 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530fi
11531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011532if test -n "$ac_tool_prefix"; then
11533 # 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 +000011534set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011535{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011537if test "${ac_cv_prog_STRIP+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011539else
11540 if test -n "$STRIP"; then
11541 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11542else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
11547 test -z "$as_dir" && as_dir=.
11548 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011549 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 -050011550 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11552 break 2
11553 fi
11554done
11555done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011556IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011558fi
11559fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011561if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011562 { echo "$as_me:$LINENO: result: $STRIP" >&5
11563echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011564else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011565 { echo "$as_me:$LINENO: result: no" >&5
11566echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011567fi
11568
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011573 # Extract the first word of "strip", so it can be a program name with args.
11574set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11576echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580 if test -n "$ac_ct_STRIP"; then
11581 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584for as_dir in $PATH
11585do
11586 IFS=$as_save_IFS
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011589 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 -050011590 ac_cv_prog_ac_ct_STRIP="strip"
11591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 break 2
11593 fi
11594done
11595done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011596IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598fi
11599fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011600ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11601if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11603echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011605 { echo "$as_me:$LINENO: result: no" >&5
11606echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607fi
11608
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609 if test "x$ac_ct_STRIP" = x; then
11610 STRIP=":"
11611 else
11612 case $cross_compiling:$ac_tool_warned in
11613yes:)
11614{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11615whose name does not start with the host triplet. If you think this
11616configuration is useful to you, please write to autoconf@gnu.org." >&5
11617echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11618whose name does not start with the host triplet. If you think this
11619configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11620ac_tool_warned=yes ;;
11621esac
11622 STRIP=$ac_ct_STRIP
11623 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011625 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626fi
11627
Manish Katiyar7321d942008-04-14 17:20:03 +053011628# Extract the first word of "makeinfo", so it can be a program name with args.
11629set dummy makeinfo; ac_word=$2
11630{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11631echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11632if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11633 echo $ECHO_N "(cached) $ECHO_C" >&6
11634else
11635 if test -n "$MAKEINFO"; then
11636 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11637else
11638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11639for as_dir in $PATH
11640do
11641 IFS=$as_save_IFS
11642 test -z "$as_dir" && as_dir=.
11643 for ac_exec_ext in '' $ac_executable_extensions; do
11644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11645 ac_cv_prog_MAKEINFO="makeinfo"
11646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11647 break 2
11648 fi
11649done
11650done
11651IFS=$as_save_IFS
11652
11653fi
11654fi
11655MAKEINFO=$ac_cv_prog_MAKEINFO
11656if test -n "$MAKEINFO"; then
11657 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11658echo "${ECHO_T}$MAKEINFO" >&6; }
11659else
11660 { echo "$as_me:$LINENO: result: no" >&5
11661echo "${ECHO_T}no" >&6; }
11662fi
11663
11664
11665if test "_$MAKEINFO" = "_"; then
11666 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11667else
11668 case "$MAKEINFO" in
11669 */missing.*)
11670 { echo "$as_me:$LINENO: WARNING:
11671*** Makeinfo is missing. Info documentation will not be built." >&5
11672echo "$as_me: WARNING:
11673*** Makeinfo is missing. Info documentation will not be built." >&2;}
11674 ;;
11675 *)
11676 ;;
11677 esac
11678fi
11679
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680# Find a good install program. We prefer a C program (faster),
11681# so one script is as good as another. But avoid the broken or
11682# incompatible versions:
11683# SysV /etc/install, /usr/sbin/install
11684# SunOS /usr/etc/install
11685# IRIX /sbin/install
11686# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011691# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011693{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11694echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696if test "${ac_cv_path_install+set}" = set; then
11697 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11700for as_dir in $PATH
11701do
11702 IFS=$as_save_IFS
11703 test -z "$as_dir" && as_dir=.
11704 # Account for people who put trailing slashes in PATH elements.
11705case $as_dir/ in
11706 ./ | .// | /cC/* | \
11707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11709 /usr/ucb/* ) ;;
11710 *)
11711 # OSF1 and SCO ODT 3.0 have their own names for install.
11712 # Don't use installbsd from OSF since it installs stuff as root
11713 # by default.
11714 for ac_prog in ginstall scoinst install; do
11715 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011716 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 +000011717 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011719 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 elif test $ac_prog = install &&
11722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11723 # program-specific install script used by HP pwplus--don't use.
11724 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011725 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11727 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011728 fi
11729 fi
11730 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731 done
11732 ;;
11733esac
11734done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011737
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011738fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011739 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011741 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742 # As a last resort, use the slow shell script. Don't cache a
11743 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011744 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011745 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011746 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011747 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011748fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11750echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751
11752# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11753# It thinks the first close brace ends the variable substitution.
11754test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11755
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011757
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011758test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11759
Theodore Ts'o6c133521999-07-03 20:37:03 +000011760# See if we need a separate native compiler.
11761if test $cross_compiling = no; then
11762 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763
Theodore Ts'o6c133521999-07-03 20:37:03 +000011764else
11765 for ac_prog in gcc cc
11766do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011767 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011768set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11770echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011771if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11772 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011773else
11774 if test -n "$BUILD_CC"; then
11775 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11776else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011779do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011783 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 -050011784 ac_cv_prog_BUILD_CC="$ac_prog"
11785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11786 break 2
11787 fi
11788done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011789done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011791
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792fi
11793fi
11794BUILD_CC=$ac_cv_prog_BUILD_CC
11795if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011796 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11797echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011798else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011799 { echo "$as_me:$LINENO: result: no" >&5
11800echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011801fi
11802
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804 test -n "$BUILD_CC" && break
11805done
11806
11807fi
11808
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
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011837
Theodore Ts'o106ad962007-04-04 21:26:37 -040011838
11839
Theodore Ts'o29dd9d12007-12-31 14:36:48 -050011840
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011841
11842
11843for 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 -050011844do
11845as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11848echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11849if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850 echo $ECHO_N "(cached) $ECHO_C" >&6
11851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855else
11856 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11858echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011859cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865$ac_includes_default
11866#include <$ac_header>
11867_ACEOF
11868rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011869if { (ac_try="$ac_compile"
11870case "(($ac_try" in
11871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872 *) ac_try_echo=$ac_try;;
11873esac
11874eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11875 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876 ac_status=$?
11877 grep -v '^ *+' conftest.er1 >conftest.err
11878 rm -f conftest.er1
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011881 (exit $ac_status); } && {
11882 test -z "$ac_c_werror_flag" ||
11883 test ! -s conftest.err
11884 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011885 ac_header_compiler=yes
11886else
11887 echo "$as_me: failed program was:" >&5
11888sed 's/^/| /' conftest.$ac_ext >&5
11889
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011892
11893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11894{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11895echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896
11897# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11899echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900cat >conftest.$ac_ext <<_ACEOF
11901/* confdefs.h. */
11902_ACEOF
11903cat confdefs.h >>conftest.$ac_ext
11904cat >>conftest.$ac_ext <<_ACEOF
11905/* end confdefs.h. */
11906#include <$ac_header>
11907_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011908if { (ac_try="$ac_cpp conftest.$ac_ext"
11909case "(($ac_try" in
11910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11911 *) ac_try_echo=$ac_try;;
11912esac
11913eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011920 (exit $ac_status); } >/dev/null && {
11921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 ac_header_preproc=yes
11925else
11926 echo "$as_me: failed program was:" >&5
11927sed 's/^/| /' conftest.$ac_ext >&5
11928
11929 ac_header_preproc=no
11930fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11934echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935
11936# So? What about this header?
11937case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11938 yes:no: )
11939 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11940echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11941 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11942echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11943 ac_header_preproc=yes
11944 ;;
11945 no:yes:* )
11946 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11947echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11948 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11949echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11950 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11951echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11952 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11953echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11955echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11956 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11957echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011959 ;;
11960esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11962echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11963if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 eval "$as_ac_Header=\$ac_header_preproc"
11967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011968ac_res=`eval echo '${'$as_ac_Header'}'`
11969 { echo "$as_me:$LINENO: result: $ac_res" >&5
11970echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971
11972fi
11973if test `eval echo '${'$as_ac_Header'}'` = yes; then
11974 cat >>confdefs.h <<_ACEOF
11975#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11976_ACEOF
11977
11978fi
11979
11980done
11981
11982
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011983
11984for ac_header in sys/disk.h sys/mount.h
11985do
11986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011987{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11988echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011990 echo $ECHO_N "(cached) $ECHO_C" >&6
11991else
11992 cat >conftest.$ac_ext <<_ACEOF
11993/* confdefs.h. */
11994_ACEOF
11995cat confdefs.h >>conftest.$ac_ext
11996cat >>conftest.$ac_ext <<_ACEOF
11997/* end confdefs.h. */
11998
11999#if HAVE_SYS_QUEUE_H
12000#include <sys/queue.h>
12001#endif
12002
12003
12004#include <$ac_header>
12005_ACEOF
12006rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012007if { (ac_try="$ac_compile"
12008case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12011esac
12012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012014 ac_status=$?
12015 grep -v '^ *+' conftest.er1 >conftest.err
12016 rm -f conftest.er1
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012023 eval "$as_ac_Header=yes"
12024else
12025 echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012030
12031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012033ac_res=`eval echo '${'$as_ac_Header'}'`
12034 { echo "$as_me:$LINENO: result: $ac_res" >&5
12035echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012036if test `eval echo '${'$as_ac_Header'}'` = yes; then
12037 cat >>confdefs.h <<_ACEOF
12038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12039_ACEOF
12040
12041fi
12042
12043done
12044
12045
12046for ac_header in net/if.h
12047do
12048as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012049{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12050echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12051if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012052 echo $ECHO_N "(cached) $ECHO_C" >&6
12053else
12054 cat >conftest.$ac_ext <<_ACEOF
12055/* confdefs.h. */
12056_ACEOF
12057cat confdefs.h >>conftest.$ac_ext
12058cat >>conftest.$ac_ext <<_ACEOF
12059/* end confdefs.h. */
12060
12061#if HAVE_SYS_TYPES_H
12062#include <sys/types.h>
12063#endif
12064#if HAVE_SYS_SOCKET
12065#include <sys/socket.h>
12066#endif
12067
12068
12069#include <$ac_header>
12070_ACEOF
12071rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012072if { (ac_try="$ac_compile"
12073case "(($ac_try" in
12074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075 *) ac_try_echo=$ac_try;;
12076esac
12077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012079 ac_status=$?
12080 grep -v '^ *+' conftest.er1 >conftest.err
12081 rm -f conftest.er1
12082 cat conftest.err >&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012084 (exit $ac_status); } && {
12085 test -z "$ac_c_werror_flag" ||
12086 test ! -s conftest.err
12087 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012088 eval "$as_ac_Header=yes"
12089else
12090 echo "$as_me: failed program was:" >&5
12091sed 's/^/| /' conftest.$ac_ext >&5
12092
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012094fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012095
12096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012097fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012098ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012101if test `eval echo '${'$as_ac_Header'}'` = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12104_ACEOF
12105
12106fi
12107
12108done
12109
12110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111for ac_func in vprintf
12112do
12113as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12115echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12116if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117 echo $ECHO_N "(cached) $ECHO_C" >&6
12118else
12119 cat >conftest.$ac_ext <<_ACEOF
12120/* confdefs.h. */
12121_ACEOF
12122cat confdefs.h >>conftest.$ac_ext
12123cat >>conftest.$ac_ext <<_ACEOF
12124/* end confdefs.h. */
12125/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12127#define $ac_func innocuous_$ac_func
12128
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012129/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012130 which can conflict with char $ac_func (); below.
12131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12132 <limits.h> exists even on freestanding compilers. */
12133
12134#ifdef __STDC__
12135# include <limits.h>
12136#else
12137# include <assert.h>
12138#endif
12139
12140#undef $ac_func
12141
Theodore Ts'oe1052142006-10-21 21:46:47 -040012142/* Override any GCC internal prototype to avoid an error.
12143 Use char because int might match the return type of a GCC
12144 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012145#ifdef __cplusplus
12146extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149/* The GNU C library defines this for functions which it implements
12150 to always fail with ENOSYS. Some functions are actually named
12151 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012154#endif
12155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156int
12157main ()
12158{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012159return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 ;
12161 return 0;
12162}
12163_ACEOF
12164rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165if { (ac_try="$ac_link"
12166case "(($ac_try" in
12167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12168 *) ac_try_echo=$ac_try;;
12169esac
12170eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12171 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 ac_status=$?
12173 grep -v '^ *+' conftest.er1 >conftest.err
12174 rm -f conftest.er1
12175 cat conftest.err >&5
12176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012177 (exit $ac_status); } && {
12178 test -z "$ac_c_werror_flag" ||
12179 test ! -s conftest.err
12180 } && test -s conftest$ac_exeext &&
12181 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 echo "$as_me: failed program was:" >&5
12185sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012186
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012190rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012191 conftest$ac_exeext conftest.$ac_ext
12192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012193ac_res=`eval echo '${'$as_ac_var'}'`
12194 { echo "$as_me:$LINENO: result: $ac_res" >&5
12195echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196if test `eval echo '${'$as_ac_var'}'` = yes; then
12197 cat >>confdefs.h <<_ACEOF
12198#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12199_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012200
Theodore Ts'oe1052142006-10-21 21:46:47 -040012201{ echo "$as_me:$LINENO: checking for _doprnt" >&5
12202echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203if test "${ac_cv_func__doprnt+set}" = set; then
12204 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206 cat >conftest.$ac_ext <<_ACEOF
12207/* confdefs.h. */
12208_ACEOF
12209cat confdefs.h >>conftest.$ac_ext
12210cat >>conftest.$ac_ext <<_ACEOF
12211/* end confdefs.h. */
12212/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12214#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012215
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012217 which can conflict with char _doprnt (); below.
12218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12219 <limits.h> exists even on freestanding compilers. */
12220
12221#ifdef __STDC__
12222# include <limits.h>
12223#else
12224# include <assert.h>
12225#endif
12226
12227#undef _doprnt
12228
Theodore Ts'oe1052142006-10-21 21:46:47 -040012229/* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232#ifdef __cplusplus
12233extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012234#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236/* The GNU C library defines this for functions which it implements
12237 to always fail with ENOSYS. Some functions are actually named
12238 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012239#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012240choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241#endif
12242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243int
12244main ()
12245{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247 ;
12248 return 0;
12249}
12250_ACEOF
12251rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252if { (ac_try="$ac_link"
12253case "(($ac_try" in
12254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12255 *) ac_try_echo=$ac_try;;
12256esac
12257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259 ac_status=$?
12260 grep -v '^ *+' conftest.er1 >conftest.err
12261 rm -f conftest.er1
12262 cat conftest.err >&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest$ac_exeext &&
12268 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012271 echo "$as_me: failed program was:" >&5
12272sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012273
Theodore Ts'oe1052142006-10-21 21:46:47 -040012274 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012275fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012276
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 conftest$ac_exeext conftest.$ac_ext
12279fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012280{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12281echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012282if test $ac_cv_func__doprnt = yes; then
12283
12284cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012285#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012286_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012287
12288fi
12289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290fi
12291done
12292
12293
Theodore Ts'oe1052142006-10-21 21:46:47 -040012294{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12295echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012296if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012297 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012299 cat >conftest.$ac_ext <<_ACEOF
12300/* confdefs.h. */
12301_ACEOF
12302cat confdefs.h >>conftest.$ac_ext
12303cat >>conftest.$ac_ext <<_ACEOF
12304/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012305#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307int
12308main ()
12309{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012310static struct dirent ac_aggr;
12311if (ac_aggr.d_reclen)
12312return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 ;
12314 return 0;
12315}
12316_ACEOF
12317rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012318if { (ac_try="$ac_compile"
12319case "(($ac_try" in
12320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321 *) ac_try_echo=$ac_try;;
12322esac
12323eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 ac_status=$?
12326 grep -v '^ *+' conftest.er1 >conftest.err
12327 rm -f conftest.er1
12328 cat conftest.err >&5
12329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012330 (exit $ac_status); } && {
12331 test -z "$ac_c_werror_flag" ||
12332 test ! -s conftest.err
12333 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012334 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 echo "$as_me: failed program was:" >&5
12337sed 's/^/| /' conftest.$ac_ext >&5
12338
Theodore Ts'oe1052142006-10-21 21:46:47 -040012339 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012340/* confdefs.h. */
12341_ACEOF
12342cat confdefs.h >>conftest.$ac_ext
12343cat >>conftest.$ac_ext <<_ACEOF
12344/* end confdefs.h. */
12345#include <dirent.h>
12346
12347int
12348main ()
12349{
12350static struct dirent ac_aggr;
12351if (sizeof ac_aggr.d_reclen)
12352return 0;
12353 ;
12354 return 0;
12355}
12356_ACEOF
12357rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012358if { (ac_try="$ac_compile"
12359case "(($ac_try" in
12360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12361 *) ac_try_echo=$ac_try;;
12362esac
12363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12364 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012365 ac_status=$?
12366 grep -v '^ *+' conftest.er1 >conftest.err
12367 rm -f conftest.er1
12368 cat conftest.err >&5
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012370 (exit $ac_status); } && {
12371 test -z "$ac_c_werror_flag" ||
12372 test ! -s conftest.err
12373 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012374 ac_cv_member_struct_dirent_d_reclen=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
Theodore Ts'oe1052142006-10-21 21:46:47 -040012379 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012381
12382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012383fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384
12385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012386fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012387{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12388echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012389if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12390 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012391#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012392_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012393
12394fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012395
Theodore Ts'oe1052142006-10-21 21:46:47 -040012396{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12397echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012398if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012399 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401 cat >conftest.$ac_ext <<_ACEOF
12402/* confdefs.h. */
12403_ACEOF
12404cat confdefs.h >>conftest.$ac_ext
12405cat >>conftest.$ac_ext <<_ACEOF
12406/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012407#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012408
Theodore Ts'oe1052142006-10-21 21:46:47 -040012409typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410int
12411main ()
12412{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012413if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012414 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012415if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012416 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012417 ;
12418 return 0;
12419}
12420_ACEOF
12421rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012422if { (ac_try="$ac_compile"
12423case "(($ac_try" in
12424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12426esac
12427eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012438 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012439else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012440 echo "$as_me: failed program was:" >&5
12441sed 's/^/| /' conftest.$ac_ext >&5
12442
Theodore Ts'oe1052142006-10-21 21:46:47 -040012443 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012445
12446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12449echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012450if test $ac_cv_type_ssize_t = yes; then
12451 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012452#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012454
12455fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456
Theodore Ts'oe1052142006-10-21 21:46:47 -040012457{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12458echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012459if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012461else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462 cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012468#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012470int
12471main ()
12472{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012473#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012474 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012475#endif
12476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477 ;
12478 return 0;
12479}
12480_ACEOF
12481rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012482if { (ac_try="$ac_compile"
12483case "(($ac_try" in
12484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12485 *) ac_try_echo=$ac_try;;
12486esac
12487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12488 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489 ac_status=$?
12490 grep -v '^ *+' conftest.er1 >conftest.err
12491 rm -f conftest.er1
12492 cat conftest.err >&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012494 (exit $ac_status); } && {
12495 test -z "$ac_c_werror_flag" ||
12496 test ! -s conftest.err
12497 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012498 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012500 echo "$as_me: failed program was:" >&5
12501sed 's/^/| /' conftest.$ac_ext >&5
12502
Theodore Ts'oe1052142006-10-21 21:46:47 -040012503 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012505
12506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012508{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12509echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012510if test $ac_cv_have_decl_llseek = yes; then
12511 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012512#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012514
12515fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012516
Theodore Ts'oe1052142006-10-21 21:46:47 -040012517{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12518echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012519if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522 cat >conftest.$ac_ext <<_ACEOF
12523/* confdefs.h. */
12524_ACEOF
12525cat confdefs.h >>conftest.$ac_ext
12526cat >>conftest.$ac_ext <<_ACEOF
12527/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012528#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012529 #define _LARGEFILE64_SOURCE
12530 #include <unistd.h>
12531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532int
12533main ()
12534{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012535#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012536 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012537#endif
12538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539 ;
12540 return 0;
12541}
12542_ACEOF
12543rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012544if { (ac_try="$ac_compile"
12545case "(($ac_try" in
12546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12547 *) ac_try_echo=$ac_try;;
12548esac
12549eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551 ac_status=$?
12552 grep -v '^ *+' conftest.er1 >conftest.err
12553 rm -f conftest.er1
12554 cat conftest.err >&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012560 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012562 echo "$as_me: failed program was:" >&5
12563sed 's/^/| /' conftest.$ac_ext >&5
12564
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012567
12568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012569fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12571echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012572if test $ac_cv_have_decl_lseek64 = yes; then
12573 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012574#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012575_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012576
12577fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012578
Theodore Ts'oe1052142006-10-21 21:46:47 -040012579{ echo "$as_me:$LINENO: checking for short" >&5
12580echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012581if test "${ac_cv_type_short+set}" = set; then
12582 echo $ECHO_N "(cached) $ECHO_C" >&6
12583else
12584 cat >conftest.$ac_ext <<_ACEOF
12585/* confdefs.h. */
12586_ACEOF
12587cat confdefs.h >>conftest.$ac_ext
12588cat >>conftest.$ac_ext <<_ACEOF
12589/* end confdefs.h. */
12590$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012591typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012592int
12593main ()
12594{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012595if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598 return 0;
12599 ;
12600 return 0;
12601}
12602_ACEOF
12603rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012604if { (ac_try="$ac_compile"
12605case "(($ac_try" in
12606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12607 *) ac_try_echo=$ac_try;;
12608esac
12609eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012611 ac_status=$?
12612 grep -v '^ *+' conftest.er1 >conftest.err
12613 rm -f conftest.er1
12614 cat conftest.err >&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620 ac_cv_type_short=yes
12621else
12622 echo "$as_me: failed program was:" >&5
12623sed 's/^/| /' conftest.$ac_ext >&5
12624
Theodore Ts'oe1052142006-10-21 21:46:47 -040012625 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012626fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627
Theodore Ts'oe1052142006-10-21 21:46:47 -040012628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629fi
12630{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12631echo "${ECHO_T}$ac_cv_type_short" >&6; }
12632
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012633# The cast to long int works around a bug in the HP C Compiler
12634# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12635# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12636# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637{ echo "$as_me:$LINENO: checking size of short" >&5
12638echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639if test "${ac_cv_sizeof_short+set}" = set; then
12640 echo $ECHO_N "(cached) $ECHO_C" >&6
12641else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012642 if test "$cross_compiling" = yes; then
12643 # Depending upon the size, compute the lo and hi bounds.
12644cat >conftest.$ac_ext <<_ACEOF
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012651 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012652int
12653main ()
12654{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012655static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012656test_array [0] = 0
12657
12658 ;
12659 return 0;
12660}
12661_ACEOF
12662rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012663if { (ac_try="$ac_compile"
12664case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667esac
12668eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679 ac_lo=0 ac_mid=0
12680 while :; do
12681 cat >conftest.$ac_ext <<_ACEOF
12682/* confdefs.h. */
12683_ACEOF
12684cat confdefs.h >>conftest.$ac_ext
12685cat >>conftest.$ac_ext <<_ACEOF
12686/* end confdefs.h. */
12687$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012688 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689int
12690main ()
12691{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012692static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012693test_array [0] = 0
12694
12695 ;
12696 return 0;
12697}
12698_ACEOF
12699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012700if { (ac_try="$ac_compile"
12701case "(($ac_try" in
12702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12704esac
12705eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012707 ac_status=$?
12708 grep -v '^ *+' conftest.er1 >conftest.err
12709 rm -f conftest.er1
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012712 (exit $ac_status); } && {
12713 test -z "$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12715 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716 ac_hi=$ac_mid; break
12717else
12718 echo "$as_me: failed program was:" >&5
12719sed 's/^/| /' conftest.$ac_ext >&5
12720
Theodore Ts'oe1052142006-10-21 21:46:47 -040012721 ac_lo=`expr $ac_mid + 1`
12722 if test $ac_lo -le $ac_mid; then
12723 ac_lo= ac_hi=
12724 break
12725 fi
12726 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012728
12729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012730 done
12731else
12732 echo "$as_me: failed program was:" >&5
12733sed 's/^/| /' conftest.$ac_ext >&5
12734
Theodore Ts'oe1052142006-10-21 21:46:47 -040012735 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736/* confdefs.h. */
12737_ACEOF
12738cat confdefs.h >>conftest.$ac_ext
12739cat >>conftest.$ac_ext <<_ACEOF
12740/* end confdefs.h. */
12741$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012742 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743int
12744main ()
12745{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012746static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747test_array [0] = 0
12748
12749 ;
12750 return 0;
12751}
12752_ACEOF
12753rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012754if { (ac_try="$ac_compile"
12755case "(($ac_try" in
12756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12757 *) ac_try_echo=$ac_try;;
12758esac
12759eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12760 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012761 ac_status=$?
12762 grep -v '^ *+' conftest.er1 >conftest.err
12763 rm -f conftest.er1
12764 cat conftest.err >&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012766 (exit $ac_status); } && {
12767 test -z "$ac_c_werror_flag" ||
12768 test ! -s conftest.err
12769 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770 ac_hi=-1 ac_mid=-1
12771 while :; do
12772 cat >conftest.$ac_ext <<_ACEOF
12773/* confdefs.h. */
12774_ACEOF
12775cat confdefs.h >>conftest.$ac_ext
12776cat >>conftest.$ac_ext <<_ACEOF
12777/* end confdefs.h. */
12778$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012779 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780int
12781main ()
12782{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012783static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012784test_array [0] = 0
12785
12786 ;
12787 return 0;
12788}
12789_ACEOF
12790rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791if { (ac_try="$ac_compile"
12792case "(($ac_try" in
12793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12794 *) ac_try_echo=$ac_try;;
12795esac
12796eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12797 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012798 ac_status=$?
12799 grep -v '^ *+' conftest.er1 >conftest.err
12800 rm -f conftest.er1
12801 cat conftest.err >&5
12802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012803 (exit $ac_status); } && {
12804 test -z "$ac_c_werror_flag" ||
12805 test ! -s conftest.err
12806 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012807 ac_lo=$ac_mid; break
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
Theodore Ts'oe1052142006-10-21 21:46:47 -040012812 ac_hi=`expr '(' $ac_mid ')' - 1`
12813 if test $ac_mid -le $ac_hi; then
12814 ac_lo= ac_hi=
12815 break
12816 fi
12817 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819
12820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012821 done
12822else
12823 echo "$as_me: failed program was:" >&5
12824sed 's/^/| /' conftest.$ac_ext >&5
12825
Theodore Ts'oe1052142006-10-21 21:46:47 -040012826 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012827fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012828
12829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012831
12832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012833# Binary search between lo and hi bounds.
12834while test "x$ac_lo" != "x$ac_hi"; do
12835 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12836 cat >conftest.$ac_ext <<_ACEOF
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012843 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012844int
12845main ()
12846{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012847static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848test_array [0] = 0
12849
12850 ;
12851 return 0;
12852}
12853_ACEOF
12854rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012855if { (ac_try="$ac_compile"
12856case "(($ac_try" in
12857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12858 *) ac_try_echo=$ac_try;;
12859esac
12860eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12861 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012862 ac_status=$?
12863 grep -v '^ *+' conftest.er1 >conftest.err
12864 rm -f conftest.er1
12865 cat conftest.err >&5
12866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012867 (exit $ac_status); } && {
12868 test -z "$ac_c_werror_flag" ||
12869 test ! -s conftest.err
12870 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871 ac_hi=$ac_mid
12872else
12873 echo "$as_me: failed program was:" >&5
12874sed 's/^/| /' conftest.$ac_ext >&5
12875
Theodore Ts'oe1052142006-10-21 21:46:47 -040012876 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012878
12879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012880done
12881case $ac_lo in
12882?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012883'') if test "$ac_cv_type_short" = yes; then
12884 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012885See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012888 { (exit 77); exit 77; }; }
12889 else
12890 ac_cv_sizeof_short=0
12891 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012893else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894 cat >conftest.$ac_ext <<_ACEOF
12895/* confdefs.h. */
12896_ACEOF
12897cat confdefs.h >>conftest.$ac_ext
12898cat >>conftest.$ac_ext <<_ACEOF
12899/* end confdefs.h. */
12900$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012901 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012902static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12903static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012904#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012905#include <stdlib.h>
12906int
12907main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012908{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909
12910 FILE *f = fopen ("conftest.val", "w");
12911 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012912 return 1;
12913 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012915 long int i = longval ();
12916 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12917 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918 fprintf (f, "%ld\n", i);
12919 }
12920 else
12921 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922 unsigned long int i = ulongval ();
12923 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12924 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925 fprintf (f, "%lu\n", i);
12926 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012927 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012928
12929 ;
12930 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012931}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012932_ACEOF
12933rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012934if { (ac_try="$ac_link"
12935case "(($ac_try" in
12936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12937 *) ac_try_echo=$ac_try;;
12938esac
12939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12940 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941 ac_status=$?
12942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012944 { (case "(($ac_try" in
12945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12946 *) ac_try_echo=$ac_try;;
12947esac
12948eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12949 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950 ac_status=$?
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); }; }; then
12953 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012954else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012955 echo "$as_me: program exited with status $ac_status" >&5
12956echo "$as_me: failed program was:" >&5
12957sed 's/^/| /' conftest.$ac_ext >&5
12958
12959( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012960if test "$ac_cv_type_short" = yes; then
12961 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012962See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012963echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012965 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012966 else
12967 ac_cv_sizeof_short=0
12968 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012970rm -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 -050012971fi
12972rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012974{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12975echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012976
12977
12978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012979cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012980#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012982
12983
Theodore Ts'oe1052142006-10-21 21:46:47 -040012984{ echo "$as_me:$LINENO: checking for int" >&5
12985echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012986if test "${ac_cv_type_int+set}" = set; then
12987 echo $ECHO_N "(cached) $ECHO_C" >&6
12988else
12989 cat >conftest.$ac_ext <<_ACEOF
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012996typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997int
12998main ()
12999{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013000if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013002if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003 return 0;
13004 ;
13005 return 0;
13006}
13007_ACEOF
13008rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009if { (ac_try="$ac_compile"
13010case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013esac
13014eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013016 ac_status=$?
13017 grep -v '^ *+' conftest.er1 >conftest.err
13018 rm -f conftest.er1
13019 cat conftest.err >&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013021 (exit $ac_status); } && {
13022 test -z "$ac_c_werror_flag" ||
13023 test ! -s conftest.err
13024 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013025 ac_cv_type_int=yes
13026else
13027 echo "$as_me: failed program was:" >&5
13028sed 's/^/| /' conftest.$ac_ext >&5
13029
Theodore Ts'oe1052142006-10-21 21:46:47 -040013030 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032
Theodore Ts'oe1052142006-10-21 21:46:47 -040013033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13034fi
13035{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13036echo "${ECHO_T}$ac_cv_type_int" >&6; }
13037
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013038# The cast to long int works around a bug in the HP C Compiler
13039# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13040# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13041# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013042{ echo "$as_me:$LINENO: checking size of int" >&5
13043echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044if test "${ac_cv_sizeof_int+set}" = set; then
13045 echo $ECHO_N "(cached) $ECHO_C" >&6
13046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047 if test "$cross_compiling" = yes; then
13048 # Depending upon the size, compute the lo and hi bounds.
13049cat >conftest.$ac_ext <<_ACEOF
13050/* confdefs.h. */
13051_ACEOF
13052cat confdefs.h >>conftest.$ac_ext
13053cat >>conftest.$ac_ext <<_ACEOF
13054/* end confdefs.h. */
13055$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013056 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057int
13058main ()
13059{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013061test_array [0] = 0
13062
13063 ;
13064 return 0;
13065}
13066_ACEOF
13067rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013068if { (ac_try="$ac_compile"
13069case "(($ac_try" in
13070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13072esac
13073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084 ac_lo=0 ac_mid=0
13085 while :; do
13086 cat >conftest.$ac_ext <<_ACEOF
13087/* confdefs.h. */
13088_ACEOF
13089cat confdefs.h >>conftest.$ac_ext
13090cat >>conftest.$ac_ext <<_ACEOF
13091/* end confdefs.h. */
13092$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013093 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094int
13095main ()
13096{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013097static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013098test_array [0] = 0
13099
13100 ;
13101 return 0;
13102}
13103_ACEOF
13104rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013105if { (ac_try="$ac_compile"
13106case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109esac
13110eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013112 ac_status=$?
13113 grep -v '^ *+' conftest.er1 >conftest.err
13114 rm -f conftest.er1
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013117 (exit $ac_status); } && {
13118 test -z "$ac_c_werror_flag" ||
13119 test ! -s conftest.err
13120 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121 ac_hi=$ac_mid; break
13122else
13123 echo "$as_me: failed program was:" >&5
13124sed 's/^/| /' conftest.$ac_ext >&5
13125
Theodore Ts'oe1052142006-10-21 21:46:47 -040013126 ac_lo=`expr $ac_mid + 1`
13127 if test $ac_lo -le $ac_mid; then
13128 ac_lo= ac_hi=
13129 break
13130 fi
13131 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013132fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013133
13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135 done
13136else
13137 echo "$as_me: failed program was:" >&5
13138sed 's/^/| /' conftest.$ac_ext >&5
13139
Theodore Ts'oe1052142006-10-21 21:46:47 -040013140 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013141/* confdefs.h. */
13142_ACEOF
13143cat confdefs.h >>conftest.$ac_ext
13144cat >>conftest.$ac_ext <<_ACEOF
13145/* end confdefs.h. */
13146$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013147 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013148int
13149main ()
13150{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013151static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013152test_array [0] = 0
13153
13154 ;
13155 return 0;
13156}
13157_ACEOF
13158rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013159if { (ac_try="$ac_compile"
13160case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13163esac
13164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013166 ac_status=$?
13167 grep -v '^ *+' conftest.er1 >conftest.err
13168 rm -f conftest.er1
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175 ac_hi=-1 ac_mid=-1
13176 while :; do
13177 cat >conftest.$ac_ext <<_ACEOF
13178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
13183$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013184 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013185int
13186main ()
13187{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013188static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013189test_array [0] = 0
13190
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013196if { (ac_try="$ac_compile"
13197case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13200esac
13201eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013203 ac_status=$?
13204 grep -v '^ *+' conftest.er1 >conftest.err
13205 rm -f conftest.er1
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013212 ac_lo=$ac_mid; break
13213else
13214 echo "$as_me: failed program was:" >&5
13215sed 's/^/| /' conftest.$ac_ext >&5
13216
Theodore Ts'oe1052142006-10-21 21:46:47 -040013217 ac_hi=`expr '(' $ac_mid ')' - 1`
13218 if test $ac_mid -le $ac_hi; then
13219 ac_lo= ac_hi=
13220 break
13221 fi
13222 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013223fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013224
13225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226 done
13227else
13228 echo "$as_me: failed program was:" >&5
13229sed 's/^/| /' conftest.$ac_ext >&5
13230
Theodore Ts'oe1052142006-10-21 21:46:47 -040013231 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013232fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013233
13234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013235fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013236
13237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238# Binary search between lo and hi bounds.
13239while test "x$ac_lo" != "x$ac_hi"; do
13240 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13241 cat >conftest.$ac_ext <<_ACEOF
13242/* confdefs.h. */
13243_ACEOF
13244cat confdefs.h >>conftest.$ac_ext
13245cat >>conftest.$ac_ext <<_ACEOF
13246/* end confdefs.h. */
13247$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013248 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013249int
13250main ()
13251{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013252static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013253test_array [0] = 0
13254
13255 ;
13256 return 0;
13257}
13258_ACEOF
13259rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013260if { (ac_try="$ac_compile"
13261case "(($ac_try" in
13262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13263 *) ac_try_echo=$ac_try;;
13264esac
13265eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13266 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013267 ac_status=$?
13268 grep -v '^ *+' conftest.er1 >conftest.err
13269 rm -f conftest.er1
13270 cat conftest.err >&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013272 (exit $ac_status); } && {
13273 test -z "$ac_c_werror_flag" ||
13274 test ! -s conftest.err
13275 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013276 ac_hi=$ac_mid
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
Theodore Ts'oe1052142006-10-21 21:46:47 -040013281 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013282fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013283
13284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013285done
13286case $ac_lo in
13287?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013288'') if test "$ac_cv_type_int" = yes; then
13289 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013290See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013292See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013293 { (exit 77); exit 77; }; }
13294 else
13295 ac_cv_sizeof_int=0
13296 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013297esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013299 cat >conftest.$ac_ext <<_ACEOF
13300/* confdefs.h. */
13301_ACEOF
13302cat confdefs.h >>conftest.$ac_ext
13303cat >>conftest.$ac_ext <<_ACEOF
13304/* end confdefs.h. */
13305$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013306 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013307static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13308static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013309#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013310#include <stdlib.h>
13311int
13312main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013313{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013314
13315 FILE *f = fopen ("conftest.val", "w");
13316 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013317 return 1;
13318 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013319 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013320 long int i = longval ();
13321 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13322 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013323 fprintf (f, "%ld\n", i);
13324 }
13325 else
13326 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013327 unsigned long int i = ulongval ();
13328 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13329 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013330 fprintf (f, "%lu\n", i);
13331 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013332 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013333
13334 ;
13335 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013336}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013337_ACEOF
13338rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013339if { (ac_try="$ac_link"
13340case "(($ac_try" in
13341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13342 *) ac_try_echo=$ac_try;;
13343esac
13344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346 ac_status=$?
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013349 { (case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352esac
13353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13354 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013355 ac_status=$?
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; }; then
13358 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013359else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013360 echo "$as_me: program exited with status $ac_status" >&5
13361echo "$as_me: failed program was:" >&5
13362sed 's/^/| /' conftest.$ac_ext >&5
13363
13364( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013365if test "$ac_cv_type_int" = yes; then
13366 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013368echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013371 else
13372 ac_cv_sizeof_int=0
13373 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013375rm -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 -050013376fi
13377rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013378fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013379{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13380echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013381
13382
13383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013384cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013385#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013386_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013387
13388
Theodore Ts'oe1052142006-10-21 21:46:47 -040013389{ echo "$as_me:$LINENO: checking for long" >&5
13390echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013391if test "${ac_cv_type_long+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13393else
13394 cat >conftest.$ac_ext <<_ACEOF
13395/* confdefs.h. */
13396_ACEOF
13397cat confdefs.h >>conftest.$ac_ext
13398cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */
13400$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013401typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402int
13403main ()
13404{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013405if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013406 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013407if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013408 return 0;
13409 ;
13410 return 0;
13411}
13412_ACEOF
13413rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013414if { (ac_try="$ac_compile"
13415case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13418esac
13419eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013421 ac_status=$?
13422 grep -v '^ *+' conftest.er1 >conftest.err
13423 rm -f conftest.er1
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013430 ac_cv_type_long=yes
13431else
13432 echo "$as_me: failed program was:" >&5
13433sed 's/^/| /' conftest.$ac_ext >&5
13434
Theodore Ts'oe1052142006-10-21 21:46:47 -040013435 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013436fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013437
Theodore Ts'oe1052142006-10-21 21:46:47 -040013438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439fi
13440{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13441echo "${ECHO_T}$ac_cv_type_long" >&6; }
13442
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013443# The cast to long int works around a bug in the HP C Compiler
13444# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13445# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13446# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013447{ echo "$as_me:$LINENO: checking size of long" >&5
13448echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449if test "${ac_cv_sizeof_long+set}" = set; then
13450 echo $ECHO_N "(cached) $ECHO_C" >&6
13451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452 if test "$cross_compiling" = yes; then
13453 # Depending upon the size, compute the lo and hi bounds.
13454cat >conftest.$ac_ext <<_ACEOF
13455/* confdefs.h. */
13456_ACEOF
13457cat confdefs.h >>conftest.$ac_ext
13458cat >>conftest.$ac_ext <<_ACEOF
13459/* end confdefs.h. */
13460$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013461 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013462int
13463main ()
13464{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013466test_array [0] = 0
13467
13468 ;
13469 return 0;
13470}
13471_ACEOF
13472rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013473if { (ac_try="$ac_compile"
13474case "(($ac_try" in
13475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13476 *) ac_try_echo=$ac_try;;
13477esac
13478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013480 ac_status=$?
13481 grep -v '^ *+' conftest.er1 >conftest.err
13482 rm -f conftest.er1
13483 cat conftest.err >&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013485 (exit $ac_status); } && {
13486 test -z "$ac_c_werror_flag" ||
13487 test ! -s conftest.err
13488 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489 ac_lo=0 ac_mid=0
13490 while :; do
13491 cat >conftest.$ac_ext <<_ACEOF
13492/* confdefs.h. */
13493_ACEOF
13494cat confdefs.h >>conftest.$ac_ext
13495cat >>conftest.$ac_ext <<_ACEOF
13496/* end confdefs.h. */
13497$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013498 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013499int
13500main ()
13501{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013502static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503test_array [0] = 0
13504
13505 ;
13506 return 0;
13507}
13508_ACEOF
13509rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013510if { (ac_try="$ac_compile"
13511case "(($ac_try" in
13512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13513 *) ac_try_echo=$ac_try;;
13514esac
13515eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013517 ac_status=$?
13518 grep -v '^ *+' conftest.er1 >conftest.err
13519 rm -f conftest.er1
13520 cat conftest.err >&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013522 (exit $ac_status); } && {
13523 test -z "$ac_c_werror_flag" ||
13524 test ! -s conftest.err
13525 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526 ac_hi=$ac_mid; break
13527else
13528 echo "$as_me: failed program was:" >&5
13529sed 's/^/| /' conftest.$ac_ext >&5
13530
Theodore Ts'oe1052142006-10-21 21:46:47 -040013531 ac_lo=`expr $ac_mid + 1`
13532 if test $ac_lo -le $ac_mid; then
13533 ac_lo= ac_hi=
13534 break
13535 fi
13536 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013538
13539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540 done
13541else
13542 echo "$as_me: failed program was:" >&5
13543sed 's/^/| /' conftest.$ac_ext >&5
13544
Theodore Ts'oe1052142006-10-21 21:46:47 -040013545 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013552 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013553int
13554main ()
13555{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557test_array [0] = 0
13558
13559 ;
13560 return 0;
13561}
13562_ACEOF
13563rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013564if { (ac_try="$ac_compile"
13565case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013571 ac_status=$?
13572 grep -v '^ *+' conftest.er1 >conftest.err
13573 rm -f conftest.er1
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580 ac_hi=-1 ac_mid=-1
13581 while :; do
13582 cat >conftest.$ac_ext <<_ACEOF
13583/* confdefs.h. */
13584_ACEOF
13585cat confdefs.h >>conftest.$ac_ext
13586cat >>conftest.$ac_ext <<_ACEOF
13587/* end confdefs.h. */
13588$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013589 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013590int
13591main ()
13592{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013593static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594test_array [0] = 0
13595
13596 ;
13597 return 0;
13598}
13599_ACEOF
13600rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013601if { (ac_try="$ac_compile"
13602case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13605esac
13606eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013608 ac_status=$?
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013613 (exit $ac_status); } && {
13614 test -z "$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13616 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617 ac_lo=$ac_mid; break
13618else
13619 echo "$as_me: failed program was:" >&5
13620sed 's/^/| /' conftest.$ac_ext >&5
13621
Theodore Ts'oe1052142006-10-21 21:46:47 -040013622 ac_hi=`expr '(' $ac_mid ')' - 1`
13623 if test $ac_mid -le $ac_hi; then
13624 ac_lo= ac_hi=
13625 break
13626 fi
13627 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013629
13630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013631 done
13632else
13633 echo "$as_me: failed program was:" >&5
13634sed 's/^/| /' conftest.$ac_ext >&5
13635
Theodore Ts'oe1052142006-10-21 21:46:47 -040013636 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013637fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638
13639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013641
13642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643# Binary search between lo and hi bounds.
13644while test "x$ac_lo" != "x$ac_hi"; do
13645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13646 cat >conftest.$ac_ext <<_ACEOF
13647/* confdefs.h. */
13648_ACEOF
13649cat confdefs.h >>conftest.$ac_ext
13650cat >>conftest.$ac_ext <<_ACEOF
13651/* end confdefs.h. */
13652$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013653 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013654int
13655main ()
13656{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013657static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013658test_array [0] = 0
13659
13660 ;
13661 return 0;
13662}
13663_ACEOF
13664rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013665if { (ac_try="$ac_compile"
13666case "(($ac_try" in
13667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13668 *) ac_try_echo=$ac_try;;
13669esac
13670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013672 ac_status=$?
13673 grep -v '^ *+' conftest.er1 >conftest.err
13674 rm -f conftest.er1
13675 cat conftest.err >&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013677 (exit $ac_status); } && {
13678 test -z "$ac_c_werror_flag" ||
13679 test ! -s conftest.err
13680 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013681 ac_hi=$ac_mid
13682else
13683 echo "$as_me: failed program was:" >&5
13684sed 's/^/| /' conftest.$ac_ext >&5
13685
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013688
13689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013690done
13691case $ac_lo in
13692?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013693'') if test "$ac_cv_type_long" = yes; then
13694 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013695See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013698 { (exit 77); exit 77; }; }
13699 else
13700 ac_cv_sizeof_long=0
13701 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013703else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704 cat >conftest.$ac_ext <<_ACEOF
13705/* confdefs.h. */
13706_ACEOF
13707cat confdefs.h >>conftest.$ac_ext
13708cat >>conftest.$ac_ext <<_ACEOF
13709/* end confdefs.h. */
13710$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013711 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013712static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13713static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013714#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013715#include <stdlib.h>
13716int
13717main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013718{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719
13720 FILE *f = fopen ("conftest.val", "w");
13721 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013722 return 1;
13723 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725 long int i = longval ();
13726 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13727 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728 fprintf (f, "%ld\n", i);
13729 }
13730 else
13731 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013732 unsigned long int i = ulongval ();
13733 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13734 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013735 fprintf (f, "%lu\n", i);
13736 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013737 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013738
13739 ;
13740 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013741}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013742_ACEOF
13743rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013744if { (ac_try="$ac_link"
13745case "(($ac_try" in
13746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13747 *) ac_try_echo=$ac_try;;
13748esac
13749eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13750 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751 ac_status=$?
13752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013754 { (case "(($ac_try" in
13755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13757esac
13758eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760 ac_status=$?
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); }; }; then
13763 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013764else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013765 echo "$as_me: program exited with status $ac_status" >&5
13766echo "$as_me: failed program was:" >&5
13767sed 's/^/| /' conftest.$ac_ext >&5
13768
13769( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013770if test "$ac_cv_type_long" = yes; then
13771 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013772See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013773echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013775 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013776 else
13777 ac_cv_sizeof_long=0
13778 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013779fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013780rm -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 -050013781fi
13782rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013784{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13785echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013786
13787
13788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013789cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013790#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013792
13793
Theodore Ts'oe1052142006-10-21 21:46:47 -040013794{ echo "$as_me:$LINENO: checking for long long" >&5
13795echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013796if test "${ac_cv_type_long_long+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13798else
13799 cat >conftest.$ac_ext <<_ACEOF
13800/* confdefs.h. */
13801_ACEOF
13802cat confdefs.h >>conftest.$ac_ext
13803cat >>conftest.$ac_ext <<_ACEOF
13804/* end confdefs.h. */
13805$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013806typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807int
13808main ()
13809{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013810if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013812if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813 return 0;
13814 ;
13815 return 0;
13816}
13817_ACEOF
13818rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819if { (ac_try="$ac_compile"
13820case "(($ac_try" in
13821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13822 *) ac_try_echo=$ac_try;;
13823esac
13824eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13825 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013826 ac_status=$?
13827 grep -v '^ *+' conftest.er1 >conftest.err
13828 rm -f conftest.er1
13829 cat conftest.err >&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013831 (exit $ac_status); } && {
13832 test -z "$ac_c_werror_flag" ||
13833 test ! -s conftest.err
13834 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013835 ac_cv_type_long_long=yes
13836else
13837 echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
Theodore Ts'oe1052142006-10-21 21:46:47 -040013840 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013841fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013842
Theodore Ts'oe1052142006-10-21 21:46:47 -040013843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13844fi
13845{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13846echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13847
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013848# The cast to long int works around a bug in the HP C Compiler
13849# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13850# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13851# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852{ echo "$as_me:$LINENO: checking size of long long" >&5
13853echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854if test "${ac_cv_sizeof_long_long+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013857 if test "$cross_compiling" = yes; then
13858 # Depending upon the size, compute the lo and hi bounds.
13859cat >conftest.$ac_ext <<_ACEOF
13860/* confdefs.h. */
13861_ACEOF
13862cat confdefs.h >>conftest.$ac_ext
13863cat >>conftest.$ac_ext <<_ACEOF
13864/* end confdefs.h. */
13865$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013866 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867int
13868main ()
13869{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013871test_array [0] = 0
13872
13873 ;
13874 return 0;
13875}
13876_ACEOF
13877rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013878if { (ac_try="$ac_compile"
13879case "(($ac_try" in
13880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881 *) ac_try_echo=$ac_try;;
13882esac
13883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885 ac_status=$?
13886 grep -v '^ *+' conftest.er1 >conftest.err
13887 rm -f conftest.er1
13888 cat conftest.err >&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013890 (exit $ac_status); } && {
13891 test -z "$ac_c_werror_flag" ||
13892 test ! -s conftest.err
13893 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013894 ac_lo=0 ac_mid=0
13895 while :; do
13896 cat >conftest.$ac_ext <<_ACEOF
13897/* confdefs.h. */
13898_ACEOF
13899cat confdefs.h >>conftest.$ac_ext
13900cat >>conftest.$ac_ext <<_ACEOF
13901/* end confdefs.h. */
13902$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013903 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904int
13905main ()
13906{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013908test_array [0] = 0
13909
13910 ;
13911 return 0;
13912}
13913_ACEOF
13914rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915if { (ac_try="$ac_compile"
13916case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13919esac
13920eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922 ac_status=$?
13923 grep -v '^ *+' conftest.er1 >conftest.err
13924 rm -f conftest.er1
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013927 (exit $ac_status); } && {
13928 test -z "$ac_c_werror_flag" ||
13929 test ! -s conftest.err
13930 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931 ac_hi=$ac_mid; break
13932else
13933 echo "$as_me: failed program was:" >&5
13934sed 's/^/| /' conftest.$ac_ext >&5
13935
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936 ac_lo=`expr $ac_mid + 1`
13937 if test $ac_lo -le $ac_mid; then
13938 ac_lo= ac_hi=
13939 break
13940 fi
13941 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013942fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013943
13944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013945 done
13946else
13947 echo "$as_me: failed program was:" >&5
13948sed 's/^/| /' conftest.$ac_ext >&5
13949
Theodore Ts'oe1052142006-10-21 21:46:47 -040013950 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
13956$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013957 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013958int
13959main ()
13960{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962test_array [0] = 0
13963
13964 ;
13965 return 0;
13966}
13967_ACEOF
13968rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969if { (ac_try="$ac_compile"
13970case "(($ac_try" in
13971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13972 *) ac_try_echo=$ac_try;;
13973esac
13974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13975 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985 ac_hi=-1 ac_mid=-1
13986 while :; do
13987 cat >conftest.$ac_ext <<_ACEOF
13988/* confdefs.h. */
13989_ACEOF
13990cat confdefs.h >>conftest.$ac_ext
13991cat >>conftest.$ac_ext <<_ACEOF
13992/* end confdefs.h. */
13993$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013994 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013995int
13996main ()
13997{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013998static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013999test_array [0] = 0
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014006if { (ac_try="$ac_compile"
14007case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010esac
14011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014018 (exit $ac_status); } && {
14019 test -z "$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022 ac_lo=$ac_mid; break
14023else
14024 echo "$as_me: failed program was:" >&5
14025sed 's/^/| /' conftest.$ac_ext >&5
14026
Theodore Ts'oe1052142006-10-21 21:46:47 -040014027 ac_hi=`expr '(' $ac_mid ')' - 1`
14028 if test $ac_mid -le $ac_hi; then
14029 ac_lo= ac_hi=
14030 break
14031 fi
14032 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014033fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014034
14035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014036 done
14037else
14038 echo "$as_me: failed program was:" >&5
14039sed 's/^/| /' conftest.$ac_ext >&5
14040
Theodore Ts'oe1052142006-10-21 21:46:47 -040014041 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014043
14044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014045fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014046
14047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048# Binary search between lo and hi bounds.
14049while test "x$ac_lo" != "x$ac_hi"; do
14050 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14051 cat >conftest.$ac_ext <<_ACEOF
14052/* confdefs.h. */
14053_ACEOF
14054cat confdefs.h >>conftest.$ac_ext
14055cat >>conftest.$ac_ext <<_ACEOF
14056/* end confdefs.h. */
14057$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014058 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014059int
14060main ()
14061{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063test_array [0] = 0
14064
14065 ;
14066 return 0;
14067}
14068_ACEOF
14069rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014070if { (ac_try="$ac_compile"
14071case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14074esac
14075eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014077 ac_status=$?
14078 grep -v '^ *+' conftest.er1 >conftest.err
14079 rm -f conftest.er1
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014086 ac_hi=$ac_mid
14087else
14088 echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
Theodore Ts'oe1052142006-10-21 21:46:47 -040014091 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014093
14094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014095done
14096case $ac_lo in
14097?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014098'') if test "$ac_cv_type_long_long" = yes; then
14099 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014100See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014101echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014102See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014103 { (exit 77); exit 77; }; }
14104 else
14105 ac_cv_sizeof_long_long=0
14106 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014108else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109 cat >conftest.$ac_ext <<_ACEOF
14110/* confdefs.h. */
14111_ACEOF
14112cat confdefs.h >>conftest.$ac_ext
14113cat >>conftest.$ac_ext <<_ACEOF
14114/* end confdefs.h. */
14115$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014116 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014117static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
14118static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014119#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014120#include <stdlib.h>
14121int
14122main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014123{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014124
14125 FILE *f = fopen ("conftest.val", "w");
14126 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014127 return 1;
14128 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014129 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130 long int i = longval ();
14131 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14132 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133 fprintf (f, "%ld\n", i);
14134 }
14135 else
14136 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014137 unsigned long int i = ulongval ();
14138 if (i != ((long int) (sizeof (ac__type_sizeof_))))
14139 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014140 fprintf (f, "%lu\n", i);
14141 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014142 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143
14144 ;
14145 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014146}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014147_ACEOF
14148rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014149if { (ac_try="$ac_link"
14150case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14153esac
14154eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014156 ac_status=$?
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014159 { (case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14162esac
14163eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014165 ac_status=$?
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14168 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014169else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170 echo "$as_me: program exited with status $ac_status" >&5
14171echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014175if test "$ac_cv_type_long_long" = yes; then
14176 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014177See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014178echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014179See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014180 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014181 else
14182 ac_cv_sizeof_long_long=0
14183 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014185rm -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 -050014186fi
14187rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014189{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14190echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014191
14192
14193
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014194cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014195#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014196_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014197
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014198
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014199SIZEOF_SHORT=$ac_cv_sizeof_short
14200SIZEOF_INT=$ac_cv_sizeof_int
14201SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014202SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14203
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014204
14205
14206
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14208echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014209if test "${ac_cv_c_bigendian+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014211else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 # See if sys/param.h defines the BYTE_ORDER macro.
14213cat >conftest.$ac_ext <<_ACEOF
14214/* confdefs.h. */
14215_ACEOF
14216cat confdefs.h >>conftest.$ac_ext
14217cat >>conftest.$ac_ext <<_ACEOF
14218/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014219#include <sys/types.h>
14220#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014222int
14223main ()
14224{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014225#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14226 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014227 bogus endian macros
14228#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014229
14230 ;
14231 return 0;
14232}
14233_ACEOF
14234rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014235if { (ac_try="$ac_compile"
14236case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14239esac
14240eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242 ac_status=$?
14243 grep -v '^ *+' conftest.er1 >conftest.err
14244 rm -f conftest.er1
14245 cat conftest.err >&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014247 (exit $ac_status); } && {
14248 test -z "$ac_c_werror_flag" ||
14249 test ! -s conftest.err
14250 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014251 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014258#include <sys/types.h>
14259#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261int
14262main ()
14263{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014264#if BYTE_ORDER != BIG_ENDIAN
14265 not big endian
14266#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014267
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014273if { (ac_try="$ac_compile"
14274case "(($ac_try" in
14275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14276 *) ac_try_echo=$ac_try;;
14277esac
14278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14279 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014280 ac_status=$?
14281 grep -v '^ *+' conftest.er1 >conftest.err
14282 rm -f conftest.er1
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014285 (exit $ac_status); } && {
14286 test -z "$ac_c_werror_flag" ||
14287 test ! -s conftest.err
14288 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014289 ac_cv_c_bigendian=yes
14290else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014291 echo "$as_me: failed program was:" >&5
14292sed 's/^/| /' conftest.$ac_ext >&5
14293
Theodore Ts'oe1052142006-10-21 21:46:47 -040014294 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014295fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296
14297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014298else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014299 echo "$as_me: failed program was:" >&5
14300sed 's/^/| /' conftest.$ac_ext >&5
14301
Theodore Ts'oe1052142006-10-21 21:46:47 -040014302 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014303if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014304 # try to guess the endianness by grepping values into an object file
14305 ac_cv_c_bigendian=unknown
14306 cat >conftest.$ac_ext <<_ACEOF
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014312short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14313short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014314void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014315short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14316short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014317void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14318int
14319main ()
14320{
14321 _ascii (); _ebcdic ();
14322 ;
14323 return 0;
14324}
14325_ACEOF
14326rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014327if { (ac_try="$ac_compile"
14328case "(($ac_try" in
14329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14330 *) ac_try_echo=$ac_try;;
14331esac
14332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14333 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334 ac_status=$?
14335 grep -v '^ *+' conftest.er1 >conftest.err
14336 rm -f conftest.er1
14337 cat conftest.err >&5
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014339 (exit $ac_status); } && {
14340 test -z "$ac_c_werror_flag" ||
14341 test ! -s conftest.err
14342 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14344 ac_cv_c_bigendian=yes
14345fi
14346if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14347 if test "$ac_cv_c_bigendian" = unknown; then
14348 ac_cv_c_bigendian=no
14349 else
14350 # finding both strings is unlikely to happen, but who knows?
14351 ac_cv_c_bigendian=unknown
14352 fi
14353fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014354else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014355 echo "$as_me: failed program was:" >&5
14356sed 's/^/| /' conftest.$ac_ext >&5
14357
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014359fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014360
14361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014362else
14363 cat >conftest.$ac_ext <<_ACEOF
14364/* confdefs.h. */
14365_ACEOF
14366cat confdefs.h >>conftest.$ac_ext
14367cat >>conftest.$ac_ext <<_ACEOF
14368/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014370int
14371main ()
14372{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014373
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014374 /* Are we little or big endian? From Harbison&Steele. */
14375 union
14376 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014377 long int l;
14378 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014379 } u;
14380 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014381 return u.c[sizeof (long int) - 1] == 1;
14382
14383 ;
14384 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014385}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386_ACEOF
14387rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388if { (ac_try="$ac_link"
14389case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
14393eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395 ac_status=$?
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14401esac
14402eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404 ac_status=$?
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014407 ac_cv_c_bigendian=no
14408else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014409 echo "$as_me: program exited with status $ac_status" >&5
14410echo "$as_me: failed program was:" >&5
14411sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413( exit $ac_status )
14414ac_cv_c_bigendian=yes
14415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014416rm -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 -040014417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014418
14419
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014421
14422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14425echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426case $ac_cv_c_bigendian in
14427 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014429cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014430#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431_ACEOF
14432 ;;
14433 no)
14434 ;;
14435 *)
14436 { { echo "$as_me:$LINENO: error: unknown endianness
14437presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14438echo "$as_me: error: unknown endianness
14439presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14440 { (exit 1); exit 1; }; } ;;
14441esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014442
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014443BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014444ASM_TYPES_HEADER=./asm_types.h
14445
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014448do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14452echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14453if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014455fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014456ac_res=`eval echo '${'$as_ac_Header'}'`
14457 { echo "$as_me:$LINENO: result: $ac_res" >&5
14458echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014461{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14462echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463cat >conftest.$ac_ext <<_ACEOF
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469$ac_includes_default
14470#include <$ac_header>
14471_ACEOF
14472rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014473if { (ac_try="$ac_compile"
14474case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477esac
14478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489 ac_header_compiler=yes
14490else
14491 echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
Theodore Ts'oe1052142006-10-21 21:46:47 -040014494 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014495fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014496
14497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14499echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500
14501# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014502{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14503echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014504cat >conftest.$ac_ext <<_ACEOF
14505/* confdefs.h. */
14506_ACEOF
14507cat confdefs.h >>conftest.$ac_ext
14508cat >>conftest.$ac_ext <<_ACEOF
14509/* end confdefs.h. */
14510#include <$ac_header>
14511_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014512if { (ac_try="$ac_cpp conftest.$ac_ext"
14513case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14516esac
14517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 ac_status=$?
14520 grep -v '^ *+' conftest.er1 >conftest.err
14521 rm -f conftest.er1
14522 cat conftest.err >&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014524 (exit $ac_status); } >/dev/null && {
14525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14526 test ! -s conftest.err
14527 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014528 ac_header_preproc=yes
14529else
14530 echo "$as_me: failed program was:" >&5
14531sed 's/^/| /' conftest.$ac_ext >&5
14532
14533 ac_header_preproc=no
14534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014536rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014537{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14538echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014539
14540# So? What about this header?
14541case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14542 yes:no: )
14543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14544echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14546echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14547 ac_header_preproc=yes
14548 ;;
14549 no:yes:* )
14550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14551echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14553echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14555echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14557echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14559echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14561echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014562
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563 ;;
14564esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014565{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14566echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568 echo $ECHO_N "(cached) $ECHO_C" >&6
14569else
14570 eval "$as_ac_Header=\$ac_header_preproc"
14571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014572ac_res=`eval echo '${'$as_ac_Header'}'`
14573 { echo "$as_me:$LINENO: result: $ac_res" >&5
14574echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575
14576fi
14577if test `eval echo '${'$as_ac_Header'}'` = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14580_ACEOF
14581
14582fi
14583
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014584done
14585
Theodore Ts'oe1052142006-10-21 21:46:47 -040014586{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14587echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014588if test "${ac_cv_type_intptr_t+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014590else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014591 cat >conftest.$ac_ext <<_ACEOF
14592/* confdefs.h. */
14593_ACEOF
14594cat confdefs.h >>conftest.$ac_ext
14595cat >>conftest.$ac_ext <<_ACEOF
14596/* end confdefs.h. */
14597$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599int
14600main ()
14601{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014602if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014603 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014604if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014605 return 0;
14606 ;
14607 return 0;
14608}
14609_ACEOF
14610rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611if { (ac_try="$ac_compile"
14612case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14615esac
14616eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014618 ac_status=$?
14619 grep -v '^ *+' conftest.er1 >conftest.err
14620 rm -f conftest.er1
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014623 (exit $ac_status); } && {
14624 test -z "$ac_c_werror_flag" ||
14625 test ! -s conftest.err
14626 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014627 ac_cv_type_intptr_t=yes
14628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014629 echo "$as_me: failed program was:" >&5
14630sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014631
Theodore Ts'oe1052142006-10-21 21:46:47 -040014632 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014634
14635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014636fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014637{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14638echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014640
14641cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014642#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643_ACEOF
14644
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014646fi
14647
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14649echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014650if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652else
14653 cat >conftest.$ac_ext <<_ACEOF
14654/* confdefs.h. */
14655_ACEOF
14656cat confdefs.h >>conftest.$ac_ext
14657cat >>conftest.$ac_ext <<_ACEOF
14658/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014659#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014660int
14661main ()
14662{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014663struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664 ;
14665 return 0;
14666}
14667_ACEOF
14668rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669if { (ac_try="$ac_compile"
14670case "(($ac_try" in
14671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14672 *) ac_try_echo=$ac_try;;
14673esac
14674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14675 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014676 ac_status=$?
14677 grep -v '^ *+' conftest.er1 >conftest.err
14678 rm -f conftest.er1
14679 cat conftest.err >&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014681 (exit $ac_status); } && {
14682 test -z "$ac_c_werror_flag" ||
14683 test ! -s conftest.err
14684 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014685 e2fsprogs_cv_struct_st_flags=yes
14686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687 echo "$as_me: failed program was:" >&5
14688sed 's/^/| /' conftest.$ac_ext >&5
14689
Theodore Ts'oe1052142006-10-21 21:46:47 -040014690 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014691fi
14692
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14694fi
14695
14696{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14697echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014698if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014699 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14700echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14702 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014703else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014710#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014711int
14712main ()
14713{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014714struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715 ;
14716 return 0;
14717}
14718_ACEOF
14719rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014720if { (ac_try="$ac_compile"
14721case "(($ac_try" in
14722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723 *) ac_try_echo=$ac_try;;
14724esac
14725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14726 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014727 ac_status=$?
14728 grep -v '^ *+' conftest.er1 >conftest.err
14729 rm -f conftest.er1
14730 cat conftest.err >&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014732 (exit $ac_status); } && {
14733 test -z "$ac_c_werror_flag" ||
14734 test ! -s conftest.err
14735 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014736 e2fsprogs_cv_struct_st_flags_immut=yes
14737else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014738 echo "$as_me: failed program was:" >&5
14739sed 's/^/| /' conftest.$ac_ext >&5
14740
Theodore Ts'oe1052142006-10-21 21:46:47 -040014741 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014742fi
14743
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14745fi
14746
14747 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14748echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014749 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014751#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014752_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014753
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014754 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014755fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014756{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14757echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014758if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014760else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014761 cat >conftest.$ac_ext <<_ACEOF
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014767#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014768 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014770int
14771main ()
14772{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014773static struct sockaddr ac_aggr;
14774if (ac_aggr.sa_len)
14775return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776 ;
14777 return 0;
14778}
14779_ACEOF
14780rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014781if { (ac_try="$ac_compile"
14782case "(($ac_try" in
14783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14784 *) ac_try_echo=$ac_try;;
14785esac
14786eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14787 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014793 (exit $ac_status); } && {
14794 test -z "$ac_c_werror_flag" ||
14795 test ! -s conftest.err
14796 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014797 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014798else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014799 echo "$as_me: failed program was:" >&5
14800sed 's/^/| /' conftest.$ac_ext >&5
14801
Theodore Ts'oe1052142006-10-21 21:46:47 -040014802 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014803/* confdefs.h. */
14804_ACEOF
14805cat confdefs.h >>conftest.$ac_ext
14806cat >>conftest.$ac_ext <<_ACEOF
14807/* end confdefs.h. */
14808#include <sys/types.h>
14809 #include <sys/socket.h>
14810
14811int
14812main ()
14813{
14814static struct sockaddr ac_aggr;
14815if (sizeof ac_aggr.sa_len)
14816return 0;
14817 ;
14818 return 0;
14819}
14820_ACEOF
14821rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014822if { (ac_try="$ac_compile"
14823case "(($ac_try" in
14824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14825 *) ac_try_echo=$ac_try;;
14826esac
14827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14828 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014829 ac_status=$?
14830 grep -v '^ *+' conftest.er1 >conftest.err
14831 rm -f conftest.er1
14832 cat conftest.err >&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014834 (exit $ac_status); } && {
14835 test -z "$ac_c_werror_flag" ||
14836 test ! -s conftest.err
14837 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014838 ac_cv_member_struct_sockaddr_sa_len=yes
14839else
14840 echo "$as_me: failed program was:" >&5
14841sed 's/^/| /' conftest.$ac_ext >&5
14842
Theodore Ts'oe1052142006-10-21 21:46:47 -040014843 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014845
14846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014848
14849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014851{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14852echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014853if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014854
14855cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014856#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014858
14859fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014879
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014880
14881
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014882
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014883
Theodore Ts'o106ad962007-04-04 21:26:37 -040014884
14885
14886
Theodore Ts'o740837d2007-12-16 17:21:38 -050014887
14888
Theodore Ts'o261cd392008-01-21 13:45:00 -050014889
14890for 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 +000014891do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014892as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014893{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14894echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14895if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014898 cat >conftest.$ac_ext <<_ACEOF
14899/* confdefs.h. */
14900_ACEOF
14901cat confdefs.h >>conftest.$ac_ext
14902cat >>conftest.$ac_ext <<_ACEOF
14903/* end confdefs.h. */
14904/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14906#define $ac_func innocuous_$ac_func
14907
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014908/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014909 which can conflict with char $ac_func (); below.
14910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14911 <limits.h> exists even on freestanding compilers. */
14912
14913#ifdef __STDC__
14914# include <limits.h>
14915#else
14916# include <assert.h>
14917#endif
14918
14919#undef $ac_func
14920
Theodore Ts'oe1052142006-10-21 21:46:47 -040014921/* Override any GCC internal prototype to avoid an error.
14922 Use char because int might match the return type of a GCC
14923 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014924#ifdef __cplusplus
14925extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014927char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014928/* The GNU C library defines this for functions which it implements
14929 to always fail with ENOSYS. Some functions are actually named
14930 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014931#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014932choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014933#endif
14934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014935int
14936main ()
14937{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014938return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939 ;
14940 return 0;
14941}
14942_ACEOF
14943rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014944if { (ac_try="$ac_link"
14945case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14948esac
14949eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951 ac_status=$?
14952 grep -v '^ *+' conftest.er1 >conftest.err
14953 rm -f conftest.er1
14954 cat conftest.err >&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014956 (exit $ac_status); } && {
14957 test -z "$ac_c_werror_flag" ||
14958 test ! -s conftest.err
14959 } && test -s conftest$ac_exeext &&
14960 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014963 echo "$as_me: failed program was:" >&5
14964sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014965
Theodore Ts'oe1052142006-10-21 21:46:47 -040014966 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014968
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 conftest$ac_exeext conftest.$ac_ext
14971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014972ac_res=`eval echo '${'$as_ac_var'}'`
14973 { echo "$as_me:$LINENO: result: $ac_res" >&5
14974echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975if test `eval echo '${'$as_ac_var'}'` = yes; then
14976 cat >>confdefs.h <<_ACEOF
14977#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14978_ACEOF
14979
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014980fi
14981done
14982
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014983SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014984{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14985echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014986if test "${ac_cv_lib_socket_socket+set}" = set; then
14987 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014988else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014989 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014990LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014991cat >conftest.$ac_ext <<_ACEOF
14992/* confdefs.h. */
14993_ACEOF
14994cat confdefs.h >>conftest.$ac_ext
14995cat >>conftest.$ac_ext <<_ACEOF
14996/* end confdefs.h. */
14997
Theodore Ts'oe1052142006-10-21 21:46:47 -040014998/* Override any GCC internal prototype to avoid an error.
14999 Use char because int might match the return type of a GCC
15000 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015001#ifdef __cplusplus
15002extern "C"
15003#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004char socket ();
15005int
15006main ()
15007{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015008return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009 ;
15010 return 0;
15011}
15012_ACEOF
15013rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015014if { (ac_try="$ac_link"
15015case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15018esac
15019eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest$ac_exeext &&
15030 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015032else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015033 echo "$as_me: failed program was:" >&5
15034sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015035
Theodore Ts'oe1052142006-10-21 21:46:47 -040015036 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015037fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015038
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015039rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040 conftest$ac_exeext conftest.$ac_ext
15041LIBS=$ac_check_lib_save_LIBS
15042fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015043{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15044echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015045if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015046 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015047fi
15048
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015049
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015050DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040015051{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15052echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015053if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15054 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015055else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015056 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015057LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015058cat >conftest.$ac_ext <<_ACEOF
15059/* confdefs.h. */
15060_ACEOF
15061cat confdefs.h >>conftest.$ac_ext
15062cat >>conftest.$ac_ext <<_ACEOF
15063/* end confdefs.h. */
15064
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065/* Override any GCC internal prototype to avoid an error.
15066 Use char because int might match the return type of a GCC
15067 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015068#ifdef __cplusplus
15069extern "C"
15070#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015071char dlopen ();
15072int
15073main ()
15074{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015075return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015076 ;
15077 return 0;
15078}
15079_ACEOF
15080rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015081if { (ac_try="$ac_link"
15082case "(($ac_try" in
15083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15084 *) ac_try_echo=$ac_try;;
15085esac
15086eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15087 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015088 ac_status=$?
15089 grep -v '^ *+' conftest.er1 >conftest.err
15090 rm -f conftest.er1
15091 cat conftest.err >&5
15092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015093 (exit $ac_status); } && {
15094 test -z "$ac_c_werror_flag" ||
15095 test ! -s conftest.err
15096 } && test -s conftest$ac_exeext &&
15097 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015098 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015100 echo "$as_me: failed program was:" >&5
15101sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015102
Theodore Ts'oe1052142006-10-21 21:46:47 -040015103 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015105
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 conftest$ac_exeext conftest.$ac_ext
15108LIBS=$ac_check_lib_save_LIBS
15109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015110{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15111echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015112if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015113 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015114cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015115#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015116_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015117
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015118fi
15119
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015120
Theodore Ts'oe1052142006-10-21 21:46:47 -040015121{ echo "$as_me:$LINENO: checking for optreset" >&5
15122echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015123if test "${ac_cv_have_optreset+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015126 cat >conftest.$ac_ext <<_ACEOF
15127/* confdefs.h. */
15128_ACEOF
15129cat confdefs.h >>conftest.$ac_ext
15130cat >>conftest.$ac_ext <<_ACEOF
15131/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015132#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015133
15134_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015135if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015136 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015137 ac_cv_have_optreset=yes
15138else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015139 ac_cv_have_optreset=no
15140fi
15141rm -f conftest*
15142
15143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015144{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
15145echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015146if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015147 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015148#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015149_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015150
15151fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015152{ echo "$as_me:$LINENO: checking for unified diff option" >&5
15153echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040015154if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015155 UNI_DIFF_OPTS=-u
15156else
15157 UNI_DIFF_OPTS=-c
15158fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015159{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
15160echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040015161
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015162case "$host_os" in
15163linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015164 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015165#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015166_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015167
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000015168 ;;
15169esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015170LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015171CYGWIN_CMT="#"
15172UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015173case "$host_os" in
15174linux*)
15175 LINUX_CMT=
15176 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040015177cygwin)
15178 CYGWIN_CMT=
15179 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040015180 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040015181esac
15182
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015183
15184
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015185case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015186linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015187 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15188 root_prefix="";
15189 echo "On $host_os systems, root_prefix defaults to ''"
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015190 fi
15191 ;;
15192esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015193case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015194linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015195 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015196 prefix="/usr";
15197 echo "On $host_os systems, prefix defaults to /usr"
Theodore Ts'obff61a72002-05-21 22:21:38 -040015198 if test "$mandir" = '${prefix}/man' ; then
15199 echo "...and mandir defaults to /usr/share/man"
15200 mandir=/usr/share/man
15201 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015202 fi
15203;;
15204esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015205if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015206 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015207 root_prefix="$ac_default_prefix"
15208 else
15209 root_prefix="$prefix"
15210 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015211 root_bindir=$bindir
15212 root_sbindir=$sbindir
15213 root_libdir=$libdir
15214 root_sysconfdir=$sysconfdir
15215else
15216 root_bindir='${root_prefix}/bin'
15217 root_sbindir='${root_prefix}/sbin'
15218 root_libdir='${root_prefix}/lib'
15219 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015220fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015221if test "$bindir" != '${exec_prefix}/bin'; then
15222 root_bindir=$bindir
15223 echo "Setting root_bindir to $root_bindir"
15224fi
15225if test "$sbindir" != '${exec_prefix}/sbin'; then
15226 root_sbindir=$sbindir
15227 echo "Setting root_sbindir to $root_sbindir"
15228fi
15229if test "$libdir" != '${exec_prefix}/lib'; then
15230 root_libdir=$libdir
15231 echo "Setting root_libdir to $root_libdir"
15232fi
15233if test "$sysconfdir" != '${prefix}/etc'; then
15234 root_sysconfdir=$sysconfdir
15235 echo "Setting root_sysconfdir to $root_sysconfdir"
15236fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015237
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015238
15239
15240
15241
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15243echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015244if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015246else
15247 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015248cat >conftest.$ac_ext <<_ACEOF
15249/* confdefs.h. */
15250_ACEOF
15251cat confdefs.h >>conftest.$ac_ext
15252cat >>conftest.$ac_ext <<_ACEOF
15253/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015254#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015255int
15256main ()
15257{
Theodore Ts'oae851481997-04-29 18:13:24 +000015258fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015259 ;
15260 return 0;
15261}
15262_ACEOF
15263rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015264if { (ac_try="$ac_link"
15265case "(($ac_try" in
15266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15267 *) ac_try_echo=$ac_try;;
15268esac
15269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15270 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015271 ac_status=$?
15272 grep -v '^ *+' conftest.er1 >conftest.err
15273 rm -f conftest.er1
15274 cat conftest.err >&5
15275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015276 (exit $ac_status); } && {
15277 test -z "$ac_c_werror_flag" ||
15278 test ! -s conftest.err
15279 } && test -s conftest$ac_exeext &&
15280 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015281 ac_cv_e2fsprogs_use_static=yes
15282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015283 echo "$as_me: failed program was:" >&5
15284sed 's/^/| /' conftest.$ac_ext >&5
15285
Theodore Ts'oe1052142006-10-21 21:46:47 -040015286 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015287fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015288
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015289rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015290 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015291LDFLAGS=$SAVE_LDFLAGS
15292fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015293
Theodore Ts'odefde781999-01-04 07:39:19 +000015294case "$host_os" in
15295solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015296 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015297;;
15298esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015299{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15300echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015301LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015302if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015303 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015304fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015305
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015306case "$host_os" in
15307darwin*)
15308 echo "Using Apple Darwin / GNU libintl workaround"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015309 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015310#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015312
15313 ;;
15314esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015315SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15316ET_DIR=`cd ${srcdir}/lib/et; pwd`
15317
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015318
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015319if test "$cross_compiling" = yes ; then
15320 DO_TEST_SUITE=
15321else
15322 DO_TEST_SUITE=check
15323fi
15324
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015325INTL_FLAGS=
15326if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15327 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15328fi
15329
Theodore Ts'odd947da2005-11-09 18:37:07 -040015330if test $cross_compiling = no; then
15331 BUILD_CFLAGS="$CFLAGS"
15332 BUILD_LDFLAGS="$LDFLAGS"
15333else
15334 BUILD_CFLAGS=
15335 BUILD_LDFLAGS=
15336fi
15337
15338
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015339test -d lib || mkdir lib
15340test -d include || mkdir include
15341test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015342test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015343for i in MCONFIG Makefile e2fsprogs.spec \
15344 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015345 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15346 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015347 lib/uuid/Makefile lib/uuid/uuid_types.h \
15348 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015349 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15350 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015351 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015352 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15353 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15354 if test -d `dirname ${srcdir}/$i` ; then
15355 outlist="$outlist $i"
15356 fi
15357done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015358ac_config_files="$ac_config_files $outlist"
15359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015360cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015361# This file is a shell script that caches the results of configure
15362# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015363# scripts and configure runs, see configure's option --config-cache.
15364# It is not useful on other systems. If it contains results you don't
15365# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015366#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367# config.status only pays attention to the cache file if you give it
15368# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015369#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370# `ac_cv_env_foo' variables (set or unset) will be overridden when
15371# loading this file, other *unset* `ac_cv_foo' will be assigned the
15372# following values.
15373
15374_ACEOF
15375
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015376# The following way of writing the cache mishandles newlines in values,
15377# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015378# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015379# Ultrix sh set writes to stderr and can't be redirected directly,
15380# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015381(
15382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15383 eval ac_val=\$$ac_var
15384 case $ac_val in #(
15385 *${as_nl}*)
15386 case $ac_var in #(
15387 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15388echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15389 esac
15390 case $ac_var in #(
15391 _ | IFS | as_nl) ;; #(
15392 *) $as_unset $ac_var ;;
15393 esac ;;
15394 esac
15395 done
15396
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015397 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15399 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015400 # `set' does not quote correctly, so add quotes (double-quote
15401 # substitution turns \\\\ into \\, and sed turns \\ into \).
15402 sed -n \
15403 "s/'/'\\\\''/g;
15404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015405 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015406 *)
15407 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015409 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015410 esac |
15411 sort
15412) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015413 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015414 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015415 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015416 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15418 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15420 :end' >>confcache
15421if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15422 if test -w "$cache_file"; then
15423 test "x$cache_file" != "x/dev/null" &&
15424 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15425echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015426 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015427 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015428 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15429echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015430 fi
15431fi
15432rm -f confcache
15433
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015434test "x$prefix" = xNONE && prefix=$ac_default_prefix
15435# Let make expand exec_prefix.
15436test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15437
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015438# Transform confdefs.h into DEFS.
15439# Protect against shell expansion while executing Makefile rules.
15440# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015441#
15442# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015443# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015444# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015445ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015446t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015447:clear
15448s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015449t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015451t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015452b any
15453:quote
15454s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15455s/\[/\\&/g
15456s/\]/\\&/g
15457s/\$/$$/g
15458H
15459:any
15460${
15461 g
15462 s/^\n//
15463 s/\n/ /g
15464 p
15465}
15466'
15467DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015468
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015470ac_libobjs=
15471ac_ltlibobjs=
15472for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15473 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015474 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15475 ac_i=`echo "$ac_i" | sed "$ac_script"`
15476 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15477 # will be set to the directory where LIBOBJS objects are built.
15478 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15479 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015480done
15481LIBOBJS=$ac_libobjs
15482
15483LTLIBOBJS=$ac_ltlibobjs
15484
15485
15486
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015487: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015488ac_clean_files_save=$ac_clean_files
15489ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15490{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15491echo "$as_me: creating $CONFIG_STATUS" >&6;}
15492cat >$CONFIG_STATUS <<_ACEOF
15493#! $SHELL
15494# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015495# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015496# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015497# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499debug=false
15500ac_cs_recheck=false
15501ac_cs_silent=false
15502SHELL=\${CONFIG_SHELL-$SHELL}
15503_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015505cat >>$CONFIG_STATUS <<\_ACEOF
15506## --------------------- ##
15507## M4sh Initialization. ##
15508## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015509
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015510# Be more Bourne compatible
15511DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15513 emulate sh
15514 NULLCMD=:
15515 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15516 # is contrary to our usage. Disable this feature.
15517 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015518 setopt NO_GLOB_SUBST
15519else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015520 case `(set -o) 2>/dev/null` in
15521 *posix*) set -o posix ;;
15522esac
15523
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015524fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015525
15526
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015527
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015528
Theodore Ts'oe1052142006-10-21 21:46:47 -040015529# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015530# Avoid depending upon Character Ranges.
15531as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15532as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15533as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15534as_cr_digits='0123456789'
15535as_cr_alnum=$as_cr_Letters$as_cr_digits
15536
15537# The user is always right.
15538if test "${PATH_SEPARATOR+set}" != set; then
15539 echo "#! /bin/sh" >conf$$.sh
15540 echo "exit 0" >>conf$$.sh
15541 chmod +x conf$$.sh
15542 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15543 PATH_SEPARATOR=';'
15544 else
15545 PATH_SEPARATOR=:
15546 fi
15547 rm -f conf$$.sh
15548fi
15549
Theodore Ts'oe1052142006-10-21 21:46:47 -040015550# Support unset when possible.
15551if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15552 as_unset=unset
15553else
15554 as_unset=false
15555fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015556
Theodore Ts'oe1052142006-10-21 21:46:47 -040015557
15558# IFS
15559# We need space, tab and new line, in precisely that order. Quoting is
15560# there to prevent editors from complaining about space-tab.
15561# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15562# splitting by setting IFS to empty value.)
15563as_nl='
15564'
15565IFS=" "" $as_nl"
15566
15567# Find who we are. Look in the path if we contain no directory separator.
15568case $0 in
15569 *[\\/]* ) as_myself=$0 ;;
15570 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015571for as_dir in $PATH
15572do
15573 IFS=$as_save_IFS
15574 test -z "$as_dir" && as_dir=.
15575 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15576done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015577IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015578
Theodore Ts'oe1052142006-10-21 21:46:47 -040015579 ;;
15580esac
15581# We did not find ourselves, most probably we were run as `sh COMMAND'
15582# in which case we are not to be found in the path.
15583if test "x$as_myself" = x; then
15584 as_myself=$0
15585fi
15586if test ! -f "$as_myself"; then
15587 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15588 { (exit 1); exit 1; }
15589fi
15590
15591# Work around bugs in pre-3.0 UWIN ksh.
15592for as_var in ENV MAIL MAILPATH
15593do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15594done
15595PS1='$ '
15596PS2='> '
15597PS4='+ '
15598
15599# NLS nuisances.
15600for as_var in \
15601 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15602 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15603 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015604do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015605 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15606 eval $as_var=C; export $as_var
15607 else
15608 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15609 fi
15610done
15611
15612# Required to use basename.
15613if expr a : '\(a\)' >/dev/null 2>&1 &&
15614 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15615 as_expr=expr
15616else
15617 as_expr=false
15618fi
15619
15620if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15621 as_basename=basename
15622else
15623 as_basename=false
15624fi
15625
15626
15627# Name of the executable.
15628as_me=`$as_basename -- "$0" ||
15629$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15630 X"$0" : 'X\(//\)$' \| \
15631 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15632echo X/"$0" |
15633 sed '/^.*\/\([^/][^/]*\)\/*$/{
15634 s//\1/
15635 q
15636 }
15637 /^X\/\(\/\/\)$/{
15638 s//\1/
15639 q
15640 }
15641 /^X\/\(\/\).*/{
15642 s//\1/
15643 q
15644 }
15645 s/.*/./; q'`
15646
15647# CDPATH.
15648$as_unset CDPATH
15649
15650
15651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652 as_lineno_1=$LINENO
15653 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015654 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015655 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015657 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15658 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015659 # line-number line after each line using $LINENO; the second 'sed'
15660 # does the real work. The second script uses 'N' to pair each
15661 # line-number line with the line containing $LINENO, and appends
15662 # trailing '-' during substitution so that $LINENO is not a special
15663 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015664 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015665 # scripts with optimization help from Paolo Bonzini. Blame Lee
15666 # E. McMahon (1931-1989) for sed's syntax. :-)
15667 sed -n '
15668 p
15669 /[$]LINENO/=
15670 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015671 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015672 s/[$]LINENO.*/&-/
15673 t lineno
15674 b
15675 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015676 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015677 :loop
15678 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015680 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015681 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015682 chmod +x "$as_me.lineno" ||
15683 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015684 { (exit 1); exit 1; }; }
15685
15686 # Don't try to exec as it changes $[0], causing all sort of problems
15687 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015688 # original and so on. Autoconf is especially sensitive to this).
15689 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015690 # Exit status is that of the last command.
15691 exit
15692}
15693
15694
Theodore Ts'oe1052142006-10-21 21:46:47 -040015695if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15696 as_dirname=dirname
15697else
15698 as_dirname=false
15699fi
15700
15701ECHO_C= ECHO_N= ECHO_T=
15702case `echo -n x` in
15703-n*)
15704 case `echo 'x\c'` in
15705 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15706 *) ECHO_C='\c';;
15707 esac;;
15708*)
15709 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015710esac
15711
Theodore Ts'oe1052142006-10-21 21:46:47 -040015712if expr a : '\(a\)' >/dev/null 2>&1 &&
15713 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015714 as_expr=expr
15715else
15716 as_expr=false
15717fi
15718
15719rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015720if test -d conf$$.dir; then
15721 rm -f conf$$.dir/conf$$.file
15722else
15723 rm -f conf$$.dir
15724 mkdir conf$$.dir
15725fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015726echo >conf$$.file
15727if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015728 as_ln_s='ln -s'
15729 # ... but there are two gotchas:
15730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15732 # In both cases, we have to default to `cp -p'.
15733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015734 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015735elif ln conf$$.file conf$$ 2>/dev/null; then
15736 as_ln_s=ln
15737else
15738 as_ln_s='cp -p'
15739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015740rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15741rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015742
15743if mkdir -p . 2>/dev/null; then
15744 as_mkdir_p=:
15745else
15746 test -d ./-p && rmdir ./-p
15747 as_mkdir_p=false
15748fi
15749
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015750if test -x / >/dev/null 2>&1; then
15751 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015752else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015753 if ls -dL / >/dev/null 2>&1; then
15754 as_ls_L_option=L
15755 else
15756 as_ls_L_option=
15757 fi
15758 as_test_x='
15759 eval sh -c '\''
15760 if test -d "$1"; then
15761 test -d "$1/.";
15762 else
15763 case $1 in
15764 -*)set "./$1";;
15765 esac;
15766 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15767 ???[sx]*):;;*)false;;esac;fi
15768 '\'' sh
15769 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015770fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015771as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015772
15773# Sed expression to map a string onto a valid CPP name.
15774as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15775
15776# Sed expression to map a string onto a valid variable name.
15777as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15778
15779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015780exec 6>&1
15781
Theodore Ts'oe1052142006-10-21 21:46:47 -040015782# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015783# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015784# values after options handling.
15785ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015786This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015787generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015788
15789 CONFIG_FILES = $CONFIG_FILES
15790 CONFIG_HEADERS = $CONFIG_HEADERS
15791 CONFIG_LINKS = $CONFIG_LINKS
15792 CONFIG_COMMANDS = $CONFIG_COMMANDS
15793 $ $0 $@
15794
Theodore Ts'oe1052142006-10-21 21:46:47 -040015795on `(hostname || uname -n) 2>/dev/null | sed 1q`
15796"
15797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015798_ACEOF
15799
Theodore Ts'oe1052142006-10-21 21:46:47 -040015800cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015801# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015802config_files="$ac_config_files"
15803config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015804
Theodore Ts'oe1052142006-10-21 21:46:47 -040015805_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015806
15807cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015808ac_cs_usage="\
15809\`$as_me' instantiates files from templates according to the
15810current configuration.
15811
15812Usage: $0 [OPTIONS] [FILE]...
15813
15814 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015815 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015816 -q, --quiet do not print progress messages
15817 -d, --debug don't remove temporary files
15818 --recheck update $as_me by reconfiguring in the same conditions
15819 --file=FILE[:TEMPLATE]
15820 instantiate the configuration file FILE
15821
15822Configuration files:
15823$config_files
15824
15825Configuration commands:
15826$config_commands
15827
15828Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829
Theodore Ts'oe1052142006-10-21 21:46:47 -040015830_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015831cat >>$CONFIG_STATUS <<_ACEOF
15832ac_cs_version="\\
15833config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015834configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015835 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836
Theodore Ts'oe1052142006-10-21 21:46:47 -040015837Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015838This config.status script is free software; the Free Software Foundation
15839gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015840
15841ac_pwd='$ac_pwd'
15842srcdir='$srcdir'
15843INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015844_ACEOF
15845
15846cat >>$CONFIG_STATUS <<\_ACEOF
15847# If no file are specified by the user, then we need to provide default
15848# value. By we need to know if files were specified by the user.
15849ac_need_defaults=:
15850while test $# != 0
15851do
15852 case $1 in
15853 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15855 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015856 ac_shift=:
15857 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015858 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015859 ac_option=$1
15860 ac_optarg=$2
15861 ac_shift=shift
15862 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015863 esac
15864
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865 case $ac_option in
15866 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15868 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015869 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15870 echo "$ac_cs_version"; exit ;;
15871 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015872 debug=: ;;
15873 --file | --fil | --fi | --f )
15874 $ac_shift
15875 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15876 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015877 --he | --h | --help | --hel | -h )
15878 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15880 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15881 ac_cs_silent=: ;;
15882
15883 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015884 -*) { echo "$as_me: error: unrecognized option: $1
15885Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015886 { (exit 1); exit 1; }; } ;;
15887
Theodore Ts'oe1052142006-10-21 21:46:47 -040015888 *) ac_config_targets="$ac_config_targets $1"
15889 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015890
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015891 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015892 shift
15893done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015895ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015896
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015897if $ac_cs_silent; then
15898 exec 6>/dev/null
15899 ac_configure_extra_args="$ac_configure_extra_args --silent"
15900fi
15901
15902_ACEOF
15903cat >>$CONFIG_STATUS <<_ACEOF
15904if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015905 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15906 CONFIG_SHELL=$SHELL
15907 export CONFIG_SHELL
15908 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015909fi
15910
15911_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015912cat >>$CONFIG_STATUS <<\_ACEOF
15913exec 5>>config.log
15914{
15915 echo
15916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15917## Running $as_me. ##
15918_ASBOX
15919 echo "$ac_log"
15920} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015921
Theodore Ts'oe1052142006-10-21 21:46:47 -040015922_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015923cat >>$CONFIG_STATUS <<_ACEOF
15924#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015925# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015926#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015927# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015928 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015929 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015930 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015931 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15932 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015933
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015935_ACEOF
15936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015938
15939# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015940for ac_config_target in $ac_config_targets
15941do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015942 case $ac_config_target in
15943 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15944 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015946 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15947echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15948 { (exit 1); exit 1; }; };;
15949 esac
15950done
15951
Theodore Ts'oe1052142006-10-21 21:46:47 -040015952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015953# If the user did not use the arguments to specify the items to instantiate,
15954# then the envvar interface is used. Set only those that are not.
15955# We use the long form for the default assignment because of an extremely
15956# bizarre bug on SunOS 4.1.3.
15957if $ac_need_defaults; then
15958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15960fi
15961
15962# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015963# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015964# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015965# Hook for its removal unless debugging.
15966# Note that there is a small window in which the directory will not be cleaned:
15967# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015968$debug ||
15969{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015970 tmp=
15971 trap 'exit_status=$?
15972 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15973' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015974 trap '{ (exit 1); exit 1; }' 1 2 13 15
15975}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015976# Create a (secure) tmp directory for tmp files.
15977
15978{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015979 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015980 test -n "$tmp" && test -d "$tmp"
15981} ||
15982{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015983 tmp=./conf$$-$RANDOM
15984 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985} ||
15986{
15987 echo "$me: cannot create a temporary directory in ." >&2
15988 { (exit 1); exit 1; }
15989}
15990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015991#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015992# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015993#
15994
15995# No need to generate the scripts if there are no CONFIG_FILES.
15996# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015997if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015998
15999_ACEOF
16000
Theodore Ts'oe1052142006-10-21 21:46:47 -040016001# Create sed commands to just substitute file output variables.
16002
16003# Remaining file output variables are in a fragment that also has non-file
16004# output varibles.
16005
16006
16007
16008ac_delim='%!_!# '
16009for ac_last_try in false false false false false :; do
16010 cat >conf$$subs.sed <<_ACEOF
16011SHELL!$SHELL$ac_delim
16012PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
16013PACKAGE_NAME!$PACKAGE_NAME$ac_delim
16014PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
16015PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
16016PACKAGE_STRING!$PACKAGE_STRING$ac_delim
16017PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
16018exec_prefix!$exec_prefix$ac_delim
16019prefix!$prefix$ac_delim
16020program_transform_name!$program_transform_name$ac_delim
16021bindir!$bindir$ac_delim
16022sbindir!$sbindir$ac_delim
16023libexecdir!$libexecdir$ac_delim
16024datarootdir!$datarootdir$ac_delim
16025datadir!$datadir$ac_delim
16026sysconfdir!$sysconfdir$ac_delim
16027sharedstatedir!$sharedstatedir$ac_delim
16028localstatedir!$localstatedir$ac_delim
16029includedir!$includedir$ac_delim
16030oldincludedir!$oldincludedir$ac_delim
16031docdir!$docdir$ac_delim
16032infodir!$infodir$ac_delim
16033htmldir!$htmldir$ac_delim
16034dvidir!$dvidir$ac_delim
16035pdfdir!$pdfdir$ac_delim
16036psdir!$psdir$ac_delim
16037libdir!$libdir$ac_delim
16038localedir!$localedir$ac_delim
16039mandir!$mandir$ac_delim
16040DEFS!$DEFS$ac_delim
16041ECHO_C!$ECHO_C$ac_delim
16042ECHO_N!$ECHO_N$ac_delim
16043ECHO_T!$ECHO_T$ac_delim
16044LIBS!$LIBS$ac_delim
16045build_alias!$build_alias$ac_delim
16046host_alias!$host_alias$ac_delim
16047target_alias!$target_alias$ac_delim
16048E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
16049E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
16050E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
16051E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050016052E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016053build!$build$ac_delim
16054build_cpu!$build_cpu$ac_delim
16055build_vendor!$build_vendor$ac_delim
16056build_os!$build_os$ac_delim
16057host!$host$ac_delim
16058host_cpu!$host_cpu$ac_delim
16059host_vendor!$host_vendor$ac_delim
16060host_os!$host_os$ac_delim
16061CC!$CC$ac_delim
16062CFLAGS!$CFLAGS$ac_delim
16063LDFLAGS!$LDFLAGS$ac_delim
16064CPPFLAGS!$CPPFLAGS$ac_delim
16065ac_ct_CC!$ac_ct_CC$ac_delim
16066EXEEXT!$EXEEXT$ac_delim
16067OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016068CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016069LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016070GREP!$GREP$ac_delim
16071EGREP!$EGREP$ac_delim
16072LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
16073MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
16074HTREE_CMT!$HTREE_CMT$ac_delim
16075ELF_CMT!$ELF_CMT$ac_delim
16076BSDLIB_CMT!$BSDLIB_CMT$ac_delim
16077PROFILE_CMT!$PROFILE_CMT$ac_delim
16078CHECKER_CMT!$CHECKER_CMT$ac_delim
16079LIB_EXT!$LIB_EXT$ac_delim
16080STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
16081PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
16082SWAPFS_CMT!$SWAPFS_CMT$ac_delim
16083DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
16084IMAGER_CMT!$IMAGER_CMT$ac_delim
16085RESIZER_CMT!$RESIZER_CMT$ac_delim
Theodore Ts'o7e8fe322008-01-27 17:43:10 -050016086FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016087_ACEOF
16088
16089 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 76; then
16090 break
16091 elif $ac_last_try; then
16092 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16093echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16094 { (exit 1); exit 1; }; }
16095 else
16096 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016097 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016098done
16099
16100ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16101if test -n "$ac_eof"; then
16102 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16103 ac_eof=`expr $ac_eof + 1`
16104fi
16105
16106cat >>$CONFIG_STATUS <<_ACEOF
16107cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
16108/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16109/^[ ]*@MCONFIG@[ ]*$/{
16110r $MCONFIG
16111d
16112}
16113/^[ ]*@MAKEFILE_ELF@[ ]*$/{
16114r $MAKEFILE_ELF
16115d
16116}
16117/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
16118r $MAKEFILE_BSDLIB
16119d
16120}
16121/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
16122r $MAKEFILE_PROFILE
16123d
16124}
16125/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
16126r $MAKEFILE_CHECKER
16127d
16128}
16129/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
16130r $MAKEFILE_LIBRARY
16131d
16132}
16133/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
16134r $ASM_TYPES_HEADER
16135d
16136}
16137_ACEOF
16138sed '
16139s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16140s/^/s,@/; s/!/@,|#_!!_#|/
16141:n
16142t n
16143s/'"$ac_delim"'$/,g/; t
16144s/$/\\/; p
16145N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16146' >>$CONFIG_STATUS <conf$$subs.sed
16147rm -f conf$$subs.sed
16148cat >>$CONFIG_STATUS <<_ACEOF
16149CEOF$ac_eof
16150_ACEOF
16151
16152
16153ac_delim='%!_!# '
16154for ac_last_try in false false false false false :; do
16155 cat >conf$$subs.sed <<_ACEOF
16156FSCK_MAN!$FSCK_MAN$ac_delim
16157E2INITRD_PROG!$E2INITRD_PROG$ac_delim
16158E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016159PKG_CONFIG!$PKG_CONFIG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016160DEVMAPPER_REQ!$DEVMAPPER_REQ$ac_delim
16161DEVMAPPER_PC_LIBS!$DEVMAPPER_PC_LIBS$ac_delim
16162DEVMAPPER_LIBS!$DEVMAPPER_LIBS$ac_delim
16163STATIC_DEVMAPPER_LIBS!$STATIC_DEVMAPPER_LIBS$ac_delim
Theodore Ts'oa4ece352008-01-01 20:05:04 -050016164STATIC_BLKID_DEVMAPPER_LIBS!$STATIC_BLKID_DEVMAPPER_LIBS$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050016165UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016166GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
16167PACKAGE!$PACKAGE$ac_delim
16168VERSION!$VERSION$ac_delim
16169SET_MAKE!$SET_MAKE$ac_delim
16170INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
16171INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
16172INSTALL_DATA!$INSTALL_DATA$ac_delim
16173MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
16174USE_NLS!$USE_NLS$ac_delim
16175MSGFMT!$MSGFMT$ac_delim
16176GMSGFMT!$GMSGFMT$ac_delim
16177XGETTEXT!$XGETTEXT$ac_delim
16178MSGMERGE!$MSGMERGE$ac_delim
16179RANLIB!$RANLIB$ac_delim
16180ALLOCA!$ALLOCA$ac_delim
16181GLIBC21!$GLIBC21$ac_delim
16182HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
16183HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
16184HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
16185HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
16186LIBICONV!$LIBICONV$ac_delim
16187LTLIBICONV!$LTLIBICONV$ac_delim
16188INTLBISON!$INTLBISON$ac_delim
16189BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16190USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16191CATOBJEXT!$CATOBJEXT$ac_delim
16192DATADIRNAME!$DATADIRNAME$ac_delim
16193INSTOBJEXT!$INSTOBJEXT$ac_delim
16194GENCAT!$GENCAT$ac_delim
16195INTLOBJS!$INTLOBJS$ac_delim
16196INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16197INTLLIBS!$INTLLIBS$ac_delim
16198LIBINTL!$LIBINTL$ac_delim
16199LTLIBINTL!$LTLIBINTL$ac_delim
16200POSUB!$POSUB$ac_delim
16201BINARY_TYPE!$BINARY_TYPE$ac_delim
16202LN!$LN$ac_delim
16203LN_S!$LN_S$ac_delim
16204MV!$MV$ac_delim
16205CP!$CP$ac_delim
16206RM!$RM$ac_delim
16207CHMOD!$CHMOD$ac_delim
16208AWK!$AWK$ac_delim
16209SED!$SED$ac_delim
16210PERL!$PERL$ac_delim
16211LDCONFIG!$LDCONFIG$ac_delim
16212AR!$AR$ac_delim
16213STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016214MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016215BUILD_CC!$BUILD_CC$ac_delim
16216SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16217SIZEOF_INT!$SIZEOF_INT$ac_delim
16218SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16219SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16220SOCKET_LIB!$SOCKET_LIB$ac_delim
16221DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16222UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16223LINUX_CMT!$LINUX_CMT$ac_delim
16224CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16225UNIX_CMT!$UNIX_CMT$ac_delim
16226root_prefix!$root_prefix$ac_delim
16227root_bindir!$root_bindir$ac_delim
16228root_sbindir!$root_sbindir$ac_delim
16229root_libdir!$root_libdir$ac_delim
16230root_sysconfdir!$root_sysconfdir$ac_delim
16231LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16232SS_DIR!$SS_DIR$ac_delim
16233ET_DIR!$ET_DIR$ac_delim
16234DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16235INTL_FLAGS!$INTL_FLAGS$ac_delim
16236BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16237BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16238LIBOBJS!$LIBOBJS$ac_delim
16239LTLIBOBJS!$LTLIBOBJS$ac_delim
16240_ACEOF
16241
Manish Katiyar7321d942008-04-14 17:20:03 +053016242 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 84; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016243 break
16244 elif $ac_last_try; then
16245 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16246echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16247 { (exit 1); exit 1; }; }
16248 else
16249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16250 fi
16251done
16252
16253ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16254if test -n "$ac_eof"; then
16255 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16256 ac_eof=`expr $ac_eof + 1`
16257fi
16258
16259cat >>$CONFIG_STATUS <<_ACEOF
16260cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16261/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16262_ACEOF
16263sed '
16264s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16265s/^/s,@/; s/!/@,|#_!!_#|/
16266:n
16267t n
16268s/'"$ac_delim"'$/,g/; t
16269s/$/\\/; p
16270N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16271' >>$CONFIG_STATUS <conf$$subs.sed
16272rm -f conf$$subs.sed
16273cat >>$CONFIG_STATUS <<_ACEOF
16274:end
16275s/|#_!!_#|//g
16276CEOF$ac_eof
16277_ACEOF
16278
16279
16280# VPATH may cause trouble with some makes, so we remove $(srcdir),
16281# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16282# trailing colons and then remove the whole line if VPATH becomes empty
16283# (actually we leave an empty line to preserve line numbers).
16284if test "x$srcdir" = x.; then
16285 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16286s/:*\$(srcdir):*/:/
16287s/:*\${srcdir}:*/:/
16288s/:*@srcdir@:*/:/
16289s/^\([^=]*=[ ]*\):*/\1/
16290s/:*$//
16291s/^[^=]*=[ ]*$//
16292}'
16293fi
16294
16295cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016296fi # test -n "$CONFIG_FILES"
16297
Theodore Ts'oe1052142006-10-21 21:46:47 -040016298
16299for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16300do
16301 case $ac_tag in
16302 :[FHLC]) ac_mode=$ac_tag; continue;;
16303 esac
16304 case $ac_mode$ac_tag in
16305 :[FHL]*:*);;
16306 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16307echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16308 { (exit 1); exit 1; }; };;
16309 :[FH]-) ac_tag=-:-;;
16310 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16311 esac
16312 ac_save_IFS=$IFS
16313 IFS=:
16314 set x $ac_tag
16315 IFS=$ac_save_IFS
16316 shift
16317 ac_file=$1
16318 shift
16319
16320 case $ac_mode in
16321 :L) ac_source=$1;;
16322 :[FH])
16323 ac_file_inputs=
16324 for ac_f
16325 do
16326 case $ac_f in
16327 -) ac_f="$tmp/stdin";;
16328 *) # Look for the file first in the build tree, then in the source tree
16329 # (if the path is not absolute). The absolute path cannot be DOS-style,
16330 # because $ac_f cannot contain `:'.
16331 test -f "$ac_f" ||
16332 case $ac_f in
16333 [\\/$]*) false;;
16334 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16335 esac ||
16336 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16337echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16338 { (exit 1); exit 1; }; };;
16339 esac
16340 ac_file_inputs="$ac_file_inputs $ac_f"
16341 done
16342
16343 # Let's still pretend it is `configure' which instantiates (i.e., don't
16344 # use $as_me), people would be surprised to read:
16345 # /* config.h. Generated by config.status. */
16346 configure_input="Generated from "`IFS=:
16347 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16348 if test x"$ac_file" != x-; then
16349 configure_input="$ac_file. $configure_input"
16350 { echo "$as_me:$LINENO: creating $ac_file" >&5
16351echo "$as_me: creating $ac_file" >&6;}
16352 fi
16353
16354 case $ac_tag in
16355 *:-:* | *:-) cat >"$tmp/stdin";;
16356 esac
16357 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016358 esac
16359
Theodore Ts'oe1052142006-10-21 21:46:47 -040016360 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016361$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16362 X"$ac_file" : 'X\(//\)[^/]' \| \
16363 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016364 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016365echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16367 s//\1/
16368 q
16369 }
16370 /^X\(\/\/\)[^/].*/{
16371 s//\1/
16372 q
16373 }
16374 /^X\(\/\/\)$/{
16375 s//\1/
16376 q
16377 }
16378 /^X\(\/\).*/{
16379 s//\1/
16380 q
16381 }
16382 s/.*/./; q'`
16383 { as_dir="$ac_dir"
16384 case $as_dir in #(
16385 -*) as_dir=./$as_dir;;
16386 esac
16387 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016388 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016389 while :; do
16390 case $as_dir in #(
16391 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16392 *) as_qdir=$as_dir;;
16393 esac
16394 as_dirs="'$as_qdir' $as_dirs"
16395 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016396$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16397 X"$as_dir" : 'X\(//\)[^/]' \| \
16398 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016399 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016400echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16402 s//\1/
16403 q
16404 }
16405 /^X\(\/\/\)[^/].*/{
16406 s//\1/
16407 q
16408 }
16409 /^X\(\/\/\)$/{
16410 s//\1/
16411 q
16412 }
16413 /^X\(\/\).*/{
16414 s//\1/
16415 q
16416 }
16417 s/.*/./; q'`
16418 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016419 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016420 test -z "$as_dirs" || eval "mkdir $as_dirs"
16421 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16422echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016423 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016424 ac_builddir=.
16425
Theodore Ts'oe1052142006-10-21 21:46:47 -040016426case "$ac_dir" in
16427.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16428*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016429 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016430 # A ".." for each directory in $ac_dir_suffix.
16431 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16432 case $ac_top_builddir_sub in
16433 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16434 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16435 esac ;;
16436esac
16437ac_abs_top_builddir=$ac_pwd
16438ac_abs_builddir=$ac_pwd$ac_dir_suffix
16439# for backward compatibility:
16440ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016441
16442case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016443 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016444 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016445 ac_top_srcdir=$ac_top_builddir_sub
16446 ac_abs_top_srcdir=$ac_pwd ;;
16447 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016448 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016449 ac_top_srcdir=$srcdir
16450 ac_abs_top_srcdir=$srcdir ;;
16451 *) # Relative name.
16452 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16453 ac_top_srcdir=$ac_top_build_prefix$srcdir
16454 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016455esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016456ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016457
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016458
Theodore Ts'oe1052142006-10-21 21:46:47 -040016459 case $ac_mode in
16460 :F)
16461 #
16462 # CONFIG_FILE
16463 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016464
16465 case $INSTALL in
16466 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016467 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016468 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016469_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016470
16471cat >>$CONFIG_STATUS <<\_ACEOF
16472# If the template does not know about datarootdir, expand it.
16473# FIXME: This hack should be removed a few years after 2.60.
16474ac_datarootdir_hack=; ac_datarootdir_seen=
16475
16476case `sed -n '/datarootdir/ {
16477 p
16478 q
16479}
16480/@datadir@/p
16481/@docdir@/p
16482/@infodir@/p
16483/@localedir@/p
16484/@mandir@/p
16485' $ac_file_inputs` in
16486*datarootdir*) ac_datarootdir_seen=yes;;
16487*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16488 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16489echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16490_ACEOF
16491cat >>$CONFIG_STATUS <<_ACEOF
16492 ac_datarootdir_hack='
16493 s&@datadir@&$datadir&g
16494 s&@docdir@&$docdir&g
16495 s&@infodir@&$infodir&g
16496 s&@localedir@&$localedir&g
16497 s&@mandir@&$mandir&g
16498 s&\\\${datarootdir}&$datarootdir&g' ;;
16499esac
16500_ACEOF
16501
16502# Neutralize VPATH when `$srcdir' = `.'.
16503# Shell code in configure.ac might set extrasub.
16504# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016505cat >>$CONFIG_STATUS <<_ACEOF
16506 sed "$ac_vpsub
16507$extrasub
16508_ACEOF
16509cat >>$CONFIG_STATUS <<\_ACEOF
16510:t
16511/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016512s&@configure_input@&$configure_input&;t t
16513s&@top_builddir@&$ac_top_builddir_sub&;t t
16514s&@srcdir@&$ac_srcdir&;t t
16515s&@abs_srcdir@&$ac_abs_srcdir&;t t
16516s&@top_srcdir@&$ac_top_srcdir&;t t
16517s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16518s&@builddir@&$ac_builddir&;t t
16519s&@abs_builddir@&$ac_abs_builddir&;t t
16520s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16521s&@INSTALL@&$ac_INSTALL&;t t
16522$ac_datarootdir_hack
16523" $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 -050016524
Theodore Ts'oe1052142006-10-21 21:46:47 -040016525test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16526 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16527 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16528 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16529which seems to be undefined. Please make sure it is defined." >&5
16530echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16531which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016532
Theodore Ts'oe1052142006-10-21 21:46:47 -040016533 rm -f "$tmp/stdin"
16534 case $ac_file in
16535 -) cat "$tmp/out"; rm -f "$tmp/out";;
16536 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16537 esac
16538 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016539
16540
Theodore Ts'oe1052142006-10-21 21:46:47 -040016541 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16542echo "$as_me: executing $ac_file commands" >&6;}
16543 ;;
16544 esac
16545
16546
16547 case $ac_file$ac_mode in
16548 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016549 for ac_file in $CONFIG_FILES; do
16550 # Support "outfile[:infile[:infile...]]"
16551 case "$ac_file" in
16552 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016553 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016554 # PO directories have a Makefile.in generated from Makefile.in.in.
16555 case "$ac_file" in */Makefile.in)
16556 # Adjust a relative srcdir.
16557 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16558 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16559 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16560 # In autoconf-2.13 it is called $ac_given_srcdir.
16561 # In autoconf-2.50 it is called $srcdir.
16562 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16563 case "$ac_given_srcdir" in
16564 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16565 /*) top_srcdir="$ac_given_srcdir" ;;
16566 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16567 esac
16568 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16569 rm -f "$ac_dir/POTFILES"
16570 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16571 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 -050016572 POMAKEFILEDEPS="POTFILES.in"
16573 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016574 # on $ac_dir but don't depend on user-specified configuration
16575 # parameters.
16576 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16577 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016578 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016579 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16580 fi
16581 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16582 # Hide the ALL_LINGUAS assigment from automake.
16583 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016584 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16585 else
16586 # The set of available languages was given in configure.in.
16587 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016588 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016589 # Compute POFILES
16590 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16591 # Compute UPDATEPOFILES
16592 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16593 # Compute DUMMYPOFILES
16594 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16595 # Compute GMOFILES
16596 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016597 case "$ac_given_srcdir" in
16598 .) srcdirpre= ;;
16599 *) srcdirpre='$(srcdir)/' ;;
16600 esac
16601 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016602 UPDATEPOFILES=
16603 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016604 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016605 for lang in $ALL_LINGUAS; do
16606 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016607 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16608 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016609 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016610 done
16611 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16612 # environment variable.
16613 INST_LINGUAS=
16614 if test -n "$ALL_LINGUAS"; then
16615 for presentlang in $ALL_LINGUAS; do
16616 useit=no
16617 if test "%UNSET%" != "$LINGUAS"; then
16618 desiredlanguages="$LINGUAS"
16619 else
16620 desiredlanguages="$ALL_LINGUAS"
16621 fi
16622 for desiredlang in $desiredlanguages; do
16623 # Use the presentlang catalog if desiredlang is
16624 # a. equal to presentlang, or
16625 # b. a variant of presentlang (because in this case,
16626 # presentlang can be used as a fallback for messages
16627 # which are not translated in the desiredlang catalog).
16628 case "$desiredlang" in
16629 "$presentlang"*) useit=yes;;
16630 esac
16631 done
16632 if test $useit = yes; then
16633 INST_LINGUAS="$INST_LINGUAS $presentlang"
16634 fi
16635 done
16636 fi
16637 CATALOGS=
16638 if test -n "$INST_LINGUAS"; then
16639 for lang in $INST_LINGUAS; do
16640 CATALOGS="$CATALOGS $lang.gmo"
16641 done
16642 fi
16643 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016644 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 -040016645 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16646 if test -f "$f"; then
16647 case "$f" in
16648 *.orig | *.bak | *~) ;;
16649 *) cat "$f" >> "$ac_dir/Makefile" ;;
16650 esac
16651 fi
16652 done
16653 fi
16654 ;;
16655 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016656 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016657
Theodore Ts'oe1052142006-10-21 21:46:47 -040016658 esac
16659done # for ac_tag
16660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016661
16662{ (exit 0); exit 0; }
16663_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016664chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016665ac_clean_files=$ac_clean_files_save
16666
16667
16668# configure is writing to config.log, and then calls config.status.
16669# config.status does its own redirection, appending to config.log.
16670# Unfortunately, on DOS this fails, as config.log is still kept open
16671# by configure, so config.status won't be able to write to it; its
16672# output is simply discarded. So we exec the FD to /dev/null,
16673# effectively closing config.log, so it can be properly (re)opened and
16674# appended to by config.status. When coming back to configure, we
16675# need to make the FD available again.
16676if test "$no_create" != yes; then
16677 ac_cs_success=:
16678 ac_config_status_args=
16679 test "$silent" = yes &&
16680 ac_config_status_args="$ac_config_status_args --quiet"
16681 exec 5>/dev/null
16682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16683 exec 5>>config.log
16684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16685 # would make configure fail if this is the last instruction.
16686 $ac_cs_success || { (exit 1); exit 1; }
16687fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016688
Theodore Ts'oee683a12005-02-05 15:53:56 -050016689if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16690