blob: 3d6c5c8c62ed346e11e309bd11eeb494898b6e4c [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.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003# Generated by GNU Autoconf 2.63.
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,
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050019 # 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050087
Theodore Ts'oe1052142006-10-21 21:46:47 -040088
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040094IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400106IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500107
Theodore Ts'oe1052142006-10-21 21:46:47 -0400108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -0400117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100154$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100180 if test $as_have_required = yes && (eval ":
Theodore Ts'oe1052142006-10-21 21:46:47 -0400181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400245 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500246 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
Theodore Ts'oe1052142006-10-21 21:46:47 -0400271fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
Theodore Ts'oe1052142006-10-21 21:46:47 -0400292fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400293
Theodore Ts'oe1052142006-10-21 21:46:47 -0400294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500349 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Theodore Ts'oe1052142006-10-21 21:46:47 -0400367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500462 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500467 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500470 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400471 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500472 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400473 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481 # Exit status is that of the last command.
482 exit
483}
484
485
Theodore Ts'oe1052142006-10-21 21:46:47 -0400486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500501esac
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100514 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400515fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500530else
531 as_ln_s='cp -p'
532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400545else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100554 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400555 else
556 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100557 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573
Theodore Ts'oe1052142006-10-21 21:46:47 -0400574exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500581#
582# Initializations.
583#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000584ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400585ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500586ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400587LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="version.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400605#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500606# include <sys/types.h>
607#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400608#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500609# include <sys/stat.h>
610#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400611#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500612# include <stdlib.h>
613# include <stddef.h>
614#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500616# include <stdlib.h>
617# endif
618#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500621# include <memory.h>
622# endif
623# include <string.h>
624#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400625#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626# include <strings.h>
627#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400628#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500629# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400630#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400631#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400632# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500633#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400634#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500635# include <unistd.h>
636#endif"
637
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100638ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400639LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100640BUILD_LDFLAGS
641BUILD_CFLAGS
642INTL_FLAGS
643DO_TEST_SUITE
644ET_DIR
645SS_DIR
646LDFLAG_STATIC
647root_sysconfdir
648root_libdir
649root_sbindir
650root_bindir
651root_prefix
652UNIX_CMT
653CYGWIN_CMT
654LINUX_CMT
655UNI_DIFF_OPTS
656SEM_INIT_LIB
657DLOPEN_LIB
658SOCKET_LIB
659SIZEOF_LONG_LONG
660SIZEOF_LONG
661SIZEOF_INT
662SIZEOF_SHORT
663BUILD_CC
664MAKEINFO
665STRIP
666AR
667LDCONFIG
668PERL
669SED
670AWK
671CHMOD
672RM
673CP
674MV
675LN_S
676LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400677ifNotGNUmake
678ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100679BINARY_TYPE
680POSUB
681LTLIBINTL
682LIBINTL
683INTLLIBS
684INTL_LIBTOOL_SUFFIX_PREFIX
685INTLOBJS
686GENCAT
687INSTOBJEXT
688DATADIRNAME
689CATOBJEXT
690USE_INCLUDED_LIBINTL
691BUILD_INCLUDED_LIBINTL
692INTLBISON
693LTLIBICONV
694LIBICONV
695HAVE_WPRINTF
696HAVE_SNPRINTF
697HAVE_ASPRINTF
698HAVE_POSIX_PRINTF
699GLIBC21
700ALLOCA
701RANLIB
702MSGMERGE
703XGETTEXT
704GMSGFMT
705MSGFMT
706USE_NLS
707MKINSTALLDIRS
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711SET_MAKE
712VERSION
713PACKAGE
714GETTEXT_PACKAGE
715UUIDD_CMT
716E2INITRD_MAN
717E2INITRD_PROG
718FSCK_MAN
719FSCK_PROG
720RESIZER_CMT
721IMAGER_CMT
722DEBUGFS_CMT
723BLKID_CMT
724DEPPROFILED_LIBBLKID
725PROFILED_LIBBLKID
726DEPSTATIC_LIBBLKID
727STATIC_LIBBLKID
728DEPLIBBLKID
729LIBBLKID
730UUID_CMT
731DEPPROFILED_LIBUUID
732PROFILED_LIBUUID
733DEPSTATIC_LIBUUID
734STATIC_LIBUUID
735DEPLIBUUID
736LIBUUID
737PKG_CONFIG
738TEST_IO_CMT
739PRIVATE_LIBS_CMT
740LDFLAG_DYNAMIC
741PROFILED_LIB_EXT
742STATIC_LIB_EXT
743LIB_EXT
744CHECKER_CMT
745PROFILE_CMT
746BSDLIB_CMT
747ELF_CMT
748HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400749Q
750E
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751MAINTAINER_CMT
752LINUX_INCLUDE
753EGREP
754GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100755CPP
756OBJEXT
757EXEEXT
758ac_ct_CC
759CPPFLAGS
760LDFLAGS
761CFLAGS
762CC
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771E2FSPROGS_PKGVER
772E2FSPROGS_VERSION
773E2FSPROGS_DAY
774E2FSPROGS_MONTH
775E2FSPROGS_YEAR
776target_alias
777host_alias
778build_alias
779LIBS
780ECHO_T
781ECHO_N
782ECHO_C
783DEFS
784mandir
785localedir
786libdir
787psdir
788pdfdir
789dvidir
790htmldir
791infodir
792docdir
793oldincludedir
794includedir
795localstatedir
796sharedstatedir
797sysconfdir
798datadir
799datarootdir
800libexecdir
801sbindir
802bindir
803program_transform_name
804prefix
805exec_prefix
806PACKAGE_BUGREPORT
807PACKAGE_STRING
808PACKAGE_VERSION
809PACKAGE_TARNAME
810PACKAGE_NAME
811PATH_SEPARATOR
812SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400813ac_subst_files='MCONFIG
814MAKEFILE_ELF
815MAKEFILE_BSDLIB
816MAKEFILE_PROFILE
817MAKEFILE_CHECKER
818MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400819ASM_TYPES_HEADER
820PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100821ac_user_opts='
822enable_option_checking
823with_diet_libc
824with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100825with_ccopts
826with_ldopts
827with_root_prefix
828enable_maintainer_mode
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400829enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100830enable_compression
831enable_htree
832enable_elf_shlibs
833enable_bsd_shlibs
834enable_profile
835enable_checker
836enable_jbd_debug
837enable_blkid_debug
838enable_testio_debug
839enable_libuuid
840enable_libblkid
841enable_debugfs
842enable_imager
843enable_resizer
844enable_fsck
845enable_e2initrd_helper
846enable_tls
847enable_uuidd
848enable_nls
849with_gnu_ld
850enable_rpath
851with_libiconv_prefix
852with_included_gettext
853with_libintl_prefix
854'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400855 ac_precious_vars='build_alias
856host_alias
857target_alias
858CC
859CFLAGS
860LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400861LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400863CPP
864PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400865
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000866
867# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500868ac_init_help=
869ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100870ac_unrecognized_opts=
871ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872# The variables have the same names as the options, with
873# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500874cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000875exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000876no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877no_recursion=
878prefix=NONE
879program_prefix=NONE
880program_suffix=NONE
881program_transform_name=s,x,x,
882silent=
883site=
884srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000885verbose=
886x_includes=NONE
887x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500888
889# Installation directory options.
890# These are left unexpanded so users can "make install exec_prefix=/foo"
891# and all the variables that are supposed to be based on exec_prefix
892# by default will actually change.
893# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400894# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000895bindir='${exec_prefix}/bin'
896sbindir='${exec_prefix}/sbin'
897libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898datarootdir='${prefix}/share'
899datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000900sysconfdir='${prefix}/etc'
901sharedstatedir='${prefix}/com'
902localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000903includedir='${prefix}/include'
904oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905docdir='${datarootdir}/doc/${PACKAGE}'
906infodir='${datarootdir}/info'
907htmldir='${docdir}'
908dvidir='${docdir}'
909pdfdir='${docdir}'
910psdir='${docdir}'
911libdir='${exec_prefix}/lib'
912localedir='${datarootdir}/locale'
913mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400916ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917for ac_option
918do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922 ac_prev=
923 continue
924 fi
925
Theodore Ts'oe1052142006-10-21 21:46:47 -0400926 case $ac_option in
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *) ac_optarg=yes ;;
929 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000930
931 # Accept the important Cygnus configure options, so we can diagnose typos.
932
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933 case $ac_dashdash$ac_option in
934 --)
935 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000936
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500940 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000941
942 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500943 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500945 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000946
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 cache_file=$ac_optarg ;;
953
954 --config-cache | -C)
955 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000956
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000958 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500960 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000961
Theodore Ts'oe1052142006-10-21 21:46:47 -0400962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
968
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000969 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000971 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500974 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979"enable_$ac_useropt"
980"*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995
996 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000998 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001001 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001002 ac_useropt_orig=$ac_useropt
1003 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1004 case $ac_user_opts in
1005 *"
1006"enable_$ac_useropt"
1007"*) ;;
1008 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1009 ac_unrecognized_sep=', ';;
1010 esac
1011 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001012
1013 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1014 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1015 | --exec | --exe | --ex)
1016 ac_prev=exec_prefix ;;
1017 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1018 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1019 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001020 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001021
1022 -gas | --gas | --ga | --g)
1023 # Obsolete; use --with-gas.
1024 with_gas=yes ;;
1025
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 -help | --help | --hel | --he | -h)
1027 ac_init_help=long ;;
1028 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1029 ac_init_help=recursive ;;
1030 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1031 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001032
1033 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001034 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001035 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001036 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037
Theodore Ts'oe1052142006-10-21 21:46:47 -04001038 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1039 ac_prev=htmldir ;;
1040 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1041 | --ht=*)
1042 htmldir=$ac_optarg ;;
1043
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001044 -includedir | --includedir | --includedi | --included | --include \
1045 | --includ | --inclu | --incl | --inc)
1046 ac_prev=includedir ;;
1047 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1048 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001049 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001050
1051 -infodir | --infodir | --infodi | --infod | --info | --inf)
1052 ac_prev=infodir ;;
1053 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001054 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001055
1056 -libdir | --libdir | --libdi | --libd)
1057 ac_prev=libdir ;;
1058 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001059 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001060
1061 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1062 | --libexe | --libex | --libe)
1063 ac_prev=libexecdir ;;
1064 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1065 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067
Theodore Ts'oe1052142006-10-21 21:46:47 -04001068 -localedir | --localedir | --localedi | --localed | --locale)
1069 ac_prev=localedir ;;
1070 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1071 localedir=$ac_optarg ;;
1072
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001073 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001074 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001075 ac_prev=localstatedir ;;
1076 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001077 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079
1080 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1081 ac_prev=mandir ;;
1082 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001084
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001085 -nfp | --nfp | --nf)
1086 # Obsolete; use --without-fp.
1087 with_fp=no ;;
1088
1089 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091 no_create=yes ;;
1092
1093 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1094 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 no_recursion=yes ;;
1096
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001097 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1098 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1099 | --oldin | --oldi | --old | --ol | --o)
1100 ac_prev=oldincludedir ;;
1101 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1102 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1103 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001104 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001105
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001106 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1107 ac_prev=prefix ;;
1108 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001110
1111 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1112 | --program-pre | --program-pr | --program-p)
1113 ac_prev=program_prefix ;;
1114 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1115 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001116 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001117
1118 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1119 | --program-suf | --program-su | --program-s)
1120 ac_prev=program_suffix ;;
1121 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1122 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001123 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124
1125 -program-transform-name | --program-transform-name \
1126 | --program-transform-nam | --program-transform-na \
1127 | --program-transform-n | --program-transform- \
1128 | --program-transform | --program-transfor \
1129 | --program-transfo | --program-transf \
1130 | --program-trans | --program-tran \
1131 | --progr-tra | --program-tr | --program-t)
1132 ac_prev=program_transform_name ;;
1133 -program-transform-name=* | --program-transform-name=* \
1134 | --program-transform-nam=* | --program-transform-na=* \
1135 | --program-transform-n=* | --program-transform-=* \
1136 | --program-transform=* | --program-transfor=* \
1137 | --program-transfo=* | --program-transf=* \
1138 | --program-trans=* | --program-tran=* \
1139 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001140 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001141
Theodore Ts'oe1052142006-10-21 21:46:47 -04001142 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1143 ac_prev=pdfdir ;;
1144 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1145 pdfdir=$ac_optarg ;;
1146
1147 -psdir | --psdir | --psdi | --psd | --ps)
1148 ac_prev=psdir ;;
1149 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 psdir=$ac_optarg ;;
1151
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1153 | -silent | --silent | --silen | --sile | --sil)
1154 silent=yes ;;
1155
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001156 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1157 ac_prev=sbindir ;;
1158 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1159 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001161
1162 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1163 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1164 | --sharedst | --shareds | --shared | --share | --shar \
1165 | --sha | --sh)
1166 ac_prev=sharedstatedir ;;
1167 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1168 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1169 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1170 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001171 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001172
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001173 -site | --site | --sit)
1174 ac_prev=site ;;
1175 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001176 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177
1178 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1179 ac_prev=srcdir ;;
1180 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001181 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001182
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001183 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1184 | --syscon | --sysco | --sysc | --sys | --sy)
1185 ac_prev=sysconfdir ;;
1186 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1187 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001189
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001191 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194
1195 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1196 verbose=yes ;;
1197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001198 -version | --version | --versio | --versi | --vers | -V)
1199 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200
1201 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001202 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001203 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001206 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001207 ac_useropt_orig=$ac_useropt
1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1209 case $ac_user_opts in
1210 *"
1211"with_$ac_useropt"
1212"*) ;;
1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1214 ac_unrecognized_sep=', ';;
1215 esac
1216 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217
1218 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1227 *"
1228"with_$ac_useropt"
1229"*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234
1235 --x)
1236 # Obsolete; use --with-x.
1237 with_x=yes ;;
1238
1239 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1240 | --x-incl | --x-inc | --x-in | --x-i)
1241 ac_prev=x_includes ;;
1242 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1243 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001244 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245
1246 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1247 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1248 ac_prev=x_libraries ;;
1249 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1250 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001253 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001254Try \`$0 --help' for more information." >&2
1255 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 ;;
1257
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001258 *=*)
1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001262 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001263 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001264 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 export $ac_envvar ;;
1266
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001267 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001268 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001269 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001273 ;;
1274
1275 esac
1276done
1277
1278if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001279 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001280 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001282fi
1283
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001284if test -n "$ac_unrecognized_opts"; then
1285 case $enable_option_checking in
1286 no) ;;
1287 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1288 { (exit 1); exit 1; }; } ;;
1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1290 esac
1291fi
1292
1293# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001298do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001299 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001300 # Remove trailing slashes.
1301 case $ac_val in
1302 */ )
1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1304 eval $ac_var=\$ac_val;;
1305 esac
1306 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001308 [\\/$]* | ?:[\\/]* ) continue;;
1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001310 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001311 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001312 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001313done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315# There might be people who depend on the old broken behavior: `$host'
1316# used to hold the argument of --host etc.
1317# FIXME: To remove some day.
1318build=$build_alias
1319host=$host_alias
1320target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001322# FIXME: To remove some day.
1323if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001326 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001327 If a cross compiler is detected then cross compile mode will be used." >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1330 fi
1331fi
1332
1333ac_tool_prefix=
1334test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336test "$silent" = yes && exec 6>/dev/null
1337
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001338
Theodore Ts'oe1052142006-10-21 21:46:47 -04001339ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340ac_ls_di=`ls -di .` &&
1341ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001342 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343 { (exit 1); exit 1; }; }
1344test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001345 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346 { (exit 1); exit 1; }; }
1347
1348
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001349# Find the source files, if location was not specified.
1350if test -z "$srcdir"; then
1351 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001352 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001353 ac_confdir=`$as_dirname -- "$as_myself" ||
1354$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355 X"$as_myself" : 'X\(//\)[^/]' \| \
1356 X"$as_myself" : 'X\(//\)$' \| \
1357 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1358$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360 s//\1/
1361 q
1362 }
1363 /^X\(\/\/\)[^/].*/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)$/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\).*/{
1372 s//\1/
1373 q
1374 }
1375 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001376 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001377 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001378 srcdir=..
1379 fi
1380else
1381 ac_srcdir_defaulted=no
1382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001383if test ! -r "$srcdir/$ac_unique_file"; then
1384 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001385 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001386 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389ac_abs_confdir=`(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001390 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001391 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001392 pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417\`configure' configures this package to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE. See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1436
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001439 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001441 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470_ACEOF
1471
1472 cat <<\_ACEOF
1473
1474System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477_ACEOF
1478fi
1479
1480if test -n "$ac_init_help"; then
1481
1482 cat <<\_ACEOF
1483
1484Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001485 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001488 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'oc13351f2009-07-02 00:11:17 -04001489 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 --enable-compression enable EXPERIMENTAL compression support
1491 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492 --enable-elf-shlibs select ELF shared libraries
1493 --enable-bsd-shlibs select BSD shared libraries
1494 --enable-profile build profiling libraries
1495 --enable-checker build checker libraries
1496 --enable-jbd-debug enable journal debugging
1497 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001498 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001500 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001501 --disable-debugfs disable support of debugfs program
1502 --disable-imager disable support of e2image program
1503 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 --enable-fsck build fsck wrapper program
1505 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001506 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001507 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508 --disable-nls do not use Native Language Support
1509 --disable-rpath do not hardcode runtime library paths
1510
1511Optional Packages:
1512 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1513 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001514 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001515 --with-cc no longer supported, use CC= instead
1516 --with-ccopts no longer supported, use CFLAGS= instead
1517 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1519 --with-gnu-ld assume the C compiler uses GNU ld default=no
1520 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1521 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1522 --with-included-gettext use the GNU gettext library included here
1523 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1524 --without-libintl-prefix don't search for libintl in includedir and libdir
1525
1526Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001531 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001532 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001534 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001535 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536
1537Use these variables to override the choices made by `configure' or to help
1538it to find libraries and programs with nonstandard names/locations.
1539
1540_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001541ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542fi
1543
1544if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001547 test -d "$ac_dir" ||
1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1549 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 ac_builddir=.
1551
Theodore Ts'oe1052142006-10-21 21:46:47 -04001552case "$ac_dir" in
1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1554*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001558 case $ac_top_builddir_sub in
1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 esac ;;
1562esac
1563ac_abs_top_builddir=$ac_pwd
1564ac_abs_builddir=$ac_pwd$ac_dir_suffix
1565# for backward compatibility:
1566ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567
1568case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001569 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001570 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001571 ac_top_srcdir=$ac_top_builddir_sub
1572 ac_abs_top_srcdir=$ac_pwd ;;
1573 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001575 ac_top_srcdir=$srcdir
1576 ac_abs_top_srcdir=$srcdir ;;
1577 *) # Relative name.
1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1579 ac_top_srcdir=$ac_top_build_prefix$srcdir
1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001581esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583
Theodore Ts'oe1052142006-10-21 21:46:47 -04001584 cd "$ac_dir" || { ac_status=$?; continue; }
1585 # Check for guested configure.
1586 if test -f "$ac_srcdir/configure.gnu"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1589 elif test -f "$ac_srcdir/configure"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001594 fi || ac_status=$?
1595 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001596 done
1597fi
1598
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600if $ac_init_version; then
1601 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602configure
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001603generated by GNU Autoconf 2.63
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016062002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607This configure script is free software; the Free Software Foundation
1608gives unlimited permission to copy, distribute and modify it.
1609_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001612cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001613This file contains any messages produced by compilers while
1614running configure, to aid debugging if configure makes a mistake.
1615
1616It was created by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001617generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001618
1619 $ $0 $@
1620
1621_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623{
1624cat <<_ASUNAME
1625## --------- ##
1626## Platform. ##
1627## --------- ##
1628
1629hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1630uname -m = `(uname -m) 2>/dev/null || echo unknown`
1631uname -r = `(uname -r) 2>/dev/null || echo unknown`
1632uname -s = `(uname -s) 2>/dev/null || echo unknown`
1633uname -v = `(uname -v) 2>/dev/null || echo unknown`
1634
1635/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1636/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1637
1638/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1639/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1640/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001641/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001642/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1643/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1644/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1645
1646_ASUNAME
1647
1648as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649for as_dir in $PATH
1650do
1651 IFS=$as_save_IFS
1652 test -z "$as_dir" && as_dir=.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001653 $as_echo "PATH: $as_dir"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001655IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001656
1657} >&5
1658
1659cat >&5 <<_ACEOF
1660
1661
1662## ----------- ##
1663## Core tests. ##
1664## ----------- ##
1665
1666_ACEOF
1667
1668
1669# Keep a trace of the command line.
1670# Strip out --no-create and --no-recursion so they do not pile up.
1671# Strip out --silent because we don't want to record it for future runs.
1672# Also quote any args containing shell meta-characters.
1673# Make two passes to allow for proper duplicate-argument suppression.
1674ac_configure_args=
1675ac_configure_args0=
1676ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001677ac_must_keep_next=false
1678for ac_pass in 1 2
1679do
1680 for ac_arg
1681 do
1682 case $ac_arg in
1683 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1684 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1685 | -silent | --silent | --silen | --sile | --sil)
1686 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001687 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001688 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001689 esac
1690 case $ac_pass in
1691 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1692 2)
1693 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1694 if test $ac_must_keep_next = true; then
1695 ac_must_keep_next=false # Got value, back to normal.
1696 else
1697 case $ac_arg in
1698 *=* | --config-cache | -C | -disable-* | --disable-* \
1699 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1700 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1701 | -with-* | --with-* | -without-* | --without-* | --x)
1702 case "$ac_configure_args0 " in
1703 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 esac
1705 ;;
1706 -* ) ac_must_keep_next=true ;;
1707 esac
1708 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001709 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001710 ;;
1711 esac
1712 done
1713done
1714$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1715$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1716
1717# When interrupted or exit'd, cleanup temporary files, and complete
1718# config.log. We remove comments because anyway the quotes in there
1719# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001720# WARNING: Use '\'' to represent an apostrophe within the trap.
1721# 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 -05001722trap 'exit_status=$?
1723 # Save into config.log some information that might help in debugging.
1724 {
1725 echo
1726
1727 cat <<\_ASBOX
1728## ---------------- ##
1729## Cache variables. ##
1730## ---------------- ##
1731_ASBOX
1732 echo
1733 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001734(
1735 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1736 eval ac_val=\$$ac_var
1737 case $ac_val in #(
1738 *${as_nl}*)
1739 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001740 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1741$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001742 esac
1743 case $ac_var in #(
1744 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001745 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -04001746 *) $as_unset $ac_var ;;
1747 esac ;;
1748 esac
1749 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001750 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001751 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1752 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001754 "s/'\''/'\''\\\\'\'''\''/g;
1755 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1756 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001757 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001759 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001760 esac |
1761 sort
1762)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001763 echo
1764
1765 cat <<\_ASBOX
1766## ----------------- ##
1767## Output variables. ##
1768## ----------------- ##
1769_ASBOX
1770 echo
1771 for ac_var in $ac_subst_vars
1772 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001773 eval ac_val=\$$ac_var
1774 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001775 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001776 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001777 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001778 done | sort
1779 echo
1780
1781 if test -n "$ac_subst_files"; then
1782 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001783## ------------------- ##
1784## File substitutions. ##
1785## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001786_ASBOX
1787 echo
1788 for ac_var in $ac_subst_files
1789 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001790 eval ac_val=\$$ac_var
1791 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001792 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001793 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001794 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001795 done | sort
1796 echo
1797 fi
1798
1799 if test -s confdefs.h; then
1800 cat <<\_ASBOX
1801## ----------- ##
1802## confdefs.h. ##
1803## ----------- ##
1804_ASBOX
1805 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001806 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001807 echo
1808 fi
1809 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001810 $as_echo "$as_me: caught signal $ac_signal"
1811 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001812 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001813 rm -f core *.core core.conftest.* &&
1814 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001815 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001816' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001817for ac_signal in 1 2 13 15; do
1818 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819done
1820ac_signal=0
1821
1822# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001823rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001824
1825# Predefined preprocessor variables.
1826
1827cat >>confdefs.h <<_ACEOF
1828#define PACKAGE_NAME "$PACKAGE_NAME"
1829_ACEOF
1830
1831
1832cat >>confdefs.h <<_ACEOF
1833#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834_ACEOF
1835
1836
1837cat >>confdefs.h <<_ACEOF
1838#define PACKAGE_VERSION "$PACKAGE_VERSION"
1839_ACEOF
1840
1841
1842cat >>confdefs.h <<_ACEOF
1843#define PACKAGE_STRING "$PACKAGE_STRING"
1844_ACEOF
1845
1846
1847cat >>confdefs.h <<_ACEOF
1848#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849_ACEOF
1850
1851
1852# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001853# Prefer an explicitly selected file to automatically selected ones.
1854ac_site_file1=NONE
1855ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001856if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001857 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001858elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001859 ac_site_file1=$prefix/share/config.site
1860 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04001861else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001862 ac_site_file1=$ac_default_prefix/share/config.site
1863 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001864fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001865for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001866do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001867 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001868 if test -r "$ac_site_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001869 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1870$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001871 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001872 . "$ac_site_file"
1873 fi
1874done
1875
1876if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001877 # Some versions of bash will fail to source /dev/null (special
1878 # files actually), so we avoid doing that.
1879 if test -f "$cache_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001880 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1881$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001882 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001883 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1884 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001885 esac
1886 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001887else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001888 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1889$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001890 >$cache_file
1891fi
1892
1893# Check that the precious variables saved in the cache have kept the same
1894# value.
1895ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001896for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001897 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1898 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001899 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1900 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001901 case $ac_old_set,$ac_new_set in
1902 set,)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001903 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1904$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001905 ac_cache_corrupted=: ;;
1906 ,set)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001907 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1908$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001909 ac_cache_corrupted=: ;;
1910 ,);;
1911 *)
1912 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001913 # differences in whitespace do not lead to failure.
1914 ac_old_val_w=`echo x $ac_old_val`
1915 ac_new_val_w=`echo x $ac_new_val`
1916 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1917 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1918$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1919 ac_cache_corrupted=:
1920 else
1921 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1922$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1923 eval $ac_var=\$ac_old_val
1924 fi
1925 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1926$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1927 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1928$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001929 fi;;
1930 esac
1931 # Pass precious variables to config.status.
1932 if test "$ac_new_set" = set; then
1933 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001934 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001935 *) ac_arg=$ac_var=$ac_new_val ;;
1936 esac
1937 case " $ac_configure_args " in
1938 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1939 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1940 esac
1941 fi
1942done
1943if $ac_cache_corrupted; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001944 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1946 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1947$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1948 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1949$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001950 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001951fi
1952
Theodore Ts'oe1052142006-10-21 21:46:47 -04001953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001969ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001970ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1973ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001975
1976
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001977ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001978for ac_dir in config "$srcdir"/config; do
1979 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001980 ac_aux_dir=$ac_dir
1981 ac_install_sh="$ac_aux_dir/install-sh -c"
1982 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001983 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001984 ac_aux_dir=$ac_dir
1985 ac_install_sh="$ac_aux_dir/install.sh -c"
1986 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001987 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001988 ac_aux_dir=$ac_dir
1989 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001991 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001992done
1993if test -z "$ac_aux_dir"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001994 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1995$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001996 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001998
1999# These three variables are undocumented and unsupported,
2000# and are intended to be withdrawn in a future Autoconf release.
2001# They can cause serious problems if a builder's source tree is in a directory
2002# whose full name contains unusual characters.
2003ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2004ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2005ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2006
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002007
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002008MCONFIG=./MCONFIG
2009
Theodore Ts'o74becf31997-04-26 14:37:06 +00002010BINARY_TYPE=bin
2011E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2012 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2013DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2014 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002015E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002016MONTH=`echo $DATE | awk -F- '{print $2}'`
2017YEAR=`echo $DATE | awk -F- '{print $3}'`
2018
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002019if expr $YEAR ">" 1900 > /dev/null ; then
2020 E2FSPROGS_YEAR=$YEAR
2021elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002022 E2FSPROGS_YEAR=19$YEAR
2023else
2024 E2FSPROGS_YEAR=20$YEAR
2025fi
2026
2027case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002028Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2029Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2030Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2031Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2032May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2033Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2034Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2035Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2036Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2037Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2038Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2039Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002040*) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2041$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002042esac
2043
Andreas Dilger927566a2006-11-12 19:41:25 -05002044base_ver=`echo $E2FSPROGS_VERSION | \
2045 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002046
2047date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2048
2049case $E2FSPROGS_VERSION in
2050*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002051 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002052 ;;
2053*)
2054 E2FSPROGS_PKGVER="$base_ver"
2055 ;;
2056esac
2057
2058unset DATE MONTH YEAR base_ver pre_vers date_spec
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002059{ $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2060$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2061{ $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2062$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002063
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002064
2065
2066
Andreas Dilger927566a2006-11-12 19:41:25 -05002067
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002068# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002069$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002070 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2071$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002072 { (exit 1); exit 1; }; }
2073
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002074{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2075$as_echo_n "checking build system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002076if test "${ac_cv_build+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002077 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002078else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002079 ac_build_alias=$build_alias
2080test "x$ac_build_alias" = x &&
2081 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2082test "x$ac_build_alias" = x &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002083 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2084$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002085 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002086ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002087 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2088$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002089 { (exit 1); exit 1; }; }
2090
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002091fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002092{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2093$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002094case $ac_cv_build in
2095*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002096*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2097$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098 { (exit 1); exit 1; }; };;
2099esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002100build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101ac_save_IFS=$IFS; IFS='-'
2102set x $ac_cv_build
2103shift
2104build_cpu=$1
2105build_vendor=$2
2106shift; shift
2107# Remember, the first character of IFS is used to create $*,
2108# except with old shells:
2109build_os=$*
2110IFS=$ac_save_IFS
2111case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002112
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002113
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002114{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2115$as_echo_n "checking host system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002116if test "${ac_cv_host+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002117 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002118else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002119 if test "x$host_alias" = x; then
2120 ac_cv_host=$ac_cv_build
2121else
2122 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002123 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2124$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002125 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002126fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002128fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002129{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2130$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002131case $ac_cv_host in
2132*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002133*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2134$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002135 { (exit 1); exit 1; }; };;
2136esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002137host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002138ac_save_IFS=$IFS; IFS='-'
2139set x $ac_cv_host
2140shift
2141host_cpu=$1
2142host_vendor=$2
2143shift; shift
2144# Remember, the first character of IFS is used to create $*,
2145# except with old shells:
2146host_os=$*
2147IFS=$ac_save_IFS
2148case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002149
2150
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002151WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002152
Theodore Ts'oe1052142006-10-21 21:46:47 -04002153# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002154if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002156WITH_DIET_LIBC=yes
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002157{ $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2158$as_echo "CC=$CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002159fi
2160
2161# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002162if test "${with_cc+set}" = set; then
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04002163 withval=$with_cc; { { $as_echo "$as_me:$LINENO: error: --with-cc no longer supported; use CC= instead" >&5
2164$as_echo "$as_me: error: --with-cc no longer supported; use CC= instead" >&2;}
2165 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002166fi
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04002167
2168
2169# Check whether --with-ccopts was given.
2170if test "${with_ccopts+set}" = set; then
2171 withval=$with_ccopts; { { $as_echo "$as_me:$LINENO: error: --with-ccopts no longer supported; use CFLAGS= instead" >&5
2172$as_echo "$as_me: error: --with-ccopts no longer supported; use CFLAGS= instead" >&2;}
2173 { (exit 1); exit 1; }; }
2174fi
2175
2176
2177# Check whether --with-ldopts was given.
2178if test "${with_ldopts+set}" = set; then
2179 withval=$with_ldopts; { { $as_echo "$as_me:$LINENO: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&5
2180$as_echo "$as_me: error: --with-ldopts no longer supported; use LDFLAGS= instead" >&2;}
2181 { (exit 1); exit 1; }; }
2182fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00002183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002184ac_ext=c
2185ac_cpp='$CPP $CPPFLAGS'
2186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2188ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189if test -n "$ac_tool_prefix"; then
2190 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2191set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002192{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2193$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002194if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002195 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002196else
2197 if test -n "$CC"; then
2198 ac_cv_prog_CC="$CC" # Let the user override the test.
2199else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2201for as_dir in $PATH
2202do
2203 IFS=$as_save_IFS
2204 test -z "$as_dir" && as_dir=.
2205 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002206 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 -05002207 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002208 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002209 break 2
2210 fi
2211done
2212done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002213IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002214
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002215fi
2216fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002217CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002218if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002219 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2220$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002221else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002222 { $as_echo "$as_me:$LINENO: result: no" >&5
2223$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224fi
2225
Theodore Ts'oe1052142006-10-21 21:46:47 -04002226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002227fi
2228if test -z "$ac_cv_prog_CC"; then
2229 ac_ct_CC=$CC
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231set dummy gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002232{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2233$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002235 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002236else
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239else
2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241for as_dir in $PATH
2242do
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002246 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 -05002247 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002248 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002249 break 2
2250 fi
2251done
2252done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002253IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002254
2255fi
2256fi
2257ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002259 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002261else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002262 { $as_echo "$as_me:$LINENO: result: no" >&5
2263$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002264fi
2265
Theodore Ts'oe1052142006-10-21 21:46:47 -04002266 if test "x$ac_ct_CC" = x; then
2267 CC=""
2268 else
2269 case $cross_compiling:$ac_tool_warned in
2270yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002271{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2272$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002273ac_tool_warned=yes ;;
2274esac
2275 CC=$ac_ct_CC
2276 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277else
2278 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002279fi
2280
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002281if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002282 if test -n "$ac_tool_prefix"; then
2283 # 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 -05002284set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002285{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2286$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002287if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002288 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002289else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002299 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 -05002300 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002301 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002302 break 2
2303 fi
2304done
2305done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307
2308fi
2309fi
2310CC=$ac_cv_prog_CC
2311if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002312 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2313$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002314else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002315 { $as_echo "$as_me:$LINENO: result: no" >&5
2316$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002317fi
2318
Theodore Ts'oe1052142006-10-21 21:46:47 -04002319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002320 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002321fi
2322if test -z "$CC"; then
2323 # Extract the first word of "cc", so it can be a program name with args.
2324set dummy cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2326$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002327if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002328 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329else
2330 if test -n "$CC"; then
2331 ac_cv_prog_CC="$CC" # Let the user override the test.
2332else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002333 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335for as_dir in $PATH
2336do
2337 IFS=$as_save_IFS
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002340 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 -05002341 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2342 ac_prog_rejected=yes
2343 continue
2344 fi
2345 ac_cv_prog_CC="cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002347 break 2
2348 fi
2349done
2350done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002351IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002353if test $ac_prog_rejected = yes; then
2354 # We found a bogon in the path, so make sure we never use it.
2355 set dummy $ac_cv_prog_CC
2356 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002358 # We chose a different compiler from the bogus one.
2359 # However, it has the same basename, so the bogon will be chosen
2360 # first if we set CC to just the basename; use the full file name.
2361 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002362 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002363 fi
2364fi
2365fi
2366fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002368if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002369 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2370$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002371else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002372 { $as_echo "$as_me:$LINENO: result: no" >&5
2373$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002374fi
2375
Theodore Ts'oe1052142006-10-21 21:46:47 -04002376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002377fi
2378if test -z "$CC"; then
2379 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002380 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002381 do
2382 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2383set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002384{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2385$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002387 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002388else
2389 if test -n "$CC"; then
2390 ac_cv_prog_CC="$CC" # Let the user override the test.
2391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393for as_dir in $PATH
2394do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002398 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 -05002399 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401 break 2
2402 fi
2403done
2404done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002405IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002407fi
2408fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002410if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002411 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2412$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002413else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002414 { $as_echo "$as_me:$LINENO: result: no" >&5
2415$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002416fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002417
Theodore Ts'oe1052142006-10-21 21:46:47 -04002418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002419 test -n "$CC" && break
2420 done
2421fi
2422if test -z "$CC"; then
2423 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002424 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425do
2426 # Extract the first word of "$ac_prog", so it can be a program name with args.
2427set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002428{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2429$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002431 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432else
2433 if test -n "$ac_ct_CC"; then
2434 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435else
2436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2437for as_dir in $PATH
2438do
2439 IFS=$as_save_IFS
2440 test -z "$as_dir" && as_dir=.
2441 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002442 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 -05002443 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002444 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002446 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447done
2448done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002449IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450
2451fi
2452fi
2453ac_ct_CC=$ac_cv_prog_ac_ct_CC
2454if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002455 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2456$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002458 { $as_echo "$as_me:$LINENO: result: no" >&5
2459$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002460fi
2461
Theodore Ts'oe1052142006-10-21 21:46:47 -04002462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 test -n "$ac_ct_CC" && break
2464done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002465
Theodore Ts'oe1052142006-10-21 21:46:47 -04002466 if test "x$ac_ct_CC" = x; then
2467 CC=""
2468 else
2469 case $cross_compiling:$ac_tool_warned in
2470yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002471{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473ac_tool_warned=yes ;;
2474esac
2475 CC=$ac_ct_CC
2476 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002480
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002481
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002482test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2483$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2484{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002485See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002486$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002487See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002488 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489
2490# Provide some information about the compiler.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002491$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2492set X $ac_compile
2493ac_compiler=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494{ (ac_try="$ac_compiler --version >&5"
2495case "(($ac_try" in
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2498esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505{ (ac_try="$ac_compiler -v >&5"
2506case "(($ac_try" in
2507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2508 *) ac_try_echo=$ac_try;;
2509esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2511$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516{ (ac_try="$ac_compiler -V >&5"
2517case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2522$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002526 (exit $ac_status); }
2527
2528cat >conftest.$ac_ext <<_ACEOF
2529/* confdefs.h. */
2530_ACEOF
2531cat confdefs.h >>conftest.$ac_ext
2532cat >>conftest.$ac_ext <<_ACEOF
2533/* end confdefs.h. */
2534
2535int
2536main ()
2537{
2538
2539 ;
2540 return 0;
2541}
2542_ACEOF
2543ac_clean_files_save=$ac_clean_files
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002544ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545# Try to create an executable without -o first, disregard a.out.
2546# It will help us diagnose broken compilers, and finding out an intuition
2547# of exeext.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002548{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2549$as_echo_n "checking for C compiler default output file name... " >&6; }
2550ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2551
2552# The possible output files:
2553ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2554
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555ac_rmfiles=
2556for ac_file in $ac_files
2557do
2558 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2561 esac
2562done
2563rm -f $ac_rmfiles
2564
2565if { (ac_try="$ac_link_default"
2566case "(($ac_try" in
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2569esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2571$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002572 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002575 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2577# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2578# in a Makefile. We should not override ac_cv_exeext if it was cached,
2579# so that the user can short-circuit this test for compilers unknown to
2580# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002581for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582do
2583 test -f "$ac_file" || continue
2584 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586 ;;
2587 [ab].out )
2588 # We found the default executable, but exeext='' is most
2589 # certainly right.
2590 break;;
2591 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2593 then :; else
2594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2595 fi
2596 # We set ac_cv_exeext here because the later test for it is not
2597 # safe: cross compilers may not add the suffix if given an `-o'
2598 # argument, so we may need to know it at that point already.
2599 # Even if this section looks crufty: it has the advantage of
2600 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002601 break;;
2602 * )
2603 break;;
2604 esac
2605done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002606test "$ac_cv_exeext" = no && ac_cv_exeext=
2607
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002608else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002609 ac_file=''
2610fi
2611
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2613$as_echo "$ac_file" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002614if test -z "$ac_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616sed 's/^/| /' conftest.$ac_ext >&5
2617
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002618{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2619$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2620{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002621See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002622$as_echo "$as_me: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002624 { (exit 77); exit 77; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002625fi
2626
2627ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002628
Theodore Ts'oe1052142006-10-21 21:46:47 -04002629# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002630# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002631{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2632$as_echo_n "checking whether the C compiler works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002633# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2634# If not cross compiling, check that we can run a simple program.
2635if test "$cross_compiling" != yes; then
2636 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002637 { (case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2642$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002643 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 (exit $ac_status); }; }; then
2647 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002648 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 if test "$cross_compiling" = maybe; then
2650 cross_compiling=yes
2651 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002652 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2654{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655If you meant to cross compile, use \`--host'.
2656See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002657$as_echo "$as_me: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658If you meant to cross compile, use \`--host'.
2659See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002660 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002662 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002663fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002664{ $as_echo "$as_me:$LINENO: result: yes" >&5
2665$as_echo "yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002666
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002667rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002668ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002669# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002671{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2672$as_echo_n "checking whether we are cross compiling... " >&6; }
2673{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2674$as_echo "$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002675
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002676{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2677$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002678if { (ac_try="$ac_link"
2679case "(($ac_try" in
2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2681 *) ac_try_echo=$ac_try;;
2682esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2684$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002685 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002688 (exit $ac_status); }; then
2689 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2690# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2691# work properly (i.e., refer to `conftest.exe'), while it won't with
2692# `rm'.
2693for ac_file in conftest.exe conftest conftest.*; do
2694 test -f "$ac_file" || continue
2695 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002696 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002697 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002698 break;;
2699 * ) break;;
2700 esac
2701done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002702else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002703 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2704$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2705{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002707$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002708See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710fi
2711
2712rm -f conftest$ac_cv_exeext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002713{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2714$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002715
2716rm -f conftest.$ac_ext
2717EXEEXT=$ac_cv_exeext
2718ac_exeext=$EXEEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002719{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2720$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002721if test "${ac_cv_objext+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002722 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002723else
2724 cat >conftest.$ac_ext <<_ACEOF
2725/* confdefs.h. */
2726_ACEOF
2727cat confdefs.h >>conftest.$ac_ext
2728cat >>conftest.$ac_ext <<_ACEOF
2729/* end confdefs.h. */
2730
2731int
2732main ()
2733{
2734
2735 ;
2736 return 0;
2737}
2738_ACEOF
2739rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002740if { (ac_try="$ac_compile"
2741case "(($ac_try" in
2742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743 *) ac_try_echo=$ac_try;;
2744esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002747 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002748 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002750 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002751 for ac_file in conftest.o conftest.obj conftest.*; do
2752 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002753 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2756 break;;
2757 esac
2758done
2759else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002760 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002761sed 's/^/| /' conftest.$ac_ext >&5
2762
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002763{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2765{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002766See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002767$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002768See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002769 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002770fi
2771
2772rm -f conftest.$ac_cv_objext conftest.$ac_ext
2773fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002774{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2775$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002776OBJEXT=$ac_cv_objext
2777ac_objext=$OBJEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002778{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2779$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002780if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002781 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002782else
2783 cat >conftest.$ac_ext <<_ACEOF
2784/* confdefs.h. */
2785_ACEOF
2786cat confdefs.h >>conftest.$ac_ext
2787cat >>conftest.$ac_ext <<_ACEOF
2788/* end confdefs.h. */
2789
2790int
2791main ()
2792{
2793#ifndef __GNUC__
2794 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002795#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797 ;
2798 return 0;
2799}
2800_ACEOF
2801rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002802if { (ac_try="$ac_compile"
2803case "(($ac_try" in
2804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2805 *) ac_try_echo=$ac_try;;
2806esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002809 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810 ac_status=$?
2811 grep -v '^ *+' conftest.er1 >conftest.err
2812 rm -f conftest.er1
2813 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002815 (exit $ac_status); } && {
2816 test -z "$ac_c_werror_flag" ||
2817 test ! -s conftest.err
2818 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002819 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002820else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822sed 's/^/| /' conftest.$ac_ext >&5
2823
Theodore Ts'oe1052142006-10-21 21:46:47 -04002824 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826
2827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002831{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2832$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2833if test $ac_compiler_gnu = yes; then
2834 GCC=yes
2835else
2836 GCC=
2837fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002838ac_test_CFLAGS=${CFLAGS+set}
2839ac_save_CFLAGS=$CFLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002840{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2841$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002843 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002844else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845 ac_save_c_werror_flag=$ac_c_werror_flag
2846 ac_c_werror_flag=yes
2847 ac_cv_prog_cc_g=no
2848 CFLAGS="-g"
2849 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002850/* confdefs.h. */
2851_ACEOF
2852cat confdefs.h >>conftest.$ac_ext
2853cat >>conftest.$ac_ext <<_ACEOF
2854/* end confdefs.h. */
2855
2856int
2857main ()
2858{
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865if { (ac_try="$ac_compile"
2866case "(($ac_try" in
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2869esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002872 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873 ac_status=$?
2874 grep -v '^ *+' conftest.er1 >conftest.err
2875 rm -f conftest.er1
2876 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002882 ac_cv_prog_cc_g=yes
2883else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002884 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002886
Theodore Ts'oe1052142006-10-21 21:46:47 -04002887 CFLAGS=""
2888 cat >conftest.$ac_ext <<_ACEOF
2889/* confdefs.h. */
2890_ACEOF
2891cat confdefs.h >>conftest.$ac_ext
2892cat >>conftest.$ac_ext <<_ACEOF
2893/* end confdefs.h. */
2894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903rm -f conftest.$ac_objext
2904if { (ac_try="$ac_compile"
2905case "(($ac_try" in
2906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2907 *) ac_try_echo=$ac_try;;
2908esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2910$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911 (eval "$ac_compile") 2>conftest.er1
2912 ac_status=$?
2913 grep -v '^ *+' conftest.er1 >conftest.err
2914 rm -f conftest.er1
2915 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002917 (exit $ac_status); } && {
2918 test -z "$ac_c_werror_flag" ||
2919 test ! -s conftest.err
2920 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921 :
2922else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002923 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002924sed 's/^/| /' conftest.$ac_ext >&5
2925
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2927 CFLAGS="-g"
2928 cat >conftest.$ac_ext <<_ACEOF
2929/* confdefs.h. */
2930_ACEOF
2931cat confdefs.h >>conftest.$ac_ext
2932cat >>conftest.$ac_ext <<_ACEOF
2933/* end confdefs.h. */
2934
2935int
2936main ()
2937{
2938
2939 ;
2940 return 0;
2941}
2942_ACEOF
2943rm -f conftest.$ac_objext
2944if { (ac_try="$ac_compile"
2945case "(($ac_try" in
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2948esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2950$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951 (eval "$ac_compile") 2>conftest.er1
2952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002957 (exit $ac_status); } && {
2958 test -z "$ac_c_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002961 ac_cv_prog_cc_g=yes
2962else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002963 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002964sed 's/^/| /' conftest.$ac_ext >&5
2965
2966
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002967fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002968
2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002971
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973fi
2974
2975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2976 ac_c_werror_flag=$ac_save_c_werror_flag
2977fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002978{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2979$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002980if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002982elif test $ac_cv_prog_cc_g = yes; then
2983 if test "$GCC" = yes; then
2984 CFLAGS="-g -O2"
2985 else
2986 CFLAGS="-g"
2987 fi
2988else
2989 if test "$GCC" = yes; then
2990 CFLAGS="-O2"
2991 else
2992 CFLAGS=
2993 fi
2994fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002995{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2996$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002997if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002998 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003000 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001ac_save_CC=$CC
3002cat >conftest.$ac_ext <<_ACEOF
3003/* confdefs.h. */
3004_ACEOF
3005cat confdefs.h >>conftest.$ac_ext
3006cat >>conftest.$ac_ext <<_ACEOF
3007/* end confdefs.h. */
3008#include <stdarg.h>
3009#include <stdio.h>
3010#include <sys/types.h>
3011#include <sys/stat.h>
3012/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3013struct buf { int x; };
3014FILE * (*rcsopen) (struct buf *, struct stat *, int);
3015static char *e (p, i)
3016 char **p;
3017 int i;
3018{
3019 return p[i];
3020}
3021static char *f (char * (*g) (char **, int), char **p, ...)
3022{
3023 char *s;
3024 va_list v;
3025 va_start (v,p);
3026 s = g (p, va_arg (v,int));
3027 va_end (v);
3028 return s;
3029}
3030
3031/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3032 function prototypes and stuff, but not '\xHH' hex character constants.
3033 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003034 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3036 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3039
Theodore Ts'oe1052142006-10-21 21:46:47 -04003040/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3041 inside strings and character constants. */
3042#define FOO(x) 'x'
3043int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3044
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045int test (int i, double x);
3046struct s1 {int (*f) (int a);};
3047struct s2 {int (*f) (double a);};
3048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3049int argc;
3050char **argv;
3051int
3052main ()
3053{
3054return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3055 ;
3056 return 0;
3057}
3058_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003059for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3060 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061do
3062 CC="$ac_save_CC $ac_arg"
3063 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003064if { (ac_try="$ac_compile"
3065case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3070$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003071 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072 ac_status=$?
3073 grep -v '^ *+' conftest.er1 >conftest.err
3074 rm -f conftest.er1
3075 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003077 (exit $ac_status); } && {
3078 test -z "$ac_c_werror_flag" ||
3079 test ! -s conftest.err
3080 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003081 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003083 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003084sed 's/^/| /' conftest.$ac_ext >&5
3085
Theodore Ts'oe1052142006-10-21 21:46:47 -04003086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003088
3089rm -f core conftest.err conftest.$ac_objext
3090 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003092rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003093CC=$ac_save_CC
3094
3095fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003096# AC_CACHE_VAL
3097case "x$ac_cv_prog_cc_c89" in
3098 x)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003099 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3100$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003101 xno)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003102 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3103$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003104 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003105 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003106 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3107$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003108esac
3109
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111ac_ext=c
3112ac_cpp='$CPP $CPPFLAGS'
3113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3115ac_compiler_gnu=$ac_cv_c_compiler_gnu
3116
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117ac_ext=c
3118ac_cpp='$CPP $CPPFLAGS'
3119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3121ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003122{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3123$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003124# On Suns, sometimes $CPP names a directory.
3125if test -n "$CPP" && test -d "$CPP"; then
3126 CPP=
3127fi
3128if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129 if test "${ac_cv_prog_CPP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003131else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003132 # Double quotes because CPP needs to be expanded
3133 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3134 do
3135 ac_preproc_ok=false
3136for ac_c_preproc_warn_flag in '' yes
3137do
3138 # Use a header file that comes with gcc, so configuring glibc
3139 # with a fresh cross-compiler works.
3140 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3141 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003142 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143 # not just through cpp. "Syntax error" is here to catch this case.
3144 cat >conftest.$ac_ext <<_ACEOF
3145/* confdefs.h. */
3146_ACEOF
3147cat confdefs.h >>conftest.$ac_ext
3148cat >>conftest.$ac_ext <<_ACEOF
3149/* end confdefs.h. */
3150#ifdef __STDC__
3151# include <limits.h>
3152#else
3153# include <assert.h>
3154#endif
3155 Syntax error
3156_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003157if { (ac_try="$ac_cpp conftest.$ac_ext"
3158case "(($ac_try" in
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3161esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003164 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165 ac_status=$?
3166 grep -v '^ *+' conftest.er1 >conftest.err
3167 rm -f conftest.er1
3168 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003170 (exit $ac_status); } >/dev/null && {
3171 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3172 test ! -s conftest.err
3173 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003174 :
3175else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003176 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003177sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003179 # Broken: fails on valid input.
3180continue
3181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183rm -f conftest.err conftest.$ac_ext
3184
Theodore Ts'oe1052142006-10-21 21:46:47 -04003185 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003186 # can be detected and how.
3187 cat >conftest.$ac_ext <<_ACEOF
3188/* confdefs.h. */
3189_ACEOF
3190cat confdefs.h >>conftest.$ac_ext
3191cat >>conftest.$ac_ext <<_ACEOF
3192/* end confdefs.h. */
3193#include <ac_nonexistent.h>
3194_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003195if { (ac_try="$ac_cpp conftest.$ac_ext"
3196case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003200eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203 ac_status=$?
3204 grep -v '^ *+' conftest.er1 >conftest.err
3205 rm -f conftest.er1
3206 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003208 (exit $ac_status); } >/dev/null && {
3209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212 # Broken: success on invalid input.
3213continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003214else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003215 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003216sed 's/^/| /' conftest.$ac_ext >&5
3217
3218 # Passes both tests.
3219ac_preproc_ok=:
3220break
3221fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223rm -f conftest.err conftest.$ac_ext
3224
3225done
3226# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3227rm -f conftest.err conftest.$ac_ext
3228if $ac_preproc_ok; then
3229 break
3230fi
3231
3232 done
3233 ac_cv_prog_CPP=$CPP
3234
3235fi
3236 CPP=$ac_cv_prog_CPP
3237else
3238 ac_cv_prog_CPP=$CPP
3239fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003240{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3241$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003242ac_preproc_ok=false
3243for ac_c_preproc_warn_flag in '' yes
3244do
3245 # Use a header file that comes with gcc, so configuring glibc
3246 # with a fresh cross-compiler works.
3247 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3248 # <limits.h> exists even on freestanding compilers.
3249 # On the NeXT, cc -E runs the code through the compiler's parser,
3250 # not just through cpp. "Syntax error" is here to catch this case.
3251 cat >conftest.$ac_ext <<_ACEOF
3252/* confdefs.h. */
3253_ACEOF
3254cat confdefs.h >>conftest.$ac_ext
3255cat >>conftest.$ac_ext <<_ACEOF
3256/* end confdefs.h. */
3257#ifdef __STDC__
3258# include <limits.h>
3259#else
3260# include <assert.h>
3261#endif
3262 Syntax error
3263_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003264if { (ac_try="$ac_cpp conftest.$ac_ext"
3265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3270$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272 ac_status=$?
3273 grep -v '^ *+' conftest.er1 >conftest.err
3274 rm -f conftest.er1
3275 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003277 (exit $ac_status); } >/dev/null && {
3278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281 :
3282else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003283 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284sed 's/^/| /' conftest.$ac_ext >&5
3285
3286 # Broken: fails on valid input.
3287continue
3288fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003290rm -f conftest.err conftest.$ac_ext
3291
Theodore Ts'oe1052142006-10-21 21:46:47 -04003292 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003293 # can be detected and how.
3294 cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h. */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h. */
3300#include <ac_nonexistent.h>
3301_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003302if { (ac_try="$ac_cpp conftest.$ac_ext"
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3308$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003315 (exit $ac_status); } >/dev/null && {
3316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3318 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003319 # Broken: success on invalid input.
3320continue
3321else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003322 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330rm -f conftest.err conftest.$ac_ext
3331
3332done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then
3336 :
3337else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003338 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003342$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003344 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345fi
3346
3347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
3353
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003354
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3356$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003357if test "${ac_cv_path_GREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003358 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003360 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003361 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003362 # Loop through the user's path and test for each of PROGNAME-LIST
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003364for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3365do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3371 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3372# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373 # Check for GNU $ac_path_GREP
3374case `"$ac_path_GREP" --version 2>&1` in
3375*GNU*)
3376 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3377*)
3378 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003379 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003380 while :
3381 do
3382 cat "conftest.in" "conftest.in" >"conftest.tmp"
3383 mv "conftest.tmp" "conftest.in"
3384 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003385 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003386 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3387 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3388 ac_count=`expr $ac_count + 1`
3389 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3390 # Best one so far, save it but keep looking for a better one
3391 ac_cv_path_GREP="$ac_path_GREP"
3392 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003393 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003394 # 10*(2^10) chars as input seems more than enough
3395 test $ac_count -gt 10 && break
3396 done
3397 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3398esac
3399
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003400 $ac_path_GREP_found && break 3
3401 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003402 done
3403done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003404IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003405 if test -z "$ac_cv_path_GREP"; then
3406 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3407$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003409 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410else
3411 ac_cv_path_GREP=$GREP
3412fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003413
Theodore Ts'oe1052142006-10-21 21:46:47 -04003414fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003415{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3416$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003417 GREP="$ac_cv_path_GREP"
3418
3419
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003420{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3421$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003422if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003423 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04003424else
3425 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3426 then ac_cv_path_EGREP="$GREP -E"
3427 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003428 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003430 # Loop through the user's path and test for each of PROGNAME-LIST
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003432for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3433do
3434 IFS=$as_save_IFS
3435 test -z "$as_dir" && as_dir=.
3436 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3439 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3440# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003441 # Check for GNU $ac_path_EGREP
3442case `"$ac_path_EGREP" --version 2>&1` in
3443*GNU*)
3444 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3445*)
3446 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003447 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448 while :
3449 do
3450 cat "conftest.in" "conftest.in" >"conftest.tmp"
3451 mv "conftest.tmp" "conftest.in"
3452 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003453 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3456 ac_count=`expr $ac_count + 1`
3457 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3458 # Best one so far, save it but keep looking for a better one
3459 ac_cv_path_EGREP="$ac_path_EGREP"
3460 ac_path_EGREP_max=$ac_count
3461 fi
3462 # 10*(2^10) chars as input seems more than enough
3463 test $ac_count -gt 10 && break
3464 done
3465 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3466esac
3467
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003468 $ac_path_EGREP_found && break 3
3469 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003470 done
3471done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003472IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003473 if test -z "$ac_cv_path_EGREP"; then
3474 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3475$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003476 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003477 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003478else
3479 ac_cv_path_EGREP=$EGREP
3480fi
3481
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 fi
3483fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003484{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3485$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486 EGREP="$ac_cv_path_EGREP"
3487
3488
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003489{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3490$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491if test "${ac_cv_header_stdc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003492 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493else
3494 cat >conftest.$ac_ext <<_ACEOF
3495/* confdefs.h. */
3496_ACEOF
3497cat confdefs.h >>conftest.$ac_ext
3498cat >>conftest.$ac_ext <<_ACEOF
3499/* end confdefs.h. */
3500#include <stdlib.h>
3501#include <stdarg.h>
3502#include <string.h>
3503#include <float.h>
3504
3505int
3506main ()
3507{
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
3513rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514if { (ac_try="$ac_compile"
3515case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003519eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3520$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003521 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522 ac_status=$?
3523 grep -v '^ *+' conftest.er1 >conftest.err
3524 rm -f conftest.er1
3525 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003527 (exit $ac_status); } && {
3528 test -z "$ac_c_werror_flag" ||
3529 test ! -s conftest.err
3530 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003531 ac_cv_header_stdc=yes
3532else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003533 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003534sed 's/^/| /' conftest.$ac_ext >&5
3535
Theodore Ts'oe1052142006-10-21 21:46:47 -04003536 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003538
3539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540
3541if test $ac_cv_header_stdc = yes; then
3542 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3543 cat >conftest.$ac_ext <<_ACEOF
3544/* confdefs.h. */
3545_ACEOF
3546cat confdefs.h >>conftest.$ac_ext
3547cat >>conftest.$ac_ext <<_ACEOF
3548/* end confdefs.h. */
3549#include <string.h>
3550
3551_ACEOF
3552if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3553 $EGREP "memchr" >/dev/null 2>&1; then
3554 :
3555else
3556 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003557fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003558rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003559
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003560fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003561
3562if test $ac_cv_header_stdc = yes; then
3563 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3569/* end confdefs.h. */
3570#include <stdlib.h>
3571
3572_ACEOF
3573if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3574 $EGREP "free" >/dev/null 2>&1; then
3575 :
3576else
3577 ac_cv_header_stdc=no
3578fi
3579rm -f conftest*
3580
3581fi
3582
3583if test $ac_cv_header_stdc = yes; then
3584 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3585 if test "$cross_compiling" = yes; then
3586 :
3587else
3588 cat >conftest.$ac_ext <<_ACEOF
3589/* confdefs.h. */
3590_ACEOF
3591cat confdefs.h >>conftest.$ac_ext
3592cat >>conftest.$ac_ext <<_ACEOF
3593/* end confdefs.h. */
3594#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003595#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003596#if ((' ' & 0x0FF) == 0x020)
3597# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3598# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3599#else
3600# define ISLOWER(c) \
3601 (('a' <= (c) && (c) <= 'i') \
3602 || ('j' <= (c) && (c) <= 'r') \
3603 || ('s' <= (c) && (c) <= 'z'))
3604# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3605#endif
3606
3607#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3608int
3609main ()
3610{
3611 int i;
3612 for (i = 0; i < 256; i++)
3613 if (XOR (islower (i), ISLOWER (i))
3614 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003615 return 2;
3616 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003617}
3618_ACEOF
3619rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003620if { (ac_try="$ac_link"
3621case "(($ac_try" in
3622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3623 *) ac_try_echo=$ac_try;;
3624esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3626$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003628 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003631 { (case "(($ac_try" in
3632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3634esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3636$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003637 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003638 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003640 (exit $ac_status); }; }; then
3641 :
3642else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003643 $as_echo "$as_me: program exited with status $ac_status" >&5
3644$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003645sed 's/^/| /' conftest.$ac_ext >&5
3646
3647( exit $ac_status )
3648ac_cv_header_stdc=no
3649fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003650rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04003651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3652fi
3653
3654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655fi
3656fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003657{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3658$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659if test $ac_cv_header_stdc = yes; then
3660
3661cat >>confdefs.h <<\_ACEOF
3662#define STDC_HEADERS 1
3663_ACEOF
3664
3665fi
3666
3667# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3678 inttypes.h stdint.h unistd.h
3679do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003680as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3681{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3682$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685else
3686 cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
3692$ac_includes_default
3693
3694#include <$ac_header>
3695_ACEOF
3696rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003697if { (ac_try="$ac_compile"
3698case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3703$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003704 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003705 ac_status=$?
3706 grep -v '^ *+' conftest.er1 >conftest.err
3707 rm -f conftest.er1
3708 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003710 (exit $ac_status); } && {
3711 test -z "$ac_c_werror_flag" ||
3712 test ! -s conftest.err
3713 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003714 eval "$as_ac_Header=yes"
3715else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003716 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003717sed 's/^/| /' conftest.$ac_ext >&5
3718
Theodore Ts'oe1052142006-10-21 21:46:47 -04003719 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003721
3722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003723fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003724ac_res=`eval 'as_val=${'$as_ac_Header'}
3725 $as_echo "$as_val"'`
3726 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3727$as_echo "$ac_res" >&6; }
3728as_val=`eval 'as_val=${'$as_ac_Header'}
3729 $as_echo "$as_val"'`
3730 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003731 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003732#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733_ACEOF
3734
3735fi
3736
3737done
3738
3739
3740if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003741 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3742$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003743if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003744 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003745fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003746{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3747$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003748else
3749 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003750{ $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3751$as_echo_n "checking linux/fs.h usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003752cat >conftest.$ac_ext <<_ACEOF
3753/* confdefs.h. */
3754_ACEOF
3755cat confdefs.h >>conftest.$ac_ext
3756cat >>conftest.$ac_ext <<_ACEOF
3757/* end confdefs.h. */
3758$ac_includes_default
3759#include <linux/fs.h>
3760_ACEOF
3761rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003762if { (ac_try="$ac_compile"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3768$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003770 ac_status=$?
3771 grep -v '^ *+' conftest.er1 >conftest.err
3772 rm -f conftest.er1
3773 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003775 (exit $ac_status); } && {
3776 test -z "$ac_c_werror_flag" ||
3777 test ! -s conftest.err
3778 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003779 ac_header_compiler=yes
3780else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003781 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003782sed 's/^/| /' conftest.$ac_ext >&5
3783
Theodore Ts'oe1052142006-10-21 21:46:47 -04003784 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003785fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003786
3787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003788{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3789$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003790
3791# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003792{ $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3793$as_echo_n "checking linux/fs.h presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003794cat >conftest.$ac_ext <<_ACEOF
3795/* confdefs.h. */
3796_ACEOF
3797cat confdefs.h >>conftest.$ac_ext
3798cat >>conftest.$ac_ext <<_ACEOF
3799/* end confdefs.h. */
3800#include <linux/fs.h>
3801_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003802if { (ac_try="$ac_cpp conftest.$ac_ext"
3803case "(($ac_try" in
3804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3805 *) ac_try_echo=$ac_try;;
3806esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3808$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003810 ac_status=$?
3811 grep -v '^ *+' conftest.er1 >conftest.err
3812 rm -f conftest.er1
3813 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003815 (exit $ac_status); } >/dev/null && {
3816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3817 test ! -s conftest.err
3818 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003819 ac_header_preproc=yes
3820else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003821 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003822sed 's/^/| /' conftest.$ac_ext >&5
3823
3824 ac_header_preproc=no
3825fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003827rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003828{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3829$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003830
3831# So? What about this header?
3832case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3833 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003834 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3835$as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3836 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3837$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003838 ac_header_preproc=yes
3839 ;;
3840 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003841 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3842$as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3843 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3844$as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3845 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3846$as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3847 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3848$as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3849 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3850$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3851 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3852$as_echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003853
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003854 ;;
3855esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003856{ $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3857$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003858if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003859 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003860else
3861 ac_cv_header_linux_fs_h=$ac_header_preproc
3862fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003863{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3864$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003865
3866fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003867if test "x$ac_cv_header_linux_fs_h" = x""yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003868 linux_headers=yes
3869else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003870 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003871fi
3872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003873
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003874if test "$linux_headers" != yes; then
3875 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003876fi
3877
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003878{ $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3879$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003880if test "$GCC" = yes
3881then
3882 case "$host_cpu" in
3883 alpha) addcflags="-mieee" ;;
3884 esac
3885fi
3886if test "x$addcflags" != x
3887then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003888 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3889$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003890 CFLAGS="$addcflags $CFLAGS"
3891else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003892 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3893$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003894fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003895LIB_EXT=.a
3896STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04003897PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003898
Theodore Ts'oe1052142006-10-21 21:46:47 -04003899# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003900if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003901 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003902else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003903 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003904fi
3905# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003906if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003907 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003908then
3909 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003910 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3911$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003912else
3913 MAINTAINER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003914 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3915$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003916fi
3917
3918else
3919 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003920{ $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3921$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003922
Theodore Ts'oe1052142006-10-21 21:46:47 -04003923fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003924
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925
Theodore Ts'oc13351f2009-07-02 00:11:17 -04003926# Check whether --enable-verbose-makecmds was given.
3927if test "${enable_verbose_makecmds+set}" = set; then
3928 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3929then
3930 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3931$as_echo "Disabling verbose make commands" >&6; }
3932 E=@echo
3933 Q=@
3934else
3935 { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3936$as_echo "Enabling verbose make commands" >&6; }
3937 E=@\\#
3938 Q=
3939fi
3940
3941else
3942 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3943$as_echo "Disabling verbose make commands" >&6; }
3944E=@echo
3945Q=@
3946
3947fi
3948
3949
3950
Theodore Ts'oe1052142006-10-21 21:46:47 -04003951# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003952if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003953 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003954then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003955 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3956$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003957else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003958 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003959#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003960_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003961
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003962 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3963$as_echo "Enabling compression support" >&6; }
3964 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3965$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003966fi
3967
3968else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003969 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3970$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003971
Theodore Ts'oe1052142006-10-21 21:46:47 -04003972fi
3973
3974# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003975if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003976 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003977then
3978 HTREE_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003979 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3980$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003981else
3982 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003983 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003984#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003985_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003986
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003987 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3988$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003989fi
3990
3991else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003992 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003993cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003994#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003995_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003996
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003997{ $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3998$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003999
Theodore Ts'oe1052142006-10-21 21:46:47 -04004000fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004001
Theodore Ts'oe1052142006-10-21 21:46:47 -04004002
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004003E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004004LDFLAG_DYNAMIC=
4005PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004006# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004007if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004008 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004009then
4010 ELF_CMT=#
4011 MAKEFILE_ELF=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004012 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4013$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004014else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004015 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004016 ELF_CMT=
4017 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004018 case "$host_os" in
4019 solaris2.*)
4020 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4021 ;;
4022 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004023 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004024 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004025 PRIVATE_LIBS_CMT=#
4026 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004027 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4028$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004029fi
4030
4031else
4032 MAKEFILE_ELF=/dev/null
4033ELF_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004034{ $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4035$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004036
Theodore Ts'oe1052142006-10-21 21:46:47 -04004037fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004038
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004039
Theodore Ts'oe1052142006-10-21 21:46:47 -04004040
4041# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004042if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004043 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004044then
4045 BSDLIB_CMT=#
4046 MAKEFILE_BSDLIB=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004047 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4048$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004049else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004050 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004051 BSDLIB_CMT=
4052 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004053 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004054 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004055 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004056 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4057 LIB_EXT=.dylib
4058 ;;
4059 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004060 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4061$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004062fi
4063
4064else
4065 MAKEFILE_BSDLIB=/dev/null
4066BSDLIB_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004067{ $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4068$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069
Theodore Ts'oe1052142006-10-21 21:46:47 -04004070fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004071
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004072
Theodore Ts'oe1052142006-10-21 21:46:47 -04004073
4074# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004075if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004076 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004077then
4078 PROFILE_CMT=#
4079 MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004080 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4081$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004082else
4083 PROFILE_CMT=
4084 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4085 PROFILED_LIB_EXT=_p.a
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004086 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4087$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088fi
4089
4090else
4091 PROFILE_CMT=#
4092MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004093{ $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4094$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004095
Theodore Ts'oe1052142006-10-21 21:46:47 -04004096fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004097
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004098
Theodore Ts'oe1052142006-10-21 21:46:47 -04004099
4100# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004101if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004102 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004103then
4104 CHECKER_CMT=#
4105 MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004106 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4107$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108else
4109 CHECKER_CMT=
4110 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004111 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4112$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004113fi
4114
4115else
4116 CHECKER_CMT=#
4117MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004118{ $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4119$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004120
Theodore Ts'oe1052142006-10-21 21:46:47 -04004121fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004122
4123
4124
4125
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004126
Theodore Ts'oe1052142006-10-21 21:46:47 -04004127
Theodore Ts'o55da9872008-09-02 23:12:38 -04004128
4129
Theodore Ts'oe1052142006-10-21 21:46:47 -04004130# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004131if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004132 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004133then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004134 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4135$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004137 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004138#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004139_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004140
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004141 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4142$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004143fi
4144
4145else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004146 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4147$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004148
Theodore Ts'oe1052142006-10-21 21:46:47 -04004149fi
4150
4151# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004152if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004153 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004154then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004155 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4156$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004157else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004158 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004159#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004160_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004161
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004162 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4163$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004164fi
4165
4166else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004167 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4168$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004169
Theodore Ts'oe1052142006-10-21 21:46:47 -04004170fi
4171
4172# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004173if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004174 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004175then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004176 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4177$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004178 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004179else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004180 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004181 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004182#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004183_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004184
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004185 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4186$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004187fi
4188
4189else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004190 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4191$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004192cat >>confdefs.h <<\_ACEOF
4193#define CONFIG_TESTIO_DEBUG 1
4194_ACEOF
4195
4196TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004197
Theodore Ts'oe1052142006-10-21 21:46:47 -04004198fi
4199
Theodore Ts'oaf773652008-09-01 11:27:27 -04004200
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004201
4202
4203if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4204 if test -n "$ac_tool_prefix"; then
4205 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4206set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4208$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004209if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004210 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004211else
4212 case $PKG_CONFIG in
4213 [\\/]* | ?:[\\/]*)
4214 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4215 ;;
4216 *)
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218for as_dir in $PATH
4219do
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004226 break 2
4227 fi
4228done
4229done
4230IFS=$as_save_IFS
4231
4232 ;;
4233esac
4234fi
4235PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4236if test -n "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004237 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4238$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004239else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004240 { $as_echo "$as_me:$LINENO: result: no" >&5
4241$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004242fi
4243
4244
4245fi
4246if test -z "$ac_cv_path_PKG_CONFIG"; then
4247 ac_pt_PKG_CONFIG=$PKG_CONFIG
4248 # Extract the first word of "pkg-config", so it can be a program name with args.
4249set dummy pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004250{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4251$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004252if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004253 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004254else
4255 case $ac_pt_PKG_CONFIG in
4256 [\\/]* | ?:[\\/]*)
4257 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4258 ;;
4259 *)
4260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261for as_dir in $PATH
4262do
4263 IFS=$as_save_IFS
4264 test -z "$as_dir" && as_dir=.
4265 for ac_exec_ext in '' $ac_executable_extensions; do
4266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004268 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004269 break 2
4270 fi
4271done
4272done
4273IFS=$as_save_IFS
4274
4275 ;;
4276esac
4277fi
4278ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4279if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004280 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4281$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004282else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004283 { $as_echo "$as_me:$LINENO: result: no" >&5
4284$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004285fi
4286
4287 if test "x$ac_pt_PKG_CONFIG" = x; then
4288 PKG_CONFIG=""
4289 else
4290 case $cross_compiling:$ac_tool_warned in
4291yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004292{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004294ac_tool_warned=yes ;;
4295esac
4296 PKG_CONFIG=$ac_pt_PKG_CONFIG
4297 fi
4298else
4299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4300fi
4301
4302fi
4303if test -n "$PKG_CONFIG"; then
4304 _pkg_min_version=0.9.0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004305 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4306$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308 { $as_echo "$as_me:$LINENO: result: yes" >&5
4309$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004310 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004311 { $as_echo "$as_me:$LINENO: result: no" >&5
4312$as_echo "no" >&6; }
4313 PKG_CONFIG=""
4314 fi
4315
4316fi
4317LIBUUID=
4318DEPLIBUUID=
4319STATIC_LIBUUID=
4320DEPSTATIC_LIBUUID=
4321PROFILED_LIBUUID=
4322DEPPROFILED_LIBUUID=
4323UUID_CMT=
4324# Check whether --enable-libuuid was given.
4325if test "${enable_libuuid+set}" = set; then
4326 enableval=$enable_libuuid; if test "$enableval" = "no"
4327then
4328 if test -z "$PKG_CONFIG"; then
4329 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4330$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4331 { (exit 1); exit 1; }; }
4332 fi
4333
4334 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4335$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4336if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4337 $as_echo_n "(cached) " >&6
4338else
4339 ac_check_lib_save_LIBS=$LIBS
4340LIBS="-luuid $LIBUUID $LIBS"
4341cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */
4347
4348/* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */
4351#ifdef __cplusplus
4352extern "C"
4353#endif
4354char uuid_generate ();
4355int
4356main ()
4357{
4358return uuid_generate ();
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363rm -f conftest.$ac_objext conftest$ac_exeext
4364if { (ac_try="$ac_link"
4365case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370$as_echo "$ac_try_echo") >&5
4371 (eval "$ac_link") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest$ac_exeext && {
4381 test "$cross_compiling" = yes ||
4382 $as_test_x conftest$ac_exeext
4383 }; then
4384 ac_cv_lib_uuid_uuid_generate=yes
4385else
4386 $as_echo "$as_me: failed program was:" >&5
4387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389 ac_cv_lib_uuid_uuid_generate=no
4390fi
4391
4392rm -rf conftest.dSYM
4393rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4394 conftest$ac_exeext conftest.$ac_ext
4395LIBS=$ac_check_lib_save_LIBS
4396fi
4397{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4398$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4399if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4400 LIBUUID=`$PKG_CONFIG --libs uuid`;
4401 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4402else
4403 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4404$as_echo "$as_me: error: external uuid library not found" >&2;}
4405 { (exit 1); exit 1; }; }
4406fi
4407
4408 UUID_CMT=#
4409 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4410$as_echo "Disabling private uuid library" >&6; }
4411else
4412 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4413 DEPLIBUUID=$LIBUUID
4414 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4415 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4416 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4417 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4418 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4419$as_echo "Enabling private uuid library" >&6; }
4420fi
4421
4422else
4423 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4424DEPLIBUUID=$LIBUUID
4425STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4426DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4427PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4428DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4429{ $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4430$as_echo "Enabling private uuid library by default" >&6; }
4431
4432fi
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4444 if test -n "$ac_tool_prefix"; then
4445 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4446set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4448$as_echo_n "checking for $ac_word... " >&6; }
4449if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4451else
4452 case $PKG_CONFIG in
4453 [\\/]* | ?:[\\/]*)
4454 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4455 ;;
4456 *)
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4464 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4467 fi
4468done
4469done
4470IFS=$as_save_IFS
4471
4472 ;;
4473esac
4474fi
4475PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4476if test -n "$PKG_CONFIG"; then
4477 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4478$as_echo "$PKG_CONFIG" >&6; }
4479else
4480 { $as_echo "$as_me:$LINENO: result: no" >&5
4481$as_echo "no" >&6; }
4482fi
4483
4484
4485fi
4486if test -z "$ac_cv_path_PKG_CONFIG"; then
4487 ac_pt_PKG_CONFIG=$PKG_CONFIG
4488 # Extract the first word of "pkg-config", so it can be a program name with args.
4489set dummy pkg-config; ac_word=$2
4490{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4491$as_echo_n "checking for $ac_word... " >&6; }
4492if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4493 $as_echo_n "(cached) " >&6
4494else
4495 case $ac_pt_PKG_CONFIG in
4496 [\\/]* | ?:[\\/]*)
4497 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4498 ;;
4499 *)
4500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4501for as_dir in $PATH
4502do
4503 IFS=$as_save_IFS
4504 test -z "$as_dir" && as_dir=.
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4507 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4508 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4509 break 2
4510 fi
4511done
4512done
4513IFS=$as_save_IFS
4514
4515 ;;
4516esac
4517fi
4518ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4519if test -n "$ac_pt_PKG_CONFIG"; then
4520 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4521$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4522else
4523 { $as_echo "$as_me:$LINENO: result: no" >&5
4524$as_echo "no" >&6; }
4525fi
4526
4527 if test "x$ac_pt_PKG_CONFIG" = x; then
4528 PKG_CONFIG=""
4529 else
4530 case $cross_compiling:$ac_tool_warned in
4531yes:)
4532{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4533$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4534ac_tool_warned=yes ;;
4535esac
4536 PKG_CONFIG=$ac_pt_PKG_CONFIG
4537 fi
4538else
4539 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4540fi
4541
4542fi
4543if test -n "$PKG_CONFIG"; then
4544 _pkg_min_version=0.9.0
4545 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4546$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4547 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4548 { $as_echo "$as_me:$LINENO: result: yes" >&5
4549$as_echo "yes" >&6; }
4550 else
4551 { $as_echo "$as_me:$LINENO: result: no" >&5
4552$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004553 PKG_CONFIG=""
4554 fi
4555
4556fi
4557LIBBLKID=
4558DEPLIBBLKID=
4559STATIC_LIBBLKID=
4560DEPSTATIC_LIBBLKID=
4561PROFILED_LIBBLKID=
4562DEPPROFILED_LIBBLKID=
4563BLKID_CMT=
4564# Check whether --enable-libblkid was given.
4565if test "${enable_libblkid+set}" = set; then
4566 enableval=$enable_libblkid; if test "$enableval" = "no"
4567then
4568 if test -z "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004569 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4570$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004571 { (exit 1); exit 1; }; }
4572 fi
4573
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004574 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4575$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004576if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004577 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004578else
4579 ac_check_lib_save_LIBS=$LIBS
4580LIBS="-lblkid $LIBBLKID $LIBS"
4581cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h. */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h. */
4587
4588/* Override any GCC internal prototype to avoid an error.
4589 Use char because int might match the return type of a GCC
4590 builtin and then its argument prototype would still apply. */
4591#ifdef __cplusplus
4592extern "C"
4593#endif
4594char blkid_get_cache ();
4595int
4596main ()
4597{
4598return blkid_get_cache ();
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603rm -f conftest.$ac_objext conftest$ac_exeext
4604if { (ac_try="$ac_link"
4605case "(($ac_try" in
4606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4608esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4610$as_echo "$ac_try_echo") >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004611 (eval "$ac_link") 2>conftest.er1
4612 ac_status=$?
4613 grep -v '^ *+' conftest.er1 >conftest.err
4614 rm -f conftest.er1
4615 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004620 } && test -s conftest$ac_exeext && {
4621 test "$cross_compiling" = yes ||
4622 $as_test_x conftest$ac_exeext
4623 }; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004624 ac_cv_lib_blkid_blkid_get_cache=yes
4625else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004626 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_cv_lib_blkid_blkid_get_cache=no
4630fi
4631
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004632rm -rf conftest.dSYM
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4634 conftest$ac_exeext conftest.$ac_ext
4635LIBS=$ac_check_lib_save_LIBS
4636fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004637{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4638$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4639if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004640 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4641 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4642else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004643 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4644$as_echo "$as_me: error: external blkid library not found" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004645 { (exit 1); exit 1; }; }
4646fi
4647
4648 BLKID_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004649 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4650$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004651else
4652 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4653 DEPLIBBLKID=$LIBBLKID
4654 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4655 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4656 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4657 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4658 cat >>confdefs.h <<\_ACEOF
4659#define CONFIG_BUILD_FINDFS 1
4660_ACEOF
4661
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004662 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4663$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004664fi
4665
4666else
4667 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4668DEPLIBBLKID=$LIBBLKID
4669STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4670DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4671PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4672DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4673cat >>confdefs.h <<\_ACEOF
4674#define CONFIG_BUILD_FINDFS 1
4675_ACEOF
4676
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004677{ $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4678$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004679
4680fi
4681
4682
4683
4684
4685
4686
4687
4688
Theodore Ts'oe1052142006-10-21 21:46:47 -04004689# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004690if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004691 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004692then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004693 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4694$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004695 DEBUGFS_CMT="#"
4696else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004697 DEBUGFS_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004698 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4699$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004700fi
4701
4702else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004703 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4704$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004705DEBUGFS_CMT=
4706
Theodore Ts'oe1052142006-10-21 21:46:47 -04004707fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004708
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709
4710# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004711if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004712 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004713then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004714 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4715$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004716 IMAGER_CMT="#"
4717else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004718 IMAGER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004719 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4720$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004721fi
4722
4723else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004724 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4725$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004726IMAGER_CMT=
4727
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004729
Theodore Ts'oe1052142006-10-21 21:46:47 -04004730
4731# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004732if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004733 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004734then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004735 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4736$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004737 RESIZER_CMT="#"
4738else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004739 RESIZER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004740 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4741$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004742fi
4743
4744else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004745 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4746$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004747RESIZER_CMT=
4748
Theodore Ts'oe1052142006-10-21 21:46:47 -04004749fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004750
Theodore Ts'oe1052142006-10-21 21:46:47 -04004751
Theodore Ts'oe1052142006-10-21 21:46:47 -04004752# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004753if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004754 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004755then
4756 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004757 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4758$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004759else
4760 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004761 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4762$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004763fi
4764
4765else
4766 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004767 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004768 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004769 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4770$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004771 ;;
4772 *)
4773 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004774 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4775$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004776esac
4777
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004779
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004780
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781
4782# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004783if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004784 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004785then
4786 E2INITRD_PROG='' E2INITRD_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004787 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4788$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004789else
4790 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004791 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4792$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004793fi
4794
4795else
4796 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004797{ $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4798$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004799
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004801
4802
Theodore Ts'oe1052142006-10-21 21:46:47 -04004803
Theodore Ts'o32493942007-12-31 10:45:01 -05004804# Check whether --enable-tls was given.
4805if test "${enable_tls+set}" = set; then
4806 enableval=$enable_tls; if test "$enableval" = "no"
4807then
4808 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4810$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004811else
4812 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004813 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4814$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004815fi
4816
4817else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004818 if test -n "$WITH_DIET_LIBC"
4819then
4820 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004821 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4822$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004823else
4824 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004825 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4826$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004827fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004828
4829fi
4830
4831if test "$try_tls" = "yes"
4832then
4833
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004834 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4835$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004836 if test "${ac_cv_tls+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004837 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05004838else
4839
4840 ax_tls_keywords="__thread __declspec(thread) none"
4841 for ax_tls_keyword in $ax_tls_keywords; do
4842 case $ax_tls_keyword in
4843 none) ac_cv_tls=none ; break ;;
4844 *)
4845 cat >conftest.$ac_ext <<_ACEOF
4846/* confdefs.h. */
4847_ACEOF
4848cat confdefs.h >>conftest.$ac_ext
4849cat >>conftest.$ac_ext <<_ACEOF
4850/* end confdefs.h. */
4851#include <stdlib.h>
4852 static void
4853 foo(void) {
4854 static $ax_tls_keyword int bar;
4855 exit(1);
4856 }
4857int
4858main ()
4859{
4860
4861 ;
4862 return 0;
4863}
4864_ACEOF
4865rm -f conftest.$ac_objext
4866if { (ac_try="$ac_compile"
4867case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4870esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872$as_echo "$ac_try_echo") >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004873 (eval "$ac_compile") 2>conftest.er1
4874 ac_status=$?
4875 grep -v '^ *+' conftest.er1 >conftest.err
4876 rm -f conftest.er1
4877 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004879 (exit $ac_status); } && {
4880 test -z "$ac_c_werror_flag" ||
4881 test ! -s conftest.err
4882 } && test -s conftest.$ac_objext; then
4883 ac_cv_tls=$ax_tls_keyword ; break
4884else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004885 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004886sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 ac_cv_tls=none
4889
4890fi
4891
4892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4893 esac
4894 done
4895
4896fi
4897
4898
4899 if test "$ac_cv_tls" != "none"; then
4900
4901cat >>confdefs.h <<_ACEOF
4902#define TLS $ac_cv_tls
4903_ACEOF
4904
4905 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004906 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4907$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004908
4909fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004910# Check whether --enable-uuidd was given.
4911if test "${enable_uuidd+set}" = set; then
4912 enableval=$enable_uuidd; if test "$enableval" = "no"
4913then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004914 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4915$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004916 UUIDD_CMT="#"
4917else
4918 cat >>confdefs.h <<\_ACEOF
4919#define USE_UUIDD 1
4920_ACEOF
4921
4922 UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004923 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4924$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004925fi
4926
4927else
4928 cat >>confdefs.h <<\_ACEOF
4929#define USE_UUIDD 1
4930_ACEOF
4931
4932UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933{ $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4934$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004935
4936fi
4937
4938
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004939MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004941GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004942PACKAGE=e2fsprogs
4943VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004944VERSION=0.14.1
4945cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004946#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004947_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004948
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004949cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004950#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004951_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004952
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004953
4954
4955
4956
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004957{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4958$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4959set x ${MAKE-make}
4960ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004961if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004962 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004963else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004964 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004965SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004966all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004968_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004969# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004970case `${MAKE-make} -f conftest.make 2>/dev/null` in
4971 *@@@%%%=?*=@@@%%%*)
4972 eval ac_cv_prog_make_${ac_make}_set=yes;;
4973 *)
4974 eval ac_cv_prog_make_${ac_make}_set=no;;
4975esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004976rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004978if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004979 { $as_echo "$as_me:$LINENO: result: yes" >&5
4980$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004981 SET_MAKE=
4982else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004983 { $as_echo "$as_me:$LINENO: result: no" >&5
4984$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004985 SET_MAKE="MAKE=${MAKE-make}"
4986fi
4987
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004988# Find a good install program. We prefer a C program (faster),
4989# so one script is as good as another. But avoid the broken or
4990# incompatible versions:
4991# SysV /etc/install, /usr/sbin/install
4992# SunOS /usr/etc/install
4993# IRIX /sbin/install
4994# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004995# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004996# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4997# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4998# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004999# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005000# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005001# Reject install programs that cannot install multiple files.
5002{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5003$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005004if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005005if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009for as_dir in $PATH
5010do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 # Account for people who put trailing slashes in PATH elements.
5014case $as_dir/ in
5015 ./ | .// | /cC/* | \
5016 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5017 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5018 /usr/ucb/* ) ;;
5019 *)
5020 # OSF1 and SCO ODT 3.0 have their own names for install.
5021 # Don't use installbsd from OSF since it installs stuff as root
5022 # by default.
5023 for ac_prog in ginstall scoinst install; do
5024 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005025 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 -04005026 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005027 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005028 # AIX install. It has an incompatible calling convention.
5029 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005030 elif test $ac_prog = install &&
5031 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5032 # program-specific install script used by HP pwplus--don't use.
5033 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005034 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005035 rm -rf conftest.one conftest.two conftest.dir
5036 echo one > conftest.one
5037 echo two > conftest.two
5038 mkdir conftest.dir
5039 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5040 test -s conftest.one && test -s conftest.two &&
5041 test -s conftest.dir/conftest.one &&
5042 test -s conftest.dir/conftest.two
5043 then
5044 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5045 break 3
5046 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005047 fi
5048 fi
5049 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 done
5051 ;;
5052esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005054done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005056
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005057rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005058
5059fi
5060 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005061 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005062 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005063 # As a last resort, use the slow shell script. Don't cache a
5064 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005065 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005067 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005068 fi
5069fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005070{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5071$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005072
5073# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5074# It thinks the first close brace ends the variable substitution.
5075test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005077test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005078
5079test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5080
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005081
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005082 MKINSTALLDIRS=
5083 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005084 case "$ac_aux_dir" in
5085 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5086 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5087 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005088 fi
5089 if test -z "$MKINSTALLDIRS"; then
5090 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5091 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005092
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005093
5094
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005095 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5096$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005097 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005098if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005099 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005100else
5101 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005102fi
5103
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005104 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5105$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005106
5107
5108
5109
5110
5111
5112# Prepare PATH_SEPARATOR.
5113# The user is always right.
5114if test "${PATH_SEPARATOR+set}" != set; then
5115 echo "#! /bin/sh" >conf$$.sh
5116 echo "exit 0" >>conf$$.sh
5117 chmod +x conf$$.sh
5118 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5119 PATH_SEPARATOR=';'
5120 else
5121 PATH_SEPARATOR=:
5122 fi
5123 rm -f conf$$.sh
5124fi
5125
5126# Find out how to test for executable files. Don't use a zero-byte file,
5127# as systems may use methods other than mode bits to determine executability.
5128cat >conf$$.file <<_ASEOF
5129#! /bin/sh
5130exit 0
5131_ASEOF
5132chmod +x conf$$.file
5133if test -x conf$$.file >/dev/null 2>&1; then
5134 ac_executable_p="test -x"
5135else
5136 ac_executable_p="test -f"
5137fi
5138rm -f conf$$.file
5139
5140# Extract the first word of "msgfmt", so it can be a program name with args.
5141set dummy msgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005142{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5143$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005144if test "${ac_cv_path_MSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005145 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005146else
5147 case "$MSGFMT" in
5148 [\\/]* | ?:[\\/]*)
5149 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5150 ;;
5151 *)
5152 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5153 for ac_dir in $PATH; do
5154 IFS="$ac_save_IFS"
5155 test -z "$ac_dir" && ac_dir=.
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5158 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5159 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5160 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5161 break 2
5162 fi
5163 fi
5164 done
5165 done
5166 IFS="$ac_save_IFS"
5167 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5168 ;;
5169esac
5170fi
5171MSGFMT="$ac_cv_path_MSGFMT"
5172if test "$MSGFMT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005173 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5174$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005175else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005176 { $as_echo "$as_me:$LINENO: result: no" >&5
5177$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005178fi
5179
5180 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5181set dummy gmsgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5183$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005184if test "${ac_cv_path_GMSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005185 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005186else
5187 case $GMSGFMT in
5188 [\\/]* | ?:[\\/]*)
5189 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5190 ;;
5191 *)
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005198 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 -05005199 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005201 break 2
5202 fi
5203done
5204done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005205IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206
5207 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5208 ;;
5209esac
5210fi
5211GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005212if test -n "$GMSGFMT"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005213 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5214$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005215else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005216 { $as_echo "$as_me:$LINENO: result: no" >&5
5217$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005218fi
5219
5220
5221
Theodore Ts'oe1052142006-10-21 21:46:47 -04005222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005223# Prepare PATH_SEPARATOR.
5224# The user is always right.
5225if test "${PATH_SEPARATOR+set}" != set; then
5226 echo "#! /bin/sh" >conf$$.sh
5227 echo "exit 0" >>conf$$.sh
5228 chmod +x conf$$.sh
5229 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5230 PATH_SEPARATOR=';'
5231 else
5232 PATH_SEPARATOR=:
5233 fi
5234 rm -f conf$$.sh
5235fi
5236
5237# Find out how to test for executable files. Don't use a zero-byte file,
5238# as systems may use methods other than mode bits to determine executability.
5239cat >conf$$.file <<_ASEOF
5240#! /bin/sh
5241exit 0
5242_ASEOF
5243chmod +x conf$$.file
5244if test -x conf$$.file >/dev/null 2>&1; then
5245 ac_executable_p="test -x"
5246else
5247 ac_executable_p="test -f"
5248fi
5249rm -f conf$$.file
5250
5251# Extract the first word of "xgettext", so it can be a program name with args.
5252set dummy xgettext; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005253{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5254$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005255if test "${ac_cv_path_XGETTEXT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005256 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005257else
5258 case "$XGETTEXT" in
5259 [\\/]* | ?:[\\/]*)
5260 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5261 ;;
5262 *)
5263 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5264 for ac_dir in $PATH; do
5265 IFS="$ac_save_IFS"
5266 test -z "$ac_dir" && ac_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5269 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5270 (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
5271 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5272 break 2
5273 fi
5274 fi
5275 done
5276 done
5277 IFS="$ac_save_IFS"
5278 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5279 ;;
5280esac
5281fi
5282XGETTEXT="$ac_cv_path_XGETTEXT"
5283if test "$XGETTEXT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005284 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5285$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005286else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005287 { $as_echo "$as_me:$LINENO: result: no" >&5
5288$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005289fi
5290
5291 rm -f messages.po
5292
5293
5294# Prepare PATH_SEPARATOR.
5295# The user is always right.
5296if test "${PATH_SEPARATOR+set}" != set; then
5297 echo "#! /bin/sh" >conf$$.sh
5298 echo "exit 0" >>conf$$.sh
5299 chmod +x conf$$.sh
5300 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5301 PATH_SEPARATOR=';'
5302 else
5303 PATH_SEPARATOR=:
5304 fi
5305 rm -f conf$$.sh
5306fi
5307
5308# Find out how to test for executable files. Don't use a zero-byte file,
5309# as systems may use methods other than mode bits to determine executability.
5310cat >conf$$.file <<_ASEOF
5311#! /bin/sh
5312exit 0
5313_ASEOF
5314chmod +x conf$$.file
5315if test -x conf$$.file >/dev/null 2>&1; then
5316 ac_executable_p="test -x"
5317else
5318 ac_executable_p="test -f"
5319fi
5320rm -f conf$$.file
5321
5322# Extract the first word of "msgmerge", so it can be a program name with args.
5323set dummy msgmerge; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005324{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5325$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005326if test "${ac_cv_path_MSGMERGE+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005327 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005328else
5329 case "$MSGMERGE" in
5330 [\\/]* | ?:[\\/]*)
5331 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5332 ;;
5333 *)
5334 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5335 for ac_dir in $PATH; do
5336 IFS="$ac_save_IFS"
5337 test -z "$ac_dir" && ac_dir=.
5338 for ac_exec_ext in '' $ac_executable_extensions; do
5339 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5340 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5341 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5342 break 2
5343 fi
5344 fi
5345 done
5346 done
5347 IFS="$ac_save_IFS"
5348 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5349 ;;
5350esac
5351fi
5352MSGMERGE="$ac_cv_path_MSGMERGE"
5353if test "$MSGMERGE" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5355$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005356else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005357 { $as_echo "$as_me:$LINENO: result: no" >&5
5358$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359fi
5360
5361
5362 if test "$GMSGFMT" != ":"; then
5363 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5364 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5365 : ;
5366 else
5367 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005368 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5369$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005370 GMSGFMT=":"
5371 fi
5372 fi
5373
5374 if test "$XGETTEXT" != ":"; then
5375 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5376 (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
5377 : ;
5378 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005379 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5380$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005381 XGETTEXT=":"
5382 fi
5383 rm -f messages.po
5384 fi
5385
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005387
5388
5389if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5391set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5393$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005394if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005395 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005396else
5397 if test -n "$RANLIB"; then
5398 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005400as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005406 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 -05005407 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005409 break 2
5410 fi
5411done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005412done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005413IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005414
5415fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005416fi
5417RANLIB=$ac_cv_prog_RANLIB
5418if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005419 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5420$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005421else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005424fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005425
Theodore Ts'oe1052142006-10-21 21:46:47 -04005426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005427fi
5428if test -z "$ac_cv_prog_RANLIB"; then
5429 ac_ct_RANLIB=$RANLIB
5430 # Extract the first word of "ranlib", so it can be a program name with args.
5431set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5433$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005434if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005436else
5437 if test -n "$ac_ct_RANLIB"; then
5438 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5439else
5440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005446 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 -05005447 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005449 break 2
5450 fi
5451done
5452done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005453IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005455fi
5456fi
5457ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5458if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5460$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005461else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005462 { $as_echo "$as_me:$LINENO: result: no" >&5
5463$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005464fi
5465
Theodore Ts'oe1052142006-10-21 21:46:47 -04005466 if test "x$ac_ct_RANLIB" = x; then
5467 RANLIB=":"
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005471{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04005473ac_tool_warned=yes ;;
5474esac
5475 RANLIB=$ac_ct_RANLIB
5476 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005477else
5478 RANLIB="$ac_cv_prog_RANLIB"
5479fi
5480
5481
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005482 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5483$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484if test "${ac_cv_lib_cposix_strerror+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005485 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005486else
5487 ac_check_lib_save_LIBS=$LIBS
5488LIBS="-lcposix $LIBS"
5489cat >conftest.$ac_ext <<_ACEOF
5490/* confdefs.h. */
5491_ACEOF
5492cat confdefs.h >>conftest.$ac_ext
5493cat >>conftest.$ac_ext <<_ACEOF
5494/* end confdefs.h. */
5495
Theodore Ts'oe1052142006-10-21 21:46:47 -04005496/* Override any GCC internal prototype to avoid an error.
5497 Use char because int might match the return type of a GCC
5498 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005499#ifdef __cplusplus
5500extern "C"
5501#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005502char strerror ();
5503int
5504main ()
5505{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005506return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005507 ;
5508 return 0;
5509}
5510_ACEOF
5511rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005512if { (ac_try="$ac_link"
5513case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5518$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005519 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005528 } && test -s conftest$ac_exeext && {
5529 test "$cross_compiling" = yes ||
5530 $as_test_x conftest$ac_exeext
5531 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532 ac_cv_lib_cposix_strerror=yes
5533else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005534 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005535sed 's/^/| /' conftest.$ac_ext >&5
5536
Theodore Ts'oe1052142006-10-21 21:46:47 -04005537 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005540rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005541rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005542 conftest$ac_exeext conftest.$ac_ext
5543LIBS=$ac_check_lib_save_LIBS
5544fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005545{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5546$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5547if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005548 LIBS="$LIBS -lcposix"
5549fi
5550
5551
5552
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005553{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5554$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555if test "${ac_cv_c_const+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005556 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005557else
5558 cat >conftest.$ac_ext <<_ACEOF
5559/* confdefs.h. */
5560_ACEOF
5561cat confdefs.h >>conftest.$ac_ext
5562cat >>conftest.$ac_ext <<_ACEOF
5563/* end confdefs.h. */
5564
5565int
5566main ()
5567{
5568/* FIXME: Include the comments suggested by Paul. */
5569#ifndef __cplusplus
5570 /* Ultrix mips cc rejects this. */
5571 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005572 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005573 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005574 char const *const *pcpcc;
5575 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005576 /* NEC SVR4.0.2 mips cc rejects this. */
5577 struct point {int x, y;};
5578 static struct point const zero = {0,0};
5579 /* AIX XL C 1.02.0.0 rejects this.
5580 It does not let you subtract one const X* pointer from another in
5581 an arm of an if-expression whose if-part is not a constant
5582 expression */
5583 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005584 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005585 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005586 ++pcpcc;
5587 ppc = (char**) pcpcc;
5588 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005589 { /* SCO 3.2v4 cc rejects this. */
5590 char *t;
5591 char const *s = 0 ? (char *) 0 : (char const *) 0;
5592
5593 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005594 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005595 }
5596 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5597 int x[] = {25, 17};
5598 const int *foo = &x[0];
5599 ++foo;
5600 }
5601 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5602 typedef const int *iptr;
5603 iptr p = 0;
5604 ++p;
5605 }
5606 { /* AIX XL C 1.02.0.0 rejects this saying
5607 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5608 struct s { int j; const int *ap[3]; };
5609 struct s *b; b->j = 5;
5610 }
5611 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5612 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005613 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005614 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005615 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005616#endif
5617
5618 ;
5619 return 0;
5620}
5621_ACEOF
5622rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005623if { (ac_try="$ac_compile"
5624case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631 ac_status=$?
5632 grep -v '^ *+' conftest.er1 >conftest.err
5633 rm -f conftest.er1
5634 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005636 (exit $ac_status); } && {
5637 test -z "$ac_c_werror_flag" ||
5638 test ! -s conftest.err
5639 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005640 ac_cv_c_const=yes
5641else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005642 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005643sed 's/^/| /' conftest.$ac_ext >&5
5644
Theodore Ts'oe1052142006-10-21 21:46:47 -04005645 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005647
5648rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005650{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5651$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652if test $ac_cv_c_const = no; then
5653
5654cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005655#define const /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005656_ACEOF
5657
5658fi
5659
5660
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005661 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5662$as_echo_n "checking for signed... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663if test "${bh_cv_c_signed+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005664 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665else
5666 cat >conftest.$ac_ext <<_ACEOF
5667/* confdefs.h. */
5668_ACEOF
5669cat confdefs.h >>conftest.$ac_ext
5670cat >>conftest.$ac_ext <<_ACEOF
5671/* end confdefs.h. */
5672
5673int
5674main ()
5675{
5676signed char x;
5677 ;
5678 return 0;
5679}
5680_ACEOF
5681rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682if { (ac_try="$ac_compile"
5683case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5688$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005689 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005690 ac_status=$?
5691 grep -v '^ *+' conftest.er1 >conftest.err
5692 rm -f conftest.er1
5693 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005699 bh_cv_c_signed=yes
5700else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005701 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702sed 's/^/| /' conftest.$ac_ext >&5
5703
Theodore Ts'oe1052142006-10-21 21:46:47 -04005704 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005705fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706
5707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005709{ $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5710$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711 if test $bh_cv_c_signed = no; then
5712
5713cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714#define signed /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715_ACEOF
5716
5717 fi
5718
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005719{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5720$as_echo_n "checking for inline... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005721if test "${ac_cv_c_inline+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005722 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005723else
5724 ac_cv_c_inline=no
5725for ac_kw in inline __inline__ __inline; do
5726 cat >conftest.$ac_ext <<_ACEOF
5727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
5732#ifndef __cplusplus
5733typedef int foo_t;
5734static $ac_kw foo_t static_foo () {return 0; }
5735$ac_kw foo_t foo () {return 0; }
5736#endif
5737
5738_ACEOF
5739rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005740if { (ac_try="$ac_compile"
5741case "(($ac_try" in
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5744esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5746$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005747 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005748 ac_status=$?
5749 grep -v '^ *+' conftest.er1 >conftest.err
5750 rm -f conftest.er1
5751 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005758else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005759 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005760sed 's/^/| /' conftest.$ac_ext >&5
5761
Theodore Ts'oe1052142006-10-21 21:46:47 -04005762
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005764
5765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005767done
5768
5769fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005770{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5771$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005772
5773
5774case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005775 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776 *)
5777 case $ac_cv_c_inline in
5778 no) ac_val=;;
5779 *) ac_val=$ac_cv_c_inline;;
5780 esac
5781 cat >>confdefs.h <<_ACEOF
5782#ifndef __cplusplus
5783#define inline $ac_val
5784#endif
5785_ACEOF
5786 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005787esac
5788
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5790$as_echo_n "checking for off_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005791if test "${ac_cv_type_off_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005793else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794 ac_cv_type_off_t=no
5795cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796/* confdefs.h. */
5797_ACEOF
5798cat confdefs.h >>conftest.$ac_ext
5799cat >>conftest.$ac_ext <<_ACEOF
5800/* end confdefs.h. */
5801$ac_includes_default
5802int
5803main ()
5804{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005805if (sizeof (off_t))
5806 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005807 ;
5808 return 0;
5809}
5810_ACEOF
5811rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005812if { (ac_try="$ac_compile"
5813case "(($ac_try" in
5814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5815 *) ac_try_echo=$ac_try;;
5816esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5818$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005819 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820 ac_status=$?
5821 grep -v '^ *+' conftest.er1 >conftest.err
5822 rm -f conftest.er1
5823 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005829 cat >conftest.$ac_ext <<_ACEOF
5830/* confdefs.h. */
5831_ACEOF
5832cat confdefs.h >>conftest.$ac_ext
5833cat >>conftest.$ac_ext <<_ACEOF
5834/* end confdefs.h. */
5835$ac_includes_default
5836int
5837main ()
5838{
5839if (sizeof ((off_t)))
5840 return 0;
5841 ;
5842 return 0;
5843}
5844_ACEOF
5845rm -f conftest.$ac_objext
5846if { (ac_try="$ac_compile"
5847case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850esac
5851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5852$as_echo "$ac_try_echo") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest.$ac_objext; then
5863 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005864else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005865 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005866sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005867
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005868 ac_cv_type_off_t=yes
5869fi
5870
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872else
5873 $as_echo "$as_me: failed program was:" >&5
5874sed 's/^/| /' conftest.$ac_ext >&5
5875
5876
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005877fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005878
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005880fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005881{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5882$as_echo "$ac_cv_type_off_t" >&6; }
5883if test "x$ac_cv_type_off_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005885else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886
5887cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005888#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005889_ACEOF
5890
5891fi
5892
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005893{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5894$as_echo_n "checking for size_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895if test "${ac_cv_type_size_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005898 ac_cv_type_size_t=no
5899cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900/* confdefs.h. */
5901_ACEOF
5902cat confdefs.h >>conftest.$ac_ext
5903cat >>conftest.$ac_ext <<_ACEOF
5904/* end confdefs.h. */
5905$ac_includes_default
5906int
5907main ()
5908{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005909if (sizeof (size_t))
5910 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005911 ;
5912 return 0;
5913}
5914_ACEOF
5915rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005916if { (ac_try="$ac_compile"
5917case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005923 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005924 ac_status=$?
5925 grep -v '^ *+' conftest.er1 >conftest.err
5926 rm -f conftest.er1
5927 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005929 (exit $ac_status); } && {
5930 test -z "$ac_c_werror_flag" ||
5931 test ! -s conftest.err
5932 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005933 cat >conftest.$ac_ext <<_ACEOF
5934/* confdefs.h. */
5935_ACEOF
5936cat confdefs.h >>conftest.$ac_ext
5937cat >>conftest.$ac_ext <<_ACEOF
5938/* end confdefs.h. */
5939$ac_includes_default
5940int
5941main ()
5942{
5943if (sizeof ((size_t)))
5944 return 0;
5945 ;
5946 return 0;
5947}
5948_ACEOF
5949rm -f conftest.$ac_objext
5950if { (ac_try="$ac_compile"
5951case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954esac
5955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5956$as_echo "$ac_try_echo") >&5
5957 (eval "$ac_compile") 2>conftest.er1
5958 ac_status=$?
5959 grep -v '^ *+' conftest.er1 >conftest.err
5960 rm -f conftest.er1
5961 cat conftest.err >&5
5962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963 (exit $ac_status); } && {
5964 test -z "$ac_c_werror_flag" ||
5965 test ! -s conftest.err
5966 } && test -s conftest.$ac_objext; then
5967 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005968else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005969 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970sed 's/^/| /' conftest.$ac_ext >&5
5971
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005972 ac_cv_type_size_t=yes
5973fi
5974
5975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5976else
5977 $as_echo "$as_me: failed program was:" >&5
5978sed 's/^/| /' conftest.$ac_ext >&5
5979
5980
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005982
5983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005984fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005985{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5986$as_echo "$ac_cv_type_size_t" >&6; }
5987if test "x$ac_cv_type_size_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988 :
5989else
5990
5991cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005992#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005993_ACEOF
5994
5995fi
5996
5997
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005998 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5999$as_echo_n "checking for long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006000if test "${ac_cv_type_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006001 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002else
6003 cat >conftest.$ac_ext <<_ACEOF
6004/* confdefs.h. */
6005_ACEOF
6006cat confdefs.h >>conftest.$ac_ext
6007cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */
6009long long ll = 1LL; int i = 63;
6010int
6011main ()
6012{
6013long long llmax = (long long) -1;
6014 return ll << i | ll >> i | llmax / ll | llmax % ll;
6015 ;
6016 return 0;
6017}
6018_ACEOF
6019rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006020if { (ac_try="$ac_link"
6021case "(($ac_try" in
6022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6024esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006025eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6026$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006027 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028 ac_status=$?
6029 grep -v '^ *+' conftest.er1 >conftest.err
6030 rm -f conftest.er1
6031 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006033 (exit $ac_status); } && {
6034 test -z "$ac_c_werror_flag" ||
6035 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006036 } && test -s conftest$ac_exeext && {
6037 test "$cross_compiling" = yes ||
6038 $as_test_x conftest$ac_exeext
6039 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006040 ac_cv_type_long_long=yes
6041else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006042 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043sed 's/^/| /' conftest.$ac_ext >&5
6044
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006047
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006048rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 conftest$ac_exeext conftest.$ac_ext
6051fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006052{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6053$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054 if test $ac_cv_type_long_long = yes; then
6055
6056cat >>confdefs.h <<\_ACEOF
6057#define HAVE_LONG_LONG 1
6058_ACEOF
6059
6060 fi
6061
6062
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006063 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6064$as_echo_n "checking for long double... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065if test "${gt_cv_c_long_double+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006066 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006067else
6068 if test "$GCC" = yes; then
6069 gt_cv_c_long_double=yes
6070 else
6071 cat >conftest.$ac_ext <<_ACEOF
6072/* confdefs.h. */
6073_ACEOF
6074cat confdefs.h >>conftest.$ac_ext
6075cat >>conftest.$ac_ext <<_ACEOF
6076/* end confdefs.h. */
6077
6078 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6079 long double foo = 0.0;
6080 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6081 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6082
6083int
6084main ()
6085{
6086
6087 ;
6088 return 0;
6089}
6090_ACEOF
6091rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006092if { (ac_try="$ac_compile"
6093case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6096esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6098$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006099 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006100 ac_status=$?
6101 grep -v '^ *+' conftest.er1 >conftest.err
6102 rm -f conftest.er1
6103 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006105 (exit $ac_status); } && {
6106 test -z "$ac_c_werror_flag" ||
6107 test ! -s conftest.err
6108 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109 gt_cv_c_long_double=yes
6110else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006111 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112sed 's/^/| /' conftest.$ac_ext >&5
6113
Theodore Ts'oe1052142006-10-21 21:46:47 -04006114 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116
6117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118 fi
6119fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006120{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6121$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122 if test $gt_cv_c_long_double = yes; then
6123
6124cat >>confdefs.h <<\_ACEOF
6125#define HAVE_LONG_DOUBLE 1
6126_ACEOF
6127
6128 fi
6129
6130
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006131 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6132$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133if test "${gt_cv_c_wchar_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006134 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135else
6136 cat >conftest.$ac_ext <<_ACEOF
6137/* confdefs.h. */
6138_ACEOF
6139cat confdefs.h >>conftest.$ac_ext
6140cat >>conftest.$ac_ext <<_ACEOF
6141/* end confdefs.h. */
6142#include <stddef.h>
6143 wchar_t foo = (wchar_t)'\0';
6144int
6145main ()
6146{
6147
6148 ;
6149 return 0;
6150}
6151_ACEOF
6152rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6159$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006160 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 ac_status=$?
6162 grep -v '^ *+' conftest.er1 >conftest.err
6163 rm -f conftest.er1
6164 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006166 (exit $ac_status); } && {
6167 test -z "$ac_c_werror_flag" ||
6168 test ! -s conftest.err
6169 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170 gt_cv_c_wchar_t=yes
6171else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006172 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006173sed 's/^/| /' conftest.$ac_ext >&5
6174
Theodore Ts'oe1052142006-10-21 21:46:47 -04006175 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006176fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006177
6178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006180{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6181$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 if test $gt_cv_c_wchar_t = yes; then
6183
6184cat >>confdefs.h <<\_ACEOF
6185#define HAVE_WCHAR_T 1
6186_ACEOF
6187
6188 fi
6189
6190
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006191 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6192$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193if test "${gt_cv_c_wint_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006194 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006195else
6196 cat >conftest.$ac_ext <<_ACEOF
6197/* confdefs.h. */
6198_ACEOF
6199cat confdefs.h >>conftest.$ac_ext
6200cat >>conftest.$ac_ext <<_ACEOF
6201/* end confdefs.h. */
6202#include <wchar.h>
6203 wint_t foo = (wchar_t)'\0';
6204int
6205main ()
6206{
6207
6208 ;
6209 return 0;
6210}
6211_ACEOF
6212rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006213if { (ac_try="$ac_compile"
6214case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006220 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006230 gt_cv_c_wint_t=yes
6231else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006232 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006233sed 's/^/| /' conftest.$ac_ext >&5
6234
Theodore Ts'oe1052142006-10-21 21:46:47 -04006235 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006237
6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006240{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6241$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242 if test $gt_cv_c_wint_t = yes; then
6243
6244cat >>confdefs.h <<\_ACEOF
6245#define HAVE_WINT_T 1
6246_ACEOF
6247
6248 fi
6249
6250
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006251 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6252$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006254 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255else
6256 cat >conftest.$ac_ext <<_ACEOF
6257/* confdefs.h. */
6258_ACEOF
6259cat confdefs.h >>conftest.$ac_ext
6260cat >>conftest.$ac_ext <<_ACEOF
6261/* end confdefs.h. */
6262#include <sys/types.h>
6263#include <inttypes.h>
6264int
6265main ()
6266{
6267uintmax_t i = (uintmax_t) -1;
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006273if { (ac_try="$ac_compile"
6274case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6279$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006280 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006290 jm_ac_cv_header_inttypes_h=yes
6291else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006292 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006293sed 's/^/| /' conftest.$ac_ext >&5
6294
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297
6298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006300{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6301$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302 if test $jm_ac_cv_header_inttypes_h = yes; then
6303
6304cat >>confdefs.h <<_ACEOF
6305#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6306_ACEOF
6307
6308 fi
6309
6310
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006311 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6312$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313if test "${jm_ac_cv_header_stdint_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006314 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006315else
6316 cat >conftest.$ac_ext <<_ACEOF
6317/* confdefs.h. */
6318_ACEOF
6319cat confdefs.h >>conftest.$ac_ext
6320cat >>conftest.$ac_ext <<_ACEOF
6321/* end confdefs.h. */
6322#include <sys/types.h>
6323#include <stdint.h>
6324int
6325main ()
6326{
6327uintmax_t i = (uintmax_t) -1;
6328 ;
6329 return 0;
6330}
6331_ACEOF
6332rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006333if { (ac_try="$ac_compile"
6334case "(($ac_try" in
6335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336 *) ac_try_echo=$ac_try;;
6337esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6339$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006340 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006341 ac_status=$?
6342 grep -v '^ *+' conftest.er1 >conftest.err
6343 rm -f conftest.er1
6344 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006346 (exit $ac_status); } && {
6347 test -z "$ac_c_werror_flag" ||
6348 test ! -s conftest.err
6349 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006350 jm_ac_cv_header_stdint_h=yes
6351else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006352 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353sed 's/^/| /' conftest.$ac_ext >&5
6354
Theodore Ts'oe1052142006-10-21 21:46:47 -04006355 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006356fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006357
6358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006359fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006360{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6361$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362 if test $jm_ac_cv_header_stdint_h = yes; then
6363
6364cat >>confdefs.h <<_ACEOF
6365#define HAVE_STDINT_H_WITH_UINTMAX 1
6366_ACEOF
6367
6368 fi
6369
6370
6371
6372
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006373 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6374$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006375if test "${gt_cv_c_intmax_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006376 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377else
6378 cat >conftest.$ac_ext <<_ACEOF
6379/* confdefs.h. */
6380_ACEOF
6381cat confdefs.h >>conftest.$ac_ext
6382cat >>conftest.$ac_ext <<_ACEOF
6383/* end confdefs.h. */
6384
6385#include <stddef.h>
6386#include <stdlib.h>
6387#if HAVE_STDINT_H_WITH_UINTMAX
6388#include <stdint.h>
6389#endif
6390#if HAVE_INTTYPES_H_WITH_UINTMAX
6391#include <inttypes.h>
6392#endif
6393
6394int
6395main ()
6396{
6397intmax_t x = -1;
6398 ;
6399 return 0;
6400}
6401_ACEOF
6402rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006403if { (ac_try="$ac_compile"
6404case "(($ac_try" in
6405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6406 *) ac_try_echo=$ac_try;;
6407esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6409$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006410 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 ac_status=$?
6412 grep -v '^ *+' conftest.er1 >conftest.err
6413 rm -f conftest.er1
6414 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420 gt_cv_c_intmax_t=yes
6421else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006422 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006423sed 's/^/| /' conftest.$ac_ext >&5
6424
Theodore Ts'oe1052142006-10-21 21:46:47 -04006425 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006427
6428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006430{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6431$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006432 if test $gt_cv_c_intmax_t = yes; then
6433
6434cat >>confdefs.h <<\_ACEOF
6435#define HAVE_INTMAX_T 1
6436_ACEOF
6437
6438 fi
6439
6440
6441
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006442 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6443$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444if test "${gt_cv_func_printf_posix+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006445 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446else
6447
6448 if test "$cross_compiling" = yes; then
6449
6450 cat >conftest.$ac_ext <<_ACEOF
6451/* confdefs.h. */
6452_ACEOF
6453cat confdefs.h >>conftest.$ac_ext
6454cat >>conftest.$ac_ext <<_ACEOF
6455/* end confdefs.h. */
6456
6457#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6458 notposix
6459#endif
6460
6461_ACEOF
6462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6463 $EGREP "notposix" >/dev/null 2>&1; then
6464 gt_cv_func_printf_posix="guessing no"
6465else
6466 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006467fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006468rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006470
6471else
6472 cat >conftest.$ac_ext <<_ACEOF
6473/* confdefs.h. */
6474_ACEOF
6475cat confdefs.h >>conftest.$ac_ext
6476cat >>conftest.$ac_ext <<_ACEOF
6477/* end confdefs.h. */
6478
6479#include <stdio.h>
6480#include <string.h>
6481/* The string "%2$d %1$d", with dollar characters protected from the shell's
6482 dollar expansion (possibly an autoconf bug). */
6483static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6484static char buf[100];
6485int main ()
6486{
6487 sprintf (buf, format, 33, 55);
6488 return (strcmp (buf, "55 33") != 0);
6489}
6490_ACEOF
6491rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492if { (ac_try="$ac_link"
6493case "(($ac_try" in
6494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6496esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6498$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006499 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006500 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006503 { (case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6508$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006509 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512 (exit $ac_status); }; }; then
6513 gt_cv_func_printf_posix=yes
6514else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006515 $as_echo "$as_me: program exited with status $ac_status" >&5
6516$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517sed 's/^/| /' conftest.$ac_ext >&5
6518
6519( exit $ac_status )
6520gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006521fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006522rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006523rm -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 -05006524fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006525
Theodore Ts'oe1052142006-10-21 21:46:47 -04006526
6527
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006528fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006529{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6530$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531 case $gt_cv_func_printf_posix in
6532 *yes)
6533
6534cat >>confdefs.h <<\_ACEOF
6535#define HAVE_POSIX_PRINTF 1
6536_ACEOF
6537
6538 ;;
6539 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006540
6541# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6542# for constant arguments. Useless!
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006543{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6544$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545if test "${ac_cv_working_alloca_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006546 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006547else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548 cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006554#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006555int
6556main ()
6557{
6558char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006559 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560 ;
6561 return 0;
6562}
6563_ACEOF
6564rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006565if { (ac_try="$ac_link"
6566case "(($ac_try" in
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6569esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6571$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006572 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573 ac_status=$?
6574 grep -v '^ *+' conftest.er1 >conftest.err
6575 rm -f conftest.er1
6576 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006578 (exit $ac_status); } && {
6579 test -z "$ac_c_werror_flag" ||
6580 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006581 } && test -s conftest$ac_exeext && {
6582 test "$cross_compiling" = yes ||
6583 $as_test_x conftest$ac_exeext
6584 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006586else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006587 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006589
Theodore Ts'oe1052142006-10-21 21:46:47 -04006590 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006592
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006593rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006595 conftest$ac_exeext conftest.$ac_ext
6596fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006597{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6598$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006599if test $ac_cv_working_alloca_h = yes; then
6600
6601cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006602#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604
6605fi
6606
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006607{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6608$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609if test "${ac_cv_func_alloca_works+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006610 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006611else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006612 cat >conftest.$ac_ext <<_ACEOF
6613/* confdefs.h. */
6614_ACEOF
6615cat confdefs.h >>conftest.$ac_ext
6616cat >>conftest.$ac_ext <<_ACEOF
6617/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006618#ifdef __GNUC__
6619# define alloca __builtin_alloca
6620#else
6621# ifdef _MSC_VER
6622# include <malloc.h>
6623# define alloca _alloca
6624# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006625# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006626# include <alloca.h>
6627# else
6628# ifdef _AIX
6629 #pragma alloca
6630# else
6631# ifndef alloca /* predefined by HP cc +Olibcalls */
6632char *alloca ();
6633# endif
6634# endif
6635# endif
6636# endif
6637#endif
6638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639int
6640main ()
6641{
6642char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006643 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644 ;
6645 return 0;
6646}
6647_ACEOF
6648rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006649if { (ac_try="$ac_link"
6650case "(($ac_try" in
6651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6652 *) ac_try_echo=$ac_try;;
6653esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6655$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006656 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657 ac_status=$?
6658 grep -v '^ *+' conftest.er1 >conftest.err
6659 rm -f conftest.er1
6660 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006665 } && test -s conftest$ac_exeext && {
6666 test "$cross_compiling" = yes ||
6667 $as_test_x conftest$ac_exeext
6668 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006669 ac_cv_func_alloca_works=yes
6670else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006671 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006673
Theodore Ts'oe1052142006-10-21 21:46:47 -04006674 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006677rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006678rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679 conftest$ac_exeext conftest.$ac_ext
6680fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006681{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6682$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006684if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685
6686cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006687#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006689
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006690else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6692# that cause trouble. Some versions do not even contain alloca or
6693# contain a buggy version. If you still want to use their alloca,
6694# use ar to extract alloca.o from them instead of compiling alloca.c.
6695
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697
6698cat >>confdefs.h <<\_ACEOF
6699#define C_ALLOCA 1
6700_ACEOF
6701
6702
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6704$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705if test "${ac_cv_os_cray+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006706 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707else
6708 cat >conftest.$ac_ext <<_ACEOF
6709/* confdefs.h. */
6710_ACEOF
6711cat confdefs.h >>conftest.$ac_ext
6712cat >>conftest.$ac_ext <<_ACEOF
6713/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006715webecray
6716#else
6717wenotbecray
6718#endif
6719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006721if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006723 ac_cv_os_cray=yes
6724else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006725 ac_cv_os_cray=no
6726fi
6727rm -f conftest*
6728
6729fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006730{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6731$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006732if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6735{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6736$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006737if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006738 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006739else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 cat >conftest.$ac_ext <<_ACEOF
6741/* confdefs.h. */
6742_ACEOF
6743cat confdefs.h >>conftest.$ac_ext
6744cat >>conftest.$ac_ext <<_ACEOF
6745/* end confdefs.h. */
6746/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6748#define $ac_func innocuous_$ac_func
6749
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006750/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751 which can conflict with char $ac_func (); below.
6752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6753 <limits.h> exists even on freestanding compilers. */
6754
6755#ifdef __STDC__
6756# include <limits.h>
6757#else
6758# include <assert.h>
6759#endif
6760
6761#undef $ac_func
6762
Theodore Ts'oe1052142006-10-21 21:46:47 -04006763/* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766#ifdef __cplusplus
6767extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006770/* The GNU C library defines this for functions which it implements
6771 to always fail with ENOSYS. Some functions are actually named
6772 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006773#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006774choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006775#endif
6776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006777int
6778main ()
6779{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006780return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781 ;
6782 return 0;
6783}
6784_ACEOF
6785rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006786if { (ac_try="$ac_link"
6787case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6792$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006793 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006802 } && test -s conftest$ac_exeext && {
6803 test "$cross_compiling" = yes ||
6804 $as_test_x conftest$ac_exeext
6805 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006807else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006808 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006810
Theodore Ts'oe1052142006-10-21 21:46:47 -04006811 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006813
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006814rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 conftest$ac_exeext conftest.$ac_ext
6817fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006818ac_res=`eval 'as_val=${'$as_ac_var'}
6819 $as_echo "$as_val"'`
6820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6821$as_echo "$ac_res" >&6; }
6822as_val=`eval 'as_val=${'$as_ac_var'}
6823 $as_echo "$as_val"'`
6824 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825
6826cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006827#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006828_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006831fi
6832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006834fi
6835
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006836{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6837$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838if test "${ac_cv_c_stack_direction+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006839 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006840else
6841 if test "$cross_compiling" = yes; then
6842 ac_cv_c_stack_direction=0
6843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844 cat >conftest.$ac_ext <<_ACEOF
6845/* confdefs.h. */
6846_ACEOF
6847cat confdefs.h >>conftest.$ac_ext
6848cat >>conftest.$ac_ext <<_ACEOF
6849/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006850$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852find_stack_direction ()
6853{
6854 static char *addr = 0;
6855 auto char dummy;
6856 if (addr == 0)
6857 {
6858 addr = &dummy;
6859 return find_stack_direction ();
6860 }
6861 else
6862 return (&dummy > addr) ? 1 : -1;
6863}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864
6865int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006866main ()
6867{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006869}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870_ACEOF
6871rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006872if { (ac_try="$ac_link"
6873case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6876esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6878$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006879 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006883 { (case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6888$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006892 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006893 ac_cv_c_stack_direction=1
6894else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006895 $as_echo "$as_me: program exited with status $ac_status" >&5
6896$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006898
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899( exit $ac_status )
6900ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006901fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006902rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006903rm -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 -05006904fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006905
6906
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006908{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6909$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006910
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006912#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006913_ACEOF
6914
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006915
6916fi
6917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918
6919
6920for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006921do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006922as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006923if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006924 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6925$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006926if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006927 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006928fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006929ac_res=`eval 'as_val=${'$as_ac_Header'}
6930 $as_echo "$as_val"'`
6931 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6932$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006933else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006934 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006935{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6936$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937cat >conftest.$ac_ext <<_ACEOF
6938/* confdefs.h. */
6939_ACEOF
6940cat confdefs.h >>conftest.$ac_ext
6941cat >>conftest.$ac_ext <<_ACEOF
6942/* end confdefs.h. */
6943$ac_includes_default
6944#include <$ac_header>
6945_ACEOF
6946rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006947if { (ac_try="$ac_compile"
6948case "(($ac_try" in
6949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6951esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6953$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006954 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955 ac_status=$?
6956 grep -v '^ *+' conftest.er1 >conftest.err
6957 rm -f conftest.er1
6958 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006960 (exit $ac_status); } && {
6961 test -z "$ac_c_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964 ac_header_compiler=yes
6965else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006966 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967sed 's/^/| /' conftest.$ac_ext >&5
6968
Theodore Ts'oe1052142006-10-21 21:46:47 -04006969 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006971
6972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006973{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6974$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975
6976# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006977{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6978$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979cat >conftest.$ac_ext <<_ACEOF
6980/* confdefs.h. */
6981_ACEOF
6982cat confdefs.h >>conftest.$ac_ext
6983cat >>conftest.$ac_ext <<_ACEOF
6984/* end confdefs.h. */
6985#include <$ac_header>
6986_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006987if { (ac_try="$ac_cpp conftest.$ac_ext"
6988case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007000 (exit $ac_status); } >/dev/null && {
7001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004 ac_header_preproc=yes
7005else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007006 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007sed 's/^/| /' conftest.$ac_ext >&5
7008
7009 ac_header_preproc=no
7010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007013{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7014$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015
7016# So? What about this header?
7017case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7018 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7020$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7022$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023 ac_header_preproc=yes
7024 ;;
7025 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7027$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7029$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7031$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7033$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7035$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7037$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039 ;;
7040esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007041{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7042$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007043if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007045else
7046 eval "$as_ac_Header=\$ac_header_preproc"
7047fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007048ac_res=`eval 'as_val=${'$as_ac_Header'}
7049 $as_echo "$as_val"'`
7050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7051$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
7053fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007054as_val=`eval 'as_val=${'$as_ac_Header'}
7055 $as_echo "$as_val"'`
7056 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007058#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059_ACEOF
7060
7061fi
7062
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007063done
7064
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007065
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007066for ac_func in getpagesize
7067do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007068as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7069{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7070$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007071if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007072 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074 cat >conftest.$ac_ext <<_ACEOF
7075/* confdefs.h. */
7076_ACEOF
7077cat confdefs.h >>conftest.$ac_ext
7078cat >>conftest.$ac_ext <<_ACEOF
7079/* end confdefs.h. */
7080/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7082#define $ac_func innocuous_$ac_func
7083
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085 which can conflict with char $ac_func (); below.
7086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7087 <limits.h> exists even on freestanding compilers. */
7088
7089#ifdef __STDC__
7090# include <limits.h>
7091#else
7092# include <assert.h>
7093#endif
7094
7095#undef $ac_func
7096
Theodore Ts'oe1052142006-10-21 21:46:47 -04007097/* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100#ifdef __cplusplus
7101extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007102#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007104/* The GNU C library defines this for functions which it implements
7105 to always fail with ENOSYS. Some functions are actually named
7106 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007107#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007108choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109#endif
7110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111int
7112main ()
7113{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007114return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115 ;
7116 return 0;
7117}
7118_ACEOF
7119rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007120if { (ac_try="$ac_link"
7121case "(($ac_try" in
7122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7123 *) ac_try_echo=$ac_try;;
7124esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7126$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007127 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007128 ac_status=$?
7129 grep -v '^ *+' conftest.er1 >conftest.err
7130 rm -f conftest.er1
7131 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007133 (exit $ac_status); } && {
7134 test -z "$ac_c_werror_flag" ||
7135 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007136 } && test -s conftest$ac_exeext && {
7137 test "$cross_compiling" = yes ||
7138 $as_test_x conftest$ac_exeext
7139 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007141else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007142 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007147
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007148rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007149rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150 conftest$ac_exeext conftest.$ac_ext
7151fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007152ac_res=`eval 'as_val=${'$as_ac_var'}
7153 $as_echo "$as_val"'`
7154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7155$as_echo "$ac_res" >&6; }
7156as_val=`eval 'as_val=${'$as_ac_var'}
7157 $as_echo "$as_val"'`
7158 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007159 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007160#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161_ACEOF
7162
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007163fi
7164done
7165
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007166{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7167$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007169 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170else
7171 if test "$cross_compiling" = yes; then
7172 ac_cv_func_mmap_fixed_mapped=no
7173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 cat >conftest.$ac_ext <<_ACEOF
7175/* confdefs.h. */
7176_ACEOF
7177cat confdefs.h >>conftest.$ac_ext
7178cat >>conftest.$ac_ext <<_ACEOF
7179/* end confdefs.h. */
7180$ac_includes_default
7181/* malloc might have been renamed as rpl_malloc. */
7182#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007183
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007184/* Thanks to Mike Haertel and Jim Avera for this test.
7185 Here is a matrix of mmap possibilities:
7186 mmap private not fixed
7187 mmap private fixed at somewhere currently unmapped
7188 mmap private fixed at somewhere already mapped
7189 mmap shared not fixed
7190 mmap shared fixed at somewhere currently unmapped
7191 mmap shared fixed at somewhere already mapped
7192 For private mappings, we should verify that changes cannot be read()
7193 back from the file, nor mmap's back from the file at a different
7194 address. (There have been systems where private was not correctly
7195 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007197 like early versions of FreeBSD and possibly contemporary NetBSD.)
7198 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007200
7201 Grep wants private fixed already mapped.
7202 The main things grep needs to know about mmap are:
7203 * does it exist and is it safe to write into the mmap'd area
7204 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007206#include <fcntl.h>
7207#include <sys/mman.h>
7208
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007209#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210char *malloc ();
7211#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007214#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007215/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007216# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007217# define HAVE_SYS_PARAM_H 1
7218# endif
7219
7220# ifdef _SC_PAGESIZE
7221# define getpagesize() sysconf(_SC_PAGESIZE)
7222# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007223# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007224# include <sys/param.h>
7225# ifdef EXEC_PAGESIZE
7226# define getpagesize() EXEC_PAGESIZE
7227# else /* no EXEC_PAGESIZE */
7228# ifdef NBPG
7229# define getpagesize() NBPG * CLSIZE
7230# ifndef CLSIZE
7231# define CLSIZE 1
7232# endif /* no CLSIZE */
7233# else /* no NBPG */
7234# ifdef NBPC
7235# define getpagesize() NBPC
7236# else /* no NBPC */
7237# ifdef PAGESIZE
7238# define getpagesize() PAGESIZE
7239# endif /* PAGESIZE */
7240# endif /* no NBPC */
7241# endif /* no NBPG */
7242# endif /* no EXEC_PAGESIZE */
7243# else /* no HAVE_SYS_PARAM_H */
7244# define getpagesize() 8192 /* punt totally */
7245# endif /* no HAVE_SYS_PARAM_H */
7246# endif /* no _SC_PAGESIZE */
7247
7248#endif /* no HAVE_GETPAGESIZE */
7249
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007250int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007252{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253 char *data, *data2, *data3;
7254 int i, pagesize;
7255 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007256
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259 /* First, make a file with some known garbage in it. */
7260 data = (char *) malloc (pagesize);
7261 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007262 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263 for (i = 0; i < pagesize; ++i)
7264 *(data + i) = rand ();
7265 umask (0);
7266 fd = creat ("conftest.mmap", 0600);
7267 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007268 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007272
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273 /* Next, try to mmap the file at a fixed address which already has
7274 something else allocated at it. If we can, also make sure that
7275 we see the same garbage. */
7276 fd = open ("conftest.mmap", O_RDWR);
7277 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007278 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 data2 = (char *) malloc (2 * pagesize);
7280 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007281 return 1;
7282 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7284 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007285 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007286 for (i = 0; i < pagesize; ++i)
7287 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007289
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290 /* Finally, make sure that changes to the mapped area do not
7291 percolate back to the file as seen by read(). (This is a bug on
7292 some variants of i386 svr4.0.) */
7293 for (i = 0; i < pagesize; ++i)
7294 *(data2 + i) = *(data2 + i) + 1;
7295 data3 = (char *) malloc (pagesize);
7296 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007297 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007298 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007299 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300 for (i = 0; i < pagesize; ++i)
7301 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007302 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007303 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007304 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007305}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306_ACEOF
7307rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007308if { (ac_try="$ac_link"
7309case "(($ac_try" in
7310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7311 *) ac_try_echo=$ac_try;;
7312esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7314$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007315 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007319 { (case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7324$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007325 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007326 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007329 ac_cv_func_mmap_fixed_mapped=yes
7330else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007331 $as_echo "$as_me: program exited with status $ac_status" >&5
7332$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007334
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007335( exit $ac_status )
7336ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007337fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007338rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339rm -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 -05007340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341
7342
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007344{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7345$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007346if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347
7348cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007349#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007351
7352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007354
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007355
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007356 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7357$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007358if test "${ac_cv_gnu_library_2_1+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007359 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007360else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361 cat >conftest.$ac_ext <<_ACEOF
7362/* confdefs.h. */
7363_ACEOF
7364cat confdefs.h >>conftest.$ac_ext
7365cat >>conftest.$ac_ext <<_ACEOF
7366/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007367
7368#include <features.h>
7369#ifdef __GNU_LIBRARY__
7370 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7371 Lucky GNU user
7372 #endif
7373#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374
7375_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007376if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378 ac_cv_gnu_library_2_1=yes
7379else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380 ac_cv_gnu_library_2_1=no
7381fi
7382rm -f conftest*
7383
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007384
7385
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007386fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007387{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7388$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007389
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007390 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007391
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007393
7394
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007395 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7396$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007398 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007400
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007403 # Guess based on the CPU.
7404 case "$host_cpu" in
7405 alpha* | i3456786 | m68k | s390*)
7406 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7407 *)
7408 gt_cv_int_divbyzero_sigfpe="guessing no";;
7409 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007410
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007411else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007412 cat >conftest.$ac_ext <<_ACEOF
7413/* confdefs.h. */
7414_ACEOF
7415cat confdefs.h >>conftest.$ac_ext
7416cat >>conftest.$ac_ext <<_ACEOF
7417/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007418
7419#include <stdlib.h>
7420#include <signal.h>
7421
7422static void
7423#ifdef __cplusplus
7424sigfpe_handler (int sig)
7425#else
7426sigfpe_handler (sig) int sig;
7427#endif
7428{
7429 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7430 exit (sig != SIGFPE);
7431}
7432
7433int x = 1;
7434int y = 0;
7435int z;
7436int nan;
7437
7438int main ()
7439{
7440 signal (SIGFPE, sigfpe_handler);
7441/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7442#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7443 signal (SIGTRAP, sigfpe_handler);
7444#endif
7445/* Linux/SPARC yields signal SIGILL. */
7446#if defined (__sparc__) && defined (__linux__)
7447 signal (SIGILL, sigfpe_handler);
7448#endif
7449
7450 z = x / y;
7451 nan = y / y;
7452 exit (1);
7453}
7454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455_ACEOF
7456rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007457if { (ac_try="$ac_link"
7458case "(($ac_try" in
7459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7460 *) ac_try_echo=$ac_try;;
7461esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7463$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007464 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007465 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007468 { (case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007474 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007477 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007478 gt_cv_int_divbyzero_sigfpe=yes
7479else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007480 $as_echo "$as_me: program exited with status $ac_status" >&5
7481$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482sed 's/^/| /' conftest.$ac_ext >&5
7483
7484( exit $ac_status )
7485gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007486fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007487rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007488rm -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 -04007489fi
7490
Theodore Ts'oe1052142006-10-21 21:46:47 -04007491
7492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007493fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007494{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7495$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007496 case "$gt_cv_int_divbyzero_sigfpe" in
7497 *yes) value=1;;
7498 *) value=0;;
7499 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500
7501cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007503_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504
7505
7506
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007507 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7508$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509if test "${ac_cv_type_unsigned_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007510 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007511else
7512 cat >conftest.$ac_ext <<_ACEOF
7513/* confdefs.h. */
7514_ACEOF
7515cat confdefs.h >>conftest.$ac_ext
7516cat >>conftest.$ac_ext <<_ACEOF
7517/* end confdefs.h. */
7518unsigned long long ull = 1ULL; int i = 63;
7519int
7520main ()
7521{
7522unsigned long long ullmax = (unsigned long long) -1;
7523 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7524 ;
7525 return 0;
7526}
7527_ACEOF
7528rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007529if { (ac_try="$ac_link"
7530case "(($ac_try" in
7531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7532 *) ac_try_echo=$ac_try;;
7533esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7535$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007536 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007537 ac_status=$?
7538 grep -v '^ *+' conftest.er1 >conftest.err
7539 rm -f conftest.er1
7540 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007545 } && test -s conftest$ac_exeext && {
7546 test "$cross_compiling" = yes ||
7547 $as_test_x conftest$ac_exeext
7548 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549 ac_cv_type_unsigned_long_long=yes
7550else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007551 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552sed 's/^/| /' conftest.$ac_ext >&5
7553
Theodore Ts'oe1052142006-10-21 21:46:47 -04007554 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007557rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007558rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559 conftest$ac_exeext conftest.$ac_ext
7560fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007561{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7562$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007563 if test $ac_cv_type_unsigned_long_long = yes; then
7564
7565cat >>confdefs.h <<\_ACEOF
7566#define HAVE_UNSIGNED_LONG_LONG 1
7567_ACEOF
7568
7569 fi
7570
7571
7572
7573
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007574 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 -05007575
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007576 test $ac_cv_type_unsigned_long_long = yes \
7577 && ac_type='unsigned long long' \
7578 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579
7580cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007581#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582_ACEOF
7583
7584 else
7585
7586cat >>confdefs.h <<\_ACEOF
7587#define HAVE_UINTMAX_T 1
7588_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007589
7590 fi
7591
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007592
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007593 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7594$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007595if test "${gt_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007596 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598
7599 cat >conftest.$ac_ext <<_ACEOF
7600/* confdefs.h. */
7601_ACEOF
7602cat confdefs.h >>conftest.$ac_ext
7603cat >>conftest.$ac_ext <<_ACEOF
7604/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007605#include <sys/types.h>
7606#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607int
7608main ()
7609{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007610
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611 ;
7612 return 0;
7613}
7614_ACEOF
7615rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007616if { (ac_try="$ac_compile"
7617case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007623 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007633 gt_cv_header_inttypes_h=yes
7634else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007635 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007637
Theodore Ts'oe1052142006-10-21 21:46:47 -04007638 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007640
7641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642
7643fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007644{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7645$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007646 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007647
7648cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007649#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007651
7652 fi
7653
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007654
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007655
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007656 if test $gt_cv_header_inttypes_h = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007657 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7658$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659if test "${gt_cv_inttypes_pri_broken+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007660 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007661else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662
7663 cat >conftest.$ac_ext <<_ACEOF
7664/* confdefs.h. */
7665_ACEOF
7666cat confdefs.h >>conftest.$ac_ext
7667cat >>conftest.$ac_ext <<_ACEOF
7668/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007669#include <inttypes.h>
7670#ifdef PRId32
7671char *p = PRId32;
7672#endif
7673
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007674int
7675main ()
7676{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678 ;
7679 return 0;
7680}
7681_ACEOF
7682rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007683if { (ac_try="$ac_compile"
7684case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7689$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007690 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691 ac_status=$?
7692 grep -v '^ *+' conftest.er1 >conftest.err
7693 rm -f conftest.er1
7694 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007696 (exit $ac_status); } && {
7697 test -z "$ac_c_werror_flag" ||
7698 test ! -s conftest.err
7699 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007700 gt_cv_inttypes_pri_broken=no
7701else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007702 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007704
Theodore Ts'oe1052142006-10-21 21:46:47 -04007705 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007706fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007707
7708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709
7710fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007711{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7712$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007713 fi
7714 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715
7716cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007717#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007719
7720 fi
7721
7722
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007724for ac_header in stdint.h
7725do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007726as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7729$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007731 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007732fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007733ac_res=`eval 'as_val=${'$as_ac_Header'}
7734 $as_echo "$as_val"'`
7735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7736$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007737else
7738 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007739{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7740$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h. */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h. */
7747$ac_includes_default
7748#include <$ac_header>
7749_ACEOF
7750rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007751if { (ac_try="$ac_compile"
7752case "(($ac_try" in
7753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7754 *) ac_try_echo=$ac_try;;
7755esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7757$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007758 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007759 ac_status=$?
7760 grep -v '^ *+' conftest.er1 >conftest.err
7761 rm -f conftest.er1
7762 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007764 (exit $ac_status); } && {
7765 test -z "$ac_c_werror_flag" ||
7766 test ! -s conftest.err
7767 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768 ac_header_compiler=yes
7769else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007770 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007771sed 's/^/| /' conftest.$ac_ext >&5
7772
Theodore Ts'oe1052142006-10-21 21:46:47 -04007773 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007775
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007777{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7778$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007779
7780# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007781{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7782$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789#include <$ac_header>
7790_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007791if { (ac_try="$ac_cpp conftest.$ac_ext"
7792case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7797$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799 ac_status=$?
7800 grep -v '^ *+' conftest.er1 >conftest.err
7801 rm -f conftest.er1
7802 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007804 (exit $ac_status); } >/dev/null && {
7805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7806 test ! -s conftest.err
7807 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808 ac_header_preproc=yes
7809else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007810 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813 ac_header_preproc=no
7814fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007816rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007817{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7818$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819
7820# So? What about this header?
7821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7822 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7824$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7826$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827 ac_header_preproc=yes
7828 ;;
7829 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7831$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7833$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7835$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7837$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7839$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7841$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007842
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843 ;;
7844esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007845{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7846$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007847if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007848 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007849else
7850 eval "$as_ac_Header=\$ac_header_preproc"
7851fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007852ac_res=`eval 'as_val=${'$as_ac_Header'}
7853 $as_echo "$as_val"'`
7854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7855$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007856
7857fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007858as_val=`eval 'as_val=${'$as_ac_Header'}
7859 $as_echo "$as_val"'`
7860 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863_ACEOF
7864
7865fi
7866
7867done
7868
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007869 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7870$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007871 result=
7872 cat >conftest.$ac_ext <<_ACEOF
7873/* confdefs.h. */
7874_ACEOF
7875cat confdefs.h >>conftest.$ac_ext
7876cat >>conftest.$ac_ext <<_ACEOF
7877/* end confdefs.h. */
7878
7879#include <limits.h>
7880#if HAVE_STDINT_H
7881#include <stdint.h>
7882#endif
7883#ifdef SIZE_MAX
7884Found it
7885#endif
7886
7887_ACEOF
7888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "Found it" >/dev/null 2>&1; then
7890 result=yes
7891fi
7892rm -f conftest*
7893
7894 if test -z "$result"; then
7895 if test "$cross_compiling" = yes; then
7896 # Depending upon the size, compute the lo and hi bounds.
7897cat >conftest.$ac_ext <<_ACEOF
7898/* confdefs.h. */
7899_ACEOF
7900cat confdefs.h >>conftest.$ac_ext
7901cat >>conftest.$ac_ext <<_ACEOF
7902/* end confdefs.h. */
7903#include <stddef.h>
7904int
7905main ()
7906{
7907static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7908test_array [0] = 0
7909
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007915if { (ac_try="$ac_compile"
7916case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007920eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7921$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007922 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007923 ac_status=$?
7924 grep -v '^ *+' conftest.er1 >conftest.err
7925 rm -f conftest.er1
7926 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007928 (exit $ac_status); } && {
7929 test -z "$ac_c_werror_flag" ||
7930 test ! -s conftest.err
7931 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007932 ac_lo=0 ac_mid=0
7933 while :; do
7934 cat >conftest.$ac_ext <<_ACEOF
7935/* confdefs.h. */
7936_ACEOF
7937cat confdefs.h >>conftest.$ac_ext
7938cat >>conftest.$ac_ext <<_ACEOF
7939/* end confdefs.h. */
7940#include <stddef.h>
7941int
7942main ()
7943{
7944static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7945test_array [0] = 0
7946
7947 ;
7948 return 0;
7949}
7950_ACEOF
7951rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007952if { (ac_try="$ac_compile"
7953case "(($ac_try" in
7954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7955 *) ac_try_echo=$ac_try;;
7956esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7958$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007959 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960 ac_status=$?
7961 grep -v '^ *+' conftest.er1 >conftest.err
7962 rm -f conftest.er1
7963 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007965 (exit $ac_status); } && {
7966 test -z "$ac_c_werror_flag" ||
7967 test ! -s conftest.err
7968 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969 ac_hi=$ac_mid; break
7970else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007971 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007972sed 's/^/| /' conftest.$ac_ext >&5
7973
Theodore Ts'oe1052142006-10-21 21:46:47 -04007974 ac_lo=`expr $ac_mid + 1`
7975 if test $ac_lo -le $ac_mid; then
7976 ac_lo= ac_hi=
7977 break
7978 fi
7979 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007981
7982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007983 done
7984else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007985 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007986sed 's/^/| /' conftest.$ac_ext >&5
7987
Theodore Ts'oe1052142006-10-21 21:46:47 -04007988 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007989/* confdefs.h. */
7990_ACEOF
7991cat confdefs.h >>conftest.$ac_ext
7992cat >>conftest.$ac_ext <<_ACEOF
7993/* end confdefs.h. */
7994#include <stddef.h>
7995int
7996main ()
7997{
7998static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7999test_array [0] = 0
8000
8001 ;
8002 return 0;
8003}
8004_ACEOF
8005rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008006if { (ac_try="$ac_compile"
8007case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8012$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008013 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008023 ac_hi=-1 ac_mid=-1
8024 while :; do
8025 cat >conftest.$ac_ext <<_ACEOF
8026/* confdefs.h. */
8027_ACEOF
8028cat confdefs.h >>conftest.$ac_ext
8029cat >>conftest.$ac_ext <<_ACEOF
8030/* end confdefs.h. */
8031#include <stddef.h>
8032int
8033main ()
8034{
8035static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8036test_array [0] = 0
8037
8038 ;
8039 return 0;
8040}
8041_ACEOF
8042rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008043if { (ac_try="$ac_compile"
8044case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8047esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8049$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008050 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051 ac_status=$?
8052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008060 ac_lo=$ac_mid; break
8061else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008062 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008063sed 's/^/| /' conftest.$ac_ext >&5
8064
Theodore Ts'oe1052142006-10-21 21:46:47 -04008065 ac_hi=`expr '(' $ac_mid ')' - 1`
8066 if test $ac_mid -le $ac_hi; then
8067 ac_lo= ac_hi=
8068 break
8069 fi
8070 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008072
8073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008074 done
8075else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008076 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008077sed 's/^/| /' conftest.$ac_ext >&5
8078
Theodore Ts'oe1052142006-10-21 21:46:47 -04008079 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008081
8082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084
8085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008086# Binary search between lo and hi bounds.
8087while test "x$ac_lo" != "x$ac_hi"; do
8088 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8089 cat >conftest.$ac_ext <<_ACEOF
8090/* confdefs.h. */
8091_ACEOF
8092cat confdefs.h >>conftest.$ac_ext
8093cat >>conftest.$ac_ext <<_ACEOF
8094/* end confdefs.h. */
8095#include <stddef.h>
8096int
8097main ()
8098{
8099static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8100test_array [0] = 0
8101
8102 ;
8103 return 0;
8104}
8105_ACEOF
8106rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008107if { (ac_try="$ac_compile"
8108case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8113$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008114 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008115 ac_status=$?
8116 grep -v '^ *+' conftest.er1 >conftest.err
8117 rm -f conftest.er1
8118 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008120 (exit $ac_status); } && {
8121 test -z "$ac_c_werror_flag" ||
8122 test ! -s conftest.err
8123 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008124 ac_hi=$ac_mid
8125else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008126 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127sed 's/^/| /' conftest.$ac_ext >&5
8128
Theodore Ts'oe1052142006-10-21 21:46:47 -04008129 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008130fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008131
8132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133done
8134case $ac_lo in
8135?*) res_hi=$ac_lo;;
8136'') result=? ;;
8137esac
8138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008139 cat >conftest.$ac_ext <<_ACEOF
8140/* confdefs.h. */
8141_ACEOF
8142cat confdefs.h >>conftest.$ac_ext
8143cat >>conftest.$ac_ext <<_ACEOF
8144/* end confdefs.h. */
8145#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008146static long int longval () { return ~(size_t)0 / 10; }
8147static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008148#include <stdio.h>
8149#include <stdlib.h>
8150int
8151main ()
8152{
8153
8154 FILE *f = fopen ("conftest.val", "w");
8155 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008156 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008157 if ((~(size_t)0 / 10) < 0)
8158 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008159 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008160 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008161 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008162 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008163 }
8164 else
8165 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008166 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008167 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008168 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008169 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008170 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008171 /* Do not output a trailing newline, as this causes \r\n confusion
8172 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008173 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008174
8175 ;
8176 return 0;
8177}
8178_ACEOF
8179rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008180if { (ac_try="$ac_link"
8181case "(($ac_try" in
8182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183 *) ac_try_echo=$ac_try;;
8184esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8186$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008187 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008188 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008191 { (case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8196$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008197 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008200 (exit $ac_status); }; }; then
8201 res_hi=`cat conftest.val`
8202else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008203 $as_echo "$as_me: program exited with status $ac_status" >&5
8204$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008205sed 's/^/| /' conftest.$ac_ext >&5
8206
8207( exit $ac_status )
8208result=?
8209fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008210rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008211rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008212fi
8213rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215 if test "$cross_compiling" = yes; then
8216 # Depending upon the size, compute the lo and hi bounds.
8217cat >conftest.$ac_ext <<_ACEOF
8218/* confdefs.h. */
8219_ACEOF
8220cat confdefs.h >>conftest.$ac_ext
8221cat >>conftest.$ac_ext <<_ACEOF
8222/* end confdefs.h. */
8223#include <stddef.h>
8224int
8225main ()
8226{
8227static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8228test_array [0] = 0
8229
8230 ;
8231 return 0;
8232}
8233_ACEOF
8234rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008235if { (ac_try="$ac_compile"
8236case "(($ac_try" in
8237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8238 *) ac_try_echo=$ac_try;;
8239esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8241$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008242 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243 ac_status=$?
8244 grep -v '^ *+' conftest.er1 >conftest.err
8245 rm -f conftest.er1
8246 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008248 (exit $ac_status); } && {
8249 test -z "$ac_c_werror_flag" ||
8250 test ! -s conftest.err
8251 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252 ac_lo=0 ac_mid=0
8253 while :; do
8254 cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260#include <stddef.h>
8261int
8262main ()
8263{
8264static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8265test_array [0] = 0
8266
8267 ;
8268 return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008272if { (ac_try="$ac_compile"
8273case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008279 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008289 ac_hi=$ac_mid; break
8290else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008291 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292sed 's/^/| /' conftest.$ac_ext >&5
8293
Theodore Ts'oe1052142006-10-21 21:46:47 -04008294 ac_lo=`expr $ac_mid + 1`
8295 if test $ac_lo -le $ac_mid; then
8296 ac_lo= ac_hi=
8297 break
8298 fi
8299 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008301
8302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008303 done
8304else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008305 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008306sed 's/^/| /' conftest.$ac_ext >&5
8307
Theodore Ts'oe1052142006-10-21 21:46:47 -04008308 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309/* confdefs.h. */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */
8314#include <stddef.h>
8315int
8316main ()
8317{
8318static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8319test_array [0] = 0
8320
8321 ;
8322 return 0;
8323}
8324_ACEOF
8325rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008326if { (ac_try="$ac_compile"
8327case "(($ac_try" in
8328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8329 *) ac_try_echo=$ac_try;;
8330esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8332$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008333 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008339 (exit $ac_status); } && {
8340 test -z "$ac_c_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343 ac_hi=-1 ac_mid=-1
8344 while :; do
8345 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
8351#include <stddef.h>
8352int
8353main ()
8354{
8355static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8356test_array [0] = 0
8357
8358 ;
8359 return 0;
8360}
8361_ACEOF
8362rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008363if { (ac_try="$ac_compile"
8364case "(($ac_try" in
8365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8366 *) ac_try_echo=$ac_try;;
8367esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8369$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008370 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380 ac_lo=$ac_mid; break
8381else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008382 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383sed 's/^/| /' conftest.$ac_ext >&5
8384
Theodore Ts'oe1052142006-10-21 21:46:47 -04008385 ac_hi=`expr '(' $ac_mid ')' - 1`
8386 if test $ac_mid -le $ac_hi; then
8387 ac_lo= ac_hi=
8388 break
8389 fi
8390 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008394 done
8395else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008396 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008397sed 's/^/| /' conftest.$ac_ext >&5
8398
Theodore Ts'oe1052142006-10-21 21:46:47 -04008399 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008401
8402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008404
8405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008406# Binary search between lo and hi bounds.
8407while test "x$ac_lo" != "x$ac_hi"; do
8408 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8409 cat >conftest.$ac_ext <<_ACEOF
8410/* confdefs.h. */
8411_ACEOF
8412cat confdefs.h >>conftest.$ac_ext
8413cat >>conftest.$ac_ext <<_ACEOF
8414/* end confdefs.h. */
8415#include <stddef.h>
8416int
8417main ()
8418{
8419static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8420test_array [0] = 0
8421
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008427if { (ac_try="$ac_compile"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008434 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008444 ac_hi=$ac_mid
8445else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008446 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008447sed 's/^/| /' conftest.$ac_ext >&5
8448
Theodore Ts'oe1052142006-10-21 21:46:47 -04008449 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008450fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008451
8452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008453done
8454case $ac_lo in
8455?*) res_lo=$ac_lo;;
8456'') result=? ;;
8457esac
8458else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008459 cat >conftest.$ac_ext <<_ACEOF
8460/* confdefs.h. */
8461_ACEOF
8462cat confdefs.h >>conftest.$ac_ext
8463cat >>conftest.$ac_ext <<_ACEOF
8464/* end confdefs.h. */
8465#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008466static long int longval () { return ~(size_t)0 % 10; }
8467static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468#include <stdio.h>
8469#include <stdlib.h>
8470int
8471main ()
8472{
8473
8474 FILE *f = fopen ("conftest.val", "w");
8475 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008476 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008477 if ((~(size_t)0 % 10) < 0)
8478 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008479 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008480 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008481 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008482 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008483 }
8484 else
8485 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008486 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008487 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008488 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008489 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008490 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008491 /* Do not output a trailing newline, as this causes \r\n confusion
8492 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008493 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008494
8495 ;
8496 return 0;
8497}
8498_ACEOF
8499rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008500if { (ac_try="$ac_link"
8501case "(($ac_try" in
8502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8503 *) ac_try_echo=$ac_try;;
8504esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8506$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008507 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008508 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008511 { (case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8516$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008517 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008518 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008520 (exit $ac_status); }; }; then
8521 res_lo=`cat conftest.val`
8522else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008523 $as_echo "$as_me: program exited with status $ac_status" >&5
8524$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008525sed 's/^/| /' conftest.$ac_ext >&5
8526
8527( exit $ac_status )
8528result=?
8529fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008530rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008531rm -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 -05008532fi
8533rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008535 if test "$cross_compiling" = yes; then
8536 # Depending upon the size, compute the lo and hi bounds.
8537cat >conftest.$ac_ext <<_ACEOF
8538/* confdefs.h. */
8539_ACEOF
8540cat confdefs.h >>conftest.$ac_ext
8541cat >>conftest.$ac_ext <<_ACEOF
8542/* end confdefs.h. */
8543#include <stddef.h>
8544int
8545main ()
8546{
8547static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8548test_array [0] = 0
8549
8550 ;
8551 return 0;
8552}
8553_ACEOF
8554rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008555if { (ac_try="$ac_compile"
8556case "(($ac_try" in
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8559esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8561$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008562 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008563 ac_status=$?
8564 grep -v '^ *+' conftest.er1 >conftest.err
8565 rm -f conftest.er1
8566 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008568 (exit $ac_status); } && {
8569 test -z "$ac_c_werror_flag" ||
8570 test ! -s conftest.err
8571 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572 ac_lo=0 ac_mid=0
8573 while :; do
8574 cat >conftest.$ac_ext <<_ACEOF
8575/* confdefs.h. */
8576_ACEOF
8577cat confdefs.h >>conftest.$ac_ext
8578cat >>conftest.$ac_ext <<_ACEOF
8579/* end confdefs.h. */
8580#include <stddef.h>
8581int
8582main ()
8583{
8584static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8585test_array [0] = 0
8586
8587 ;
8588 return 0;
8589}
8590_ACEOF
8591rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008592if { (ac_try="$ac_compile"
8593case "(($ac_try" in
8594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595 *) ac_try_echo=$ac_try;;
8596esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8598$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008599 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008600 ac_status=$?
8601 grep -v '^ *+' conftest.er1 >conftest.err
8602 rm -f conftest.er1
8603 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008609 ac_hi=$ac_mid; break
8610else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008611 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612sed 's/^/| /' conftest.$ac_ext >&5
8613
Theodore Ts'oe1052142006-10-21 21:46:47 -04008614 ac_lo=`expr $ac_mid + 1`
8615 if test $ac_lo -le $ac_mid; then
8616 ac_lo= ac_hi=
8617 break
8618 fi
8619 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008621
8622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008623 done
8624else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008625 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626sed 's/^/| /' conftest.$ac_ext >&5
8627
Theodore Ts'oe1052142006-10-21 21:46:47 -04008628 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008629/* confdefs.h. */
8630_ACEOF
8631cat confdefs.h >>conftest.$ac_ext
8632cat >>conftest.$ac_ext <<_ACEOF
8633/* end confdefs.h. */
8634#include <stddef.h>
8635int
8636main ()
8637{
8638static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8639test_array [0] = 0
8640
8641 ;
8642 return 0;
8643}
8644_ACEOF
8645rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008646if { (ac_try="$ac_compile"
8647case "(($ac_try" in
8648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649 *) ac_try_echo=$ac_try;;
8650esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8652$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008653 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008663 ac_hi=-1 ac_mid=-1
8664 while :; do
8665 cat >conftest.$ac_ext <<_ACEOF
8666/* confdefs.h. */
8667_ACEOF
8668cat confdefs.h >>conftest.$ac_ext
8669cat >>conftest.$ac_ext <<_ACEOF
8670/* end confdefs.h. */
8671#include <stddef.h>
8672int
8673main ()
8674{
8675static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8676test_array [0] = 0
8677
8678 ;
8679 return 0;
8680}
8681_ACEOF
8682rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008683if { (ac_try="$ac_compile"
8684case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8689$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008690 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700 ac_lo=$ac_mid; break
8701else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008702 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008703sed 's/^/| /' conftest.$ac_ext >&5
8704
Theodore Ts'oe1052142006-10-21 21:46:47 -04008705 ac_hi=`expr '(' $ac_mid ')' - 1`
8706 if test $ac_mid -le $ac_hi; then
8707 ac_lo= ac_hi=
8708 break
8709 fi
8710 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008711fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008712
8713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008714 done
8715else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008716 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008717sed 's/^/| /' conftest.$ac_ext >&5
8718
Theodore Ts'oe1052142006-10-21 21:46:47 -04008719 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008721
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008724
8725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008726# Binary search between lo and hi bounds.
8727while test "x$ac_lo" != "x$ac_hi"; do
8728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8729 cat >conftest.$ac_ext <<_ACEOF
8730/* confdefs.h. */
8731_ACEOF
8732cat confdefs.h >>conftest.$ac_ext
8733cat >>conftest.$ac_ext <<_ACEOF
8734/* end confdefs.h. */
8735#include <stddef.h>
8736int
8737main ()
8738{
8739static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8740test_array [0] = 0
8741
8742 ;
8743 return 0;
8744}
8745_ACEOF
8746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008747if { (ac_try="$ac_compile"
8748case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8753$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008754 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755 ac_status=$?
8756 grep -v '^ *+' conftest.er1 >conftest.err
8757 rm -f conftest.er1
8758 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008760 (exit $ac_status); } && {
8761 test -z "$ac_c_werror_flag" ||
8762 test ! -s conftest.err
8763 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008764 ac_hi=$ac_mid
8765else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008766 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008767sed 's/^/| /' conftest.$ac_ext >&5
8768
Theodore Ts'oe1052142006-10-21 21:46:47 -04008769 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008771
8772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008773done
8774case $ac_lo in
8775?*) fits_in_uint=$ac_lo;;
8776'') result=? ;;
8777esac
8778else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779 cat >conftest.$ac_ext <<_ACEOF
8780/* confdefs.h. */
8781_ACEOF
8782cat confdefs.h >>conftest.$ac_ext
8783cat >>conftest.$ac_ext <<_ACEOF
8784/* end confdefs.h. */
8785#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008786static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8787static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008788#include <stdio.h>
8789#include <stdlib.h>
8790int
8791main ()
8792{
8793
8794 FILE *f = fopen ("conftest.val", "w");
8795 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008796 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8798 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008799 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008801 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008802 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008803 }
8804 else
8805 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008806 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008807 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008808 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008809 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008811 /* Do not output a trailing newline, as this causes \r\n confusion
8812 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008813 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008814
8815 ;
8816 return 0;
8817}
8818_ACEOF
8819rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008820if { (ac_try="$ac_link"
8821case "(($ac_try" in
8822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823 *) ac_try_echo=$ac_try;;
8824esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008827 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008831 { (case "(($ac_try" in
8832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8833 *) ac_try_echo=$ac_try;;
8834esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8836$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008837 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008838 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008840 (exit $ac_status); }; }; then
8841 fits_in_uint=`cat conftest.val`
8842else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008843 $as_echo "$as_me: program exited with status $ac_status" >&5
8844$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847( exit $ac_status )
8848result=?
8849fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008850rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008851rm -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 -05008852fi
8853rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008854
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008855 if test "$fits_in_uint" = 1; then
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862#include <stddef.h>
8863 extern size_t foo;
8864 extern unsigned long foo;
8865
8866int
8867main ()
8868{
8869
8870 ;
8871 return 0;
8872}
8873_ACEOF
8874rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008875if { (ac_try="$ac_compile"
8876case "(($ac_try" in
8877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8878 *) ac_try_echo=$ac_try;;
8879esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008880eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8881$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008882 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008883 ac_status=$?
8884 grep -v '^ *+' conftest.er1 >conftest.err
8885 rm -f conftest.er1
8886 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008892 fits_in_uint=0
8893else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008894 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008895sed 's/^/| /' conftest.$ac_ext >&5
8896
Theodore Ts'oe1052142006-10-21 21:46:47 -04008897
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008898fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008899
8900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008901 fi
8902 if test -z "$result"; then
8903 if test "$fits_in_uint" = 1; then
8904 result="$res_hi$res_lo"U
8905 else
8906 result="$res_hi$res_lo"UL
8907 fi
8908 else
8909 result='~(size_t)0'
8910 fi
8911 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008912 { $as_echo "$as_me:$LINENO: result: $result" >&5
8913$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008914 if test "$result" != yes; then
8915
8916cat >>confdefs.h <<_ACEOF
8917#define SIZE_MAX $result
8918_ACEOF
8919
8920 fi
8921
8922
8923
8924
8925for ac_header in stdint.h
8926do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008927as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008928if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008929 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8930$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008931if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008932 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008933fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008934ac_res=`eval 'as_val=${'$as_ac_Header'}
8935 $as_echo "$as_val"'`
8936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8937$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008938else
8939 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008940{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8941$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008942cat >conftest.$ac_ext <<_ACEOF
8943/* confdefs.h. */
8944_ACEOF
8945cat confdefs.h >>conftest.$ac_ext
8946cat >>conftest.$ac_ext <<_ACEOF
8947/* end confdefs.h. */
8948$ac_includes_default
8949#include <$ac_header>
8950_ACEOF
8951rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008952if { (ac_try="$ac_compile"
8953case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8958$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008959 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008960 ac_status=$?
8961 grep -v '^ *+' conftest.er1 >conftest.err
8962 rm -f conftest.er1
8963 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008965 (exit $ac_status); } && {
8966 test -z "$ac_c_werror_flag" ||
8967 test ! -s conftest.err
8968 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969 ac_header_compiler=yes
8970else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008971 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008972sed 's/^/| /' conftest.$ac_ext >&5
8973
Theodore Ts'oe1052142006-10-21 21:46:47 -04008974 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008975fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008976
8977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008978{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8979$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008980
8981# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008982{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8983$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008984cat >conftest.$ac_ext <<_ACEOF
8985/* confdefs.h. */
8986_ACEOF
8987cat confdefs.h >>conftest.$ac_ext
8988cat >>conftest.$ac_ext <<_ACEOF
8989/* end confdefs.h. */
8990#include <$ac_header>
8991_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992if { (ac_try="$ac_cpp conftest.$ac_ext"
8993case "(($ac_try" in
8994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8995 *) ac_try_echo=$ac_try;;
8996esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8998$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008999 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009000 ac_status=$?
9001 grep -v '^ *+' conftest.er1 >conftest.err
9002 rm -f conftest.er1
9003 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009005 (exit $ac_status); } >/dev/null && {
9006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9007 test ! -s conftest.err
9008 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009 ac_header_preproc=yes
9010else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009011 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009012sed 's/^/| /' conftest.$ac_ext >&5
9013
9014 ac_header_preproc=no
9015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009016
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009017rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009018{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9019$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020
9021# So? What about this header?
9022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9023 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9025$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9027$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028 ac_header_preproc=yes
9029 ;;
9030 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9032$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9033 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9034$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9035 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9036$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9038$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9040$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9042$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009043
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009044 ;;
9045esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009046{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9047$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009048if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009049 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009050else
9051 eval "$as_ac_Header=\$ac_header_preproc"
9052fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009053ac_res=`eval 'as_val=${'$as_ac_Header'}
9054 $as_echo "$as_val"'`
9055 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9056$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057
9058fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009059as_val=`eval 'as_val=${'$as_ac_Header'}
9060 $as_echo "$as_val"'`
9061 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009063#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064_ACEOF
9065
9066fi
9067
9068done
9069
9070
9071
9072 if test "X$prefix" = "XNONE"; then
9073 acl_final_prefix="$ac_default_prefix"
9074 else
9075 acl_final_prefix="$prefix"
9076 fi
9077 if test "X$exec_prefix" = "XNONE"; then
9078 acl_final_exec_prefix='${prefix}'
9079 else
9080 acl_final_exec_prefix="$exec_prefix"
9081 fi
9082 acl_save_prefix="$prefix"
9083 prefix="$acl_final_prefix"
9084 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9085 prefix="$acl_save_prefix"
9086
9087
Theodore Ts'oe1052142006-10-21 21:46:47 -04009088# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009089if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009090 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091else
9092 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009093fi
9094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095# Prepare PATH_SEPARATOR.
9096# The user is always right.
9097if test "${PATH_SEPARATOR+set}" != set; then
9098 echo "#! /bin/sh" >conf$$.sh
9099 echo "exit 0" >>conf$$.sh
9100 chmod +x conf$$.sh
9101 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9102 PATH_SEPARATOR=';'
9103 else
9104 PATH_SEPARATOR=:
9105 fi
9106 rm -f conf$$.sh
9107fi
9108ac_prog=ld
9109if test "$GCC" = yes; then
9110 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009111 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9112$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113 case $host in
9114 *-*-mingw*)
9115 # gcc leaves a trailing carriage return which upsets mingw
9116 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9117 *)
9118 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9119 esac
9120 case $ac_prog in
9121 # Accept absolute paths.
9122 [\\/]* | [A-Za-z]:[\\/]*)
9123 re_direlt='/[^/][^/]*/\.\./'
9124 # Canonicalize the path of ld
9125 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9126 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9127 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9128 done
9129 test -z "$LD" && LD="$ac_prog"
9130 ;;
9131 "")
9132 # If it fails, then pretend we aren't using GCC.
9133 ac_prog=ld
9134 ;;
9135 *)
9136 # If it is relative, then search for the first ld in PATH.
9137 with_gnu_ld=unknown
9138 ;;
9139 esac
9140elif test "$with_gnu_ld" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009141 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9142$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009143else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009144 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9145$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009146fi
9147if test "${acl_cv_path_LD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009148 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149else
9150 if test -z "$LD"; then
9151 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9152 for ac_dir in $PATH; do
9153 test -z "$ac_dir" && ac_dir=.
9154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9155 acl_cv_path_LD="$ac_dir/$ac_prog"
9156 # Check to see if the program is GNU ld. I'd rather use --version,
9157 # but apparently some GNU ld's only accept -v.
9158 # Break only if it was the GNU/non-GNU ld that we prefer.
9159 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9160 *GNU* | *'with BFD'*)
9161 test "$with_gnu_ld" != no && break ;;
9162 *)
9163 test "$with_gnu_ld" != yes && break ;;
9164 esac
9165 fi
9166 done
9167 IFS="$ac_save_ifs"
9168else
9169 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9170fi
9171fi
9172
9173LD="$acl_cv_path_LD"
9174if test -n "$LD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009175 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9176$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009177else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009178 { $as_echo "$as_me:$LINENO: result: no" >&5
9179$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009180fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009181test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9182$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009183 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009184{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9185$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009186if test "${acl_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009187 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188else
9189 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9190case `$LD -v 2>&1 </dev/null` in
9191*GNU* | *'with BFD'*)
9192 acl_cv_prog_gnu_ld=yes ;;
9193*)
9194 acl_cv_prog_gnu_ld=no ;;
9195esac
9196fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009197{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9198$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199with_gnu_ld=$acl_cv_prog_gnu_ld
9200
9201
9202
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009203 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9204$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009205if test "${acl_cv_rpath+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009206 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207else
9208
9209 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9210 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9211 . ./conftest.sh
9212 rm -f ./conftest.sh
9213 acl_cv_rpath=done
9214
9215fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009216{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9217$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009218 wl="$acl_cv_wl"
9219 libext="$acl_cv_libext"
9220 shlibext="$acl_cv_shlibext"
9221 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9222 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9223 hardcode_direct="$acl_cv_hardcode_direct"
9224 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009225 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009226if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009227 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009228else
9229 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009230fi
9231
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232
9233
9234
9235
9236
9237
9238
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009239 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009240
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009241 acl_save_prefix="$prefix"
9242 prefix="$acl_final_prefix"
9243 acl_save_exec_prefix="$exec_prefix"
9244 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009245
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009246 eval additional_includedir=\"$includedir\"
9247 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009249 exec_prefix="$acl_save_exec_prefix"
9250 prefix="$acl_save_prefix"
9251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252
Theodore Ts'oe1052142006-10-21 21:46:47 -04009253# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009254if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009255 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009256 if test "X$withval" = "Xno"; then
9257 use_additional=no
9258 else
9259 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009265
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009266 eval additional_includedir=\"$includedir\"
9267 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009268
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9271
9272 else
9273 additional_includedir="$withval/include"
9274 additional_libdir="$withval/lib"
9275 fi
9276 fi
9277
Theodore Ts'oe1052142006-10-21 21:46:47 -04009278fi
9279
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 LIBICONV=
9281 LTLIBICONV=
9282 INCICONV=
9283 rpathdirs=
9284 ltrpathdirs=
9285 names_already_handled=
9286 names_next_round='iconv '
9287 while test -n "$names_next_round"; do
9288 names_this_round="$names_next_round"
9289 names_next_round=
9290 for name in $names_this_round; do
9291 already_handled=
9292 for n in $names_already_handled; do
9293 if test "$n" = "$name"; then
9294 already_handled=yes
9295 break
9296 fi
9297 done
9298 if test -z "$already_handled"; then
9299 names_already_handled="$names_already_handled $name"
9300 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9301 eval value=\"\$HAVE_LIB$uppername\"
9302 if test -n "$value"; then
9303 if test "$value" = yes; then
9304 eval value=\"\$LIB$uppername\"
9305 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9306 eval value=\"\$LTLIB$uppername\"
9307 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9308 else
9309 :
9310 fi
9311 else
9312 found_dir=
9313 found_la=
9314 found_so=
9315 found_a=
9316 if test $use_additional = yes; then
9317 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9318 found_dir="$additional_libdir"
9319 found_so="$additional_libdir/lib$name.$shlibext"
9320 if test -f "$additional_libdir/lib$name.la"; then
9321 found_la="$additional_libdir/lib$name.la"
9322 fi
9323 else
9324 if test -f "$additional_libdir/lib$name.$libext"; then
9325 found_dir="$additional_libdir"
9326 found_a="$additional_libdir/lib$name.$libext"
9327 if test -f "$additional_libdir/lib$name.la"; then
9328 found_la="$additional_libdir/lib$name.la"
9329 fi
9330 fi
9331 fi
9332 fi
9333 if test "X$found_dir" = "X"; then
9334 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009335
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009336 acl_save_prefix="$prefix"
9337 prefix="$acl_final_prefix"
9338 acl_save_exec_prefix="$exec_prefix"
9339 exec_prefix="$acl_final_exec_prefix"
9340 eval x=\"$x\"
9341 exec_prefix="$acl_save_exec_prefix"
9342 prefix="$acl_save_prefix"
9343
9344 case "$x" in
9345 -L*)
9346 dir=`echo "X$x" | sed -e 's/^X-L//'`
9347 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9348 found_dir="$dir"
9349 found_so="$dir/lib$name.$shlibext"
9350 if test -f "$dir/lib$name.la"; then
9351 found_la="$dir/lib$name.la"
9352 fi
9353 else
9354 if test -f "$dir/lib$name.$libext"; then
9355 found_dir="$dir"
9356 found_a="$dir/lib$name.$libext"
9357 if test -f "$dir/lib$name.la"; then
9358 found_la="$dir/lib$name.la"
9359 fi
9360 fi
9361 fi
9362 ;;
9363 esac
9364 if test "X$found_dir" != "X"; then
9365 break
9366 fi
9367 done
9368 fi
9369 if test "X$found_dir" != "X"; then
9370 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9371 if test "X$found_so" != "X"; then
9372 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9373 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9374 else
9375 haveit=
9376 for x in $ltrpathdirs; do
9377 if test "X$x" = "X$found_dir"; then
9378 haveit=yes
9379 break
9380 fi
9381 done
9382 if test -z "$haveit"; then
9383 ltrpathdirs="$ltrpathdirs $found_dir"
9384 fi
9385 if test "$hardcode_direct" = yes; then
9386 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9387 else
9388 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9390 haveit=
9391 for x in $rpathdirs; do
9392 if test "X$x" = "X$found_dir"; then
9393 haveit=yes
9394 break
9395 fi
9396 done
9397 if test -z "$haveit"; then
9398 rpathdirs="$rpathdirs $found_dir"
9399 fi
9400 else
9401 haveit=
9402 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009403
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009404 acl_save_prefix="$prefix"
9405 prefix="$acl_final_prefix"
9406 acl_save_exec_prefix="$exec_prefix"
9407 exec_prefix="$acl_final_exec_prefix"
9408 eval x=\"$x\"
9409 exec_prefix="$acl_save_exec_prefix"
9410 prefix="$acl_save_prefix"
9411
9412 if test "X$x" = "X-L$found_dir"; then
9413 haveit=yes
9414 break
9415 fi
9416 done
9417 if test -z "$haveit"; then
9418 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9419 fi
9420 if test "$hardcode_minus_L" != no; then
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9422 else
9423 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9424 fi
9425 fi
9426 fi
9427 fi
9428 else
9429 if test "X$found_a" != "X"; then
9430 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9431 else
9432 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9433 fi
9434 fi
9435 additional_includedir=
9436 case "$found_dir" in
9437 */lib | */lib/)
9438 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9439 additional_includedir="$basedir/include"
9440 ;;
9441 esac
9442 if test "X$additional_includedir" != "X"; then
9443 if test "X$additional_includedir" != "X/usr/include"; then
9444 haveit=
9445 if test "X$additional_includedir" = "X/usr/local/include"; then
9446 if test -n "$GCC"; then
9447 case $host_os in
9448 linux*) haveit=yes;;
9449 esac
9450 fi
9451 fi
9452 if test -z "$haveit"; then
9453 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009454
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009455 acl_save_prefix="$prefix"
9456 prefix="$acl_final_prefix"
9457 acl_save_exec_prefix="$exec_prefix"
9458 exec_prefix="$acl_final_exec_prefix"
9459 eval x=\"$x\"
9460 exec_prefix="$acl_save_exec_prefix"
9461 prefix="$acl_save_prefix"
9462
9463 if test "X$x" = "X-I$additional_includedir"; then
9464 haveit=yes
9465 break
9466 fi
9467 done
9468 if test -z "$haveit"; then
9469 if test -d "$additional_includedir"; then
9470 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9471 fi
9472 fi
9473 fi
9474 fi
9475 fi
9476 if test -n "$found_la"; then
9477 save_libdir="$libdir"
9478 case "$found_la" in
9479 */* | *\\*) . "$found_la" ;;
9480 *) . "./$found_la" ;;
9481 esac
9482 libdir="$save_libdir"
9483 for dep in $dependency_libs; do
9484 case "$dep" in
9485 -L*)
9486 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9487 if test "X$additional_libdir" != "X/usr/lib"; then
9488 haveit=
9489 if test "X$additional_libdir" = "X/usr/local/lib"; then
9490 if test -n "$GCC"; then
9491 case $host_os in
9492 linux*) haveit=yes;;
9493 esac
9494 fi
9495 fi
9496 if test -z "$haveit"; then
9497 haveit=
9498 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009500 acl_save_prefix="$prefix"
9501 prefix="$acl_final_prefix"
9502 acl_save_exec_prefix="$exec_prefix"
9503 exec_prefix="$acl_final_exec_prefix"
9504 eval x=\"$x\"
9505 exec_prefix="$acl_save_exec_prefix"
9506 prefix="$acl_save_prefix"
9507
9508 if test "X$x" = "X-L$additional_libdir"; then
9509 haveit=yes
9510 break
9511 fi
9512 done
9513 if test -z "$haveit"; then
9514 if test -d "$additional_libdir"; then
9515 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9516 fi
9517 fi
9518 haveit=
9519 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 acl_save_exec_prefix="$exec_prefix"
9524 exec_prefix="$acl_final_exec_prefix"
9525 eval x=\"$x\"
9526 exec_prefix="$acl_save_exec_prefix"
9527 prefix="$acl_save_prefix"
9528
9529 if test "X$x" = "X-L$additional_libdir"; then
9530 haveit=yes
9531 break
9532 fi
9533 done
9534 if test -z "$haveit"; then
9535 if test -d "$additional_libdir"; then
9536 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9537 fi
9538 fi
9539 fi
9540 fi
9541 ;;
9542 -R*)
9543 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9544 if test "$enable_rpath" != no; then
9545 haveit=
9546 for x in $rpathdirs; do
9547 if test "X$x" = "X$dir"; then
9548 haveit=yes
9549 break
9550 fi
9551 done
9552 if test -z "$haveit"; then
9553 rpathdirs="$rpathdirs $dir"
9554 fi
9555 haveit=
9556 for x in $ltrpathdirs; do
9557 if test "X$x" = "X$dir"; then
9558 haveit=yes
9559 break
9560 fi
9561 done
9562 if test -z "$haveit"; then
9563 ltrpathdirs="$ltrpathdirs $dir"
9564 fi
9565 fi
9566 ;;
9567 -l*)
9568 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9569 ;;
9570 *.la)
9571 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9572 ;;
9573 *)
9574 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9575 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9576 ;;
9577 esac
9578 done
9579 fi
9580 else
9581 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9582 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9583 fi
9584 fi
9585 fi
9586 done
9587 done
9588 if test "X$rpathdirs" != "X"; then
9589 if test -n "$hardcode_libdir_separator"; then
9590 alldirs=
9591 for found_dir in $rpathdirs; do
9592 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9593 done
9594 acl_save_libdir="$libdir"
9595 libdir="$alldirs"
9596 eval flag=\"$hardcode_libdir_flag_spec\"
9597 libdir="$acl_save_libdir"
9598 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9599 else
9600 for found_dir in $rpathdirs; do
9601 acl_save_libdir="$libdir"
9602 libdir="$found_dir"
9603 eval flag=\"$hardcode_libdir_flag_spec\"
9604 libdir="$acl_save_libdir"
9605 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9606 done
9607 fi
9608 fi
9609 if test "X$ltrpathdirs" != "X"; then
9610 for found_dir in $ltrpathdirs; do
9611 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9612 done
9613 fi
9614
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009615
9616
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618
9619
9620
9621
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009622 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9623$as_echo_n "checking for ptrdiff_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624if test "${ac_cv_type_ptrdiff_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009625 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009626else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009627 ac_cv_type_ptrdiff_t=no
9628cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009629/* confdefs.h. */
9630_ACEOF
9631cat confdefs.h >>conftest.$ac_ext
9632cat >>conftest.$ac_ext <<_ACEOF
9633/* end confdefs.h. */
9634$ac_includes_default
9635int
9636main ()
9637{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009638if (sizeof (ptrdiff_t))
9639 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640 ;
9641 return 0;
9642}
9643_ACEOF
9644rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009645if { (ac_try="$ac_compile"
9646case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9651$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009652 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009653 ac_status=$?
9654 grep -v '^ *+' conftest.er1 >conftest.err
9655 rm -f conftest.er1
9656 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009658 (exit $ac_status); } && {
9659 test -z "$ac_c_werror_flag" ||
9660 test ! -s conftest.err
9661 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009662 cat >conftest.$ac_ext <<_ACEOF
9663/* confdefs.h. */
9664_ACEOF
9665cat confdefs.h >>conftest.$ac_ext
9666cat >>conftest.$ac_ext <<_ACEOF
9667/* end confdefs.h. */
9668$ac_includes_default
9669int
9670main ()
9671{
9672if (sizeof ((ptrdiff_t)))
9673 return 0;
9674 ;
9675 return 0;
9676}
9677_ACEOF
9678rm -f conftest.$ac_objext
9679if { (ac_try="$ac_compile"
9680case "(($ac_try" in
9681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9682 *) ac_try_echo=$ac_try;;
9683esac
9684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9685$as_echo "$ac_try_echo") >&5
9686 (eval "$ac_compile") 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest.$ac_objext; then
9696 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009698 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009699sed 's/^/| /' conftest.$ac_ext >&5
9700
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009701 ac_cv_type_ptrdiff_t=yes
9702fi
9703
9704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9705else
9706 $as_echo "$as_me: failed program was:" >&5
9707sed 's/^/| /' conftest.$ac_ext >&5
9708
9709
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009710fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009711
9712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009713fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009714{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9715$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9716if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009718else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009719
9720cat >>confdefs.h <<\_ACEOF
9721#define ptrdiff_t long
9722_ACEOF
9723
9724
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009725fi
9726
9727
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009728
9729
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009730
9731
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009732
9733
9734
9735
9736
9737for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009738stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009739do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009740as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009741if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009742 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9743$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009745 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009746fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009747ac_res=`eval 'as_val=${'$as_ac_Header'}
9748 $as_echo "$as_val"'`
9749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9750$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009751else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009753{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009755cat >conftest.$ac_ext <<_ACEOF
9756/* confdefs.h. */
9757_ACEOF
9758cat confdefs.h >>conftest.$ac_ext
9759cat >>conftest.$ac_ext <<_ACEOF
9760/* end confdefs.h. */
9761$ac_includes_default
9762#include <$ac_header>
9763_ACEOF
9764rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009765if { (ac_try="$ac_compile"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009772 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009782 ac_header_compiler=yes
9783else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009785sed 's/^/| /' conftest.$ac_ext >&5
9786
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789
9790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009791{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9792$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793
9794# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009795{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9796$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009797cat >conftest.$ac_ext <<_ACEOF
9798/* confdefs.h. */
9799_ACEOF
9800cat confdefs.h >>conftest.$ac_ext
9801cat >>conftest.$ac_ext <<_ACEOF
9802/* end confdefs.h. */
9803#include <$ac_header>
9804_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009805if { (ac_try="$ac_cpp conftest.$ac_ext"
9806case "(($ac_try" in
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9809esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9811$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009813 ac_status=$?
9814 grep -v '^ *+' conftest.er1 >conftest.err
9815 rm -f conftest.er1
9816 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009818 (exit $ac_status); } >/dev/null && {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9821 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822 ac_header_preproc=yes
9823else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009824 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009825sed 's/^/| /' conftest.$ac_ext >&5
9826
9827 ac_header_preproc=no
9828fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009830rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009831{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833
9834# So? What about this header?
9835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9836 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009841 ac_header_preproc=yes
9842 ;;
9843 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009857 ;;
9858esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009859{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9860$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009861if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009862 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009863else
9864 eval "$as_ac_Header=\$ac_header_preproc"
9865fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009866ac_res=`eval 'as_val=${'$as_ac_Header'}
9867 $as_echo "$as_val"'`
9868 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9869$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009870
9871fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009872as_val=`eval 'as_val=${'$as_ac_Header'}
9873 $as_echo "$as_val"'`
9874 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009875 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009876#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877_ACEOF
9878
9879fi
9880
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009881done
9882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9907mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9908strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9909__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009910do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009911as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9912{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9913$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009914if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009915 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 cat >conftest.$ac_ext <<_ACEOF
9918/* confdefs.h. */
9919_ACEOF
9920cat confdefs.h >>conftest.$ac_ext
9921cat >>conftest.$ac_ext <<_ACEOF
9922/* end confdefs.h. */
9923/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9925#define $ac_func innocuous_$ac_func
9926
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009927/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009928 which can conflict with char $ac_func (); below.
9929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9930 <limits.h> exists even on freestanding compilers. */
9931
9932#ifdef __STDC__
9933# include <limits.h>
9934#else
9935# include <assert.h>
9936#endif
9937
9938#undef $ac_func
9939
Theodore Ts'oe1052142006-10-21 21:46:47 -04009940/* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943#ifdef __cplusplus
9944extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009945#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009947/* The GNU C library defines this for functions which it implements
9948 to always fail with ENOSYS. Some functions are actually named
9949 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009950#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009951choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009952#endif
9953
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954int
9955main ()
9956{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009957return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 ;
9959 return 0;
9960}
9961_ACEOF
9962rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009963if { (ac_try="$ac_link"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009970 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009979 } && test -s conftest$ac_exeext && {
9980 test "$cross_compiling" = yes ||
9981 $as_test_x conftest$ac_exeext
9982 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009984else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009985 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009986sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009987
Theodore Ts'oe1052142006-10-21 21:46:47 -04009988 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009990
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009991rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993 conftest$ac_exeext conftest.$ac_ext
9994fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009995ac_res=`eval 'as_val=${'$as_ac_var'}
9996 $as_echo "$as_val"'`
9997 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9998$as_echo "$ac_res" >&6; }
9999as_val=`eval 'as_val=${'$as_ac_var'}
10000 $as_echo "$as_val"'`
10001 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004_ACEOF
10005
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010006fi
10007done
10008
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010011 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10012$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013if test "${ac_cv_have_decl__snprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010014 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015else
10016 cat >conftest.$ac_ext <<_ACEOF
10017/* confdefs.h. */
10018_ACEOF
10019cat confdefs.h >>conftest.$ac_ext
10020cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */
10022#include <stdio.h>
10023int
10024main ()
10025{
10026
10027#ifndef _snprintf
10028 char *p = (char *) _snprintf;
10029#endif
10030
10031 ;
10032 return 0;
10033}
10034_ACEOF
10035rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010036if { (ac_try="$ac_compile"
10037case "(($ac_try" in
10038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10039 *) ac_try_echo=$ac_try;;
10040esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10042$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010043 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044 ac_status=$?
10045 grep -v '^ *+' conftest.er1 >conftest.err
10046 rm -f conftest.er1
10047 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010049 (exit $ac_status); } && {
10050 test -z "$ac_c_werror_flag" ||
10051 test ! -s conftest.err
10052 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010053 ac_cv_have_decl__snprintf=yes
10054else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010055 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010056sed 's/^/| /' conftest.$ac_ext >&5
10057
Theodore Ts'oe1052142006-10-21 21:46:47 -040010058 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010059fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010060
10061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010062fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010063{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10064$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010065 if test $ac_cv_have_decl__snprintf = yes; then
10066 gt_value=1
10067 else
10068 gt_value=0
10069 fi
10070
10071cat >>confdefs.h <<_ACEOF
10072#define HAVE_DECL__SNPRINTF $gt_value
10073_ACEOF
10074
10075
10076
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010077 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10078$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079if test "${ac_cv_have_decl__snwprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010080 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010081else
10082 cat >conftest.$ac_ext <<_ACEOF
10083/* confdefs.h. */
10084_ACEOF
10085cat confdefs.h >>conftest.$ac_ext
10086cat >>conftest.$ac_ext <<_ACEOF
10087/* end confdefs.h. */
10088#include <stdio.h>
10089int
10090main ()
10091{
10092
10093#ifndef _snwprintf
10094 char *p = (char *) _snwprintf;
10095#endif
10096
10097 ;
10098 return 0;
10099}
10100_ACEOF
10101rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010102if { (ac_try="$ac_compile"
10103case "(($ac_try" in
10104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10105 *) ac_try_echo=$ac_try;;
10106esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10108$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010109 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010119 ac_cv_have_decl__snwprintf=yes
10120else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010121 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010122sed 's/^/| /' conftest.$ac_ext >&5
10123
Theodore Ts'oe1052142006-10-21 21:46:47 -040010124 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010126
10127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010128fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010129{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10130$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010131 if test $ac_cv_have_decl__snwprintf = yes; then
10132 gt_value=1
10133 else
10134 gt_value=0
10135 fi
10136
10137cat >>confdefs.h <<_ACEOF
10138#define HAVE_DECL__SNWPRINTF $gt_value
10139_ACEOF
10140
10141
10142
10143
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010144 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10145$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010147 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148else
10149 cat >conftest.$ac_ext <<_ACEOF
10150/* confdefs.h. */
10151_ACEOF
10152cat confdefs.h >>conftest.$ac_ext
10153cat >>conftest.$ac_ext <<_ACEOF
10154/* end confdefs.h. */
10155#include <stdio.h>
10156int
10157main ()
10158{
10159
10160#ifndef feof_unlocked
10161 char *p = (char *) feof_unlocked;
10162#endif
10163
10164 ;
10165 return 0;
10166}
10167_ACEOF
10168rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010169if { (ac_try="$ac_compile"
10170case "(($ac_try" in
10171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10172 *) ac_try_echo=$ac_try;;
10173esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10175$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010176 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177 ac_status=$?
10178 grep -v '^ *+' conftest.er1 >conftest.err
10179 rm -f conftest.er1
10180 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010182 (exit $ac_status); } && {
10183 test -z "$ac_c_werror_flag" ||
10184 test ! -s conftest.err
10185 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010186 ac_cv_have_decl_feof_unlocked=yes
10187else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010188 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189sed 's/^/| /' conftest.$ac_ext >&5
10190
Theodore Ts'oe1052142006-10-21 21:46:47 -040010191 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010193
10194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010195fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010196{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10197$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010198 if test $ac_cv_have_decl_feof_unlocked = yes; then
10199 gt_value=1
10200 else
10201 gt_value=0
10202 fi
10203
10204cat >>confdefs.h <<_ACEOF
10205#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10206_ACEOF
10207
10208
10209
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010210 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10211$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010213 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214else
10215 cat >conftest.$ac_ext <<_ACEOF
10216/* confdefs.h. */
10217_ACEOF
10218cat confdefs.h >>conftest.$ac_ext
10219cat >>conftest.$ac_ext <<_ACEOF
10220/* end confdefs.h. */
10221#include <stdio.h>
10222int
10223main ()
10224{
10225
10226#ifndef fgets_unlocked
10227 char *p = (char *) fgets_unlocked;
10228#endif
10229
10230 ;
10231 return 0;
10232}
10233_ACEOF
10234rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010235if { (ac_try="$ac_compile"
10236case "(($ac_try" in
10237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10238 *) ac_try_echo=$ac_try;;
10239esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10241$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010242 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010243 ac_status=$?
10244 grep -v '^ *+' conftest.er1 >conftest.err
10245 rm -f conftest.er1
10246 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010248 (exit $ac_status); } && {
10249 test -z "$ac_c_werror_flag" ||
10250 test ! -s conftest.err
10251 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010252 ac_cv_have_decl_fgets_unlocked=yes
10253else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010254 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010255sed 's/^/| /' conftest.$ac_ext >&5
10256
Theodore Ts'oe1052142006-10-21 21:46:47 -040010257 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010259
10260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010262{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10263$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010264 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10265 gt_value=1
10266 else
10267 gt_value=0
10268 fi
10269
10270cat >>confdefs.h <<_ACEOF
10271#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10272_ACEOF
10273
10274
10275
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010276 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10277$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010279 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010280else
10281 cat >conftest.$ac_ext <<_ACEOF
10282/* confdefs.h. */
10283_ACEOF
10284cat confdefs.h >>conftest.$ac_ext
10285cat >>conftest.$ac_ext <<_ACEOF
10286/* end confdefs.h. */
10287#include <stdio.h>
10288int
10289main ()
10290{
10291
10292#ifndef getc_unlocked
10293 char *p = (char *) getc_unlocked;
10294#endif
10295
10296 ;
10297 return 0;
10298}
10299_ACEOF
10300rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010301if { (ac_try="$ac_compile"
10302case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10305esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10307$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010308 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010309 ac_status=$?
10310 grep -v '^ *+' conftest.er1 >conftest.err
10311 rm -f conftest.er1
10312 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010314 (exit $ac_status); } && {
10315 test -z "$ac_c_werror_flag" ||
10316 test ! -s conftest.err
10317 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010318 ac_cv_have_decl_getc_unlocked=yes
10319else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010320 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010321sed 's/^/| /' conftest.$ac_ext >&5
10322
Theodore Ts'oe1052142006-10-21 21:46:47 -040010323 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010324fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010325
10326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010327fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010328{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10329$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010330 if test $ac_cv_have_decl_getc_unlocked = yes; then
10331 gt_value=1
10332 else
10333 gt_value=0
10334 fi
10335
10336cat >>confdefs.h <<_ACEOF
10337#define HAVE_DECL_GETC_UNLOCKED $gt_value
10338_ACEOF
10339
10340
10341
10342 case $gt_cv_func_printf_posix in
10343 *yes) HAVE_POSIX_PRINTF=1 ;;
10344 *) HAVE_POSIX_PRINTF=0 ;;
10345 esac
10346
10347 if test "$ac_cv_func_asprintf" = yes; then
10348 HAVE_ASPRINTF=1
10349 else
10350 HAVE_ASPRINTF=0
10351 fi
10352
10353 if test "$ac_cv_func_snprintf" = yes; then
10354 HAVE_SNPRINTF=1
10355 else
10356 HAVE_SNPRINTF=0
10357 fi
10358
10359 if test "$ac_cv_func_wprintf" = yes; then
10360 HAVE_WPRINTF=1
10361 else
10362 HAVE_WPRINTF=0
10363 fi
10364
10365
10366
10367
10368
10369
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010370
10371 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010372
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010373 for element in $INCICONV; do
10374 haveit=
10375 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010376
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010377 acl_save_prefix="$prefix"
10378 prefix="$acl_final_prefix"
10379 acl_save_exec_prefix="$exec_prefix"
10380 exec_prefix="$acl_final_exec_prefix"
10381 eval x=\"$x\"
10382 exec_prefix="$acl_save_exec_prefix"
10383 prefix="$acl_save_prefix"
10384
10385 if test "X$x" = "X$element"; then
10386 haveit=yes
10387 break
10388 fi
10389 done
10390 if test -z "$haveit"; then
10391 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10392 fi
10393 done
10394
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010395
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010396 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10397$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010398if test "${am_cv_func_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010399 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010402 am_cv_func_iconv="no, consider installing GNU libiconv"
10403 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010404 cat >conftest.$ac_ext <<_ACEOF
10405/* confdefs.h. */
10406_ACEOF
10407cat confdefs.h >>conftest.$ac_ext
10408cat >>conftest.$ac_ext <<_ACEOF
10409/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010410#include <stdlib.h>
10411#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010412int
10413main ()
10414{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010415iconv_t cd = iconv_open("","");
10416 iconv(cd,NULL,NULL,NULL,NULL);
10417 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010418 ;
10419 return 0;
10420}
10421_ACEOF
10422rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010423if { (ac_try="$ac_link"
10424case "(($ac_try" in
10425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10427esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10429$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010430 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010439 } && test -s conftest$ac_exeext && {
10440 test "$cross_compiling" = yes ||
10441 $as_test_x conftest$ac_exeext
10442 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010443 am_cv_func_iconv=yes
10444else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010445 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446sed 's/^/| /' conftest.$ac_ext >&5
10447
Theodore Ts'oe1052142006-10-21 21:46:47 -040010448
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010450
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010451rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010452rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010454 if test "$am_cv_func_iconv" != yes; then
10455 am_save_LIBS="$LIBS"
10456 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457 cat >conftest.$ac_ext <<_ACEOF
10458/* confdefs.h. */
10459_ACEOF
10460cat confdefs.h >>conftest.$ac_ext
10461cat >>conftest.$ac_ext <<_ACEOF
10462/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010463#include <stdlib.h>
10464#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010465int
10466main ()
10467{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010468iconv_t cd = iconv_open("","");
10469 iconv(cd,NULL,NULL,NULL,NULL);
10470 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010471 ;
10472 return 0;
10473}
10474_ACEOF
10475rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010476if { (ac_try="$ac_link"
10477case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10482$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010483 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010484 ac_status=$?
10485 grep -v '^ *+' conftest.er1 >conftest.err
10486 rm -f conftest.er1
10487 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010489 (exit $ac_status); } && {
10490 test -z "$ac_c_werror_flag" ||
10491 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010492 } && test -s conftest$ac_exeext && {
10493 test "$cross_compiling" = yes ||
10494 $as_test_x conftest$ac_exeext
10495 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010496 am_cv_lib_iconv=yes
10497 am_cv_func_iconv=yes
10498else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010499 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010500sed 's/^/| /' conftest.$ac_ext >&5
10501
Theodore Ts'oe1052142006-10-21 21:46:47 -040010502
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010503fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010504
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010505rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010506rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010508 LIBS="$am_save_LIBS"
10509 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010512{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10513$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010514 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010515
10516cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010517#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010519
10520 fi
10521 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010522 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10523$as_echo_n "checking how to link with libiconv... " >&6; }
10524 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10525$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010526 else
10527 CPPFLAGS="$am_save_CPPFLAGS"
10528 LIBICONV=
10529 LTLIBICONV=
10530 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531
10532
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010533
10534 if test "$am_cv_func_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010535 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10536$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010537 if test "${am_cv_proto_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010538 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010540
10541 cat >conftest.$ac_ext <<_ACEOF
10542/* confdefs.h. */
10543_ACEOF
10544cat confdefs.h >>conftest.$ac_ext
10545cat >>conftest.$ac_ext <<_ACEOF
10546/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010547
10548#include <stdlib.h>
10549#include <iconv.h>
10550extern
10551#ifdef __cplusplus
10552"C"
10553#endif
10554#if defined(__STDC__) || defined(__cplusplus)
10555size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10556#else
10557size_t iconv();
10558#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010560int
10561main ()
10562{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010564 ;
10565 return 0;
10566}
10567_ACEOF
10568rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010569if { (ac_try="$ac_compile"
10570case "(($ac_try" in
10571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10572 *) ac_try_echo=$ac_try;;
10573esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10575$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010576 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577 ac_status=$?
10578 grep -v '^ *+' conftest.er1 >conftest.err
10579 rm -f conftest.er1
10580 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010586 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010587else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010588 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589sed 's/^/| /' conftest.$ac_ext >&5
10590
Theodore Ts'oe1052142006-10-21 21:46:47 -040010591 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010593
10594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010595 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 +000010596fi
10597
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010598 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010599 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010601$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010602 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603
10604cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010605#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010607
10608 fi
10609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010611 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10612$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010613if test "${am_cv_langinfo_codeset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010614 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616 cat >conftest.$ac_ext <<_ACEOF
10617/* confdefs.h. */
10618_ACEOF
10619cat confdefs.h >>conftest.$ac_ext
10620cat >>conftest.$ac_ext <<_ACEOF
10621/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010622#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010623int
10624main ()
10625{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010626char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010627 ;
10628 return 0;
10629}
10630_ACEOF
10631rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010632if { (ac_try="$ac_link"
10633case "(($ac_try" in
10634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10636esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10638$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010639 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640 ac_status=$?
10641 grep -v '^ *+' conftest.er1 >conftest.err
10642 rm -f conftest.er1
10643 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010648 } && test -s conftest$ac_exeext && {
10649 test "$cross_compiling" = yes ||
10650 $as_test_x conftest$ac_exeext
10651 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010652 am_cv_langinfo_codeset=yes
10653else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010654 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010655sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010656
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010660rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010661rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662 conftest$ac_exeext conftest.$ac_ext
10663
10664fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010665{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10666$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010667 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668
10669cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010670#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010671_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010672
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010673 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010674
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010675 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010677 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10678$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010679if test "${am_cv_val_LC_MESSAGES+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010680 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682 cat >conftest.$ac_ext <<_ACEOF
10683/* confdefs.h. */
10684_ACEOF
10685cat confdefs.h >>conftest.$ac_ext
10686cat >>conftest.$ac_ext <<_ACEOF
10687/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010688#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010689int
10690main ()
10691{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010693 ;
10694 return 0;
10695}
10696_ACEOF
10697rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010698if { (ac_try="$ac_link"
10699case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10704$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010705 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706 ac_status=$?
10707 grep -v '^ *+' conftest.er1 >conftest.err
10708 rm -f conftest.er1
10709 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010711 (exit $ac_status); } && {
10712 test -z "$ac_c_werror_flag" ||
10713 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010714 } && test -s conftest$ac_exeext && {
10715 test "$cross_compiling" = yes ||
10716 $as_test_x conftest$ac_exeext
10717 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010718 am_cv_val_LC_MESSAGES=yes
10719else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010720 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010721sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010722
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010725
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010726rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010728 conftest$ac_exeext conftest.$ac_ext
10729fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010730{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10731$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010732 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733
10734cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010735#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010736_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010737
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010738 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010739
10740 fi
10741
10742 for ac_prog in bison
10743do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010745set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10747$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748if test "${ac_cv_prog_INTLBISON+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010749 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010750else
10751 if test -n "$INTLBISON"; then
10752 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10753else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755for as_dir in $PATH
10756do
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010760 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 -050010761 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763 break 2
10764 fi
10765done
10766done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010767IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769fi
10770fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772if test -n "$INTLBISON"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010773 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10774$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010775else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776 { $as_echo "$as_me:$LINENO: result: no" >&5
10777$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010778fi
10779
Theodore Ts'oe1052142006-10-21 21:46:47 -040010780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010782done
10783
10784 if test -z "$INTLBISON"; then
10785 ac_verc_fail=yes
10786 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010787 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10788$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10790 case $ac_prog_version in
10791 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10792 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10793 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10794 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10795 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010796 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10797$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010798 fi
10799 if test $ac_verc_fail = yes; then
10800 INTLBISON=:
10801 fi
10802
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010803
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010804
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010805
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010806
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808
10809
10810
10811
10812
10813
10814
10815
10816
10817
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010818 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10819$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040010820 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010821if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010822 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010823else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010825fi
10826
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010827 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10828$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010829
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831
10832
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010834 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836 LIBINTL=
10837 LTLIBINTL=
10838 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010839
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010840 if test "$USE_NLS" = "yes"; then
10841 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010843 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10844$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845
Theodore Ts'oe1052142006-10-21 21:46:47 -040010846# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010847if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010848 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010849else
10850 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010851fi
10852
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010853 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10854$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010855
10856 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10857 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010858
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010859
10860
10861
10862
10863
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010864 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10865$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010866if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010867 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010868else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869 cat >conftest.$ac_ext <<_ACEOF
10870/* confdefs.h. */
10871_ACEOF
10872cat confdefs.h >>conftest.$ac_ext
10873cat >>conftest.$ac_ext <<_ACEOF
10874/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010875#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010876extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010877extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010878int
10879main ()
10880{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010881bindtextdomain ("", "");
10882return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010883 ;
10884 return 0;
10885}
10886_ACEOF
10887rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010888if { (ac_try="$ac_link"
10889case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10892esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10894$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010895 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010896 ac_status=$?
10897 grep -v '^ *+' conftest.er1 >conftest.err
10898 rm -f conftest.er1
10899 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010901 (exit $ac_status); } && {
10902 test -z "$ac_c_werror_flag" ||
10903 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010904 } && test -s conftest$ac_exeext && {
10905 test "$cross_compiling" = yes ||
10906 $as_test_x conftest$ac_exeext
10907 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010908 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010909else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010910 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010911sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010912
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010915
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010916rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010917rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010918 conftest$ac_exeext conftest.$ac_ext
10919fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010920{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10921$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010922
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010923 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010924
10925
10926
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010927 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010933
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010934 eval additional_includedir=\"$includedir\"
10935 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010936
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010937 exec_prefix="$acl_save_exec_prefix"
10938 prefix="$acl_save_prefix"
10939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010940
Theodore Ts'oe1052142006-10-21 21:46:47 -040010941# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010942if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010943 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010944 if test "X$withval" = "Xno"; then
10945 use_additional=no
10946 else
10947 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010954 eval additional_includedir=\"$includedir\"
10955 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010956
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10959
10960 else
10961 additional_includedir="$withval/include"
10962 additional_libdir="$withval/lib"
10963 fi
10964 fi
10965
Theodore Ts'oe1052142006-10-21 21:46:47 -040010966fi
10967
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010968 LIBINTL=
10969 LTLIBINTL=
10970 INCINTL=
10971 rpathdirs=
10972 ltrpathdirs=
10973 names_already_handled=
10974 names_next_round='intl '
10975 while test -n "$names_next_round"; do
10976 names_this_round="$names_next_round"
10977 names_next_round=
10978 for name in $names_this_round; do
10979 already_handled=
10980 for n in $names_already_handled; do
10981 if test "$n" = "$name"; then
10982 already_handled=yes
10983 break
10984 fi
10985 done
10986 if test -z "$already_handled"; then
10987 names_already_handled="$names_already_handled $name"
10988 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10989 eval value=\"\$HAVE_LIB$uppername\"
10990 if test -n "$value"; then
10991 if test "$value" = yes; then
10992 eval value=\"\$LIB$uppername\"
10993 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10994 eval value=\"\$LTLIB$uppername\"
10995 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10996 else
10997 :
10998 fi
10999 else
11000 found_dir=
11001 found_la=
11002 found_so=
11003 found_a=
11004 if test $use_additional = yes; then
11005 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11006 found_dir="$additional_libdir"
11007 found_so="$additional_libdir/lib$name.$shlibext"
11008 if test -f "$additional_libdir/lib$name.la"; then
11009 found_la="$additional_libdir/lib$name.la"
11010 fi
11011 else
11012 if test -f "$additional_libdir/lib$name.$libext"; then
11013 found_dir="$additional_libdir"
11014 found_a="$additional_libdir/lib$name.$libext"
11015 if test -f "$additional_libdir/lib$name.la"; then
11016 found_la="$additional_libdir/lib$name.la"
11017 fi
11018 fi
11019 fi
11020 fi
11021 if test "X$found_dir" = "X"; then
11022 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011024 acl_save_prefix="$prefix"
11025 prefix="$acl_final_prefix"
11026 acl_save_exec_prefix="$exec_prefix"
11027 exec_prefix="$acl_final_exec_prefix"
11028 eval x=\"$x\"
11029 exec_prefix="$acl_save_exec_prefix"
11030 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011031
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011032 case "$x" in
11033 -L*)
11034 dir=`echo "X$x" | sed -e 's/^X-L//'`
11035 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11036 found_dir="$dir"
11037 found_so="$dir/lib$name.$shlibext"
11038 if test -f "$dir/lib$name.la"; then
11039 found_la="$dir/lib$name.la"
11040 fi
11041 else
11042 if test -f "$dir/lib$name.$libext"; then
11043 found_dir="$dir"
11044 found_a="$dir/lib$name.$libext"
11045 if test -f "$dir/lib$name.la"; then
11046 found_la="$dir/lib$name.la"
11047 fi
11048 fi
11049 fi
11050 ;;
11051 esac
11052 if test "X$found_dir" != "X"; then
11053 break
11054 fi
11055 done
11056 fi
11057 if test "X$found_dir" != "X"; then
11058 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11059 if test "X$found_so" != "X"; then
11060 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11061 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11062 else
11063 haveit=
11064 for x in $ltrpathdirs; do
11065 if test "X$x" = "X$found_dir"; then
11066 haveit=yes
11067 break
11068 fi
11069 done
11070 if test -z "$haveit"; then
11071 ltrpathdirs="$ltrpathdirs $found_dir"
11072 fi
11073 if test "$hardcode_direct" = yes; then
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11075 else
11076 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11078 haveit=
11079 for x in $rpathdirs; do
11080 if test "X$x" = "X$found_dir"; then
11081 haveit=yes
11082 break
11083 fi
11084 done
11085 if test -z "$haveit"; then
11086 rpathdirs="$rpathdirs $found_dir"
11087 fi
11088 else
11089 haveit=
11090 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011091
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011092 acl_save_prefix="$prefix"
11093 prefix="$acl_final_prefix"
11094 acl_save_exec_prefix="$exec_prefix"
11095 exec_prefix="$acl_final_exec_prefix"
11096 eval x=\"$x\"
11097 exec_prefix="$acl_save_exec_prefix"
11098 prefix="$acl_save_prefix"
11099
11100 if test "X$x" = "X-L$found_dir"; then
11101 haveit=yes
11102 break
11103 fi
11104 done
11105 if test -z "$haveit"; then
11106 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11107 fi
11108 if test "$hardcode_minus_L" != no; then
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11110 else
11111 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11112 fi
11113 fi
11114 fi
11115 fi
11116 else
11117 if test "X$found_a" != "X"; then
11118 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11119 else
11120 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11121 fi
11122 fi
11123 additional_includedir=
11124 case "$found_dir" in
11125 */lib | */lib/)
11126 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11127 additional_includedir="$basedir/include"
11128 ;;
11129 esac
11130 if test "X$additional_includedir" != "X"; then
11131 if test "X$additional_includedir" != "X/usr/include"; then
11132 haveit=
11133 if test "X$additional_includedir" = "X/usr/local/include"; then
11134 if test -n "$GCC"; then
11135 case $host_os in
11136 linux*) haveit=yes;;
11137 esac
11138 fi
11139 fi
11140 if test -z "$haveit"; then
11141 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011142
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011143 acl_save_prefix="$prefix"
11144 prefix="$acl_final_prefix"
11145 acl_save_exec_prefix="$exec_prefix"
11146 exec_prefix="$acl_final_exec_prefix"
11147 eval x=\"$x\"
11148 exec_prefix="$acl_save_exec_prefix"
11149 prefix="$acl_save_prefix"
11150
11151 if test "X$x" = "X-I$additional_includedir"; then
11152 haveit=yes
11153 break
11154 fi
11155 done
11156 if test -z "$haveit"; then
11157 if test -d "$additional_includedir"; then
11158 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11159 fi
11160 fi
11161 fi
11162 fi
11163 fi
11164 if test -n "$found_la"; then
11165 save_libdir="$libdir"
11166 case "$found_la" in
11167 */* | *\\*) . "$found_la" ;;
11168 *) . "./$found_la" ;;
11169 esac
11170 libdir="$save_libdir"
11171 for dep in $dependency_libs; do
11172 case "$dep" in
11173 -L*)
11174 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11175 if test "X$additional_libdir" != "X/usr/lib"; then
11176 haveit=
11177 if test "X$additional_libdir" = "X/usr/local/lib"; then
11178 if test -n "$GCC"; then
11179 case $host_os in
11180 linux*) haveit=yes;;
11181 esac
11182 fi
11183 fi
11184 if test -z "$haveit"; then
11185 haveit=
11186 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011187
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011188 acl_save_prefix="$prefix"
11189 prefix="$acl_final_prefix"
11190 acl_save_exec_prefix="$exec_prefix"
11191 exec_prefix="$acl_final_exec_prefix"
11192 eval x=\"$x\"
11193 exec_prefix="$acl_save_exec_prefix"
11194 prefix="$acl_save_prefix"
11195
11196 if test "X$x" = "X-L$additional_libdir"; then
11197 haveit=yes
11198 break
11199 fi
11200 done
11201 if test -z "$haveit"; then
11202 if test -d "$additional_libdir"; then
11203 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11204 fi
11205 fi
11206 haveit=
11207 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011208
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011209 acl_save_prefix="$prefix"
11210 prefix="$acl_final_prefix"
11211 acl_save_exec_prefix="$exec_prefix"
11212 exec_prefix="$acl_final_exec_prefix"
11213 eval x=\"$x\"
11214 exec_prefix="$acl_save_exec_prefix"
11215 prefix="$acl_save_prefix"
11216
11217 if test "X$x" = "X-L$additional_libdir"; then
11218 haveit=yes
11219 break
11220 fi
11221 done
11222 if test -z "$haveit"; then
11223 if test -d "$additional_libdir"; then
11224 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11225 fi
11226 fi
11227 fi
11228 fi
11229 ;;
11230 -R*)
11231 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11232 if test "$enable_rpath" != no; then
11233 haveit=
11234 for x in $rpathdirs; do
11235 if test "X$x" = "X$dir"; then
11236 haveit=yes
11237 break
11238 fi
11239 done
11240 if test -z "$haveit"; then
11241 rpathdirs="$rpathdirs $dir"
11242 fi
11243 haveit=
11244 for x in $ltrpathdirs; do
11245 if test "X$x" = "X$dir"; then
11246 haveit=yes
11247 break
11248 fi
11249 done
11250 if test -z "$haveit"; then
11251 ltrpathdirs="$ltrpathdirs $dir"
11252 fi
11253 fi
11254 ;;
11255 -l*)
11256 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11257 ;;
11258 *.la)
11259 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11260 ;;
11261 *)
11262 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11263 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11264 ;;
11265 esac
11266 done
11267 fi
11268 else
11269 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11270 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11271 fi
11272 fi
11273 fi
11274 done
11275 done
11276 if test "X$rpathdirs" != "X"; then
11277 if test -n "$hardcode_libdir_separator"; then
11278 alldirs=
11279 for found_dir in $rpathdirs; do
11280 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11281 done
11282 acl_save_libdir="$libdir"
11283 libdir="$alldirs"
11284 eval flag=\"$hardcode_libdir_flag_spec\"
11285 libdir="$acl_save_libdir"
11286 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11287 else
11288 for found_dir in $rpathdirs; do
11289 acl_save_libdir="$libdir"
11290 libdir="$found_dir"
11291 eval flag=\"$hardcode_libdir_flag_spec\"
11292 libdir="$acl_save_libdir"
11293 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11294 done
11295 fi
11296 fi
11297 if test "X$ltrpathdirs" != "X"; then
11298 for found_dir in $ltrpathdirs; do
11299 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11300 done
11301 fi
11302
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011303 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11304$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011305if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011306 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011307else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011308 gt_save_CPPFLAGS="$CPPFLAGS"
11309 CPPFLAGS="$CPPFLAGS $INCINTL"
11310 gt_save_LIBS="$LIBS"
11311 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011312 cat >conftest.$ac_ext <<_ACEOF
11313/* confdefs.h. */
11314_ACEOF
11315cat confdefs.h >>conftest.$ac_ext
11316cat >>conftest.$ac_ext <<_ACEOF
11317/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011318#include <libintl.h>
11319extern int _nl_msg_cat_cntr;
11320extern
11321#ifdef __cplusplus
11322"C"
11323#endif
11324const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325int
11326main ()
11327{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011328bindtextdomain ("", "");
11329return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 ;
11331 return 0;
11332}
11333_ACEOF
11334rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011335if { (ac_try="$ac_link"
11336case "(($ac_try" in
11337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11338 *) ac_try_echo=$ac_try;;
11339esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11341$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011342 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011343 ac_status=$?
11344 grep -v '^ *+' conftest.er1 >conftest.err
11345 rm -f conftest.er1
11346 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011348 (exit $ac_status); } && {
11349 test -z "$ac_c_werror_flag" ||
11350 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011351 } && test -s conftest$ac_exeext && {
11352 test "$cross_compiling" = yes ||
11353 $as_test_x conftest$ac_exeext
11354 }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011355 gt_cv_func_gnugettext1_libintl=yes
11356else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011357 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358sed 's/^/| /' conftest.$ac_ext >&5
11359
Theodore Ts'oe1052142006-10-21 21:46:47 -040011360 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011361fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011363rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011364rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011366 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11367 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368 cat >conftest.$ac_ext <<_ACEOF
11369/* confdefs.h. */
11370_ACEOF
11371cat confdefs.h >>conftest.$ac_ext
11372cat >>conftest.$ac_ext <<_ACEOF
11373/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011374#include <libintl.h>
11375extern int _nl_msg_cat_cntr;
11376extern
11377#ifdef __cplusplus
11378"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011379#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011380const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381int
11382main ()
11383{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011384bindtextdomain ("", "");
11385return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386 ;
11387 return 0;
11388}
11389_ACEOF
11390rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011391if { (ac_try="$ac_link"
11392case "(($ac_try" in
11393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11394 *) ac_try_echo=$ac_try;;
11395esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11397$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011398 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011404 (exit $ac_status); } && {
11405 test -z "$ac_c_werror_flag" ||
11406 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011407 } && test -s conftest$ac_exeext && {
11408 test "$cross_compiling" = yes ||
11409 $as_test_x conftest$ac_exeext
11410 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011411 LIBINTL="$LIBINTL $LIBICONV"
11412 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11413 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011414
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011415else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011416 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011417sed 's/^/| /' conftest.$ac_ext >&5
11418
Theodore Ts'oe1052142006-10-21 21:46:47 -040011419
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011421
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011422rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011425 fi
11426 CPPFLAGS="$gt_save_CPPFLAGS"
11427 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011428fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011429{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11430$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011431 fi
11432
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011433 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11434 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435 && test "$PACKAGE" != gettext-runtime \
11436 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011437 gt_use_preinstalled_gnugettext=yes
11438 else
11439 LIBINTL=
11440 LTLIBINTL=
11441 INCINTL=
11442 fi
11443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011445 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11446 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011447 fi
11448 fi
11449
11450 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011452 USE_INCLUDED_LIBINTL=yes
11453 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11454 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11455 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011456 fi
11457
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011458 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11459 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11460 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011461 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011462
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011463
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011464 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11465 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011466
11467cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011468#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011470
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011471 else
11472 USE_NLS=no
11473 fi
11474 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011475
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011476 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11477$as_echo_n "checking whether to use NLS... " >&6; }
11478 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11479$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480 if test "$USE_NLS" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011481 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11482$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11484 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11485 gt_source="external libintl"
11486 else
11487 gt_source="libc"
11488 fi
11489 else
11490 gt_source="included intl directory"
11491 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011492 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11493$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011494 fi
11495
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011496 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011497
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011498 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11499 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011500 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11501$as_echo_n "checking how to link with libintl... " >&6; }
11502 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11503$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011504
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011505 for element in $INCINTL; do
11506 haveit=
11507 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011509 acl_save_prefix="$prefix"
11510 prefix="$acl_final_prefix"
11511 acl_save_exec_prefix="$exec_prefix"
11512 exec_prefix="$acl_final_exec_prefix"
11513 eval x=\"$x\"
11514 exec_prefix="$acl_save_exec_prefix"
11515 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011516
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011517 if test "X$x" = "X$element"; then
11518 haveit=yes
11519 break
11520 fi
11521 done
11522 if test -z "$haveit"; then
11523 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11524 fi
11525 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011526
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011527 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011528
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011530cat >>confdefs.h <<\_ACEOF
11531#define HAVE_GETTEXT 1
11532_ACEOF
11533
11534
11535cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011536#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011537_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011538
11539 fi
11540
11541 POSUB=po
11542 fi
11543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011544
11545 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011546 BUILD_INCLUDED_LIBINTL=yes
11547 fi
11548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549
11550
11551
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011552
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011553 nls_cv_header_intl=
11554 nls_cv_header_libgt=
11555
11556 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011558
11559 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011561
11562 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011563
11564
11565 if test "$USE_INCLUDED_LIBINTL" = yes; then
11566 INTLOBJS="\$(GETTOBJS)"
11567 fi
11568
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011569
11570 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571
11572
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011573
11574 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011575
11576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577
11578
11579
11580
11581
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011582{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11583$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11584set x ${MAKE-make}
11585ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011586if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011587 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011588else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011595case `${MAKE-make} -f conftest.make 2>/dev/null` in
11596 *@@@%%%=?*=@@@%%%*)
11597 eval ac_cv_prog_make_${ac_make}_set=yes;;
11598 *)
11599 eval ac_cv_prog_make_${ac_make}_set=no;;
11600esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011601rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011603if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604 { $as_echo "$as_me:$LINENO: result: yes" >&5
11605$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606 SET_MAKE=
11607else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011608 { $as_echo "$as_me:$LINENO: result: no" >&5
11609$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011610 SET_MAKE="MAKE=${MAKE-make}"
11611fi
11612
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011613 { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
11614$as_echo_n "checking for GNU make... " >&6; }
11615if test "${_cv_gnu_make_command+set}" = set; then
11616 $as_echo_n "(cached) " >&6
11617else
11618 _cv_gnu_make_command='' ;
11619 for a in "$MAKE" make gmake gnumake ; do
11620 if test -z "$a" ; then continue ; fi ;
11621 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11622 _cv_gnu_make_command=$a ;
11623 break;
11624 fi
11625 done ;
11626
11627fi
11628{ $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
11629$as_echo "$_cv_gnu_make_command" >&6; } ;
11630 if test "x$_cv_gnu_make_command" != "x" ; then
11631 ifGNUmake='' ;
11632 ifNotGNUmake='#' ;
11633 else
11634 ifGNUmake='#' ;
11635 ifNotGNUmake='' ;
11636 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
11637$as_echo "\"Not found\"" >&6; };
11638 fi
11639
11640
11641
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642# Extract the first word of "ln", so it can be a program name with args.
11643set dummy ln; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11645$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646if test "${ac_cv_path_LN+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649 case $LN in
11650 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011651 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11652 ;;
11653 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011660 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 -050011661 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663 break 2
11664 fi
11665done
11666done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011667IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011669 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11670 ;;
11671esac
11672fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674if test -n "$LN"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011675 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11676$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011678 { $as_echo "$as_me:$LINENO: result: no" >&5
11679$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680fi
11681
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011683{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11684$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685LN_S=$as_ln_s
11686if test "$LN_S" = "ln -s"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011687 { $as_echo "$as_me:$LINENO: result: yes" >&5
11688$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011689else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11691$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011692fi
11693
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011694# Extract the first word of "mv", so it can be a program name with args.
11695set dummy mv; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011696{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11697$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698if test "${ac_cv_path_MV+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011699 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011701 case $MV in
11702 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011703 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11704 ;;
11705 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11707for as_dir in $PATH
11708do
11709 IFS=$as_save_IFS
11710 test -z "$as_dir" && as_dir=.
11711 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011712 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 -050011713 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011714 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011715 break 2
11716 fi
11717done
11718done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011719IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011720
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11722 ;;
11723esac
11724fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011725MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011726if test -n "$MV"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011727 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11728$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011729else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011730 { $as_echo "$as_me:$LINENO: result: no" >&5
11731$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011732fi
11733
Theodore Ts'oe1052142006-10-21 21:46:47 -040011734
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011735# Extract the first word of "cp", so it can be a program name with args.
11736set dummy cp; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11738$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739if test "${ac_cv_path_CP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011740 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011741else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011742 case $CP in
11743 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011744 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11745 ;;
11746 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748for as_dir in $PATH
11749do
11750 IFS=$as_save_IFS
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011753 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 -050011754 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011756 break 2
11757 fi
11758done
11759done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011760IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011761
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11763 ;;
11764esac
11765fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011766CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011767if test -n "$CP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011768 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11769$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011771 { $as_echo "$as_me:$LINENO: result: no" >&5
11772$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011773fi
11774
Theodore Ts'oe1052142006-10-21 21:46:47 -040011775
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011776# Extract the first word of "rm", so it can be a program name with args.
11777set dummy rm; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011778{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11779$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780if test "${ac_cv_path_RM+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011781 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011782else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011783 case $RM in
11784 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011785 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11786 ;;
11787 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789for as_dir in $PATH
11790do
11791 IFS=$as_save_IFS
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011794 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 -050011795 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011796 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797 break 2
11798 fi
11799done
11800done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011801IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011802
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011803 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11804 ;;
11805esac
11806fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011807RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011808if test -n "$RM"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011809 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11810$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011811else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812 { $as_echo "$as_me:$LINENO: result: no" >&5
11813$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011814fi
11815
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011817# Extract the first word of "chmod", so it can be a program name with args.
11818set dummy chmod; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011819{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11820$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011821if test "${ac_cv_path_CHMOD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011822 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011823else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011824 case $CHMOD in
11825 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011826 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11827 ;;
11828 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830for as_dir in $PATH
11831do
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011835 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 -050011836 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011838 break 2
11839 fi
11840done
11841done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011842IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011843
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11845 ;;
11846esac
11847fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011849if test -n "$CHMOD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011850 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11851$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011852else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853 { $as_echo "$as_me:$LINENO: result: no" >&5
11854$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011855fi
11856
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857
Theodore Ts'o32237012005-01-17 19:13:39 -050011858for ac_prog in gawk mawk nawk awk
11859do
11860 # Extract the first word of "$ac_prog", so it can be a program name with args.
11861set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11863$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011864if test "${ac_cv_prog_AWK+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011865 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011866else
Theodore Ts'o32237012005-01-17 19:13:39 -050011867 if test -n "$AWK"; then
11868 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11869else
11870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011871for as_dir in $PATH
11872do
11873 IFS=$as_save_IFS
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011876 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 -050011877 ac_cv_prog_AWK="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011879 break 2
11880 fi
11881done
11882done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011883IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011885fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011886fi
11887AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011888if test -n "$AWK"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11890$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011891else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011892 { $as_echo "$as_me:$LINENO: result: no" >&5
11893$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011894fi
11895
Theodore Ts'oe1052142006-10-21 21:46:47 -040011896
Theodore Ts'o32237012005-01-17 19:13:39 -050011897 test -n "$AWK" && break
11898done
11899
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011900{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
11901$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011902if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011903 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011904else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011905 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11906 then ac_cv_path_EGREP="$GREP -E"
11907 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011908 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011910 # Loop through the user's path and test for each of PROGNAME-LIST
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011912for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11913do
11914 IFS=$as_save_IFS
11915 test -z "$as_dir" && as_dir=.
11916 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11919 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11920# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011921 # Check for GNU $ac_path_EGREP
11922case `"$ac_path_EGREP" --version 2>&1` in
11923*GNU*)
11924 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11925*)
11926 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011927 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011928 while :
11929 do
11930 cat "conftest.in" "conftest.in" >"conftest.tmp"
11931 mv "conftest.tmp" "conftest.in"
11932 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011933 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11935 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11936 ac_count=`expr $ac_count + 1`
11937 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11938 # Best one so far, save it but keep looking for a better one
11939 ac_cv_path_EGREP="$ac_path_EGREP"
11940 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011941 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011942 # 10*(2^10) chars as input seems more than enough
11943 test $ac_count -gt 10 && break
11944 done
11945 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11946esac
11947
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011948 $ac_path_EGREP_found && break 3
11949 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950 done
11951done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953 if test -z "$ac_cv_path_EGREP"; then
11954 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11955$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011957 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011958else
11959 ac_cv_path_EGREP=$EGREP
11960fi
11961
Theodore Ts'oe1052142006-10-21 21:46:47 -040011962 fi
11963fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011964{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11965$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011966 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011967
11968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011969# Extract the first word of "sed", so it can be a program name with args.
11970set dummy sed; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11972$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011973if test "${ac_cv_path_SED+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011974 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976 case $SED in
11977 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011978 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11979 ;;
11980 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982for as_dir in $PATH
11983do
11984 IFS=$as_save_IFS
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011987 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 -050011988 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011989 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 break 2
11991 fi
11992done
11993done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011994IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011995
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011996 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11997 ;;
11998esac
11999fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012000SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012001if test -n "$SED"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012002 { $as_echo "$as_me:$LINENO: result: $SED" >&5
12003$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012004else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012005 { $as_echo "$as_me:$LINENO: result: no" >&5
12006$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012007fi
12008
Theodore Ts'oe1052142006-10-21 21:46:47 -040012009
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012010# Extract the first word of "perl", so it can be a program name with args.
12011set dummy perl; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012012{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12013$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014if test "${ac_cv_path_PERL+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012015 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017 case $PERL in
12018 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012019 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12020 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012021 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023for as_dir in $PATH
12024do
12025 IFS=$as_save_IFS
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012028 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 -050012029 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012030 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031 break 2
12032 fi
12033done
12034done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012037 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12038 ;;
12039esac
12040fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012042if test -n "$PERL"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012043 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12044$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012045else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012046 { $as_echo "$as_me:$LINENO: result: no" >&5
12047$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012048fi
12049
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012051# Extract the first word of "ldconfig", so it can be a program name with args.
12052set dummy ldconfig; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12054$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012055if test "${ac_cv_path_LDCONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012056 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058 case $LDCONFIG in
12059 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012060 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12061 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012062 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012069 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 -050012070 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072 break 2
12073 fi
12074done
12075done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012078 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12079 ;;
12080esac
12081fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012082LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012083if test -n "$LDCONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12085$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012086else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087 { $as_echo "$as_me:$LINENO: result: no" >&5
12088$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012089fi
12090
Theodore Ts'oe1052142006-10-21 21:46:47 -040012091
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092if test -n "$ac_tool_prefix"; then
12093 # 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 +000012094set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12096$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097if test "${ac_cv_prog_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012098 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012099else
12100 if test -n "$AR"; then
12101 ac_cv_prog_AR="$AR" # Let the user override the test.
12102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012109 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 -050012110 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112 break 2
12113 fi
12114done
12115done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118fi
12119fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012121if test -n "$AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12123$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127fi
12128
Theodore Ts'oe1052142006-10-21 21:46:47 -040012129
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012130fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012131if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012133 # Extract the first word of "ar", so it can be a program name with args.
12134set dummy ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12136$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140 if test -n "$ac_ct_AR"; then
12141 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012142else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
12148 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012149 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 -050012150 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 break 2
12153 fi
12154done
12155done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012156IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158fi
12159fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160ac_ct_AR=$ac_cv_prog_ac_ct_AR
12161if test -n "$ac_ct_AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012162 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12163$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012164else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012165 { $as_echo "$as_me:$LINENO: result: no" >&5
12166$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012167fi
12168
Theodore Ts'oe1052142006-10-21 21:46:47 -040012169 if test "x$ac_ct_AR" = x; then
12170 AR="ar"
12171 else
12172 case $cross_compiling:$ac_tool_warned in
12173yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12175$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176ac_tool_warned=yes ;;
12177esac
12178 AR=$ac_ct_AR
12179 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012180else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012182fi
12183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184if test -n "$ac_tool_prefix"; then
12185 # 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 +000012186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12188$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012190 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012191else
12192 if test -n "$RANLIB"; then
12193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012201 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 -050012202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204 break 2
12205 fi
12206done
12207done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012210fi
12211fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012214 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12215$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012217 { $as_echo "$as_me:$LINENO: result: no" >&5
12218$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012219fi
12220
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012222fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012223if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012225 # Extract the first word of "ranlib", so it can be a program name with args.
12226set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12228$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012230 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232 if test -n "$ac_ct_RANLIB"; then
12233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12236for as_dir in $PATH
12237do
12238 IFS=$as_save_IFS
12239 test -z "$as_dir" && as_dir=.
12240 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012241 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 -050012242 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 break 2
12245 fi
12246done
12247done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012248IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250fi
12251fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12253if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012254 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12255$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012256else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012257 { $as_echo "$as_me:$LINENO: result: no" >&5
12258$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012259fi
12260
Theodore Ts'oe1052142006-10-21 21:46:47 -040012261 if test "x$ac_ct_RANLIB" = x; then
12262 RANLIB=":"
12263 else
12264 case $cross_compiling:$ac_tool_warned in
12265yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012266{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268ac_tool_warned=yes ;;
12269esac
12270 RANLIB=$ac_ct_RANLIB
12271 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012273 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012274fi
12275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276if test -n "$ac_tool_prefix"; then
12277 # 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 +000012278set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12280$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012282 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283else
12284 if test -n "$STRIP"; then
12285 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012293 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 -050012294 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012296 break 2
12297 fi
12298done
12299done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012302fi
12303fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012305if test -n "$STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012306 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12307$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012308else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012311fi
12312
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012314fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012315if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012317 # Extract the first word of "strip", so it can be a program name with args.
12318set dummy strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012319{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12320$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012321if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012322 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012323else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012324 if test -n "$ac_ct_STRIP"; then
12325 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012326else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12328for as_dir in $PATH
12329do
12330 IFS=$as_save_IFS
12331 test -z "$as_dir" && as_dir=.
12332 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012333 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 -050012334 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 break 2
12337 fi
12338done
12339done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012340IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012342fi
12343fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012344ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12345if test -n "$ac_ct_STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012346 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12347$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012348else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012349 { $as_echo "$as_me:$LINENO: result: no" >&5
12350$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012351fi
12352
Theodore Ts'oe1052142006-10-21 21:46:47 -040012353 if test "x$ac_ct_STRIP" = x; then
12354 STRIP=":"
12355 else
12356 case $cross_compiling:$ac_tool_warned in
12357yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012358{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360ac_tool_warned=yes ;;
12361esac
12362 STRIP=$ac_ct_STRIP
12363 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012364else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012366fi
12367
Manish Katiyar7321d942008-04-14 17:20:03 +053012368# Extract the first word of "makeinfo", so it can be a program name with args.
12369set dummy makeinfo; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12371$as_echo_n "checking for $ac_word... " >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012372if test "${ac_cv_prog_MAKEINFO+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012373 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012374else
12375 if test -n "$MAKEINFO"; then
12376 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12377else
12378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12379for as_dir in $PATH
12380do
12381 IFS=$as_save_IFS
12382 test -z "$as_dir" && as_dir=.
12383 for ac_exec_ext in '' $ac_executable_extensions; do
12384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12385 ac_cv_prog_MAKEINFO="makeinfo"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012387 break 2
12388 fi
12389done
12390done
12391IFS=$as_save_IFS
12392
12393fi
12394fi
12395MAKEINFO=$ac_cv_prog_MAKEINFO
12396if test -n "$MAKEINFO"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012397 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12398$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012399else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012400 { $as_echo "$as_me:$LINENO: result: no" >&5
12401$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012402fi
12403
12404
12405if test "_$MAKEINFO" = "_"; then
12406 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12407else
12408 case "$MAKEINFO" in
12409 */missing.*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012410 { $as_echo "$as_me:$LINENO: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012411*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012412$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012413*** Makeinfo is missing. Info documentation will not be built." >&2;}
12414 ;;
12415 *)
12416 ;;
12417 esac
12418fi
12419
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012420# Find a good install program. We prefer a C program (faster),
12421# so one script is as good as another. But avoid the broken or
12422# incompatible versions:
12423# SysV /etc/install, /usr/sbin/install
12424# SunOS /usr/etc/install
12425# IRIX /sbin/install
12426# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012427# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012428# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012429# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12430# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012431# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012432# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012433# Reject install programs that cannot install multiple files.
12434{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12435$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012436if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012437if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012438 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012439else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12441for as_dir in $PATH
12442do
12443 IFS=$as_save_IFS
12444 test -z "$as_dir" && as_dir=.
12445 # Account for people who put trailing slashes in PATH elements.
12446case $as_dir/ in
12447 ./ | .// | /cC/* | \
12448 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12449 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12450 /usr/ucb/* ) ;;
12451 *)
12452 # OSF1 and SCO ODT 3.0 have their own names for install.
12453 # Don't use installbsd from OSF since it installs stuff as root
12454 # by default.
12455 for ac_prog in ginstall scoinst install; do
12456 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012457 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 +000012458 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012460 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012461 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462 elif test $ac_prog = install &&
12463 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12464 # program-specific install script used by HP pwplus--don't use.
12465 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012466 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012467 rm -rf conftest.one conftest.two conftest.dir
12468 echo one > conftest.one
12469 echo two > conftest.two
12470 mkdir conftest.dir
12471 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12472 test -s conftest.one && test -s conftest.two &&
12473 test -s conftest.dir/conftest.one &&
12474 test -s conftest.dir/conftest.two
12475 then
12476 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12477 break 3
12478 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012479 fi
12480 fi
12481 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482 done
12483 ;;
12484esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012487IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012488
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012489rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012490
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012491fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012492 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012494 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012495 # As a last resort, use the slow shell script. Don't cache a
12496 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012497 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012498 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012500 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012501fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012502{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12503$as_echo "$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012504
12505# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12506# It thinks the first close brace ends the variable substitution.
12507test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012511test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12512
Theodore Ts'o6c133521999-07-03 20:37:03 +000012513# See if we need a separate native compiler.
12514if test $cross_compiling = no; then
12515 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516
Theodore Ts'o6c133521999-07-03 20:37:03 +000012517else
12518 for ac_prog in gcc cc
12519do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012521set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012522{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524if test "${ac_cv_prog_BUILD_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012525 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012526else
12527 if test -n "$BUILD_CC"; then
12528 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12529else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012532do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012536 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 -050012537 ac_cv_prog_BUILD_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539 break 2
12540 fi
12541done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012542done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012545fi
12546fi
12547BUILD_CC=$ac_cv_prog_BUILD_CC
12548if test -n "$BUILD_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012549 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12550$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012551else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012552 { $as_echo "$as_me:$LINENO: result: no" >&5
12553$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554fi
12555
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012557 test -n "$BUILD_CC" && break
12558done
12559
12560fi
12561
Theodore Ts'o740837d2007-12-16 17:21:38 -050012562
12563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583
12584
12585
12586
12587
12588
12589
12590
12591
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012592
Theodore Ts'o106ad962007-04-04 21:26:37 -040012593
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010012594
12595
Theodore Ts'o3d058022008-07-12 22:06:30 -040012596
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040012597
Theodore Ts'od7f45af2008-09-12 10:15:26 -040012598
12599for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.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 -050012600do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012601as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012602if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012603 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12604$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012605if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012606 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012608ac_res=`eval 'as_val=${'$as_ac_Header'}
12609 $as_echo "$as_val"'`
12610 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12611$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612else
12613 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012614{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12615$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616cat >conftest.$ac_ext <<_ACEOF
12617/* confdefs.h. */
12618_ACEOF
12619cat confdefs.h >>conftest.$ac_ext
12620cat >>conftest.$ac_ext <<_ACEOF
12621/* end confdefs.h. */
12622$ac_includes_default
12623#include <$ac_header>
12624_ACEOF
12625rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012626if { (ac_try="$ac_compile"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012633 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012639 (exit $ac_status); } && {
12640 test -z "$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643 ac_header_compiler=yes
12644else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012646sed 's/^/| /' conftest.$ac_ext >&5
12647
Theodore Ts'oe1052142006-10-21 21:46:47 -040012648 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012650
12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012652{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12653$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654
12655# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012656{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12657$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658cat >conftest.$ac_ext <<_ACEOF
12659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664#include <$ac_header>
12665_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012666if { (ac_try="$ac_cpp conftest.$ac_ext"
12667case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12672$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012674 ac_status=$?
12675 grep -v '^ *+' conftest.er1 >conftest.err
12676 rm -f conftest.er1
12677 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012679 (exit $ac_status); } >/dev/null && {
12680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12681 test ! -s conftest.err
12682 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683 ac_header_preproc=yes
12684else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012686sed 's/^/| /' conftest.$ac_ext >&5
12687
12688 ac_header_preproc=no
12689fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012692{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12693$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694
12695# So? What about this header?
12696case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12697 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12699$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12701$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012702 ac_header_preproc=yes
12703 ;;
12704 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12706$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12708$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12709 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12710$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12711 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12712$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12713 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12714$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12715 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12716$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012717
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012718 ;;
12719esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012720{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12721$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012722if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012723 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012724else
12725 eval "$as_ac_Header=\$ac_header_preproc"
12726fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727ac_res=`eval 'as_val=${'$as_ac_Header'}
12728 $as_echo "$as_val"'`
12729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12730$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012731
12732fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733as_val=`eval 'as_val=${'$as_ac_Header'}
12734 $as_echo "$as_val"'`
12735 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738_ACEOF
12739
12740fi
12741
12742done
12743
12744
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012745
12746for ac_header in sys/disk.h sys/mount.h
12747do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12749{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12750$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012751if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012752 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012753else
12754 cat >conftest.$ac_ext <<_ACEOF
12755/* confdefs.h. */
12756_ACEOF
12757cat confdefs.h >>conftest.$ac_ext
12758cat >>conftest.$ac_ext <<_ACEOF
12759/* end confdefs.h. */
12760
12761#if HAVE_SYS_QUEUE_H
12762#include <sys/queue.h>
12763#endif
12764
12765
12766#include <$ac_header>
12767_ACEOF
12768rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012769if { (ac_try="$ac_compile"
12770case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12773esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12775$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012776 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012777 ac_status=$?
12778 grep -v '^ *+' conftest.er1 >conftest.err
12779 rm -f conftest.er1
12780 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012782 (exit $ac_status); } && {
12783 test -z "$ac_c_werror_flag" ||
12784 test ! -s conftest.err
12785 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012786 eval "$as_ac_Header=yes"
12787else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012788 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012789sed 's/^/| /' conftest.$ac_ext >&5
12790
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012793
12794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012795fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012796ac_res=`eval 'as_val=${'$as_ac_Header'}
12797 $as_echo "$as_val"'`
12798 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12799$as_echo "$ac_res" >&6; }
12800as_val=`eval 'as_val=${'$as_ac_Header'}
12801 $as_echo "$as_val"'`
12802 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012803 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012805_ACEOF
12806
12807fi
12808
12809done
12810
12811
12812for ac_header in net/if.h
12813do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012814as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12815{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12816$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012817if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012818 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012819else
12820 cat >conftest.$ac_ext <<_ACEOF
12821/* confdefs.h. */
12822_ACEOF
12823cat confdefs.h >>conftest.$ac_ext
12824cat >>conftest.$ac_ext <<_ACEOF
12825/* end confdefs.h. */
12826
12827#if HAVE_SYS_TYPES_H
12828#include <sys/types.h>
12829#endif
12830#if HAVE_SYS_SOCKET
12831#include <sys/socket.h>
12832#endif
12833
12834
12835#include <$ac_header>
12836_ACEOF
12837rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012838if { (ac_try="$ac_compile"
12839case "(($ac_try" in
12840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12841 *) ac_try_echo=$ac_try;;
12842esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12844$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012845 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012851 (exit $ac_status); } && {
12852 test -z "$ac_c_werror_flag" ||
12853 test ! -s conftest.err
12854 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012855 eval "$as_ac_Header=yes"
12856else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012857 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012858sed 's/^/| /' conftest.$ac_ext >&5
12859
Theodore Ts'oe1052142006-10-21 21:46:47 -040012860 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012862
12863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012864fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012865ac_res=`eval 'as_val=${'$as_ac_Header'}
12866 $as_echo "$as_val"'`
12867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12868$as_echo "$ac_res" >&6; }
12869as_val=`eval 'as_val=${'$as_ac_Header'}
12870 $as_echo "$as_val"'`
12871 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012872 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012874_ACEOF
12875
12876fi
12877
12878done
12879
12880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012881for ac_func in vprintf
12882do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012883as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12884{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12885$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012887 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012888else
12889 cat >conftest.$ac_ext <<_ACEOF
12890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
12895/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12897#define $ac_func innocuous_$ac_func
12898
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012899/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012900 which can conflict with char $ac_func (); below.
12901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12902 <limits.h> exists even on freestanding compilers. */
12903
12904#ifdef __STDC__
12905# include <limits.h>
12906#else
12907# include <assert.h>
12908#endif
12909
12910#undef $ac_func
12911
Theodore Ts'oe1052142006-10-21 21:46:47 -040012912/* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915#ifdef __cplusplus
12916extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012917#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012919/* The GNU C library defines this for functions which it implements
12920 to always fail with ENOSYS. Some functions are actually named
12921 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012923choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012924#endif
12925
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926int
12927main ()
12928{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012929return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012930 ;
12931 return 0;
12932}
12933_ACEOF
12934rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012935if { (ac_try="$ac_link"
12936case "(($ac_try" in
12937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12938 *) ac_try_echo=$ac_try;;
12939esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12941$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012942 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943 ac_status=$?
12944 grep -v '^ *+' conftest.er1 >conftest.err
12945 rm -f conftest.er1
12946 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012948 (exit $ac_status); } && {
12949 test -z "$ac_c_werror_flag" ||
12950 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012951 } && test -s conftest$ac_exeext && {
12952 test "$cross_compiling" = yes ||
12953 $as_test_x conftest$ac_exeext
12954 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012955 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012956else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012957 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012958sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012959
Theodore Ts'oe1052142006-10-21 21:46:47 -040012960 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012962
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012963rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012965 conftest$ac_exeext conftest.$ac_ext
12966fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012967ac_res=`eval 'as_val=${'$as_ac_var'}
12968 $as_echo "$as_val"'`
12969 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12970$as_echo "$ac_res" >&6; }
12971as_val=`eval 'as_val=${'$as_ac_var'}
12972 $as_echo "$as_val"'`
12973 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012974 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012975#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012976_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012977
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012978{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12979$as_echo_n "checking for _doprnt... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980if test "${ac_cv_func__doprnt+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012981 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012982else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983 cat >conftest.$ac_ext <<_ACEOF
12984/* confdefs.h. */
12985_ACEOF
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
12989/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12990 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12991#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012992
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012993/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 which can conflict with char _doprnt (); below.
12995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12996 <limits.h> exists even on freestanding compilers. */
12997
12998#ifdef __STDC__
12999# include <limits.h>
13000#else
13001# include <assert.h>
13002#endif
13003
13004#undef _doprnt
13005
Theodore Ts'oe1052142006-10-21 21:46:47 -040013006/* Override any GCC internal prototype to avoid an error.
13007 Use char because int might match the return type of a GCC
13008 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009#ifdef __cplusplus
13010extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013011#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013013/* The GNU C library defines this for functions which it implements
13014 to always fail with ENOSYS. Some functions are actually named
13015 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013016#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013017choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013018#endif
13019
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020int
13021main ()
13022{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013023return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024 ;
13025 return 0;
13026}
13027_ACEOF
13028rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013029if { (ac_try="$ac_link"
13030case "(($ac_try" in
13031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13032 *) ac_try_echo=$ac_try;;
13033esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13035$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013036 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013037 ac_status=$?
13038 grep -v '^ *+' conftest.er1 >conftest.err
13039 rm -f conftest.er1
13040 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013045 } && test -s conftest$ac_exeext && {
13046 test "$cross_compiling" = yes ||
13047 $as_test_x conftest$ac_exeext
13048 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013049 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013050else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013051 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013052sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013053
Theodore Ts'oe1052142006-10-21 21:46:47 -040013054 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013055fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013056
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013057rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013059 conftest$ac_exeext conftest.$ac_ext
13060fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013061{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13062$as_echo "$ac_cv_func__doprnt" >&6; }
13063if test "x$ac_cv_func__doprnt" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013064
13065cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013066#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013068
13069fi
13070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071fi
13072done
13073
13074
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013075{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13076$as_echo_n "checking for struct dirent.d_reclen... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013077if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013078 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013080 cat >conftest.$ac_ext <<_ACEOF
13081/* confdefs.h. */
13082_ACEOF
13083cat confdefs.h >>conftest.$ac_ext
13084cat >>conftest.$ac_ext <<_ACEOF
13085/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013086#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088int
13089main ()
13090{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013091static struct dirent ac_aggr;
13092if (ac_aggr.d_reclen)
13093return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094 ;
13095 return 0;
13096}
13097_ACEOF
13098rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013099if { (ac_try="$ac_compile"
13100case "(($ac_try" in
13101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102 *) ac_try_echo=$ac_try;;
13103esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107 ac_status=$?
13108 grep -v '^ *+' conftest.er1 >conftest.err
13109 rm -f conftest.er1
13110 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013112 (exit $ac_status); } && {
13113 test -z "$ac_c_werror_flag" ||
13114 test ! -s conftest.err
13115 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013116 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013117else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013118 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013119sed 's/^/| /' conftest.$ac_ext >&5
13120
Theodore Ts'oe1052142006-10-21 21:46:47 -040013121 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013122/* confdefs.h. */
13123_ACEOF
13124cat confdefs.h >>conftest.$ac_ext
13125cat >>conftest.$ac_ext <<_ACEOF
13126/* end confdefs.h. */
13127#include <dirent.h>
13128
13129int
13130main ()
13131{
13132static struct dirent ac_aggr;
13133if (sizeof ac_aggr.d_reclen)
13134return 0;
13135 ;
13136 return 0;
13137}
13138_ACEOF
13139rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013140if { (ac_try="$ac_compile"
13141case "(($ac_try" in
13142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13143 *) ac_try_echo=$ac_try;;
13144esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13146$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013147 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013153 (exit $ac_status); } && {
13154 test -z "$ac_c_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013157 ac_cv_member_struct_dirent_d_reclen=yes
13158else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013159 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013160sed 's/^/| /' conftest.$ac_ext >&5
13161
Theodore Ts'oe1052142006-10-21 21:46:47 -040013162 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013164
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013167
13168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013169fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013170{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13171$as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13172if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013173 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013174#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013176
13177fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013178
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013179{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13180$as_echo_n "checking for ssize_t... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013181if test "${ac_cv_type_ssize_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013182 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013183else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013184 ac_cv_type_ssize_t=no
13185cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013186/* confdefs.h. */
13187_ACEOF
13188cat confdefs.h >>conftest.$ac_ext
13189cat >>conftest.$ac_ext <<_ACEOF
13190/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013191#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013193int
13194main ()
13195{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013196if (sizeof (ssize_t))
13197 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013198 ;
13199 return 0;
13200}
13201_ACEOF
13202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203if { (ac_try="$ac_compile"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13209$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013210 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013211 ac_status=$?
13212 grep -v '^ *+' conftest.er1 >conftest.err
13213 rm -f conftest.er1
13214 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013216 (exit $ac_status); } && {
13217 test -z "$ac_c_werror_flag" ||
13218 test ! -s conftest.err
13219 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013220 cat >conftest.$ac_ext <<_ACEOF
13221/* confdefs.h. */
13222_ACEOF
13223cat confdefs.h >>conftest.$ac_ext
13224cat >>conftest.$ac_ext <<_ACEOF
13225/* end confdefs.h. */
13226#include <sys/types.h>
13227
13228int
13229main ()
13230{
13231if (sizeof ((ssize_t)))
13232 return 0;
13233 ;
13234 return 0;
13235}
13236_ACEOF
13237rm -f conftest.$ac_objext
13238if { (ac_try="$ac_compile"
13239case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244$as_echo "$ac_try_echo") >&5
13245 (eval "$ac_compile") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest.$ac_objext; then
13255 :
Theodore Ts'offf45482003-04-13 00:44:19 -040013256else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013257 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013258sed 's/^/| /' conftest.$ac_ext >&5
13259
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013260 ac_cv_type_ssize_t=yes
13261fi
13262
13263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264else
13265 $as_echo "$as_me: failed program was:" >&5
13266sed 's/^/| /' conftest.$ac_ext >&5
13267
13268
Theodore Ts'offf45482003-04-13 00:44:19 -040013269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013270
13271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013272fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013273{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13274$as_echo "$ac_cv_type_ssize_t" >&6; }
13275if test "x$ac_cv_type_ssize_t" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013276 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013277#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013279
13280fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013281
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013282{ $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13283$as_echo_n "checking whether llseek is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013284if test "${ac_cv_have_decl_llseek+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013285 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287 cat >conftest.$ac_ext <<_ACEOF
13288/* confdefs.h. */
13289_ACEOF
13290cat confdefs.h >>conftest.$ac_ext
13291cat >>conftest.$ac_ext <<_ACEOF
13292/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013293#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013295int
13296main ()
13297{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013298#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013299 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013300#endif
13301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013302 ;
13303 return 0;
13304}
13305_ACEOF
13306rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013307if { (ac_try="$ac_compile"
13308case "(($ac_try" in
13309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310 *) ac_try_echo=$ac_try;;
13311esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13313$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013314 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315 ac_status=$?
13316 grep -v '^ *+' conftest.er1 >conftest.err
13317 rm -f conftest.er1
13318 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013320 (exit $ac_status); } && {
13321 test -z "$ac_c_werror_flag" ||
13322 test ! -s conftest.err
13323 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013324 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013325else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013326 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013327sed 's/^/| /' conftest.$ac_ext >&5
13328
Theodore Ts'oe1052142006-10-21 21:46:47 -040013329 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013330fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013331
13332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013333fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013334{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13335$as_echo "$ac_cv_have_decl_llseek" >&6; }
13336if test "x$ac_cv_have_decl_llseek" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013337 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013338#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013339_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013340
13341fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013342
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013343{ $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13344$as_echo_n "checking whether lseek64 is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013345if test "${ac_cv_have_decl_lseek64+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013346 $as_echo_n "(cached) " >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013348 cat >conftest.$ac_ext <<_ACEOF
13349/* confdefs.h. */
13350_ACEOF
13351cat confdefs.h >>conftest.$ac_ext
13352cat >>conftest.$ac_ext <<_ACEOF
13353/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013354#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013355 #define _LARGEFILE64_SOURCE
13356 #include <unistd.h>
13357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013358int
13359main ()
13360{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013361#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013362 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013363#endif
13364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013365 ;
13366 return 0;
13367}
13368_ACEOF
13369rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013370if { (ac_try="$ac_compile"
13371case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13374esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013375eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13376$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013377 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013387 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013388else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013389 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013390sed 's/^/| /' conftest.$ac_ext >&5
13391
Theodore Ts'oe1052142006-10-21 21:46:47 -040013392 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013393fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013394
13395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013396fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013397{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13398$as_echo "$ac_cv_have_decl_lseek64" >&6; }
13399if test "x$ac_cv_have_decl_lseek64" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013400 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013401#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013402_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013403
13404fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013405
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013406# The cast to long int works around a bug in the HP C Compiler
13407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13409# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013410{ $as_echo "$as_me:$LINENO: checking size of short" >&5
13411$as_echo_n "checking size of short... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013412if test "${ac_cv_sizeof_short+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013413 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013414else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013415 if test "$cross_compiling" = yes; then
13416 # Depending upon the size, compute the lo and hi bounds.
13417cat >conftest.$ac_ext <<_ACEOF
13418/* confdefs.h. */
13419_ACEOF
13420cat confdefs.h >>conftest.$ac_ext
13421cat >>conftest.$ac_ext <<_ACEOF
13422/* end confdefs.h. */
13423$ac_includes_default
13424int
13425main ()
13426{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013427static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013428test_array [0] = 0
13429
13430 ;
13431 return 0;
13432}
13433_ACEOF
13434rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013435if { (ac_try="$ac_compile"
13436case "(($ac_try" in
13437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438 *) ac_try_echo=$ac_try;;
13439esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13441$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013442 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013443 ac_status=$?
13444 grep -v '^ *+' conftest.er1 >conftest.err
13445 rm -f conftest.er1
13446 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013448 (exit $ac_status); } && {
13449 test -z "$ac_c_werror_flag" ||
13450 test ! -s conftest.err
13451 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452 ac_lo=0 ac_mid=0
13453 while :; do
13454 cat >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
13461int
13462main ()
13463{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013464static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013465test_array [0] = 0
13466
13467 ;
13468 return 0;
13469}
13470_ACEOF
13471rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013472if { (ac_try="$ac_compile"
13473case "(($ac_try" in
13474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13476esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13478$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013479 (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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013484 $as_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_hi=$ac_mid; break
13490else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013491 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013492sed 's/^/| /' conftest.$ac_ext >&5
13493
Theodore Ts'oe1052142006-10-21 21:46:47 -040013494 ac_lo=`expr $ac_mid + 1`
13495 if test $ac_lo -le $ac_mid; then
13496 ac_lo= ac_hi=
13497 break
13498 fi
13499 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013501
13502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503 done
13504else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013505 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013506sed 's/^/| /' conftest.$ac_ext >&5
13507
Theodore Ts'oe1052142006-10-21 21:46:47 -040013508 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509/* confdefs.h. */
13510_ACEOF
13511cat confdefs.h >>conftest.$ac_ext
13512cat >>conftest.$ac_ext <<_ACEOF
13513/* end confdefs.h. */
13514$ac_includes_default
13515int
13516main ()
13517{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013518static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013519test_array [0] = 0
13520
13521 ;
13522 return 0;
13523}
13524_ACEOF
13525rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013526if { (ac_try="$ac_compile"
13527case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13530esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13532$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013533 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013539 (exit $ac_status); } && {
13540 test -z "$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13542 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543 ac_hi=-1 ac_mid=-1
13544 while :; do
13545 cat >conftest.$ac_ext <<_ACEOF
13546/* confdefs.h. */
13547_ACEOF
13548cat confdefs.h >>conftest.$ac_ext
13549cat >>conftest.$ac_ext <<_ACEOF
13550/* end confdefs.h. */
13551$ac_includes_default
13552int
13553main ()
13554{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013555static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013556test_array [0] = 0
13557
13558 ;
13559 return 0;
13560}
13561_ACEOF
13562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013563if { (ac_try="$ac_compile"
13564case "(($ac_try" in
13565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566 *) ac_try_echo=$ac_try;;
13567esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13569$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013570 (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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013575 $as_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_lo=$ac_mid; break
13581else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013582 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013583sed 's/^/| /' conftest.$ac_ext >&5
13584
Theodore Ts'oe1052142006-10-21 21:46:47 -040013585 ac_hi=`expr '(' $ac_mid ')' - 1`
13586 if test $ac_mid -le $ac_hi; then
13587 ac_lo= ac_hi=
13588 break
13589 fi
13590 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013592
13593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013594 done
13595else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013596 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013597sed 's/^/| /' conftest.$ac_ext >&5
13598
Theodore Ts'oe1052142006-10-21 21:46:47 -040013599 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013601
13602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013604
13605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013606# Binary search between lo and hi bounds.
13607while test "x$ac_lo" != "x$ac_hi"; do
13608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13609 cat >conftest.$ac_ext <<_ACEOF
13610/* confdefs.h. */
13611_ACEOF
13612cat confdefs.h >>conftest.$ac_ext
13613cat >>conftest.$ac_ext <<_ACEOF
13614/* end confdefs.h. */
13615$ac_includes_default
13616int
13617main ()
13618{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013619static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620test_array [0] = 0
13621
13622 ;
13623 return 0;
13624}
13625_ACEOF
13626rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013627if { (ac_try="$ac_compile"
13628case "(($ac_try" in
13629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13630 *) ac_try_echo=$ac_try;;
13631esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13633$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013634 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013635 ac_status=$?
13636 grep -v '^ *+' conftest.er1 >conftest.err
13637 rm -f conftest.er1
13638 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013644 ac_hi=$ac_mid
13645else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013646 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013647sed 's/^/| /' conftest.$ac_ext >&5
13648
Theodore Ts'oe1052142006-10-21 21:46:47 -040013649 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013650fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013651
13652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653done
13654case $ac_lo in
13655?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013656'') if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13658$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013661$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013663 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013664 else
13665 ac_cv_sizeof_short=0
13666 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013669 cat >conftest.$ac_ext <<_ACEOF
13670/* confdefs.h. */
13671_ACEOF
13672cat confdefs.h >>conftest.$ac_ext
13673cat >>conftest.$ac_ext <<_ACEOF
13674/* end confdefs.h. */
13675$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013676static long int longval () { return (long int) (sizeof (short)); }
13677static unsigned long int ulongval () { return (long int) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013678#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013679#include <stdlib.h>
13680int
13681main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013682{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683
13684 FILE *f = fopen ("conftest.val", "w");
13685 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013686 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013687 if (((long int) (sizeof (short))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013689 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013690 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013691 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013692 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693 }
13694 else
13695 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013697 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013698 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013699 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013700 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013701 /* Do not output a trailing newline, as this causes \r\n confusion
13702 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013703 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704
13705 ;
13706 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013707}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708_ACEOF
13709rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013710if { (ac_try="$ac_link"
13711case "(($ac_try" in
13712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13713 *) ac_try_echo=$ac_try;;
13714esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13716$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013717 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013718 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013721 { (case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13726$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013727 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013730 (exit $ac_status); }; }; then
13731 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013732else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013733 $as_echo "$as_me: program exited with status $ac_status" >&5
13734$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013735sed 's/^/| /' conftest.$ac_ext >&5
13736
13737( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013738if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013739 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13740$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13741{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013742See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013743$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013744See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013745 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013746 else
13747 ac_cv_sizeof_short=0
13748 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013749fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013750rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040013751rm -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 -050013752fi
13753rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013754fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013755{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13756$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013757
13758
13759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013761#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013763
13764
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013765# The cast to long int works around a bug in the HP C Compiler
13766# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13767# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13768# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013769{ $as_echo "$as_me:$LINENO: checking size of int" >&5
13770$as_echo_n "checking size of int... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771if test "${ac_cv_sizeof_int+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013772 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 if test "$cross_compiling" = yes; then
13775 # Depending upon the size, compute the lo and hi bounds.
13776cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782$ac_includes_default
13783int
13784main ()
13785{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013786static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013787test_array [0] = 0
13788
13789 ;
13790 return 0;
13791}
13792_ACEOF
13793rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013794if { (ac_try="$ac_compile"
13795case "(($ac_try" in
13796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13797 *) ac_try_echo=$ac_try;;
13798esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13800$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013801 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811 ac_lo=0 ac_mid=0
13812 while :; do
13813 cat >conftest.$ac_ext <<_ACEOF
13814/* confdefs.h. */
13815_ACEOF
13816cat confdefs.h >>conftest.$ac_ext
13817cat >>conftest.$ac_ext <<_ACEOF
13818/* end confdefs.h. */
13819$ac_includes_default
13820int
13821main ()
13822{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013823static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013824test_array [0] = 0
13825
13826 ;
13827 return 0;
13828}
13829_ACEOF
13830rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013831if { (ac_try="$ac_compile"
13832case "(($ac_try" in
13833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13834 *) ac_try_echo=$ac_try;;
13835esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13837$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013838 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013839 ac_status=$?
13840 grep -v '^ *+' conftest.er1 >conftest.err
13841 rm -f conftest.er1
13842 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013844 (exit $ac_status); } && {
13845 test -z "$ac_c_werror_flag" ||
13846 test ! -s conftest.err
13847 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848 ac_hi=$ac_mid; break
13849else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013850 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851sed 's/^/| /' conftest.$ac_ext >&5
13852
Theodore Ts'oe1052142006-10-21 21:46:47 -040013853 ac_lo=`expr $ac_mid + 1`
13854 if test $ac_lo -le $ac_mid; then
13855 ac_lo= ac_hi=
13856 break
13857 fi
13858 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013860
13861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862 done
13863else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013864 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013865sed 's/^/| /' conftest.$ac_ext >&5
13866
Theodore Ts'oe1052142006-10-21 21:46:47 -040013867 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868/* confdefs.h. */
13869_ACEOF
13870cat confdefs.h >>conftest.$ac_ext
13871cat >>conftest.$ac_ext <<_ACEOF
13872/* end confdefs.h. */
13873$ac_includes_default
13874int
13875main ()
13876{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013877static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013878test_array [0] = 0
13879
13880 ;
13881 return 0;
13882}
13883_ACEOF
13884rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013885if { (ac_try="$ac_compile"
13886case "(($ac_try" in
13887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13888 *) ac_try_echo=$ac_try;;
13889esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13891$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013892 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893 ac_status=$?
13894 grep -v '^ *+' conftest.er1 >conftest.err
13895 rm -f conftest.er1
13896 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013898 (exit $ac_status); } && {
13899 test -z "$ac_c_werror_flag" ||
13900 test ! -s conftest.err
13901 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013902 ac_hi=-1 ac_mid=-1
13903 while :; do
13904 cat >conftest.$ac_ext <<_ACEOF
13905/* confdefs.h. */
13906_ACEOF
13907cat confdefs.h >>conftest.$ac_ext
13908cat >>conftest.$ac_ext <<_ACEOF
13909/* end confdefs.h. */
13910$ac_includes_default
13911int
13912main ()
13913{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013914static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915test_array [0] = 0
13916
13917 ;
13918 return 0;
13919}
13920_ACEOF
13921rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013922if { (ac_try="$ac_compile"
13923case "(($ac_try" in
13924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13925 *) ac_try_echo=$ac_try;;
13926esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013927eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13928$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013929 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013930 ac_status=$?
13931 grep -v '^ *+' conftest.er1 >conftest.err
13932 rm -f conftest.er1
13933 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939 ac_lo=$ac_mid; break
13940else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013941 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013942sed 's/^/| /' conftest.$ac_ext >&5
13943
Theodore Ts'oe1052142006-10-21 21:46:47 -040013944 ac_hi=`expr '(' $ac_mid ')' - 1`
13945 if test $ac_mid -le $ac_hi; then
13946 ac_lo= ac_hi=
13947 break
13948 fi
13949 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013951
13952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953 done
13954else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013955 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013956sed 's/^/| /' conftest.$ac_ext >&5
13957
Theodore Ts'oe1052142006-10-21 21:46:47 -040013958 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013960
13961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013963
13964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965# Binary search between lo and hi bounds.
13966while test "x$ac_lo" != "x$ac_hi"; do
13967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13968 cat >conftest.$ac_ext <<_ACEOF
13969/* confdefs.h. */
13970_ACEOF
13971cat confdefs.h >>conftest.$ac_ext
13972cat >>conftest.$ac_ext <<_ACEOF
13973/* end confdefs.h. */
13974$ac_includes_default
13975int
13976main ()
13977{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013978static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013979test_array [0] = 0
13980
13981 ;
13982 return 0;
13983}
13984_ACEOF
13985rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013986if { (ac_try="$ac_compile"
13987case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13992$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013993 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014003 ac_hi=$ac_mid
14004else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014005 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014006sed 's/^/| /' conftest.$ac_ext >&5
14007
Theodore Ts'oe1052142006-10-21 21:46:47 -040014008 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014010
14011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012done
14013case $ac_lo in
14014?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014015'') if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014016 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14018{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014020$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014022 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014023 else
14024 ac_cv_sizeof_int=0
14025 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028 cat >conftest.$ac_ext <<_ACEOF
14029/* confdefs.h. */
14030_ACEOF
14031cat confdefs.h >>conftest.$ac_ext
14032cat >>conftest.$ac_ext <<_ACEOF
14033/* end confdefs.h. */
14034$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014035static long int longval () { return (long int) (sizeof (int)); }
14036static unsigned long int ulongval () { return (long int) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014037#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014038#include <stdlib.h>
14039int
14040main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014041{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014042
14043 FILE *f = fopen ("conftest.val", "w");
14044 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014045 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014046 if (((long int) (sizeof (int))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014048 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014049 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014050 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014051 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052 }
14053 else
14054 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014055 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014056 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014057 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014058 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014059 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014060 /* Do not output a trailing newline, as this causes \r\n confusion
14061 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063
14064 ;
14065 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014066}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014067_ACEOF
14068rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014069if { (ac_try="$ac_link"
14070case "(($ac_try" in
14071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072 *) ac_try_echo=$ac_try;;
14073esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014076 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014077 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014080 { (case "(($ac_try" in
14081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14082 *) ac_try_echo=$ac_try;;
14083esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14085$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014086 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014089 (exit $ac_status); }; }; then
14090 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014091else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014092 $as_echo "$as_me: program exited with status $ac_status" >&5
14093$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014094sed 's/^/| /' conftest.$ac_ext >&5
14095
14096( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014097if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14100{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014101See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014102$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014104 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014105 else
14106 ac_cv_sizeof_int=0
14107 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014109rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014110rm -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 -050014111fi
14112rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014113fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014114{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14115$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014116
14117
14118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014119cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014120#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014122
14123
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014124# The cast to long int works around a bug in the HP C Compiler
14125# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14126# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14127# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014128{ $as_echo "$as_me:$LINENO: checking size of long" >&5
14129$as_echo_n "checking size of long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130if test "${ac_cv_sizeof_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014131 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014133 if test "$cross_compiling" = yes; then
14134 # Depending upon the size, compute the lo and hi bounds.
14135cat >conftest.$ac_ext <<_ACEOF
14136/* confdefs.h. */
14137_ACEOF
14138cat confdefs.h >>conftest.$ac_ext
14139cat >>conftest.$ac_ext <<_ACEOF
14140/* end confdefs.h. */
14141$ac_includes_default
14142int
14143main ()
14144{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014145static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014146test_array [0] = 0
14147
14148 ;
14149 return 0;
14150}
14151_ACEOF
14152rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014153if { (ac_try="$ac_compile"
14154case "(($ac_try" in
14155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14156 *) ac_try_echo=$ac_try;;
14157esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14159$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170 ac_lo=0 ac_mid=0
14171 while :; do
14172 cat >conftest.$ac_ext <<_ACEOF
14173/* confdefs.h. */
14174_ACEOF
14175cat confdefs.h >>conftest.$ac_ext
14176cat >>conftest.$ac_ext <<_ACEOF
14177/* end confdefs.h. */
14178$ac_includes_default
14179int
14180main ()
14181{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014182static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014183test_array [0] = 0
14184
14185 ;
14186 return 0;
14187}
14188_ACEOF
14189rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014190if { (ac_try="$ac_compile"
14191case "(($ac_try" in
14192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14193 *) ac_try_echo=$ac_try;;
14194esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14196$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014197 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014198 ac_status=$?
14199 grep -v '^ *+' conftest.er1 >conftest.err
14200 rm -f conftest.er1
14201 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014203 (exit $ac_status); } && {
14204 test -z "$ac_c_werror_flag" ||
14205 test ! -s conftest.err
14206 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014207 ac_hi=$ac_mid; break
14208else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014209 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210sed 's/^/| /' conftest.$ac_ext >&5
14211
Theodore Ts'oe1052142006-10-21 21:46:47 -040014212 ac_lo=`expr $ac_mid + 1`
14213 if test $ac_lo -le $ac_mid; then
14214 ac_lo= ac_hi=
14215 break
14216 fi
14217 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014218fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014219
14220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221 done
14222else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014223 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014224sed 's/^/| /' conftest.$ac_ext >&5
14225
Theodore Ts'oe1052142006-10-21 21:46:47 -040014226 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227/* confdefs.h. */
14228_ACEOF
14229cat confdefs.h >>conftest.$ac_ext
14230cat >>conftest.$ac_ext <<_ACEOF
14231/* end confdefs.h. */
14232$ac_includes_default
14233int
14234main ()
14235{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014236static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014237test_array [0] = 0
14238
14239 ;
14240 return 0;
14241}
14242_ACEOF
14243rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014244if { (ac_try="$ac_compile"
14245case "(($ac_try" in
14246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14248esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14250$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014251 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261 ac_hi=-1 ac_mid=-1
14262 while :; do
14263 cat >conftest.$ac_ext <<_ACEOF
14264/* confdefs.h. */
14265_ACEOF
14266cat confdefs.h >>conftest.$ac_ext
14267cat >>conftest.$ac_ext <<_ACEOF
14268/* end confdefs.h. */
14269$ac_includes_default
14270int
14271main ()
14272{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014273static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274test_array [0] = 0
14275
14276 ;
14277 return 0;
14278}
14279_ACEOF
14280rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014281if { (ac_try="$ac_compile"
14282case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14285esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014286eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14287$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014288 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014289 ac_status=$?
14290 grep -v '^ *+' conftest.er1 >conftest.err
14291 rm -f conftest.er1
14292 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014294 (exit $ac_status); } && {
14295 test -z "$ac_c_werror_flag" ||
14296 test ! -s conftest.err
14297 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298 ac_lo=$ac_mid; break
14299else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014300 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014301sed 's/^/| /' conftest.$ac_ext >&5
14302
Theodore Ts'oe1052142006-10-21 21:46:47 -040014303 ac_hi=`expr '(' $ac_mid ')' - 1`
14304 if test $ac_mid -le $ac_hi; then
14305 ac_lo= ac_hi=
14306 break
14307 fi
14308 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014310
14311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014312 done
14313else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014314 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315sed 's/^/| /' conftest.$ac_ext >&5
14316
Theodore Ts'oe1052142006-10-21 21:46:47 -040014317 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014319
14320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014322
14323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014324# Binary search between lo and hi bounds.
14325while test "x$ac_lo" != "x$ac_hi"; do
14326 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14327 cat >conftest.$ac_ext <<_ACEOF
14328/* confdefs.h. */
14329_ACEOF
14330cat confdefs.h >>conftest.$ac_ext
14331cat >>conftest.$ac_ext <<_ACEOF
14332/* end confdefs.h. */
14333$ac_includes_default
14334int
14335main ()
14336{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014337static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338test_array [0] = 0
14339
14340 ;
14341 return 0;
14342}
14343_ACEOF
14344rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014345if { (ac_try="$ac_compile"
14346case "(($ac_try" in
14347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14348 *) ac_try_echo=$ac_try;;
14349esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14351$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014352 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014353 ac_status=$?
14354 grep -v '^ *+' conftest.er1 >conftest.err
14355 rm -f conftest.er1
14356 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014358 (exit $ac_status); } && {
14359 test -z "$ac_c_werror_flag" ||
14360 test ! -s conftest.err
14361 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014362 ac_hi=$ac_mid
14363else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014364 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014365sed 's/^/| /' conftest.$ac_ext >&5
14366
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369
14370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371done
14372case $ac_lo in
14373?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014374'') if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014375 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14377{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014379$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014380See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014381 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014382 else
14383 ac_cv_sizeof_long=0
14384 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014386else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387 cat >conftest.$ac_ext <<_ACEOF
14388/* confdefs.h. */
14389_ACEOF
14390cat confdefs.h >>conftest.$ac_ext
14391cat >>conftest.$ac_ext <<_ACEOF
14392/* end confdefs.h. */
14393$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014394static long int longval () { return (long int) (sizeof (long)); }
14395static unsigned long int ulongval () { return (long int) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014396#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014397#include <stdlib.h>
14398int
14399main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014400{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401
14402 FILE *f = fopen ("conftest.val", "w");
14403 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014404 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014405 if (((long int) (sizeof (long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014407 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014408 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014409 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014410 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411 }
14412 else
14413 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014414 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014415 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014416 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014417 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014419 /* Do not output a trailing newline, as this causes \r\n confusion
14420 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014421 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422
14423 ;
14424 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014425}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426_ACEOF
14427rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014428if { (ac_try="$ac_link"
14429case "(($ac_try" in
14430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14431 *) ac_try_echo=$ac_try;;
14432esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14434$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014435 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014436 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014439 { (case "(($ac_try" in
14440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14441 *) ac_try_echo=$ac_try;;
14442esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14444$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014445 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014448 (exit $ac_status); }; }; then
14449 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014450else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014451 $as_echo "$as_me: program exited with status $ac_status" >&5
14452$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453sed 's/^/| /' conftest.$ac_ext >&5
14454
14455( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014456if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014457 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14459{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014461$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014462See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014463 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014464 else
14465 ac_cv_sizeof_long=0
14466 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014468rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014469rm -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 -050014470fi
14471rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014472fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014473{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14474$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014475
14476
14477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014478cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014479#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014481
14482
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014483# The cast to long int works around a bug in the HP C Compiler
14484# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14485# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14486# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014487{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
14488$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489if test "${ac_cv_sizeof_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014490 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014492 if test "$cross_compiling" = yes; then
14493 # Depending upon the size, compute the lo and hi bounds.
14494cat >conftest.$ac_ext <<_ACEOF
14495/* confdefs.h. */
14496_ACEOF
14497cat confdefs.h >>conftest.$ac_ext
14498cat >>conftest.$ac_ext <<_ACEOF
14499/* end confdefs.h. */
14500$ac_includes_default
14501int
14502main ()
14503{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014504static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014505test_array [0] = 0
14506
14507 ;
14508 return 0;
14509}
14510_ACEOF
14511rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014512if { (ac_try="$ac_compile"
14513case "(($ac_try" in
14514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14515 *) ac_try_echo=$ac_try;;
14516esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14518$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014519 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014520 ac_status=$?
14521 grep -v '^ *+' conftest.er1 >conftest.err
14522 rm -f conftest.er1
14523 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014525 (exit $ac_status); } && {
14526 test -z "$ac_c_werror_flag" ||
14527 test ! -s conftest.err
14528 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529 ac_lo=0 ac_mid=0
14530 while :; do
14531 cat >conftest.$ac_ext <<_ACEOF
14532/* confdefs.h. */
14533_ACEOF
14534cat confdefs.h >>conftest.$ac_ext
14535cat >>conftest.$ac_ext <<_ACEOF
14536/* end confdefs.h. */
14537$ac_includes_default
14538int
14539main ()
14540{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014541static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542test_array [0] = 0
14543
14544 ;
14545 return 0;
14546}
14547_ACEOF
14548rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014549if { (ac_try="$ac_compile"
14550case "(($ac_try" in
14551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14553esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14555$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014556 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014557 ac_status=$?
14558 grep -v '^ *+' conftest.er1 >conftest.err
14559 rm -f conftest.er1
14560 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014566 ac_hi=$ac_mid; break
14567else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014568 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569sed 's/^/| /' conftest.$ac_ext >&5
14570
Theodore Ts'oe1052142006-10-21 21:46:47 -040014571 ac_lo=`expr $ac_mid + 1`
14572 if test $ac_lo -le $ac_mid; then
14573 ac_lo= ac_hi=
14574 break
14575 fi
14576 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014578
14579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580 done
14581else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014582 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014583sed 's/^/| /' conftest.$ac_ext >&5
14584
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586/* confdefs.h. */
14587_ACEOF
14588cat confdefs.h >>conftest.$ac_ext
14589cat >>conftest.$ac_ext <<_ACEOF
14590/* end confdefs.h. */
14591$ac_includes_default
14592int
14593main ()
14594{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014595static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014596test_array [0] = 0
14597
14598 ;
14599 return 0;
14600}
14601_ACEOF
14602rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014603if { (ac_try="$ac_compile"
14604case "(($ac_try" in
14605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14606 *) ac_try_echo=$ac_try;;
14607esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14609$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014610 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014611 ac_status=$?
14612 grep -v '^ *+' conftest.er1 >conftest.err
14613 rm -f conftest.er1
14614 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620 ac_hi=-1 ac_mid=-1
14621 while :; do
14622 cat >conftest.$ac_ext <<_ACEOF
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
14628$ac_includes_default
14629int
14630main ()
14631{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014632static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014633test_array [0] = 0
14634
14635 ;
14636 return 0;
14637}
14638_ACEOF
14639rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014640if { (ac_try="$ac_compile"
14641case "(($ac_try" in
14642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14643 *) ac_try_echo=$ac_try;;
14644esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14646$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648 ac_status=$?
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657 ac_lo=$ac_mid; break
14658else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014659 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014660sed 's/^/| /' conftest.$ac_ext >&5
14661
Theodore Ts'oe1052142006-10-21 21:46:47 -040014662 ac_hi=`expr '(' $ac_mid ')' - 1`
14663 if test $ac_mid -le $ac_hi; then
14664 ac_lo= ac_hi=
14665 break
14666 fi
14667 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014669
14670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014671 done
14672else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014673 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014674sed 's/^/| /' conftest.$ac_ext >&5
14675
Theodore Ts'oe1052142006-10-21 21:46:47 -040014676 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014677fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014678
14679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014681
14682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014683# Binary search between lo and hi bounds.
14684while test "x$ac_lo" != "x$ac_hi"; do
14685 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14686 cat >conftest.$ac_ext <<_ACEOF
14687/* confdefs.h. */
14688_ACEOF
14689cat confdefs.h >>conftest.$ac_ext
14690cat >>conftest.$ac_ext <<_ACEOF
14691/* end confdefs.h. */
14692$ac_includes_default
14693int
14694main ()
14695{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014696static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697test_array [0] = 0
14698
14699 ;
14700 return 0;
14701}
14702_ACEOF
14703rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014704if { (ac_try="$ac_compile"
14705case "(($ac_try" in
14706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14708esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014709eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14710$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014711 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014712 ac_status=$?
14713 grep -v '^ *+' conftest.er1 >conftest.err
14714 rm -f conftest.er1
14715 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014717 (exit $ac_status); } && {
14718 test -z "$ac_c_werror_flag" ||
14719 test ! -s conftest.err
14720 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014721 ac_hi=$ac_mid
14722else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014723 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014724sed 's/^/| /' conftest.$ac_ext >&5
14725
Theodore Ts'oe1052142006-10-21 21:46:47 -040014726 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014727fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728
14729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014730done
14731case $ac_lo in
14732?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014733'') if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014734 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14735$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14736{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014737See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014738$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014739See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014740 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014741 else
14742 ac_cv_sizeof_long_long=0
14743 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014744esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014745else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014746 cat >conftest.$ac_ext <<_ACEOF
14747/* confdefs.h. */
14748_ACEOF
14749cat confdefs.h >>conftest.$ac_ext
14750cat >>conftest.$ac_ext <<_ACEOF
14751/* end confdefs.h. */
14752$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014753static long int longval () { return (long int) (sizeof (long long)); }
14754static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014755#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014756#include <stdlib.h>
14757int
14758main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014759{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014760
14761 FILE *f = fopen ("conftest.val", "w");
14762 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014763 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014764 if (((long int) (sizeof (long long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014765 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014766 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014767 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014768 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014769 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014770 }
14771 else
14772 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014773 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014774 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014775 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014776 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014777 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014778 /* Do not output a trailing newline, as this causes \r\n confusion
14779 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014780 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014781
14782 ;
14783 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014784}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785_ACEOF
14786rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014787if { (ac_try="$ac_link"
14788case "(($ac_try" in
14789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14790 *) ac_try_echo=$ac_try;;
14791esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14793$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014794 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014798 { (case "(($ac_try" in
14799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14801esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14803$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014805 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014807 (exit $ac_status); }; }; then
14808 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014809else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014810 $as_echo "$as_me: program exited with status $ac_status" >&5
14811$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014812sed 's/^/| /' conftest.$ac_ext >&5
14813
14814( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014815if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014816 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14818{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014819See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014820$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014821See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014822 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014823 else
14824 ac_cv_sizeof_long_long=0
14825 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014826fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014827rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014828rm -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 -050014829fi
14830rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014831fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014832{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14833$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014834
14835
14836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014837cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014838#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014839_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014840
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014841
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014842SIZEOF_SHORT=$ac_cv_sizeof_short
14843SIZEOF_INT=$ac_cv_sizeof_int
14844SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014845SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14846
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014847
14848
14849
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014850
14851 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14852$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014853if test "${ac_cv_c_bigendian+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014854 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014855else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014856 ac_cv_c_bigendian=unknown
14857 # See if we're dealing with a universal compiler.
14858 cat >conftest.$ac_ext <<_ACEOF
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864#ifndef __APPLE_CC__
14865 not a universal capable compiler
14866 #endif
14867 typedef int dummy;
14868
14869_ACEOF
14870rm -f conftest.$ac_objext
14871if { (ac_try="$ac_compile"
14872case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875esac
14876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877$as_echo "$ac_try_echo") >&5
14878 (eval "$ac_compile") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest.$ac_objext; then
14888
14889 # Check for potential -arch flags. It is not universal unless
14890 # there are some -arch flags. Note that *ppc* also matches
14891 # ppc64. This check is also rather less than ideal.
14892 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14893 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14894 esac
14895else
14896 $as_echo "$as_me: failed program was:" >&5
14897sed 's/^/| /' conftest.$ac_ext >&5
14898
14899
14900fi
14901
14902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14903 if test $ac_cv_c_bigendian = unknown; then
14904 # See if sys/param.h defines the BYTE_ORDER macro.
14905 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014906/* confdefs.h. */
14907_ACEOF
14908cat confdefs.h >>conftest.$ac_ext
14909cat >>conftest.$ac_ext <<_ACEOF
14910/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014911#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014912 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014913
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014914int
14915main ()
14916{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014917#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14918 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14919 && LITTLE_ENDIAN)
14920 bogus endian macros
14921 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922
14923 ;
14924 return 0;
14925}
14926_ACEOF
14927rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014928if { (ac_try="$ac_compile"
14929case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14934$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014935 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936 ac_status=$?
14937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014941 (exit $ac_status); } && {
14942 test -z "$ac_c_werror_flag" ||
14943 test ! -s conftest.err
14944 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014945 # It does; now see whether it defined to BIG_ENDIAN or not.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014946 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947/* confdefs.h. */
14948_ACEOF
14949cat confdefs.h >>conftest.$ac_ext
14950cat >>conftest.$ac_ext <<_ACEOF
14951/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014952#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014953 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955int
14956main ()
14957{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014958#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014959 not big endian
14960 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014961
14962 ;
14963 return 0;
14964}
14965_ACEOF
14966rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967if { (ac_try="$ac_compile"
14968case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14973$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014974 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975 ac_status=$?
14976 grep -v '^ *+' conftest.er1 >conftest.err
14977 rm -f conftest.er1
14978 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014980 (exit $ac_status); } && {
14981 test -z "$ac_c_werror_flag" ||
14982 test ! -s conftest.err
14983 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014984 ac_cv_c_bigendian=yes
14985else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014986 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014987sed 's/^/| /' conftest.$ac_ext >&5
14988
Theodore Ts'oe1052142006-10-21 21:46:47 -040014989 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991
14992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014993else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014994 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995sed 's/^/| /' conftest.$ac_ext >&5
14996
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014997
14998fi
14999
15000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 fi
15002 if test $ac_cv_c_bigendian = unknown; then
15003 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15004 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015005/* confdefs.h. */
15006_ACEOF
15007cat confdefs.h >>conftest.$ac_ext
15008cat >>conftest.$ac_ext <<_ACEOF
15009/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015010#include <limits.h>
15011
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015012int
15013main ()
15014{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015015#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15016 bogus endian macros
15017 #endif
15018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015019 ;
15020 return 0;
15021}
15022_ACEOF
15023rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015024if { (ac_try="$ac_compile"
15025case "(($ac_try" in
15026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15027 *) ac_try_echo=$ac_try;;
15028esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15030$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032 ac_status=$?
15033 grep -v '^ *+' conftest.er1 >conftest.err
15034 rm -f conftest.er1
15035 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015037 (exit $ac_status); } && {
15038 test -z "$ac_c_werror_flag" ||
15039 test ! -s conftest.err
15040 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015041 # It does; now see whether it defined to _BIG_ENDIAN or not.
15042 cat >conftest.$ac_ext <<_ACEOF
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048#include <limits.h>
15049
15050int
15051main ()
15052{
15053#ifndef _BIG_ENDIAN
15054 not big endian
15055 #endif
15056
15057 ;
15058 return 0;
15059}
15060_ACEOF
15061rm -f conftest.$ac_objext
15062if { (ac_try="$ac_compile"
15063case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15066esac
15067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15068$as_echo "$ac_try_echo") >&5
15069 (eval "$ac_compile") 2>conftest.er1
15070 ac_status=$?
15071 grep -v '^ *+' conftest.er1 >conftest.err
15072 rm -f conftest.er1
15073 cat conftest.err >&5
15074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15075 (exit $ac_status); } && {
15076 test -z "$ac_c_werror_flag" ||
15077 test ! -s conftest.err
15078 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015079 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015080else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015081 $as_echo "$as_me: failed program was:" >&5
15082sed 's/^/| /' conftest.$ac_ext >&5
15083
15084 ac_cv_c_bigendian=no
15085fi
15086
15087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088else
15089 $as_echo "$as_me: failed program was:" >&5
15090sed 's/^/| /' conftest.$ac_ext >&5
15091
15092
15093fi
15094
15095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15096 fi
15097 if test $ac_cv_c_bigendian = unknown; then
15098 # Compile a test program.
15099 if test "$cross_compiling" = yes; then
15100 # Try to guess by grepping values from an object file.
15101 cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */
15103_ACEOF
15104cat confdefs.h >>conftest.$ac_ext
15105cat >>conftest.$ac_ext <<_ACEOF
15106/* end confdefs.h. */
15107short int ascii_mm[] =
15108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15109 short int ascii_ii[] =
15110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15111 int use_ascii (int i) {
15112 return ascii_mm[i] + ascii_ii[i];
15113 }
15114 short int ebcdic_ii[] =
15115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15116 short int ebcdic_mm[] =
15117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15118 int use_ebcdic (int i) {
15119 return ebcdic_mm[i] + ebcdic_ii[i];
15120 }
15121 extern int foo;
15122
15123int
15124main ()
15125{
15126return use_ascii (foo) == use_ebcdic (foo);
15127 ;
15128 return 0;
15129}
15130_ACEOF
15131rm -f conftest.$ac_objext
15132if { (ac_try="$ac_compile"
15133case "(($ac_try" in
15134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135 *) ac_try_echo=$ac_try;;
15136esac
15137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15138$as_echo "$ac_try_echo") >&5
15139 (eval "$ac_compile") 2>conftest.er1
15140 ac_status=$?
15141 grep -v '^ *+' conftest.er1 >conftest.err
15142 rm -f conftest.er1
15143 cat conftest.err >&5
15144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145 (exit $ac_status); } && {
15146 test -z "$ac_c_werror_flag" ||
15147 test ! -s conftest.err
15148 } && test -s conftest.$ac_objext; then
15149 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15150 ac_cv_c_bigendian=yes
15151 fi
15152 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15153 if test "$ac_cv_c_bigendian" = unknown; then
15154 ac_cv_c_bigendian=no
15155 else
15156 # finding both strings is unlikely to happen, but who knows?
15157 ac_cv_c_bigendian=unknown
15158 fi
15159 fi
15160else
15161 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162sed 's/^/| /' conftest.$ac_ext >&5
15163
Theodore Ts'oe1052142006-10-21 21:46:47 -040015164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015166
15167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015168else
15169 cat >conftest.$ac_ext <<_ACEOF
15170/* confdefs.h. */
15171_ACEOF
15172cat confdefs.h >>conftest.$ac_ext
15173cat >>conftest.$ac_ext <<_ACEOF
15174/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015175$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015176int
15177main ()
15178{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015179
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015180 /* Are we little or big endian? From Harbison&Steele. */
15181 union
15182 {
15183 long int l;
15184 char c[sizeof (long int)];
15185 } u;
15186 u.l = 1;
15187 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015188
15189 ;
15190 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015191}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015192_ACEOF
15193rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015194if { (ac_try="$ac_link"
15195case "(($ac_try" in
15196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15197 *) ac_try_echo=$ac_try;;
15198esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15200$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015201 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015202 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015205 { (case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15210$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015211 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015214 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015215 ac_cv_c_bigendian=no
15216else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015217 $as_echo "$as_me: program exited with status $ac_status" >&5
15218$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015219sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015221( exit $ac_status )
15222ac_cv_c_bigendian=yes
15223fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015224rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040015225rm -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 -040015226fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015227
15228
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015229 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015230fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015231{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15232$as_echo "$ac_cv_c_bigendian" >&6; }
15233 case $ac_cv_c_bigendian in #(
15234 yes)
15235 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015236#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015237_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015238;; #(
15239 no)
15240 ;; #(
15241 universal)
15242
15243cat >>confdefs.h <<\_ACEOF
15244#define AC_APPLE_UNIVERSAL_BUILD 1
15245_ACEOF
15246
15247 ;; #(
15248 *)
15249 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15250 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15251$as_echo "$as_me: error: unknown endianness
15252 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253 { (exit 1); exit 1; }; } ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015254 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015255
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015256BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015257ASM_TYPES_HEADER=./asm_types.h
15258
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015259echo "/* These defines are needed for the public ext2fs.h header file */" \
15260 > public_config.h
15261if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15262 uniq tmp_config.$$ >> public_config.h
15263else
15264 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15265fi
15266if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15267 uniq tmp_config.$$ >> public_config.h
15268else
15269 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15270fi
15271rm -f tmp_config.$$
15272PUBLIC_CONFIG_HEADER=./public_config.h
15273
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015275for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015276do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015277as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015278if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015279 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15280$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015281if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015282 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015283fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015284ac_res=`eval 'as_val=${'$as_ac_Header'}
15285 $as_echo "$as_val"'`
15286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15287$as_echo "$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015289 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015290{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15291$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015292cat >conftest.$ac_ext <<_ACEOF
15293/* confdefs.h. */
15294_ACEOF
15295cat confdefs.h >>conftest.$ac_ext
15296cat >>conftest.$ac_ext <<_ACEOF
15297/* end confdefs.h. */
15298$ac_includes_default
15299#include <$ac_header>
15300_ACEOF
15301rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015302if { (ac_try="$ac_compile"
15303case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015309 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015315 (exit $ac_status); } && {
15316 test -z "$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319 ac_header_compiler=yes
15320else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015321 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322sed 's/^/| /' conftest.$ac_ext >&5
15323
Theodore Ts'oe1052142006-10-21 21:46:47 -040015324 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015325fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015326
15327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015328{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15329$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015330
15331# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015332{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15333$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015334cat >conftest.$ac_ext <<_ACEOF
15335/* confdefs.h. */
15336_ACEOF
15337cat confdefs.h >>conftest.$ac_ext
15338cat >>conftest.$ac_ext <<_ACEOF
15339/* end confdefs.h. */
15340#include <$ac_header>
15341_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015342if { (ac_try="$ac_cpp conftest.$ac_ext"
15343case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15346esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015347eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15348$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015350 ac_status=$?
15351 grep -v '^ *+' conftest.er1 >conftest.err
15352 rm -f conftest.er1
15353 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015355 (exit $ac_status); } >/dev/null && {
15356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15357 test ! -s conftest.err
15358 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015359 ac_header_preproc=yes
15360else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015361 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015362sed 's/^/| /' conftest.$ac_ext >&5
15363
15364 ac_header_preproc=no
15365fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015368{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15369$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370
15371# So? What about this header?
15372case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15373 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15375$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15377$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015378 ac_header_preproc=yes
15379 ;;
15380 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15382$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15384$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15386$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15388$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15389 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15390$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15391 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15392$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015393
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015394 ;;
15395esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015396{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15397$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015398if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015399 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015400else
15401 eval "$as_ac_Header=\$ac_header_preproc"
15402fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015403ac_res=`eval 'as_val=${'$as_ac_Header'}
15404 $as_echo "$as_val"'`
15405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15406$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015407
15408fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015409as_val=`eval 'as_val=${'$as_ac_Header'}
15410 $as_echo "$as_val"'`
15411 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015412 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015414_ACEOF
15415
15416fi
15417
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015418done
15419
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015420{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15421$as_echo_n "checking for intptr_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015422if test "${ac_cv_type_intptr_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015423 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015424else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015425 ac_cv_type_intptr_t=no
15426cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427/* confdefs.h. */
15428_ACEOF
15429cat confdefs.h >>conftest.$ac_ext
15430cat >>conftest.$ac_ext <<_ACEOF
15431/* end confdefs.h. */
15432$ac_includes_default
15433int
15434main ()
15435{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015436if (sizeof (intptr_t))
15437 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015438 ;
15439 return 0;
15440}
15441_ACEOF
15442rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015443if { (ac_try="$ac_compile"
15444case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15449$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015450 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015451 ac_status=$?
15452 grep -v '^ *+' conftest.er1 >conftest.err
15453 rm -f conftest.er1
15454 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015456 (exit $ac_status); } && {
15457 test -z "$ac_c_werror_flag" ||
15458 test ! -s conftest.err
15459 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015460 cat >conftest.$ac_ext <<_ACEOF
15461/* confdefs.h. */
15462_ACEOF
15463cat confdefs.h >>conftest.$ac_ext
15464cat >>conftest.$ac_ext <<_ACEOF
15465/* end confdefs.h. */
15466$ac_includes_default
15467int
15468main ()
15469{
15470if (sizeof ((intptr_t)))
15471 return 0;
15472 ;
15473 return 0;
15474}
15475_ACEOF
15476rm -f conftest.$ac_objext
15477if { (ac_try="$ac_compile"
15478case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15481esac
15482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15483$as_echo "$ac_try_echo") >&5
15484 (eval "$ac_compile") 2>conftest.er1
15485 ac_status=$?
15486 grep -v '^ *+' conftest.er1 >conftest.err
15487 rm -f conftest.er1
15488 cat conftest.err >&5
15489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && {
15491 test -z "$ac_c_werror_flag" ||
15492 test ! -s conftest.err
15493 } && test -s conftest.$ac_objext; then
15494 :
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015495else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015496 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015497sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015498
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015499 ac_cv_type_intptr_t=yes
15500fi
15501
15502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503else
15504 $as_echo "$as_me: failed program was:" >&5
15505sed 's/^/| /' conftest.$ac_ext >&5
15506
15507
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015509
15510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015511fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015512{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15513$as_echo "$ac_cv_type_intptr_t" >&6; }
15514if test "x$ac_cv_type_intptr_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015515
15516cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015517#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015518_ACEOF
15519
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015521fi
15522
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015523{ $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15524$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015525if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015526 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015527else
15528 cat >conftest.$ac_ext <<_ACEOF
15529/* confdefs.h. */
15530_ACEOF
15531cat confdefs.h >>conftest.$ac_ext
15532cat >>conftest.$ac_ext <<_ACEOF
15533/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015534#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015535int
15536main ()
15537{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015538struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015539 ;
15540 return 0;
15541}
15542_ACEOF
15543rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015544if { (ac_try="$ac_compile"
15545case "(($ac_try" in
15546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15547 *) ac_try_echo=$ac_try;;
15548esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15550$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015551 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015552 ac_status=$?
15553 grep -v '^ *+' conftest.er1 >conftest.err
15554 rm -f conftest.er1
15555 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015557 (exit $ac_status); } && {
15558 test -z "$ac_c_werror_flag" ||
15559 test ! -s conftest.err
15560 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015561 e2fsprogs_cv_struct_st_flags=yes
15562else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015563 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015564sed 's/^/| /' conftest.$ac_ext >&5
15565
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015567fi
15568
Theodore Ts'oe1052142006-10-21 21:46:47 -040015569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15570fi
15571
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015572{ $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15573$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015574if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015575 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15576$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015577 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015578 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015579else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580 cat >conftest.$ac_ext <<_ACEOF
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015586#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015587int
15588main ()
15589{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015590struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015591 ;
15592 return 0;
15593}
15594_ACEOF
15595rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015596if { (ac_try="$ac_compile"
15597case "(($ac_try" in
15598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15599 *) ac_try_echo=$ac_try;;
15600esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015601eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15602$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015603 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015604 ac_status=$?
15605 grep -v '^ *+' conftest.er1 >conftest.err
15606 rm -f conftest.er1
15607 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015609 (exit $ac_status); } && {
15610 test -z "$ac_c_werror_flag" ||
15611 test ! -s conftest.err
15612 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015613 e2fsprogs_cv_struct_st_flags_immut=yes
15614else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015615 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015616sed 's/^/| /' conftest.$ac_ext >&5
15617
Theodore Ts'oe1052142006-10-21 21:46:47 -040015618 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015619fi
15620
Theodore Ts'oe1052142006-10-21 21:46:47 -040015621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15622fi
15623
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015624 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15625$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015626 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015627 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015628#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015629_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015630
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015631 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015632fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015633{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15634$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015635if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015636 $as_echo_n "(cached) " >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638 cat >conftest.$ac_ext <<_ACEOF
15639/* confdefs.h. */
15640_ACEOF
15641cat confdefs.h >>conftest.$ac_ext
15642cat >>conftest.$ac_ext <<_ACEOF
15643/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015644#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015645 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647int
15648main ()
15649{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015650static struct sockaddr ac_aggr;
15651if (ac_aggr.sa_len)
15652return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015653 ;
15654 return 0;
15655}
15656_ACEOF
15657rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015658if { (ac_try="$ac_compile"
15659case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15662esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15664$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015665 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015666 ac_status=$?
15667 grep -v '^ *+' conftest.er1 >conftest.err
15668 rm -f conftest.er1
15669 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015671 (exit $ac_status); } && {
15672 test -z "$ac_c_werror_flag" ||
15673 test ! -s conftest.err
15674 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015675 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015676else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015677 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015678sed 's/^/| /' conftest.$ac_ext >&5
15679
Theodore Ts'oe1052142006-10-21 21:46:47 -040015680 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015681/* confdefs.h. */
15682_ACEOF
15683cat confdefs.h >>conftest.$ac_ext
15684cat >>conftest.$ac_ext <<_ACEOF
15685/* end confdefs.h. */
15686#include <sys/types.h>
15687 #include <sys/socket.h>
15688
15689int
15690main ()
15691{
15692static struct sockaddr ac_aggr;
15693if (sizeof ac_aggr.sa_len)
15694return 0;
15695 ;
15696 return 0;
15697}
15698_ACEOF
15699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015700if { (ac_try="$ac_compile"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015708 ac_status=$?
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015713 (exit $ac_status); } && {
15714 test -z "$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015717 ac_cv_member_struct_sockaddr_sa_len=yes
15718else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015719 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015720sed 's/^/| /' conftest.$ac_ext >&5
15721
Theodore Ts'oe1052142006-10-21 21:46:47 -040015722 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015724
15725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015727
15728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015729fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015730{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15731$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15732if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015733
15734cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015735#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015736_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015737
15738fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015739
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050015740if test -n "$BLKID_CMT"; then
15741 { $as_echo "$as_me:$LINENO: checking for library containing blkid_probe_all" >&5
15742$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
15743if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15744 $as_echo_n "(cached) " >&6
15745else
15746 ac_func_search_save_LIBS=$LIBS
15747cat >conftest.$ac_ext <<_ACEOF
15748/* confdefs.h. */
15749_ACEOF
15750cat confdefs.h >>conftest.$ac_ext
15751cat >>conftest.$ac_ext <<_ACEOF
15752/* end confdefs.h. */
15753
15754/* Override any GCC internal prototype to avoid an error.
15755 Use char because int might match the return type of a GCC
15756 builtin and then its argument prototype would still apply. */
15757#ifdef __cplusplus
15758extern "C"
15759#endif
15760char blkid_probe_all ();
15761int
15762main ()
15763{
15764return blkid_probe_all ();
15765 ;
15766 return 0;
15767}
15768_ACEOF
15769for ac_lib in '' blkid; do
15770 if test -z "$ac_lib"; then
15771 ac_res="none required"
15772 else
15773 ac_res=-l$ac_lib
15774 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15775 fi
15776 rm -f conftest.$ac_objext conftest$ac_exeext
15777if { (ac_try="$ac_link"
15778case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15781esac
15782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15783$as_echo "$ac_try_echo") >&5
15784 (eval "$ac_link") 2>conftest.er1
15785 ac_status=$?
15786 grep -v '^ *+' conftest.er1 >conftest.err
15787 rm -f conftest.er1
15788 cat conftest.err >&5
15789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); } && {
15791 test -z "$ac_c_werror_flag" ||
15792 test ! -s conftest.err
15793 } && test -s conftest$ac_exeext && {
15794 test "$cross_compiling" = yes ||
15795 $as_test_x conftest$ac_exeext
15796 }; then
15797 ac_cv_search_blkid_probe_all=$ac_res
15798else
15799 $as_echo "$as_me: failed program was:" >&5
15800sed 's/^/| /' conftest.$ac_ext >&5
15801
15802
15803fi
15804
15805rm -rf conftest.dSYM
15806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15807 conftest$ac_exeext
15808 if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15809 break
15810fi
15811done
15812if test "${ac_cv_search_blkid_probe_all+set}" = set; then
15813 :
15814else
15815 ac_cv_search_blkid_probe_all=no
15816fi
15817rm conftest.$ac_ext
15818LIBS=$ac_func_search_save_LIBS
15819fi
15820{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_blkid_probe_all" >&5
15821$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
15822ac_res=$ac_cv_search_blkid_probe_all
15823if test "$ac_res" != no; then
15824 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15825
15826fi
15827
15828fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015847
Theodore Ts'o762c7c62005-04-06 14:44:16 -040015848
15849
Andreas Dilger9b7d8112005-07-09 22:06:59 -050015850
Theodore Ts'oae2868a2006-10-22 00:18:49 -040015851
Theodore Ts'o106ad962007-04-04 21:26:37 -040015852
15853
15854
Theodore Ts'o740837d2007-12-16 17:21:38 -050015855
15856
Theodore Ts'o261cd392008-01-21 13:45:00 -050015857
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040015858
15859
Theodore Ts'o1207e362009-04-15 13:05:09 -040015860
15861
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050015862
15863for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit blkid_probe_get_topology2
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015864do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015865as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15866{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15867$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015868if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015869 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015870else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015871 cat >conftest.$ac_ext <<_ACEOF
15872/* confdefs.h. */
15873_ACEOF
15874cat confdefs.h >>conftest.$ac_ext
15875cat >>conftest.$ac_ext <<_ACEOF
15876/* end confdefs.h. */
15877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15879#define $ac_func innocuous_$ac_func
15880
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015881/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015882 which can conflict with char $ac_func (); below.
15883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15884 <limits.h> exists even on freestanding compilers. */
15885
15886#ifdef __STDC__
15887# include <limits.h>
15888#else
15889# include <assert.h>
15890#endif
15891
15892#undef $ac_func
15893
Theodore Ts'oe1052142006-10-21 21:46:47 -040015894/* Override any GCC internal prototype to avoid an error.
15895 Use char because int might match the return type of a GCC
15896 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015897#ifdef __cplusplus
15898extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015899#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015900char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015901/* The GNU C library defines this for functions which it implements
15902 to always fail with ENOSYS. Some functions are actually named
15903 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015904#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015905choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015906#endif
15907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908int
15909main ()
15910{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015911return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015912 ;
15913 return 0;
15914}
15915_ACEOF
15916rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015917if { (ac_try="$ac_link"
15918case "(($ac_try" in
15919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15920 *) ac_try_echo=$ac_try;;
15921esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15923$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015924 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925 ac_status=$?
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015930 (exit $ac_status); } && {
15931 test -z "$ac_c_werror_flag" ||
15932 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015933 } && test -s conftest$ac_exeext && {
15934 test "$cross_compiling" = yes ||
15935 $as_test_x conftest$ac_exeext
15936 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015937 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015938else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015939 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015940sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015941
Theodore Ts'oe1052142006-10-21 21:46:47 -040015942 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015943fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015944
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015945rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015947 conftest$ac_exeext conftest.$ac_ext
15948fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015949ac_res=`eval 'as_val=${'$as_ac_var'}
15950 $as_echo "$as_val"'`
15951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15952$as_echo "$ac_res" >&6; }
15953as_val=`eval 'as_val=${'$as_ac_var'}
15954 $as_echo "$as_val"'`
15955 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015956 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015957#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015958_ACEOF
15959
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015960fi
15961done
15962
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015963SOCKET_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015964{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15965$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015966if test "${ac_cv_lib_socket_socket+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015967 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015968else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015969 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015970LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015971cat >conftest.$ac_ext <<_ACEOF
15972/* confdefs.h. */
15973_ACEOF
15974cat confdefs.h >>conftest.$ac_ext
15975cat >>conftest.$ac_ext <<_ACEOF
15976/* end confdefs.h. */
15977
Theodore Ts'oe1052142006-10-21 21:46:47 -040015978/* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015981#ifdef __cplusplus
15982extern "C"
15983#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015984char socket ();
15985int
15986main ()
15987{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015988return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015994if { (ac_try="$ac_link"
15995case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15998esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16000$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016001 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016002 ac_status=$?
16003 grep -v '^ *+' conftest.er1 >conftest.err
16004 rm -f conftest.er1
16005 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016007 (exit $ac_status); } && {
16008 test -z "$ac_c_werror_flag" ||
16009 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016010 } && test -s conftest$ac_exeext && {
16011 test "$cross_compiling" = yes ||
16012 $as_test_x conftest$ac_exeext
16013 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016014 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016015else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016016 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016017sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016018
Theodore Ts'oe1052142006-10-21 21:46:47 -040016019 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016020fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016021
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016022rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016024 conftest$ac_exeext conftest.$ac_ext
16025LIBS=$ac_check_lib_save_LIBS
16026fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016027{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16028$as_echo "$ac_cv_lib_socket_socket" >&6; }
16029if test "x$ac_cv_lib_socket_socket" = x""yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016030 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016031fi
16032
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016033
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016034DLOPEN_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016035{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16036$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016037if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016038 $as_echo_n "(cached) " >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016040 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016041LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016042cat >conftest.$ac_ext <<_ACEOF
16043/* confdefs.h. */
16044_ACEOF
16045cat confdefs.h >>conftest.$ac_ext
16046cat >>conftest.$ac_ext <<_ACEOF
16047/* end confdefs.h. */
16048
Theodore Ts'oe1052142006-10-21 21:46:47 -040016049/* Override any GCC internal prototype to avoid an error.
16050 Use char because int might match the return type of a GCC
16051 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016052#ifdef __cplusplus
16053extern "C"
16054#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016055char dlopen ();
16056int
16057main ()
16058{
Theodore Ts'oe1052142006-10-21 21:46:47 -040016059return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016060 ;
16061 return 0;
16062}
16063_ACEOF
16064rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016065if { (ac_try="$ac_link"
16066case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16069esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16071$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016072 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016073 ac_status=$?
16074 grep -v '^ *+' conftest.er1 >conftest.err
16075 rm -f conftest.er1
16076 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016081 } && test -s conftest$ac_exeext && {
16082 test "$cross_compiling" = yes ||
16083 $as_test_x conftest$ac_exeext
16084 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016085 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016086else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016087 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016088sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016089
Theodore Ts'oe1052142006-10-21 21:46:47 -040016090 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016091fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016092
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016093rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016094rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016095 conftest$ac_exeext conftest.$ac_ext
16096LIBS=$ac_check_lib_save_LIBS
16097fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016098{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16099$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16100if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016101 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016102cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016103#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016104_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016105
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016106fi
16107
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016108
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016109{ $as_echo "$as_me:$LINENO: checking for optreset" >&5
16110$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016111if test "${ac_cv_have_optreset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016112 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016114 cat >conftest.$ac_ext <<_ACEOF
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016120#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016121
16122_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016123if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016124 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016125 ac_cv_have_optreset=yes
16126else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016127 ac_cv_have_optreset=no
16128fi
16129rm -f conftest*
16130
16131fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016132{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16133$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016134if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016135 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016136#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016137_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016138
16139fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016140SEM_INIT_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016141{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16142$as_echo_n "checking for sem_init... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016143if test "${ac_cv_func_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016144 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016145else
16146 cat >conftest.$ac_ext <<_ACEOF
16147/* confdefs.h. */
16148_ACEOF
16149cat confdefs.h >>conftest.$ac_ext
16150cat >>conftest.$ac_ext <<_ACEOF
16151/* end confdefs.h. */
16152/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16154#define sem_init innocuous_sem_init
16155
16156/* System header to define __stub macros and hopefully few prototypes,
16157 which can conflict with char sem_init (); below.
16158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16159 <limits.h> exists even on freestanding compilers. */
16160
16161#ifdef __STDC__
16162# include <limits.h>
16163#else
16164# include <assert.h>
16165#endif
16166
16167#undef sem_init
16168
16169/* Override any GCC internal prototype to avoid an error.
16170 Use char because int might match the return type of a GCC
16171 builtin and then its argument prototype would still apply. */
16172#ifdef __cplusplus
16173extern "C"
16174#endif
16175char sem_init ();
16176/* The GNU C library defines this for functions which it implements
16177 to always fail with ENOSYS. Some functions are actually named
16178 something starting with __ and the normal name is an alias. */
16179#if defined __stub_sem_init || defined __stub___sem_init
16180choke me
16181#endif
16182
16183int
16184main ()
16185{
16186return sem_init ();
16187 ;
16188 return 0;
16189}
16190_ACEOF
16191rm -f conftest.$ac_objext conftest$ac_exeext
16192if { (ac_try="$ac_link"
16193case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16196esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016199 (eval "$ac_link") 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016205 (exit $ac_status); } && {
16206 test -z "$ac_c_werror_flag" ||
16207 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016208 } && test -s conftest$ac_exeext && {
16209 test "$cross_compiling" = yes ||
16210 $as_test_x conftest$ac_exeext
16211 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016212 ac_cv_func_sem_init=yes
16213else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016214 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016215sed 's/^/| /' conftest.$ac_ext >&5
16216
16217 ac_cv_func_sem_init=no
16218fi
16219
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016220rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016221rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16222 conftest$ac_exeext conftest.$ac_ext
16223fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016224{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16225$as_echo "$ac_cv_func_sem_init" >&6; }
16226if test "x$ac_cv_func_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016227 :
16228else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016229 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16230$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016231if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016232 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016233else
16234 ac_check_lib_save_LIBS=$LIBS
16235LIBS="-lpthread $LIBS"
16236cat >conftest.$ac_ext <<_ACEOF
16237/* confdefs.h. */
16238_ACEOF
16239cat confdefs.h >>conftest.$ac_ext
16240cat >>conftest.$ac_ext <<_ACEOF
16241/* end confdefs.h. */
16242
16243/* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16246#ifdef __cplusplus
16247extern "C"
16248#endif
16249char sem_init ();
16250int
16251main ()
16252{
16253return sem_init ();
16254 ;
16255 return 0;
16256}
16257_ACEOF
16258rm -f conftest.$ac_objext conftest$ac_exeext
16259if { (ac_try="$ac_link"
16260case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016264eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16265$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016266 (eval "$ac_link") 2>conftest.er1
16267 ac_status=$?
16268 grep -v '^ *+' conftest.er1 >conftest.err
16269 rm -f conftest.er1
16270 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016272 (exit $ac_status); } && {
16273 test -z "$ac_c_werror_flag" ||
16274 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016275 } && test -s conftest$ac_exeext && {
16276 test "$cross_compiling" = yes ||
16277 $as_test_x conftest$ac_exeext
16278 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016279 ac_cv_lib_pthread_sem_init=yes
16280else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016281 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016282sed 's/^/| /' conftest.$ac_ext >&5
16283
16284 ac_cv_lib_pthread_sem_init=no
16285fi
16286
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016287rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016288rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16289 conftest$ac_exeext conftest.$ac_ext
16290LIBS=$ac_check_lib_save_LIBS
16291fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016292{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16293$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16294if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016295 cat >>confdefs.h <<\_ACEOF
16296#define HAVE_SEM_INIT 1
16297_ACEOF
16298
16299 SEM_INIT_LIB=-lpthread
16300else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016301 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16302$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016303if test "${ac_cv_lib_rt_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016304 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016305else
16306 ac_check_lib_save_LIBS=$LIBS
16307LIBS="-lrt $LIBS"
16308cat >conftest.$ac_ext <<_ACEOF
16309/* confdefs.h. */
16310_ACEOF
16311cat confdefs.h >>conftest.$ac_ext
16312cat >>conftest.$ac_ext <<_ACEOF
16313/* end confdefs.h. */
16314
16315/* Override any GCC internal prototype to avoid an error.
16316 Use char because int might match the return type of a GCC
16317 builtin and then its argument prototype would still apply. */
16318#ifdef __cplusplus
16319extern "C"
16320#endif
16321char sem_init ();
16322int
16323main ()
16324{
16325return sem_init ();
16326 ;
16327 return 0;
16328}
16329_ACEOF
16330rm -f conftest.$ac_objext conftest$ac_exeext
16331if { (ac_try="$ac_link"
16332case "(($ac_try" in
16333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16334 *) ac_try_echo=$ac_try;;
16335esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16337$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016338 (eval "$ac_link") 2>conftest.er1
16339 ac_status=$?
16340 grep -v '^ *+' conftest.er1 >conftest.err
16341 rm -f conftest.er1
16342 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016344 (exit $ac_status); } && {
16345 test -z "$ac_c_werror_flag" ||
16346 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016347 } && test -s conftest$ac_exeext && {
16348 test "$cross_compiling" = yes ||
16349 $as_test_x conftest$ac_exeext
16350 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016351 ac_cv_lib_rt_sem_init=yes
16352else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016353 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016354sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_lib_rt_sem_init=no
16357fi
16358
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016359rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16361 conftest$ac_exeext conftest.$ac_ext
16362LIBS=$ac_check_lib_save_LIBS
16363fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016364{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16365$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16366if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016367 cat >>confdefs.h <<\_ACEOF
16368#define HAVE_SEM_INIT 1
16369_ACEOF
16370
16371 SEM_INIT_LIB=-lrt
16372else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016373 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16374$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016375if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016376 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016377else
16378 ac_check_lib_save_LIBS=$LIBS
16379LIBS="-lposix4 $LIBS"
16380cat >conftest.$ac_ext <<_ACEOF
16381/* confdefs.h. */
16382_ACEOF
16383cat confdefs.h >>conftest.$ac_ext
16384cat >>conftest.$ac_ext <<_ACEOF
16385/* end confdefs.h. */
16386
16387/* Override any GCC internal prototype to avoid an error.
16388 Use char because int might match the return type of a GCC
16389 builtin and then its argument prototype would still apply. */
16390#ifdef __cplusplus
16391extern "C"
16392#endif
16393char sem_init ();
16394int
16395main ()
16396{
16397return sem_init ();
16398 ;
16399 return 0;
16400}
16401_ACEOF
16402rm -f conftest.$ac_objext conftest$ac_exeext
16403if { (ac_try="$ac_link"
16404case "(($ac_try" in
16405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16406 *) ac_try_echo=$ac_try;;
16407esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16409$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016410 (eval "$ac_link") 2>conftest.er1
16411 ac_status=$?
16412 grep -v '^ *+' conftest.er1 >conftest.err
16413 rm -f conftest.er1
16414 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016416 (exit $ac_status); } && {
16417 test -z "$ac_c_werror_flag" ||
16418 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016419 } && test -s conftest$ac_exeext && {
16420 test "$cross_compiling" = yes ||
16421 $as_test_x conftest$ac_exeext
16422 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016423 ac_cv_lib_posix4_sem_init=yes
16424else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016425 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016426sed 's/^/| /' conftest.$ac_ext >&5
16427
16428 ac_cv_lib_posix4_sem_init=no
16429fi
16430
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016431rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16433 conftest$ac_exeext conftest.$ac_ext
16434LIBS=$ac_check_lib_save_LIBS
16435fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016436{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16437$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16438if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016439 cat >>confdefs.h <<\_ACEOF
16440#define HAVE_SEM_INIT 1
16441_ACEOF
16442
16443 SEM_INIT_LIB=-lposix4
16444fi
16445
16446fi
16447
16448fi
16449
16450fi
16451
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016452{ $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16453$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040016454if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016455 UNI_DIFF_OPTS=-u
16456else
16457 UNI_DIFF_OPTS=-c
16458fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016459{ $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16460$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016461
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016462case "$host_os" in
16463linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016464 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016465#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016466_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016467
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016468 ;;
16469esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016470LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016471CYGWIN_CMT="#"
16472UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016473case "$host_os" in
16474linux*)
16475 LINUX_CMT=
16476 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016477cygwin)
16478 CYGWIN_CMT=
16479 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016480 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016481esac
16482
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016483
16484
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016485case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016486linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016487 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16488 root_prefix="";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016489 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16490$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016491 fi
16492 ;;
16493esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016494case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016495linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016496 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016497 prefix="/usr";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016498 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16499$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016500 if test "$mandir" = '${prefix}/man' ; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016501 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16502$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016503 mandir=/usr/share/man
16504 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016505 fi
16506;;
16507esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016508if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016509 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016510 root_prefix="$ac_default_prefix"
16511 else
16512 root_prefix="$prefix"
16513 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016514 root_bindir=$bindir
16515 root_sbindir=$sbindir
16516 root_libdir=$libdir
16517 root_sysconfdir=$sysconfdir
16518else
16519 root_bindir='${root_prefix}/bin'
16520 root_sbindir='${root_prefix}/sbin'
16521 root_libdir='${root_prefix}/lib'
16522 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016523fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016524if test "$bindir" != '${exec_prefix}/bin'; then
16525 root_bindir=$bindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016526 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16527$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016528fi
16529if test "$sbindir" != '${exec_prefix}/sbin'; then
16530 root_sbindir=$sbindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016531 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16532$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016533fi
16534if test "$libdir" != '${exec_prefix}/lib'; then
16535 root_libdir=$libdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016536 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16537$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016538fi
16539if test "$sysconfdir" != '${prefix}/etc'; then
16540 root_sysconfdir=$sysconfdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016541 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16542$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016543fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016544
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016545
16546
16547
16548
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016549{ $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16550$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016551if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016552 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016553else
16554 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016555cat >conftest.$ac_ext <<_ACEOF
16556/* confdefs.h. */
16557_ACEOF
16558cat confdefs.h >>conftest.$ac_ext
16559cat >>conftest.$ac_ext <<_ACEOF
16560/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016561#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016562int
16563main ()
16564{
Theodore Ts'oae851481997-04-29 18:13:24 +000016565fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016566 ;
16567 return 0;
16568}
16569_ACEOF
16570rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016571if { (ac_try="$ac_link"
16572case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16575esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16577$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016578 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016579 ac_status=$?
16580 grep -v '^ *+' conftest.er1 >conftest.err
16581 rm -f conftest.er1
16582 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016584 (exit $ac_status); } && {
16585 test -z "$ac_c_werror_flag" ||
16586 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016587 } && test -s conftest$ac_exeext && {
16588 test "$cross_compiling" = yes ||
16589 $as_test_x conftest$ac_exeext
16590 }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016591 ac_cv_e2fsprogs_use_static=yes
16592else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016593 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016594sed 's/^/| /' conftest.$ac_ext >&5
16595
Theodore Ts'oe1052142006-10-21 21:46:47 -040016596 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016598
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016599rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016600rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016601 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016602LDFLAGS=$SAVE_LDFLAGS
16603fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016604
Theodore Ts'odefde781999-01-04 07:39:19 +000016605case "$host_os" in
16606solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016607 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016608;;
16609esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016610{ $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16611$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016612LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016613if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016614 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016615fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016616
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016617case "$host_os" in
16618darwin*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016619 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16620$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016621 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016622#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016623_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016624
16625 ;;
16626esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016627SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16628ET_DIR=`cd ${srcdir}/lib/et; pwd`
16629
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016630
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016631if test "$cross_compiling" = yes ; then
16632 DO_TEST_SUITE=
16633else
16634 DO_TEST_SUITE=check
16635fi
16636
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016637INTL_FLAGS=
16638if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16639 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16640fi
16641
Theodore Ts'odd947da2005-11-09 18:37:07 -040016642if test $cross_compiling = no; then
16643 BUILD_CFLAGS="$CFLAGS"
16644 BUILD_LDFLAGS="$LDFLAGS"
16645else
16646 BUILD_CFLAGS=
16647 BUILD_LDFLAGS=
16648fi
16649
16650
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016651test -d lib || mkdir lib
16652test -d include || mkdir include
16653test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016654test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016655for i in MCONFIG Makefile e2fsprogs.spec \
16656 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016657 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16658 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016659 lib/uuid/Makefile lib/uuid/uuid_types.h \
16660 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016661 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16662 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016663 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016664 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020016665 resize/Makefile doc/Makefile intl/Makefile \
16666 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016667 if test -d `dirname ${srcdir}/$i` ; then
16668 outlist="$outlist $i"
16669 fi
16670done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016671ac_config_files="$ac_config_files $outlist"
16672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016673cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016674# This file is a shell script that caches the results of configure
16675# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016676# scripts and configure runs, see configure's option --config-cache.
16677# It is not useful on other systems. If it contains results you don't
16678# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016679#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016680# config.status only pays attention to the cache file if you give it
16681# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016682#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016683# `ac_cv_env_foo' variables (set or unset) will be overridden when
16684# loading this file, other *unset* `ac_cv_foo' will be assigned the
16685# following values.
16686
16687_ACEOF
16688
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016689# The following way of writing the cache mishandles newlines in values,
16690# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016691# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016692# Ultrix sh set writes to stderr and can't be redirected directly,
16693# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016694(
16695 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16696 eval ac_val=\$$ac_var
16697 case $ac_val in #(
16698 *${as_nl}*)
16699 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016700 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16701$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016702 esac
16703 case $ac_var in #(
16704 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016705 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -040016706 *) $as_unset $ac_var ;;
16707 esac ;;
16708 esac
16709 done
16710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016711 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016712 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16713 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016714 # `set' does not quote correctly, so add quotes (double-quote
16715 # substitution turns \\\\ into \\, and sed turns \\ into \).
16716 sed -n \
16717 "s/'/'\\\\''/g;
16718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016719 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016720 *)
16721 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016722 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016723 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016724 esac |
16725 sort
16726) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016727 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016728 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016729 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016730 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016731 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16732 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016733 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16734 :end' >>confcache
16735if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16736 if test -w "$cache_file"; then
16737 test "x$cache_file" != "x/dev/null" &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016738 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16739$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016740 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016741 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016742 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16743$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016744 fi
16745fi
16746rm -f confcache
16747
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016748test "x$prefix" = xNONE && prefix=$ac_default_prefix
16749# Let make expand exec_prefix.
16750test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16751
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016752# Transform confdefs.h into DEFS.
16753# Protect against shell expansion while executing Makefile rules.
16754# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016755#
16756# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016757# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016758# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016759ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016760:mline
16761/\\$/{
16762 N
16763 s,\\\n,,
16764 b mline
16765}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016766t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016767:clear
16768s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016769t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016770s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016771t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016772b any
16773:quote
16774s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16775s/\[/\\&/g
16776s/\]/\\&/g
16777s/\$/$$/g
16778H
16779:any
16780${
16781 g
16782 s/^\n//
16783 s/\n/ /g
16784 p
16785}
16786'
16787DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016788
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016789
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016790ac_libobjs=
16791ac_ltlibobjs=
16792for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16793 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16797 # will be set to the directory where LIBOBJS objects are built.
16798 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16799 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016800done
16801LIBOBJS=$ac_libobjs
16802
16803LTLIBOBJS=$ac_ltlibobjs
16804
16805
16806
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016807
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016808: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016809ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016810ac_clean_files_save=$ac_clean_files
16811ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016812{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16813$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16814cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016815#! $SHELL
16816# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016817# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016818# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016819# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016821debug=false
16822ac_cs_recheck=false
16823ac_cs_silent=false
16824SHELL=\${CONFIG_SHELL-$SHELL}
16825_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016826
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016828## --------------------- ##
16829## M4sh Initialization. ##
16830## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016831
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016832# Be more Bourne compatible
16833DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016834if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16835 emulate sh
16836 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016837 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016838 # is contrary to our usage. Disable this feature.
16839 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016840 setopt NO_GLOB_SUBST
16841else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016842 case `(set -o) 2>/dev/null` in
16843 *posix*) set -o posix ;;
16844esac
16845
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016846fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016847
16848
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016849
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016850
Theodore Ts'oe1052142006-10-21 21:46:47 -040016851# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016852# Avoid depending upon Character Ranges.
16853as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16854as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16855as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16856as_cr_digits='0123456789'
16857as_cr_alnum=$as_cr_Letters$as_cr_digits
16858
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016859as_nl='
16860'
16861export as_nl
16862# Printing a long string crashes Solaris 7 /usr/bin/printf.
16863as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16865as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16866if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16867 as_echo='printf %s\n'
16868 as_echo_n='printf %s'
16869else
16870 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16871 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16872 as_echo_n='/usr/ucb/echo -n'
16873 else
16874 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16875 as_echo_n_body='eval
16876 arg=$1;
16877 case $arg in
16878 *"$as_nl"*)
16879 expr "X$arg" : "X\\(.*\\)$as_nl";
16880 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16881 esac;
16882 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16883 '
16884 export as_echo_n_body
16885 as_echo_n='sh -c $as_echo_n_body as_echo'
16886 fi
16887 export as_echo_body
16888 as_echo='sh -c $as_echo_body as_echo'
16889fi
16890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016891# The user is always right.
16892if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016893 PATH_SEPARATOR=:
16894 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16895 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16896 PATH_SEPARATOR=';'
16897 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016898fi
16899
Theodore Ts'oe1052142006-10-21 21:46:47 -040016900# Support unset when possible.
16901if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16902 as_unset=unset
16903else
16904 as_unset=false
16905fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016906
Theodore Ts'oe1052142006-10-21 21:46:47 -040016907
16908# IFS
16909# We need space, tab and new line, in precisely that order. Quoting is
16910# there to prevent editors from complaining about space-tab.
16911# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16912# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040016913IFS=" "" $as_nl"
16914
16915# Find who we are. Look in the path if we contain no directory separator.
16916case $0 in
16917 *[\\/]* ) as_myself=$0 ;;
16918 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016919for as_dir in $PATH
16920do
16921 IFS=$as_save_IFS
16922 test -z "$as_dir" && as_dir=.
16923 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16924done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016926
Theodore Ts'oe1052142006-10-21 21:46:47 -040016927 ;;
16928esac
16929# We did not find ourselves, most probably we were run as `sh COMMAND'
16930# in which case we are not to be found in the path.
16931if test "x$as_myself" = x; then
16932 as_myself=$0
16933fi
16934if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016935 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -040016936 { (exit 1); exit 1; }
16937fi
16938
16939# Work around bugs in pre-3.0 UWIN ksh.
16940for as_var in ENV MAIL MAILPATH
16941do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16942done
16943PS1='$ '
16944PS2='> '
16945PS4='+ '
16946
16947# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016948LC_ALL=C
16949export LC_ALL
16950LANGUAGE=C
16951export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040016952
16953# Required to use basename.
16954if expr a : '\(a\)' >/dev/null 2>&1 &&
16955 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16956 as_expr=expr
16957else
16958 as_expr=false
16959fi
16960
16961if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16962 as_basename=basename
16963else
16964 as_basename=false
16965fi
16966
16967
16968# Name of the executable.
16969as_me=`$as_basename -- "$0" ||
16970$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16971 X"$0" : 'X\(//\)$' \| \
16972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016973$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016974 sed '/^.*\/\([^/][^/]*\)\/*$/{
16975 s//\1/
16976 q
16977 }
16978 /^X\/\(\/\/\)$/{
16979 s//\1/
16980 q
16981 }
16982 /^X\/\(\/\).*/{
16983 s//\1/
16984 q
16985 }
16986 s/.*/./; q'`
16987
16988# CDPATH.
16989$as_unset CDPATH
16990
16991
16992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016993 as_lineno_1=$LINENO
16994 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016995 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016996 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016997
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016998 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16999 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040017000 # line-number line after each line using $LINENO; the second 'sed'
17001 # does the real work. The second script uses 'N' to pair each
17002 # line-number line with the line containing $LINENO, and appends
17003 # trailing '-' during substitution so that $LINENO is not a special
17004 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017005 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017006 # scripts with optimization help from Paolo Bonzini. Blame Lee
17007 # E. McMahon (1931-1989) for sed's syntax. :-)
17008 sed -n '
17009 p
17010 /[$]LINENO/=
17011 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017012 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017013 s/[$]LINENO.*/&-/
17014 t lineno
17015 b
17016 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017017 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040017018 :loop
17019 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017020 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040017021 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017022 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017023 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017024 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017025 { (exit 1); exit 1; }; }
17026
17027 # Don't try to exec as it changes $[0], causing all sort of problems
17028 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040017029 # original and so on. Autoconf is especially sensitive to this).
17030 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017031 # Exit status is that of the last command.
17032 exit
17033}
17034
17035
Theodore Ts'oe1052142006-10-21 21:46:47 -040017036if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17037 as_dirname=dirname
17038else
17039 as_dirname=false
17040fi
17041
17042ECHO_C= ECHO_N= ECHO_T=
17043case `echo -n x` in
17044-n*)
17045 case `echo 'x\c'` in
17046 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17047 *) ECHO_C='\c';;
17048 esac;;
17049*)
17050 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017051esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017052if expr a : '\(a\)' >/dev/null 2>&1 &&
17053 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017054 as_expr=expr
17055else
17056 as_expr=false
17057fi
17058
17059rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040017060if test -d conf$$.dir; then
17061 rm -f conf$$.dir/conf$$.file
17062else
17063 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017064 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040017065fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017066if (echo >conf$$.file) 2>/dev/null; then
17067 if ln -s conf$$.file conf$$ 2>/dev/null; then
17068 as_ln_s='ln -s'
17069 # ... but there are two gotchas:
17070 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17071 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17072 # In both cases, we have to default to `cp -p'.
17073 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17074 as_ln_s='cp -p'
17075 elif ln conf$$.file conf$$ 2>/dev/null; then
17076 as_ln_s=ln
17077 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017078 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017079 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017080else
17081 as_ln_s='cp -p'
17082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017083rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17084rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017085
17086if mkdir -p . 2>/dev/null; then
17087 as_mkdir_p=:
17088else
17089 test -d ./-p && rmdir ./-p
17090 as_mkdir_p=false
17091fi
17092
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017093if test -x / >/dev/null 2>&1; then
17094 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017095else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017096 if ls -dL / >/dev/null 2>&1; then
17097 as_ls_L_option=L
17098 else
17099 as_ls_L_option=
17100 fi
17101 as_test_x='
17102 eval sh -c '\''
17103 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017104 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017105 else
17106 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017107 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017108 esac;
17109 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17110 ???[sx]*):;;*)false;;esac;fi
17111 '\'' sh
17112 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017113fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017114as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017115
17116# Sed expression to map a string onto a valid CPP name.
17117as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17118
17119# Sed expression to map a string onto a valid variable name.
17120as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17121
17122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017123exec 6>&1
17124
Theodore Ts'oe1052142006-10-21 21:46:47 -040017125# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017126# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040017127# values after options handling.
17128ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017129This file was extended by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017130generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017131
17132 CONFIG_FILES = $CONFIG_FILES
17133 CONFIG_HEADERS = $CONFIG_HEADERS
17134 CONFIG_LINKS = $CONFIG_LINKS
17135 CONFIG_COMMANDS = $CONFIG_COMMANDS
17136 $ $0 $@
17137
Theodore Ts'oe1052142006-10-21 21:46:47 -040017138on `(hostname || uname -n) 2>/dev/null | sed 1q`
17139"
17140
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017141_ACEOF
17142
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017143case $ac_config_files in *"
17144"*) set x $ac_config_files; shift; ac_config_files=$*;;
17145esac
17146
17147
17148
17149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017150# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017151config_files="$ac_config_files"
17152config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017153
Theodore Ts'oe1052142006-10-21 21:46:47 -040017154_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017155
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017156cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017157ac_cs_usage="\
17158\`$as_me' instantiates files from templates according to the
17159current configuration.
17160
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017161Usage: $0 [OPTION]... [FILE]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017162
17163 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017164 -V, --version print version number and configuration settings, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017165 -q, --quiet, --silent
17166 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017167 -d, --debug don't remove temporary files
17168 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017169 --file=FILE[:TEMPLATE]
17170 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017171
17172Configuration files:
17173$config_files
17174
17175Configuration commands:
17176$config_commands
17177
17178Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017179
Theodore Ts'oe1052142006-10-21 21:46:47 -040017180_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017181cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017182ac_cs_version="\\
17183config.status
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017184configured by $0, generated by GNU Autoconf 2.63,
17185 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017186
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017187Copyright (C) 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017188This config.status script is free software; the Free Software Foundation
17189gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017190
17191ac_pwd='$ac_pwd'
17192srcdir='$srcdir'
17193INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017194AWK='$AWK'
17195test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017196_ACEOF
17197
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17199# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017200ac_need_defaults=:
17201while test $# != 0
17202do
17203 case $1 in
17204 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017205 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17206 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017207 ac_shift=:
17208 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017209 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017210 ac_option=$1
17211 ac_optarg=$2
17212 ac_shift=shift
17213 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017214 esac
17215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017216 case $ac_option in
17217 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017218 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17219 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017220 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017221 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017222 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017223 debug=: ;;
17224 --file | --fil | --fi | --f )
17225 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017226 case $ac_optarg in
17227 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17228 esac
17229 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017230 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017231 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017232 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17234 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17235 ac_cs_silent=: ;;
17236
17237 # This is an error.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017238 -*) { $as_echo "$as_me: error: unrecognized option: $1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017239Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017240 { (exit 1); exit 1; }; } ;;
17241
Theodore Ts'oe1052142006-10-21 21:46:47 -040017242 *) ac_config_targets="$ac_config_targets $1"
17243 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017244
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017245 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017246 shift
17247done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017249ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017251if $ac_cs_silent; then
17252 exec 6>/dev/null
17253 ac_configure_extra_args="$ac_configure_extra_args --silent"
17254fi
17255
17256_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017258if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017259 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17260 shift
17261 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17262 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017263 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017264 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017265fi
17266
17267_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017269exec 5>>config.log
17270{
17271 echo
17272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17273## Running $as_me. ##
17274_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017275 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017276} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017277
Theodore Ts'oe1052142006-10-21 21:46:47 -040017278_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017280#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017281# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017282#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017283# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017284 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017285 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017286 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017287 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17288 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017289
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017291_ACEOF
17292
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017294
17295# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017296for ac_config_target in $ac_config_targets
17297do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017298 case $ac_config_target in
17299 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17300 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17301
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017302 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17303$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017304 { (exit 1); exit 1; }; };;
17305 esac
17306done
17307
Theodore Ts'oe1052142006-10-21 21:46:47 -040017308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017309# If the user did not use the arguments to specify the items to instantiate,
17310# then the envvar interface is used. Set only those that are not.
17311# We use the long form for the default assignment because of an extremely
17312# bizarre bug on SunOS 4.1.3.
17313if $ac_need_defaults; then
17314 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17315 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17316fi
17317
17318# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017319# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017320# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017321# Hook for its removal unless debugging.
17322# Note that there is a small window in which the directory will not be cleaned:
17323# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017324$debug ||
17325{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017326 tmp=
17327 trap 'exit_status=$?
17328 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17329' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017330 trap '{ (exit 1); exit 1; }' 1 2 13 15
17331}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017332# Create a (secure) tmp directory for tmp files.
17333
17334{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017335 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017336 test -n "$tmp" && test -d "$tmp"
17337} ||
17338{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017339 tmp=./conf$$-$RANDOM
17340 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017341} ||
17342{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017343 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017344 { (exit 1); exit 1; }
17345}
17346
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017347# Set up the scripts for CONFIG_FILES section.
17348# No need to generate them if there are no CONFIG_FILES.
17349# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017350if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017351
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017352if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17353 ac_cs_awk_getline=:
17354 ac_cs_awk_pipe_init=
17355 ac_cs_awk_read_file='
17356 while ((getline aline < (F[key])) > 0)
17357 print(aline)
17358 close(F[key])'
17359 ac_cs_awk_pipe_fini=
17360else
17361 ac_cs_awk_getline=false
17362 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17363 ac_cs_awk_read_file='
17364 print "|#_!!_#|"
17365 print "cat " F[key] " &&"
17366 '$ac_cs_awk_pipe_init
17367 # The final `:' finishes the AND list.
17368 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17369fi
17370ac_cr=' '
17371ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17372if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17373 ac_cs_awk_cr='\\r'
17374else
17375 ac_cs_awk_cr=$ac_cr
17376fi
17377
17378echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017379_ACEOF
17380
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017381# Create commands to substitute file output variables.
17382{
17383 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17384 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17385 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17386 echo "_ACAWK" &&
17387 echo "_ACEOF"
17388} >conf$$files.sh &&
17389. ./conf$$files.sh ||
17390 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17391$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17392 { (exit 1); exit 1; }; }
17393rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017394
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017395{
17396 echo "cat >conf$$subs.awk <<_ACEOF" &&
17397 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17398 echo "_ACEOF"
17399} >conf$$subs.sh ||
17400 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17401$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17402 { (exit 1); exit 1; }; }
17403ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017404ac_delim='%!_!# '
17405for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017406 . ./conf$$subs.sh ||
17407 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17408$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17409 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017410
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017411 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17412 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017413 break
17414 elif $ac_last_try; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017415 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17416$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017417 { (exit 1); exit 1; }; }
17418 else
17419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017420 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017421done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017422rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017423
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17425cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017426_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017427sed -n '
17428h
17429s/^/S["/; s/!.*/"]=/
17430p
17431g
17432s/^[^!]*!//
17433:repl
17434t repl
17435s/'"$ac_delim"'$//
17436t delim
17437:nl
17438h
17439s/\(.\{148\}\).*/\1/
17440t more1
17441s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17442p
17443n
17444b repl
17445:more1
17446s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17447p
17448g
17449s/.\{148\}//
17450t nl
17451:delim
17452h
17453s/\(.\{148\}\).*/\1/
17454t more2
17455s/["\\]/\\&/g; s/^/"/; s/$/"/
17456p
17457b
17458:more2
17459s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17460p
17461g
17462s/.\{148\}//
17463t delim
17464' <conf$$subs.awk | sed '
17465/^[^""]/{
17466 N
17467 s/\n//
17468}
17469' >>$CONFIG_STATUS || ac_write_fail=1
17470rm -f conf$$subs.awk
17471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472_ACAWK
17473cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17474 for (key in S) S_is_set[key] = 1
17475 FS = ""
17476 \$ac_cs_awk_pipe_init
17477}
17478{
17479 line = $ 0
17480 nfields = split(line, field, "@")
17481 substed = 0
17482 len = length(field[1])
17483 for (i = 2; i < nfields; i++) {
17484 key = field[i]
17485 keylen = length(key)
17486 if (S_is_set[key]) {
17487 value = S[key]
17488 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17489 len += length(value) + length(field[++i])
17490 substed = 1
17491 } else
17492 len += 1 + keylen
17493 }
17494 if (nfields == 3 && !substed) {
17495 key = field[2]
17496 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17497 \$ac_cs_awk_read_file
17498 next
17499 }
17500 }
17501 print line
17502}
17503\$ac_cs_awk_pipe_fini
17504_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040017505_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17507if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17508 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17509else
17510 cat
17511fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17512 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17513$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017514 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017515_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017516
17517# VPATH may cause trouble with some makes, so we remove $(srcdir),
17518# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17519# trailing colons and then remove the whole line if VPATH becomes empty
17520# (actually we leave an empty line to preserve line numbers).
17521if test "x$srcdir" = x.; then
17522 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17523s/:*\$(srcdir):*/:/
17524s/:*\${srcdir}:*/:/
17525s/:*@srcdir@:*/:/
17526s/^\([^=]*=[ ]*\):*/\1/
17527s/:*$//
17528s/^[^=]*=[ ]*$//
17529}'
17530fi
17531
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017532cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017533fi # test -n "$CONFIG_FILES"
17534
Theodore Ts'oe1052142006-10-21 21:46:47 -040017535
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017536eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17537shift
17538for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040017539do
17540 case $ac_tag in
17541 :[FHLC]) ac_mode=$ac_tag; continue;;
17542 esac
17543 case $ac_mode$ac_tag in
17544 :[FHL]*:*);;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017545 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17546$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017547 { (exit 1); exit 1; }; };;
17548 :[FH]-) ac_tag=-:-;;
17549 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17550 esac
17551 ac_save_IFS=$IFS
17552 IFS=:
17553 set x $ac_tag
17554 IFS=$ac_save_IFS
17555 shift
17556 ac_file=$1
17557 shift
17558
17559 case $ac_mode in
17560 :L) ac_source=$1;;
17561 :[FH])
17562 ac_file_inputs=
17563 for ac_f
17564 do
17565 case $ac_f in
17566 -) ac_f="$tmp/stdin";;
17567 *) # Look for the file first in the build tree, then in the source tree
17568 # (if the path is not absolute). The absolute path cannot be DOS-style,
17569 # because $ac_f cannot contain `:'.
17570 test -f "$ac_f" ||
17571 case $ac_f in
17572 [\\/$]*) false;;
17573 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17574 esac ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017575 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17576$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017577 { (exit 1); exit 1; }; };;
17578 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017579 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17580 ac_file_inputs="$ac_file_inputs '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017581 done
17582
17583 # Let's still pretend it is `configure' which instantiates (i.e., don't
17584 # use $as_me), people would be surprised to read:
17585 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017586 configure_input='Generated from '`
17587 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17588 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017589 if test x"$ac_file" != x-; then
17590 configure_input="$ac_file. $configure_input"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017591 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17592$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017593 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017594 # Neutralize special characters interpreted by sed in replacement strings.
17595 case $configure_input in #(
17596 *\&* | *\|* | *\\* )
17597 ac_sed_conf_input=`$as_echo "$configure_input" |
17598 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17599 *) ac_sed_conf_input=$configure_input;;
17600 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017601
17602 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017603 *:-:* | *:-) cat >"$tmp/stdin" \
17604 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17605$as_echo "$as_me: error: could not create $ac_file" >&2;}
17606 { (exit 1); exit 1; }; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017607 esac
17608 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017609 esac
17610
Theodore Ts'oe1052142006-10-21 21:46:47 -040017611 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017612$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17613 X"$ac_file" : 'X\(//\)[^/]' \| \
17614 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017615 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017616$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017617 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17618 s//\1/
17619 q
17620 }
17621 /^X\(\/\/\)[^/].*/{
17622 s//\1/
17623 q
17624 }
17625 /^X\(\/\/\)$/{
17626 s//\1/
17627 q
17628 }
17629 /^X\(\/\).*/{
17630 s//\1/
17631 q
17632 }
17633 s/.*/./; q'`
17634 { as_dir="$ac_dir"
17635 case $as_dir in #(
17636 -*) as_dir=./$as_dir;;
17637 esac
17638 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017639 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017640 while :; do
17641 case $as_dir in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017642 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Theodore Ts'oe1052142006-10-21 21:46:47 -040017643 *) as_qdir=$as_dir;;
17644 esac
17645 as_dirs="'$as_qdir' $as_dirs"
17646 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017647$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17648 X"$as_dir" : 'X\(//\)[^/]' \| \
17649 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017650 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017651$as_echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17653 s//\1/
17654 q
17655 }
17656 /^X\(\/\/\)[^/].*/{
17657 s//\1/
17658 q
17659 }
17660 /^X\(\/\/\)$/{
17661 s//\1/
17662 q
17663 }
17664 /^X\(\/\).*/{
17665 s//\1/
17666 q
17667 }
17668 s/.*/./; q'`
17669 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017670 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017671 test -z "$as_dirs" || eval "mkdir $as_dirs"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017672 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17673$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017674 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017675 ac_builddir=.
17676
Theodore Ts'oe1052142006-10-21 21:46:47 -040017677case "$ac_dir" in
17678.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17679*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017681 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017683 case $ac_top_builddir_sub in
17684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17686 esac ;;
17687esac
17688ac_abs_top_builddir=$ac_pwd
17689ac_abs_builddir=$ac_pwd$ac_dir_suffix
17690# for backward compatibility:
17691ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017692
17693case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017694 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017695 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017696 ac_top_srcdir=$ac_top_builddir_sub
17697 ac_abs_top_srcdir=$ac_pwd ;;
17698 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017699 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017700 ac_top_srcdir=$srcdir
17701 ac_abs_top_srcdir=$srcdir ;;
17702 *) # Relative name.
17703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17704 ac_top_srcdir=$ac_top_build_prefix$srcdir
17705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017706esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017707ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017709
Theodore Ts'oe1052142006-10-21 21:46:47 -040017710 case $ac_mode in
17711 :F)
17712 #
17713 # CONFIG_FILE
17714 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017715
17716 case $INSTALL in
17717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017719 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017720_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017721
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017722cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017723# If the template does not know about datarootdir, expand it.
17724# FIXME: This hack should be removed a few years after 2.60.
17725ac_datarootdir_hack=; ac_datarootdir_seen=
17726
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017727ac_sed_dataroot='
17728/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040017729 p
17730 q
17731}
17732/@datadir@/p
17733/@docdir@/p
17734/@infodir@/p
17735/@localedir@/p
17736/@mandir@/p
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017737'
17738case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017739*datarootdir*) ac_datarootdir_seen=yes;;
17740*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017741 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17742$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017743_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017745 ac_datarootdir_hack='
17746 s&@datadir@&$datadir&g
17747 s&@docdir@&$docdir&g
17748 s&@infodir@&$infodir&g
17749 s&@localedir@&$localedir&g
17750 s&@mandir@&$mandir&g
17751 s&\\\${datarootdir}&$datarootdir&g' ;;
17752esac
17753_ACEOF
17754
17755# Neutralize VPATH when `$srcdir' = `.'.
17756# Shell code in configure.ac might set extrasub.
17757# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17759ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017760$extrasub
17761_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017763:t
17764/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017765s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017766s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017767s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017768s&@srcdir@&$ac_srcdir&;t t
17769s&@abs_srcdir@&$ac_abs_srcdir&;t t
17770s&@top_srcdir@&$ac_top_srcdir&;t t
17771s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17772s&@builddir@&$ac_builddir&;t t
17773s&@abs_builddir@&$ac_abs_builddir&;t t
17774s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17775s&@INSTALL@&$ac_INSTALL&;t t
17776$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017777"
17778eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17779if $ac_cs_awk_getline; then
17780 $AWK -f "$tmp/subs.awk"
17781else
17782 $AWK -f "$tmp/subs.awk" | $SHELL
17783fi >$tmp/out \
17784 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17785$as_echo "$as_me: error: could not create $ac_file" >&2;}
17786 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017787
Theodore Ts'oe1052142006-10-21 21:46:47 -040017788test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17789 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17790 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017791 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017792which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017793$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017794which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017795
Theodore Ts'oe1052142006-10-21 21:46:47 -040017796 rm -f "$tmp/stdin"
17797 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017798 -) cat "$tmp/out" && rm -f "$tmp/out";;
17799 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17800 esac \
17801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17802$as_echo "$as_me: error: could not create $ac_file" >&2;}
17803 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017804 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017805
17806
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017807 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17808$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017809 ;;
17810 esac
17811
17812
17813 case $ac_file$ac_mode in
17814 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017815 for ac_file in $CONFIG_FILES; do
17816 # Support "outfile[:infile[:infile...]]"
17817 case "$ac_file" in
17818 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000017819 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017820 # PO directories have a Makefile.in generated from Makefile.in.in.
17821 case "$ac_file" in */Makefile.in)
17822 # Adjust a relative srcdir.
17823 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17824 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17825 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17826 # In autoconf-2.13 it is called $ac_given_srcdir.
17827 # In autoconf-2.50 it is called $srcdir.
17828 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17829 case "$ac_given_srcdir" in
17830 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17831 /*) top_srcdir="$ac_given_srcdir" ;;
17832 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17833 esac
17834 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17835 rm -f "$ac_dir/POTFILES"
17836 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17837 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 -050017838 POMAKEFILEDEPS="POTFILES.in"
17839 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017840 # on $ac_dir but don't depend on user-specified configuration
17841 # parameters.
17842 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17843 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017844 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017845 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17846 fi
17847 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17848 # Hide the ALL_LINGUAS assigment from automake.
17849 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017850 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17851 else
17852 # The set of available languages was given in configure.in.
17853 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017854 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017855 # Compute POFILES
17856 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17857 # Compute UPDATEPOFILES
17858 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17859 # Compute DUMMYPOFILES
17860 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17861 # Compute GMOFILES
17862 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017863 case "$ac_given_srcdir" in
17864 .) srcdirpre= ;;
17865 *) srcdirpre='$(srcdir)/' ;;
17866 esac
17867 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017868 UPDATEPOFILES=
17869 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017870 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017871 for lang in $ALL_LINGUAS; do
17872 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017873 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17874 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017875 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017876 done
17877 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17878 # environment variable.
17879 INST_LINGUAS=
17880 if test -n "$ALL_LINGUAS"; then
17881 for presentlang in $ALL_LINGUAS; do
17882 useit=no
17883 if test "%UNSET%" != "$LINGUAS"; then
17884 desiredlanguages="$LINGUAS"
17885 else
17886 desiredlanguages="$ALL_LINGUAS"
17887 fi
17888 for desiredlang in $desiredlanguages; do
17889 # Use the presentlang catalog if desiredlang is
17890 # a. equal to presentlang, or
17891 # b. a variant of presentlang (because in this case,
17892 # presentlang can be used as a fallback for messages
17893 # which are not translated in the desiredlang catalog).
17894 case "$desiredlang" in
17895 "$presentlang"*) useit=yes;;
17896 esac
17897 done
17898 if test $useit = yes; then
17899 INST_LINGUAS="$INST_LINGUAS $presentlang"
17900 fi
17901 done
17902 fi
17903 CATALOGS=
17904 if test -n "$INST_LINGUAS"; then
17905 for lang in $INST_LINGUAS; do
17906 CATALOGS="$CATALOGS $lang.gmo"
17907 done
17908 fi
17909 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017910 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 -040017911 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17912 if test -f "$f"; then
17913 case "$f" in
17914 *.orig | *.bak | *~) ;;
17915 *) cat "$f" >> "$ac_dir/Makefile" ;;
17916 esac
17917 fi
17918 done
17919 fi
17920 ;;
17921 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017922 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017923
Theodore Ts'oe1052142006-10-21 21:46:47 -040017924 esac
17925done # for ac_tag
17926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017927
17928{ (exit 0); exit 0; }
17929_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017930chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017931ac_clean_files=$ac_clean_files_save
17932
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017933test $ac_write_fail = 0 ||
17934 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17935$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17936 { (exit 1); exit 1; }; }
17937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017938
17939# configure is writing to config.log, and then calls config.status.
17940# config.status does its own redirection, appending to config.log.
17941# Unfortunately, on DOS this fails, as config.log is still kept open
17942# by configure, so config.status won't be able to write to it; its
17943# output is simply discarded. So we exec the FD to /dev/null,
17944# effectively closing config.log, so it can be properly (re)opened and
17945# appended to by config.status. When coming back to configure, we
17946# need to make the FD available again.
17947if test "$no_create" != yes; then
17948 ac_cs_success=:
17949 ac_config_status_args=
17950 test "$silent" = yes &&
17951 ac_config_status_args="$ac_config_status_args --quiet"
17952 exec 5>/dev/null
17953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17954 exec 5>>config.log
17955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17956 # would make configure fail if this is the last instruction.
17957 $ac_cs_success || { (exit 1); exit 1; }
17958fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017959if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17960 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17961$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17962fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017963
Theodore Ts'oee683a12005-02-05 15:53:56 -050017964if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi