blob: 9460d3b65d786602b0e49147b67e45421aa8d2dc [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
677BINARY_TYPE
678POSUB
679LTLIBINTL
680LIBINTL
681INTLLIBS
682INTL_LIBTOOL_SUFFIX_PREFIX
683INTLOBJS
684GENCAT
685INSTOBJEXT
686DATADIRNAME
687CATOBJEXT
688USE_INCLUDED_LIBINTL
689BUILD_INCLUDED_LIBINTL
690INTLBISON
691LTLIBICONV
692LIBICONV
693HAVE_WPRINTF
694HAVE_SNPRINTF
695HAVE_ASPRINTF
696HAVE_POSIX_PRINTF
697GLIBC21
698ALLOCA
699RANLIB
700MSGMERGE
701XGETTEXT
702GMSGFMT
703MSGFMT
704USE_NLS
705MKINSTALLDIRS
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709SET_MAKE
710VERSION
711PACKAGE
712GETTEXT_PACKAGE
713UUIDD_CMT
714E2INITRD_MAN
715E2INITRD_PROG
716FSCK_MAN
717FSCK_PROG
718RESIZER_CMT
719IMAGER_CMT
720DEBUGFS_CMT
721BLKID_CMT
722DEPPROFILED_LIBBLKID
723PROFILED_LIBBLKID
724DEPSTATIC_LIBBLKID
725STATIC_LIBBLKID
726DEPLIBBLKID
727LIBBLKID
728UUID_CMT
729DEPPROFILED_LIBUUID
730PROFILED_LIBUUID
731DEPSTATIC_LIBUUID
732STATIC_LIBUUID
733DEPLIBUUID
734LIBUUID
735PKG_CONFIG
736TEST_IO_CMT
737PRIVATE_LIBS_CMT
738LDFLAG_DYNAMIC
739PROFILED_LIB_EXT
740STATIC_LIB_EXT
741LIB_EXT
742CHECKER_CMT
743PROFILE_CMT
744BSDLIB_CMT
745ELF_CMT
746HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400747Q
748E
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100749MAINTAINER_CMT
750LINUX_INCLUDE
751EGREP
752GREP
753LD
754CPP
755OBJEXT
756EXEEXT
757ac_ct_CC
758CPPFLAGS
759LDFLAGS
760CFLAGS
761CC
762host_os
763host_vendor
764host_cpu
765host
766build_os
767build_vendor
768build_cpu
769build
770E2FSPROGS_PKGVER
771E2FSPROGS_VERSION
772E2FSPROGS_DAY
773E2FSPROGS_MONTH
774E2FSPROGS_YEAR
775target_alias
776host_alias
777build_alias
778LIBS
779ECHO_T
780ECHO_N
781ECHO_C
782DEFS
783mandir
784localedir
785libdir
786psdir
787pdfdir
788dvidir
789htmldir
790infodir
791docdir
792oldincludedir
793includedir
794localstatedir
795sharedstatedir
796sysconfdir
797datadir
798datarootdir
799libexecdir
800sbindir
801bindir
802program_transform_name
803prefix
804exec_prefix
805PACKAGE_BUGREPORT
806PACKAGE_STRING
807PACKAGE_VERSION
808PACKAGE_TARNAME
809PACKAGE_NAME
810PATH_SEPARATOR
811SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400812ac_subst_files='MCONFIG
813MAKEFILE_ELF
814MAKEFILE_BSDLIB
815MAKEFILE_PROFILE
816MAKEFILE_CHECKER
817MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400818ASM_TYPES_HEADER
819PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100820ac_user_opts='
821enable_option_checking
822with_diet_libc
823with_cc
824with_linker
825with_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'ob0cacab2004-11-30 19:00:19 -05001515 --with-cc=COMPILER select compiler to use
1516 --with-linker=LINKER select linker to use
1517 --with-ccopts=CCOPTS select compiler command line options
1518 --with-ldopts=LDOPTS select linker command line options
1519 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1520 --with-gnu-ld assume the C compiler uses GNU ld default=no
1521 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1522 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1523 --with-included-gettext use the GNU gettext library included here
1524 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1525 --without-libintl-prefix don't search for libintl in includedir and libdir
1526
1527Some influential environment variables:
1528 CC C compiler command
1529 CFLAGS C compiler flags
1530 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1531 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001532 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001533 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1534 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001536 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537
1538Use these variables to override the choices made by `configure' or to help
1539it to find libraries and programs with nonstandard names/locations.
1540
1541_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001542ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543fi
1544
1545if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 ac_builddir=.
1552
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553case "$ac_dir" in
1554.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1555*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001557 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563esac
1564ac_abs_top_builddir=$ac_pwd
1565ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566# for backward compatibility:
1567ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568
1569case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001570 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001583ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597 done
1598fi
1599
Theodore Ts'oe1052142006-10-21 21:46:47 -04001600test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601if $ac_init_version; then
1602 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603configure
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001604generated by GNU Autoconf 2.63
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016072002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608This configure script is free software; the Free Software Foundation
1609gives unlimited permission to copy, distribute and modify it.
1610_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001611 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001613cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614This file contains any messages produced by compilers while
1615running configure, to aid debugging if configure makes a mistake.
1616
1617It was created by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001618generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001619
1620 $ $0 $@
1621
1622_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001624{
1625cat <<_ASUNAME
1626## --------- ##
1627## Platform. ##
1628## --------- ##
1629
1630hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1631uname -m = `(uname -m) 2>/dev/null || echo unknown`
1632uname -r = `(uname -r) 2>/dev/null || echo unknown`
1633uname -s = `(uname -s) 2>/dev/null || echo unknown`
1634uname -v = `(uname -v) 2>/dev/null || echo unknown`
1635
1636/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1637/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1638
1639/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1640/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1641/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001642/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001643/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1644/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1645/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646
1647_ASUNAME
1648
1649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650for as_dir in $PATH
1651do
1652 IFS=$as_save_IFS
1653 test -z "$as_dir" && as_dir=.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001654 $as_echo "PATH: $as_dir"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657
1658} >&5
1659
1660cat >&5 <<_ACEOF
1661
1662
1663## ----------- ##
1664## Core tests. ##
1665## ----------- ##
1666
1667_ACEOF
1668
1669
1670# Keep a trace of the command line.
1671# Strip out --no-create and --no-recursion so they do not pile up.
1672# Strip out --silent because we don't want to record it for future runs.
1673# Also quote any args containing shell meta-characters.
1674# Make two passes to allow for proper duplicate-argument suppression.
1675ac_configure_args=
1676ac_configure_args0=
1677ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001678ac_must_keep_next=false
1679for ac_pass in 1 2
1680do
1681 for ac_arg
1682 do
1683 case $ac_arg in
1684 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1686 | -silent | --silent | --silen | --sile | --sil)
1687 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001688 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001689 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001690 esac
1691 case $ac_pass in
1692 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1693 2)
1694 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1695 if test $ac_must_keep_next = true; then
1696 ac_must_keep_next=false # Got value, back to normal.
1697 else
1698 case $ac_arg in
1699 *=* | --config-cache | -C | -disable-* | --disable-* \
1700 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1701 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1702 | -with-* | --with-* | -without-* | --without-* | --x)
1703 case "$ac_configure_args0 " in
1704 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1705 esac
1706 ;;
1707 -* ) ac_must_keep_next=true ;;
1708 esac
1709 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001710 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001711 ;;
1712 esac
1713 done
1714done
1715$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1716$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1717
1718# When interrupted or exit'd, cleanup temporary files, and complete
1719# config.log. We remove comments because anyway the quotes in there
1720# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001721# WARNING: Use '\'' to represent an apostrophe within the trap.
1722# 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 -05001723trap 'exit_status=$?
1724 # Save into config.log some information that might help in debugging.
1725 {
1726 echo
1727
1728 cat <<\_ASBOX
1729## ---------------- ##
1730## Cache variables. ##
1731## ---------------- ##
1732_ASBOX
1733 echo
1734 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001735(
1736 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1737 eval ac_val=\$$ac_var
1738 case $ac_val in #(
1739 *${as_nl}*)
1740 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001741 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1742$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001743 esac
1744 case $ac_var in #(
1745 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001746 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -04001747 *) $as_unset $ac_var ;;
1748 esac ;;
1749 esac
1750 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001751 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001752 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1753 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001754 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001755 "s/'\''/'\''\\\\'\'''\''/g;
1756 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1757 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001759 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001760 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001761 esac |
1762 sort
1763)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001764 echo
1765
1766 cat <<\_ASBOX
1767## ----------------- ##
1768## Output variables. ##
1769## ----------------- ##
1770_ASBOX
1771 echo
1772 for ac_var in $ac_subst_vars
1773 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001774 eval ac_val=\$$ac_var
1775 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001776 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001777 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001778 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001779 done | sort
1780 echo
1781
1782 if test -n "$ac_subst_files"; then
1783 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001784## ------------------- ##
1785## File substitutions. ##
1786## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001787_ASBOX
1788 echo
1789 for ac_var in $ac_subst_files
1790 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001791 eval ac_val=\$$ac_var
1792 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001793 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001794 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001795 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001796 done | sort
1797 echo
1798 fi
1799
1800 if test -s confdefs.h; then
1801 cat <<\_ASBOX
1802## ----------- ##
1803## confdefs.h. ##
1804## ----------- ##
1805_ASBOX
1806 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001807 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001808 echo
1809 fi
1810 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001811 $as_echo "$as_me: caught signal $ac_signal"
1812 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001813 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001814 rm -f core *.core core.conftest.* &&
1815 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001816 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001817' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001818for ac_signal in 1 2 13 15; do
1819 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1820done
1821ac_signal=0
1822
1823# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001824rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001825
1826# Predefined preprocessor variables.
1827
1828cat >>confdefs.h <<_ACEOF
1829#define PACKAGE_NAME "$PACKAGE_NAME"
1830_ACEOF
1831
1832
1833cat >>confdefs.h <<_ACEOF
1834#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1835_ACEOF
1836
1837
1838cat >>confdefs.h <<_ACEOF
1839#define PACKAGE_VERSION "$PACKAGE_VERSION"
1840_ACEOF
1841
1842
1843cat >>confdefs.h <<_ACEOF
1844#define PACKAGE_STRING "$PACKAGE_STRING"
1845_ACEOF
1846
1847
1848cat >>confdefs.h <<_ACEOF
1849#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1850_ACEOF
1851
1852
1853# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001854# Prefer an explicitly selected file to automatically selected ones.
1855ac_site_file1=NONE
1856ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001857if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001858 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001859elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001860 ac_site_file1=$prefix/share/config.site
1861 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04001862else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001863 ac_site_file1=$ac_default_prefix/share/config.site
1864 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001865fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001866for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001867do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001868 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001869 if test -r "$ac_site_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001870 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1871$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001872 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001873 . "$ac_site_file"
1874 fi
1875done
1876
1877if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001878 # Some versions of bash will fail to source /dev/null (special
1879 # files actually), so we avoid doing that.
1880 if test -f "$cache_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001881 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1882$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001883 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001884 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1885 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001886 esac
1887 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001888else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001889 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1890$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001891 >$cache_file
1892fi
1893
1894# Check that the precious variables saved in the cache have kept the same
1895# value.
1896ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001897for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001898 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1899 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001900 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1901 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001902 case $ac_old_set,$ac_new_set in
1903 set,)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1905$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 -05001906 ac_cache_corrupted=: ;;
1907 ,set)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001908 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1909$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001910 ac_cache_corrupted=: ;;
1911 ,);;
1912 *)
1913 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001914 # differences in whitespace do not lead to failure.
1915 ac_old_val_w=`echo x $ac_old_val`
1916 ac_new_val_w=`echo x $ac_new_val`
1917 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1918 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1919$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1920 ac_cache_corrupted=:
1921 else
1922 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1923$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1924 eval $ac_var=\$ac_old_val
1925 fi
1926 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1927$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1928 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1929$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001930 fi;;
1931 esac
1932 # Pass precious variables to config.status.
1933 if test "$ac_new_set" = set; then
1934 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001935 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001936 *) ac_arg=$ac_var=$ac_new_val ;;
1937 esac
1938 case " $ac_configure_args " in
1939 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1940 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1941 esac
1942 fi
1943done
1944if $ac_cache_corrupted; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001945 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1947 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1948$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1949 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1950$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 -05001951 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001952fi
1953
Theodore Ts'oe1052142006-10-21 21:46:47 -04001954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001970ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001971ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1974ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001975
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001976
1977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001978ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979for ac_dir in config "$srcdir"/config; do
1980 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install-sh -c"
1983 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/install.sh -c"
1987 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001988 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001989 ac_aux_dir=$ac_dir
1990 ac_install_sh="$ac_aux_dir/shtool install -c"
1991 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001992 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001993done
1994if test -z "$ac_aux_dir"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001995 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1996$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 -05001997 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001999
2000# These three variables are undocumented and unsupported,
2001# and are intended to be withdrawn in a future Autoconf release.
2002# They can cause serious problems if a builder's source tree is in a directory
2003# whose full name contains unusual characters.
2004ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2005ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2006ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2007
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002008
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002009MCONFIG=./MCONFIG
2010
Theodore Ts'o74becf31997-04-26 14:37:06 +00002011BINARY_TYPE=bin
2012E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2013 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2014DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2015 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002016E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002017MONTH=`echo $DATE | awk -F- '{print $2}'`
2018YEAR=`echo $DATE | awk -F- '{print $3}'`
2019
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002020if expr $YEAR ">" 1900 > /dev/null ; then
2021 E2FSPROGS_YEAR=$YEAR
2022elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002023 E2FSPROGS_YEAR=19$YEAR
2024else
2025 E2FSPROGS_YEAR=20$YEAR
2026fi
2027
2028case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002029Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2030Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2031Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2032Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2033May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2034Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2035Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2036Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2037Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2038Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2039Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2040Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002041*) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2042$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002043esac
2044
Andreas Dilger927566a2006-11-12 19:41:25 -05002045base_ver=`echo $E2FSPROGS_VERSION | \
2046 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002047
2048date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2049
2050case $E2FSPROGS_VERSION in
2051*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002052 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002053 ;;
2054*)
2055 E2FSPROGS_PKGVER="$base_ver"
2056 ;;
2057esac
2058
2059unset DATE MONTH YEAR base_ver pre_vers date_spec
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002060{ $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2061$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2062{ $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2063$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002064
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002065
2066
2067
Andreas Dilger927566a2006-11-12 19:41:25 -05002068
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002069# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002070$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002071 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2072$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002073 { (exit 1); exit 1; }; }
2074
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002075{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2076$as_echo_n "checking build system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002077if test "${ac_cv_build+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002078 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002079else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002080 ac_build_alias=$build_alias
2081test "x$ac_build_alias" = x &&
2082 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2083test "x$ac_build_alias" = x &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002084 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2085$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002087ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002088 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2089$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002090 { (exit 1); exit 1; }; }
2091
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002092fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002093{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2094$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002095case $ac_cv_build in
2096*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002097*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2098$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002099 { (exit 1); exit 1; }; };;
2100esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002101build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002102ac_save_IFS=$IFS; IFS='-'
2103set x $ac_cv_build
2104shift
2105build_cpu=$1
2106build_vendor=$2
2107shift; shift
2108# Remember, the first character of IFS is used to create $*,
2109# except with old shells:
2110build_os=$*
2111IFS=$ac_save_IFS
2112case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002113
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002114
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002115{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2116$as_echo_n "checking host system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002117if test "${ac_cv_host+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002118 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002119else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002120 if test "x$host_alias" = x; then
2121 ac_cv_host=$ac_cv_build
2122else
2123 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002124 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2125$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002126 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002127fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002129fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002130{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2131$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132case $ac_cv_host in
2133*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002134*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2135$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002136 { (exit 1); exit 1; }; };;
2137esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002138host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002139ac_save_IFS=$IFS; IFS='-'
2140set x $ac_cv_host
2141shift
2142host_cpu=$1
2143host_vendor=$2
2144shift; shift
2145# Remember, the first character of IFS is used to create $*,
2146# except with old shells:
2147host_os=$*
2148IFS=$ac_save_IFS
2149case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002150
2151
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002152WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002153
Theodore Ts'oe1052142006-10-21 21:46:47 -04002154# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002155if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002157WITH_DIET_LIBC=yes
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002158{ $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2159$as_echo "CC=$CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002160fi
2161
2162# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002163if test "${with_cc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002164 withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2165$as_echo "CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002166CC=$withval
2167else
2168 if test -z "$CC" ; then CC=cc; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002169{ $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2170$as_echo "CC defaults to $CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002171fi
2172export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002174ac_ext=c
2175ac_cpp='$CPP $CPPFLAGS'
2176ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2177ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2178ac_compiler_gnu=$ac_cv_c_compiler_gnu
2179if test -n "$ac_tool_prefix"; then
2180 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2181set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2183$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002184if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002185 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002186else
2187 if test -n "$CC"; then
2188 ac_cv_prog_CC="$CC" # Let the user override the test.
2189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191for as_dir in $PATH
2192do
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002196 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 -05002197 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002198 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002199 break 2
2200 fi
2201done
2202done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002203IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002204
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002205fi
2206fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002207CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002208if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002209 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2210$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002211else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002212 { $as_echo "$as_me:$LINENO: result: no" >&5
2213$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002214fi
2215
Theodore Ts'oe1052142006-10-21 21:46:47 -04002216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002217fi
2218if test -z "$ac_cv_prog_CC"; then
2219 ac_ct_CC=$CC
2220 # Extract the first word of "gcc", so it can be a program name with args.
2221set dummy gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002222{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2223$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002225 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226else
2227 if test -n "$ac_ct_CC"; then
2228 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2229else
2230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2231for as_dir in $PATH
2232do
2233 IFS=$as_save_IFS
2234 test -z "$as_dir" && as_dir=.
2235 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002236 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 -05002237 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002239 break 2
2240 fi
2241done
2242done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002243IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002244
2245fi
2246fi
2247ac_ct_CC=$ac_cv_prog_ac_ct_CC
2248if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002249 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2250$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002251else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002252 { $as_echo "$as_me:$LINENO: result: no" >&5
2253$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002254fi
2255
Theodore Ts'oe1052142006-10-21 21:46:47 -04002256 if test "x$ac_ct_CC" = x; then
2257 CC=""
2258 else
2259 case $cross_compiling:$ac_tool_warned in
2260yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002261{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263ac_tool_warned=yes ;;
2264esac
2265 CC=$ac_ct_CC
2266 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002267else
2268 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002269fi
2270
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002271if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002272 if test -n "$ac_tool_prefix"; then
2273 # 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 -05002274set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2276$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002277if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002278 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002279else
2280 if test -n "$CC"; then
2281 ac_cv_prog_CC="$CC" # Let the user override the test.
2282else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284for as_dir in $PATH
2285do
2286 IFS=$as_save_IFS
2287 test -z "$as_dir" && as_dir=.
2288 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002289 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 -05002290 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292 break 2
2293 fi
2294done
2295done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002296IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002297
2298fi
2299fi
2300CC=$ac_cv_prog_CC
2301if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002302 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2303$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002304else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002305 { $as_echo "$as_me:$LINENO: result: no" >&5
2306$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307fi
2308
Theodore Ts'oe1052142006-10-21 21:46:47 -04002309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002310 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002311fi
2312if test -z "$CC"; then
2313 # Extract the first word of "cc", so it can be a program name with args.
2314set dummy cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002315{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2316$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002317if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002318 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002319else
2320 if test -n "$CC"; then
2321 ac_cv_prog_CC="$CC" # Let the user override the test.
2322else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002323 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325for as_dir in $PATH
2326do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002330 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 -05002331 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2332 ac_prog_rejected=yes
2333 continue
2334 fi
2335 ac_cv_prog_CC="cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002336 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002337 break 2
2338 fi
2339done
2340done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002341IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002342
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002343if test $ac_prog_rejected = yes; then
2344 # We found a bogon in the path, so make sure we never use it.
2345 set dummy $ac_cv_prog_CC
2346 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002347 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002348 # We chose a different compiler from the bogus one.
2349 # However, it has the same basename, so the bogon will be chosen
2350 # first if we set CC to just the basename; use the full file name.
2351 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002353 fi
2354fi
2355fi
2356fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002358if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002359 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2360$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002361else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002362 { $as_echo "$as_me:$LINENO: result: no" >&5
2363$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002364fi
2365
Theodore Ts'oe1052142006-10-21 21:46:47 -04002366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367fi
2368if test -z "$CC"; then
2369 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002370 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002371 do
2372 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2373set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2375$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002376if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002377 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002378else
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2381else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383for as_dir in $PATH
2384do
2385 IFS=$as_save_IFS
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002388 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 -05002389 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391 break 2
2392 fi
2393done
2394done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002397fi
2398fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002399CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002400if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002401 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2402$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002403else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002404 { $as_echo "$as_me:$LINENO: result: no" >&5
2405$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002406fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002407
Theodore Ts'oe1052142006-10-21 21:46:47 -04002408
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409 test -n "$CC" && break
2410 done
2411fi
2412if test -z "$CC"; then
2413 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002414 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002415do
2416 # Extract the first word of "$ac_prog", so it can be a program name with args.
2417set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2419$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002420if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422else
2423 if test -n "$ac_ct_CC"; then
2424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2425else
2426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427for as_dir in $PATH
2428do
2429 IFS=$as_save_IFS
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002432 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 -05002433 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002435 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002436 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437done
2438done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002439IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440
2441fi
2442fi
2443ac_ct_CC=$ac_cv_prog_ac_ct_CC
2444if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002445 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2446$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002448 { $as_echo "$as_me:$LINENO: result: no" >&5
2449$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002450fi
2451
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453 test -n "$ac_ct_CC" && break
2454done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002455
Theodore Ts'oe1052142006-10-21 21:46:47 -04002456 if test "x$ac_ct_CC" = x; then
2457 CC=""
2458 else
2459 case $cross_compiling:$ac_tool_warned in
2460yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002461{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002463ac_tool_warned=yes ;;
2464esac
2465 CC=$ac_ct_CC
2466 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002467fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002470
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002471
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002472test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2474{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002476$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002478 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479
2480# Provide some information about the compiler.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002481$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2482set X $ac_compile
2483ac_compiler=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002484{ (ac_try="$ac_compiler --version >&5"
2485case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2490$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495{ (ac_try="$ac_compiler -v >&5"
2496case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2501$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002506{ (ac_try="$ac_compiler -V >&5"
2507case "(($ac_try" in
2508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2509 *) ac_try_echo=$ac_try;;
2510esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002511eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2512$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 (exit $ac_status); }
2517
2518cat >conftest.$ac_ext <<_ACEOF
2519/* confdefs.h. */
2520_ACEOF
2521cat confdefs.h >>conftest.$ac_ext
2522cat >>conftest.$ac_ext <<_ACEOF
2523/* end confdefs.h. */
2524
2525int
2526main ()
2527{
2528
2529 ;
2530 return 0;
2531}
2532_ACEOF
2533ac_clean_files_save=$ac_clean_files
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002534ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535# Try to create an executable without -o first, disregard a.out.
2536# It will help us diagnose broken compilers, and finding out an intuition
2537# of exeext.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002538{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2539$as_echo_n "checking for C compiler default output file name... " >&6; }
2540ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2541
2542# The possible output files:
2543ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2544
Theodore Ts'oe1052142006-10-21 21:46:47 -04002545ac_rmfiles=
2546for ac_file in $ac_files
2547do
2548 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002549 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2551 esac
2552done
2553rm -f $ac_rmfiles
2554
2555if { (ac_try="$ac_link_default"
2556case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002560eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2561$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002566 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2567# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2568# in a Makefile. We should not override ac_cv_exeext if it was cached,
2569# so that the user can short-circuit this test for compilers unknown to
2570# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002571for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572do
2573 test -f "$ac_file" || continue
2574 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002576 ;;
2577 [ab].out )
2578 # We found the default executable, but exeext='' is most
2579 # certainly right.
2580 break;;
2581 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002582 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2583 then :; else
2584 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2585 fi
2586 # We set ac_cv_exeext here because the later test for it is not
2587 # safe: cross compilers may not add the suffix if given an `-o'
2588 # argument, so we may need to know it at that point already.
2589 # Even if this section looks crufty: it has the advantage of
2590 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 break;;
2592 * )
2593 break;;
2594 esac
2595done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002596test "$ac_cv_exeext" = no && ac_cv_exeext=
2597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002599 ac_file=''
2600fi
2601
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002602{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2603$as_echo "$ac_file" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002604if test -z "$ac_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002605 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002606sed 's/^/| /' conftest.$ac_ext >&5
2607
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612$as_echo "$as_me: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614 { (exit 77); exit 77; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615fi
2616
2617ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002618
Theodore Ts'oe1052142006-10-21 21:46:47 -04002619# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002621{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2622$as_echo_n "checking whether the C compiler works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2624# If not cross compiling, check that we can run a simple program.
2625if test "$cross_compiling" != yes; then
2626 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002627 { (case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2632$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002633 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 (exit $ac_status); }; }; then
2637 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002638 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002639 if test "$cross_compiling" = maybe; then
2640 cross_compiling=yes
2641 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002642 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002645If you meant to cross compile, use \`--host'.
2646See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002647$as_echo "$as_me: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648If you meant to cross compile, use \`--host'.
2649See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002650 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002651 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002652 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002653fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002654{ $as_echo "$as_me:$LINENO: result: yes" >&5
2655$as_echo "yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002656
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002657rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002659# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002661{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2662$as_echo_n "checking whether we are cross compiling... " >&6; }
2663{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2664$as_echo "$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002665
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002666{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2667$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002668if { (ac_try="$ac_link"
2669case "(($ac_try" in
2670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2671 *) ac_try_echo=$ac_try;;
2672esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2674$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002675 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002676 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678 (exit $ac_status); }; then
2679 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2680# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2681# work properly (i.e., refer to `conftest.exe'), while it won't with
2682# `rm'.
2683for ac_file in conftest.exe conftest conftest.*; do
2684 test -f "$ac_file" || continue
2685 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002687 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002688 break;;
2689 * ) break;;
2690 esac
2691done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002692else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002693 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2694$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2695{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002696See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002697$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002698See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002699 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002700fi
2701
2702rm -f conftest$ac_cv_exeext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002703{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2704$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002705
2706rm -f conftest.$ac_ext
2707EXEEXT=$ac_cv_exeext
2708ac_exeext=$EXEEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2710$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002711if test "${ac_cv_objext+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002712 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713else
2714 cat >conftest.$ac_ext <<_ACEOF
2715/* confdefs.h. */
2716_ACEOF
2717cat confdefs.h >>conftest.$ac_ext
2718cat >>conftest.$ac_ext <<_ACEOF
2719/* end confdefs.h. */
2720
2721int
2722main ()
2723{
2724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002730if { (ac_try="$ac_compile"
2731case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2734esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2736$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002737 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002738 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002741 for ac_file in conftest.o conftest.obj conftest.*; do
2742 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002743 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002744 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002745 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2746 break;;
2747 esac
2748done
2749else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002750 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002751sed 's/^/| /' conftest.$ac_ext >&5
2752
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002753{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002756See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002757$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002758See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002759 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002760fi
2761
2762rm -f conftest.$ac_cv_objext conftest.$ac_ext
2763fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002764{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2765$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002766OBJEXT=$ac_cv_objext
2767ac_objext=$OBJEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002768{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2769$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002770if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002771 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772else
2773 cat >conftest.$ac_ext <<_ACEOF
2774/* confdefs.h. */
2775_ACEOF
2776cat confdefs.h >>conftest.$ac_ext
2777cat >>conftest.$ac_ext <<_ACEOF
2778/* end confdefs.h. */
2779
2780int
2781main ()
2782{
2783#ifndef __GNUC__
2784 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002785#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002787 ;
2788 return 0;
2789}
2790_ACEOF
2791rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002792if { (ac_try="$ac_compile"
2793case "(($ac_try" in
2794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2795 *) ac_try_echo=$ac_try;;
2796esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2798$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002800 ac_status=$?
2801 grep -v '^ *+' conftest.er1 >conftest.err
2802 rm -f conftest.er1
2803 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002805 (exit $ac_status); } && {
2806 test -z "$ac_c_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002809 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002810else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002811 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812sed 's/^/| /' conftest.$ac_ext >&5
2813
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002816
2817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002818ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002819
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002820fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2822$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2823if test $ac_compiler_gnu = yes; then
2824 GCC=yes
2825else
2826 GCC=
2827fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828ac_test_CFLAGS=${CFLAGS+set}
2829ac_save_CFLAGS=$CFLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002830{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2831$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002832if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002833 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002834else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835 ac_save_c_werror_flag=$ac_c_werror_flag
2836 ac_c_werror_flag=yes
2837 ac_cv_prog_cc_g=no
2838 CFLAGS="-g"
2839 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840/* confdefs.h. */
2841_ACEOF
2842cat confdefs.h >>conftest.$ac_ext
2843cat >>conftest.$ac_ext <<_ACEOF
2844/* end confdefs.h. */
2845
2846int
2847main ()
2848{
2849
2850 ;
2851 return 0;
2852}
2853_ACEOF
2854rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002855if { (ac_try="$ac_compile"
2856case "(($ac_try" in
2857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858 *) ac_try_echo=$ac_try;;
2859esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002862 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002863 ac_status=$?
2864 grep -v '^ *+' conftest.er1 >conftest.err
2865 rm -f conftest.er1
2866 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002868 (exit $ac_status); } && {
2869 test -z "$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002872 ac_cv_prog_cc_g=yes
2873else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002876
Theodore Ts'oe1052142006-10-21 21:46:47 -04002877 CFLAGS=""
2878 cat >conftest.$ac_ext <<_ACEOF
2879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
2884
2885int
2886main ()
2887{
2888
2889 ;
2890 return 0;
2891}
2892_ACEOF
2893rm -f conftest.$ac_objext
2894if { (ac_try="$ac_compile"
2895case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2900$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002901 (eval "$ac_compile") 2>conftest.er1
2902 ac_status=$?
2903 grep -v '^ *+' conftest.er1 >conftest.err
2904 rm -f conftest.er1
2905 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002907 (exit $ac_status); } && {
2908 test -z "$ac_c_werror_flag" ||
2909 test ! -s conftest.err
2910 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911 :
2912else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002913 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002914sed 's/^/| /' conftest.$ac_ext >&5
2915
2916 ac_c_werror_flag=$ac_save_c_werror_flag
2917 CFLAGS="-g"
2918 cat >conftest.$ac_ext <<_ACEOF
2919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
2924
2925int
2926main ()
2927{
2928
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (ac_try="$ac_compile"
2935case "(($ac_try" in
2936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2937 *) ac_try_echo=$ac_try;;
2938esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2940$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002941 (eval "$ac_compile") 2>conftest.er1
2942 ac_status=$?
2943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002947 (exit $ac_status); } && {
2948 test -z "$ac_c_werror_flag" ||
2949 test ! -s conftest.err
2950 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002951 ac_cv_prog_cc_g=yes
2952else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002953 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002954sed 's/^/| /' conftest.$ac_ext >&5
2955
2956
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002958
2959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002961
2962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963fi
2964
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966 ac_c_werror_flag=$ac_save_c_werror_flag
2967fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002968{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2969$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002970if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002971 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002972elif test $ac_cv_prog_cc_g = yes; then
2973 if test "$GCC" = yes; then
2974 CFLAGS="-g -O2"
2975 else
2976 CFLAGS="-g"
2977 fi
2978else
2979 if test "$GCC" = yes; then
2980 CFLAGS="-O2"
2981 else
2982 CFLAGS=
2983 fi
2984fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002985{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2986$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002987if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002988 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002989else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002990 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991ac_save_CC=$CC
2992cat >conftest.$ac_ext <<_ACEOF
2993/* confdefs.h. */
2994_ACEOF
2995cat confdefs.h >>conftest.$ac_ext
2996cat >>conftest.$ac_ext <<_ACEOF
2997/* end confdefs.h. */
2998#include <stdarg.h>
2999#include <stdio.h>
3000#include <sys/types.h>
3001#include <sys/stat.h>
3002/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3003struct buf { int x; };
3004FILE * (*rcsopen) (struct buf *, struct stat *, int);
3005static char *e (p, i)
3006 char **p;
3007 int i;
3008{
3009 return p[i];
3010}
3011static char *f (char * (*g) (char **, int), char **p, ...)
3012{
3013 char *s;
3014 va_list v;
3015 va_start (v,p);
3016 s = g (p, va_arg (v,int));
3017 va_end (v);
3018 return s;
3019}
3020
3021/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3022 function prototypes and stuff, but not '\xHH' hex character constants.
3023 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3026 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003027 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3029
Theodore Ts'oe1052142006-10-21 21:46:47 -04003030/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3031 inside strings and character constants. */
3032#define FOO(x) 'x'
3033int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035int test (int i, double x);
3036struct s1 {int (*f) (int a);};
3037struct s2 {int (*f) (double a);};
3038int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3039int argc;
3040char **argv;
3041int
3042main ()
3043{
3044return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3045 ;
3046 return 0;
3047}
3048_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003049for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051do
3052 CC="$ac_save_CC $ac_arg"
3053 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003054if { (ac_try="$ac_compile"
3055case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3060$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003061 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 ac_status=$?
3063 grep -v '^ *+' conftest.er1 >conftest.err
3064 rm -f conftest.er1
3065 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003067 (exit $ac_status); } && {
3068 test -z "$ac_c_werror_flag" ||
3069 test ! -s conftest.err
3070 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003071 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003073 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074sed 's/^/| /' conftest.$ac_ext >&5
3075
Theodore Ts'oe1052142006-10-21 21:46:47 -04003076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003078
3079rm -f core conftest.err conftest.$ac_objext
3080 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003082rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003083CC=$ac_save_CC
3084
3085fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003086# AC_CACHE_VAL
3087case "x$ac_cv_prog_cc_c89" in
3088 x)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003089 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3090$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003091 xno)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3093$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003095 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003096 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3097$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098esac
3099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101ac_ext=c
3102ac_cpp='$CPP $CPPFLAGS'
3103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3105ac_compiler_gnu=$ac_cv_c_compiler_gnu
3106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107ac_ext=c
3108ac_cpp='$CPP $CPPFLAGS'
3109ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3110ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3111ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003112{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3113$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003114# On Suns, sometimes $CPP names a directory.
3115if test -n "$CPP" && test -d "$CPP"; then
3116 CPP=
3117fi
3118if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 if test "${ac_cv_prog_CPP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003120 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122 # Double quotes because CPP needs to be expanded
3123 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3124 do
3125 ac_preproc_ok=false
3126for ac_c_preproc_warn_flag in '' yes
3127do
3128 # Use a header file that comes with gcc, so configuring glibc
3129 # with a fresh cross-compiler works.
3130 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3131 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003132 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133 # not just through cpp. "Syntax error" is here to catch this case.
3134 cat >conftest.$ac_ext <<_ACEOF
3135/* confdefs.h. */
3136_ACEOF
3137cat confdefs.h >>conftest.$ac_ext
3138cat >>conftest.$ac_ext <<_ACEOF
3139/* end confdefs.h. */
3140#ifdef __STDC__
3141# include <limits.h>
3142#else
3143# include <assert.h>
3144#endif
3145 Syntax error
3146_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003147if { (ac_try="$ac_cpp conftest.$ac_ext"
3148case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3151esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003160 (exit $ac_status); } >/dev/null && {
3161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3162 test ! -s conftest.err
3163 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003164 :
3165else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003166 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003167sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169 # Broken: fails on valid input.
3170continue
3171fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003173rm -f conftest.err conftest.$ac_ext
3174
Theodore Ts'oe1052142006-10-21 21:46:47 -04003175 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176 # can be detected and how.
3177 cat >conftest.$ac_ext <<_ACEOF
3178/* confdefs.h. */
3179_ACEOF
3180cat confdefs.h >>conftest.$ac_ext
3181cat >>conftest.$ac_ext <<_ACEOF
3182/* end confdefs.h. */
3183#include <ac_nonexistent.h>
3184_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003185if { (ac_try="$ac_cpp conftest.$ac_ext"
3186case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3191$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193 ac_status=$?
3194 grep -v '^ *+' conftest.er1 >conftest.err
3195 rm -f conftest.er1
3196 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003198 (exit $ac_status); } >/dev/null && {
3199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3200 test ! -s conftest.err
3201 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202 # Broken: success on invalid input.
3203continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003204else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003205 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 # Passes both tests.
3209ac_preproc_ok=:
3210break
3211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003213rm -f conftest.err conftest.$ac_ext
3214
3215done
3216# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3217rm -f conftest.err conftest.$ac_ext
3218if $ac_preproc_ok; then
3219 break
3220fi
3221
3222 done
3223 ac_cv_prog_CPP=$CPP
3224
3225fi
3226 CPP=$ac_cv_prog_CPP
3227else
3228 ac_cv_prog_CPP=$CPP
3229fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003230{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3231$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232ac_preproc_ok=false
3233for ac_c_preproc_warn_flag in '' yes
3234do
3235 # Use a header file that comes with gcc, so configuring glibc
3236 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */
3247#ifdef __STDC__
3248# include <limits.h>
3249#else
3250# include <assert.h>
3251#endif
3252 Syntax error
3253_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254if { (ac_try="$ac_cpp conftest.$ac_ext"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3260$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003262 ac_status=$?
3263 grep -v '^ *+' conftest.er1 >conftest.err
3264 rm -f conftest.er1
3265 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003267 (exit $ac_status); } >/dev/null && {
3268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3269 test ! -s conftest.err
3270 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271 :
3272else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003273 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274sed 's/^/| /' conftest.$ac_ext >&5
3275
3276 # Broken: fails on valid input.
3277continue
3278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003280rm -f conftest.err conftest.$ac_ext
3281
Theodore Ts'oe1052142006-10-21 21:46:47 -04003282 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003283 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290#include <ac_nonexistent.h>
3291_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003292if { (ac_try="$ac_cpp conftest.$ac_ext"
3293case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3298$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003300 ac_status=$?
3301 grep -v '^ *+' conftest.er1 >conftest.err
3302 rm -f conftest.er1
3303 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003305 (exit $ac_status); } >/dev/null && {
3306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3307 test ! -s conftest.err
3308 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309 # Broken: success on invalid input.
3310continue
3311else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003312 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313sed 's/^/| /' conftest.$ac_ext >&5
3314
3315 # Passes both tests.
3316ac_preproc_ok=:
3317break
3318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003319
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003320rm -f conftest.err conftest.$ac_ext
3321
3322done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then
3326 :
3327else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003328 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3330{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003332$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335fi
3336
3337ac_ext=c
3338ac_cpp='$CPP $CPPFLAGS'
3339ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342
3343
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003344# Check whether --with-linker was given.
3345if test "${with_linker+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003346 withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3347$as_echo "LD=$withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003348LD=$withval
3349else
3350 if test -z "$LD" ; then LD=$CC; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003351{ $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3352$as_echo "LD defaults to $LD" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003353fi
3354export LD
3355
3356
3357# Check whether --with-ccopts was given.
3358if test "${with_ccopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003359 withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3360$as_echo "CCOPTS is $withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003361CFLAGS=$withval
3362fi
3363
3364
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003365{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3366$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003367if test "${ac_cv_path_GREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003368 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003369else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003370 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003371 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003372 # Loop through the user's path and test for each of PROGNAME-LIST
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003374for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3375do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003379 for ac_exec_ext in '' $ac_executable_extensions; do
3380 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3381 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3382# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003383 # Check for GNU $ac_path_GREP
3384case `"$ac_path_GREP" --version 2>&1` in
3385*GNU*)
3386 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3387*)
3388 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003389 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003390 while :
3391 do
3392 cat "conftest.in" "conftest.in" >"conftest.tmp"
3393 mv "conftest.tmp" "conftest.in"
3394 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003395 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3398 ac_count=`expr $ac_count + 1`
3399 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3400 # Best one so far, save it but keep looking for a better one
3401 ac_cv_path_GREP="$ac_path_GREP"
3402 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003404 # 10*(2^10) chars as input seems more than enough
3405 test $ac_count -gt 10 && break
3406 done
3407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3408esac
3409
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003410 $ac_path_GREP_found && break 3
3411 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003412 done
3413done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003414IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003415 if test -z "$ac_cv_path_GREP"; then
3416 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3417$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 -04003418 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003419 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003420else
3421 ac_cv_path_GREP=$GREP
3422fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003423
Theodore Ts'oe1052142006-10-21 21:46:47 -04003424fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003425{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3426$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427 GREP="$ac_cv_path_GREP"
3428
3429
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003430{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3431$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003432if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003433 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04003434else
3435 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3436 then ac_cv_path_EGREP="$GREP -E"
3437 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003438 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003439 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3449 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3450# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003451 # Check for GNU $ac_path_EGREP
3452case `"$ac_path_EGREP" --version 2>&1` in
3453*GNU*)
3454 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3455*)
3456 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003457 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003458 while :
3459 do
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003463 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003464 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3466 ac_count=`expr $ac_count + 1`
3467 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_EGREP="$ac_path_EGREP"
3470 ac_path_EGREP_max=$ac_count
3471 fi
3472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476esac
3477
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003478 $ac_path_EGREP_found && break 3
3479 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003480 done
3481done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003483 if test -z "$ac_cv_path_EGREP"; then
3484 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3485$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 -04003486 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003487 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003488else
3489 ac_cv_path_EGREP=$EGREP
3490fi
3491
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492 fi
3493fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003494{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3495$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496 EGREP="$ac_cv_path_EGREP"
3497
3498
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003499{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3500$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501if test "${ac_cv_header_stdc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003502 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503else
3504 cat >conftest.$ac_ext <<_ACEOF
3505/* confdefs.h. */
3506_ACEOF
3507cat confdefs.h >>conftest.$ac_ext
3508cat >>conftest.$ac_ext <<_ACEOF
3509/* end confdefs.h. */
3510#include <stdlib.h>
3511#include <stdarg.h>
3512#include <string.h>
3513#include <float.h>
3514
3515int
3516main ()
3517{
3518
3519 ;
3520 return 0;
3521}
3522_ACEOF
3523rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524if { (ac_try="$ac_compile"
3525case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003529eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3530$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003531 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003532 ac_status=$?
3533 grep -v '^ *+' conftest.er1 >conftest.err
3534 rm -f conftest.er1
3535 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003537 (exit $ac_status); } && {
3538 test -z "$ac_c_werror_flag" ||
3539 test ! -s conftest.err
3540 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003541 ac_cv_header_stdc=yes
3542else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003543 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003544sed 's/^/| /' conftest.$ac_ext >&5
3545
Theodore Ts'oe1052142006-10-21 21:46:47 -04003546 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003547fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548
3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550
3551if test $ac_cv_header_stdc = yes; then
3552 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3553 cat >conftest.$ac_ext <<_ACEOF
3554/* confdefs.h. */
3555_ACEOF
3556cat confdefs.h >>conftest.$ac_ext
3557cat >>conftest.$ac_ext <<_ACEOF
3558/* end confdefs.h. */
3559#include <string.h>
3560
3561_ACEOF
3562if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3563 $EGREP "memchr" >/dev/null 2>&1; then
3564 :
3565else
3566 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003567fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003568rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003569
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003570fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571
3572if test $ac_cv_header_stdc = yes; then
3573 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3574 cat >conftest.$ac_ext <<_ACEOF
3575/* confdefs.h. */
3576_ACEOF
3577cat confdefs.h >>conftest.$ac_ext
3578cat >>conftest.$ac_ext <<_ACEOF
3579/* end confdefs.h. */
3580#include <stdlib.h>
3581
3582_ACEOF
3583if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3584 $EGREP "free" >/dev/null 2>&1; then
3585 :
3586else
3587 ac_cv_header_stdc=no
3588fi
3589rm -f conftest*
3590
3591fi
3592
3593if test $ac_cv_header_stdc = yes; then
3594 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3595 if test "$cross_compiling" = yes; then
3596 :
3597else
3598 cat >conftest.$ac_ext <<_ACEOF
3599/* confdefs.h. */
3600_ACEOF
3601cat confdefs.h >>conftest.$ac_ext
3602cat >>conftest.$ac_ext <<_ACEOF
3603/* end confdefs.h. */
3604#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606#if ((' ' & 0x0FF) == 0x020)
3607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3609#else
3610# define ISLOWER(c) \
3611 (('a' <= (c) && (c) <= 'i') \
3612 || ('j' <= (c) && (c) <= 'r') \
3613 || ('s' <= (c) && (c) <= 'z'))
3614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3615#endif
3616
3617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3618int
3619main ()
3620{
3621 int i;
3622 for (i = 0; i < 256; i++)
3623 if (XOR (islower (i), ISLOWER (i))
3624 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003625 return 2;
3626 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003627}
3628_ACEOF
3629rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003630if { (ac_try="$ac_link"
3631case "(($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_link") 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); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003641 { (case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003647 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003650 (exit $ac_status); }; }; then
3651 :
3652else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003653 $as_echo "$as_me: program exited with status $ac_status" >&5
3654$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003655sed 's/^/| /' conftest.$ac_ext >&5
3656
3657( exit $ac_status )
3658ac_cv_header_stdc=no
3659fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003660rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3662fi
3663
3664
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665fi
3666fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003667{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3668$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003669if test $ac_cv_header_stdc = yes; then
3670
3671cat >>confdefs.h <<\_ACEOF
3672#define STDC_HEADERS 1
3673_ACEOF
3674
3675fi
3676
3677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3688 inttypes.h stdint.h unistd.h
3689do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003690as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3691{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3692$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003693if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003694 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003695else
3696 cat >conftest.$ac_ext <<_ACEOF
3697/* confdefs.h. */
3698_ACEOF
3699cat confdefs.h >>conftest.$ac_ext
3700cat >>conftest.$ac_ext <<_ACEOF
3701/* end confdefs.h. */
3702$ac_includes_default
3703
3704#include <$ac_header>
3705_ACEOF
3706rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003707if { (ac_try="$ac_compile"
3708case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003712eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3713$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003714 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715 ac_status=$?
3716 grep -v '^ *+' conftest.er1 >conftest.err
3717 rm -f conftest.er1
3718 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003720 (exit $ac_status); } && {
3721 test -z "$ac_c_werror_flag" ||
3722 test ! -s conftest.err
3723 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003724 eval "$as_ac_Header=yes"
3725else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003726 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003727sed 's/^/| /' conftest.$ac_ext >&5
3728
Theodore Ts'oe1052142006-10-21 21:46:47 -04003729 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003731
3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003733fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003734ac_res=`eval 'as_val=${'$as_ac_Header'}
3735 $as_echo "$as_val"'`
3736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3737$as_echo "$ac_res" >&6; }
3738as_val=`eval 'as_val=${'$as_ac_Header'}
3739 $as_echo "$as_val"'`
3740 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003741 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003742#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003743_ACEOF
3744
3745fi
3746
3747done
3748
3749
3750if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003751 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3752$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003753if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003754 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003755fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003756{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3757$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003758else
3759 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003760{ $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3761$as_echo_n "checking linux/fs.h usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003762cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
3768$ac_includes_default
3769#include <linux/fs.h>
3770_ACEOF
3771rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772if { (ac_try="$ac_compile"
3773case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3778$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003779 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003780 ac_status=$?
3781 grep -v '^ *+' conftest.er1 >conftest.err
3782 rm -f conftest.er1
3783 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003785 (exit $ac_status); } && {
3786 test -z "$ac_c_werror_flag" ||
3787 test ! -s conftest.err
3788 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003789 ac_header_compiler=yes
3790else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003791 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003792sed 's/^/| /' conftest.$ac_ext >&5
3793
Theodore Ts'oe1052142006-10-21 21:46:47 -04003794 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003795fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003796
3797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003798{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3799$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003800
3801# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003802{ $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3803$as_echo_n "checking linux/fs.h presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003804cat >conftest.$ac_ext <<_ACEOF
3805/* confdefs.h. */
3806_ACEOF
3807cat confdefs.h >>conftest.$ac_ext
3808cat >>conftest.$ac_ext <<_ACEOF
3809/* end confdefs.h. */
3810#include <linux/fs.h>
3811_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003812if { (ac_try="$ac_cpp conftest.$ac_ext"
3813case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003817eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3818$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003820 ac_status=$?
3821 grep -v '^ *+' conftest.er1 >conftest.err
3822 rm -f conftest.er1
3823 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003825 (exit $ac_status); } >/dev/null && {
3826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3827 test ! -s conftest.err
3828 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003829 ac_header_preproc=yes
3830else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003831 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003832sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 ac_header_preproc=no
3835fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003837rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003838{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3839$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003840
3841# So? What about this header?
3842case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3843 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003844 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3845$as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3846 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3847$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003848 ac_header_preproc=yes
3849 ;;
3850 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003851 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3852$as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3853 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3854$as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3855 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3856$as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3857 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3858$as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3859 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3860$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3861 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3862$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 -04003863
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003864 ;;
3865esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003866{ $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3867$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003868if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003869 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003870else
3871 ac_cv_header_linux_fs_h=$ac_header_preproc
3872fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003873{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3874$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003875
3876fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003877if test "x$ac_cv_header_linux_fs_h" = x""yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003878 linux_headers=yes
3879else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003880 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003881fi
3882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003883
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003884if test "$linux_headers" != yes; then
3885 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003886fi
3887
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003888{ $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3889$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003890if test "$GCC" = yes
3891then
3892 case "$host_cpu" in
3893 alpha) addcflags="-mieee" ;;
3894 esac
3895fi
3896if test "x$addcflags" != x
3897then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003898 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3899$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003900 CFLAGS="$addcflags $CFLAGS"
3901else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003902 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3903$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003904fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003905LIB_EXT=.a
3906STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04003907PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003908
Theodore Ts'oe1052142006-10-21 21:46:47 -04003909# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003910if test "${with_ldopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003911 withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3912$as_echo "LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003913LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003914fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003915
Theodore Ts'oe1052142006-10-21 21:46:47 -04003916
3917# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003918if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003919 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003920else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003921 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003922fi
3923# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003924if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003925 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003926then
3927 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003928 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3929$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003930else
3931 MAINTAINER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003932 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3933$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003934fi
3935
3936else
3937 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003938{ $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3939$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003940
Theodore Ts'oe1052142006-10-21 21:46:47 -04003941fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943
Theodore Ts'oc13351f2009-07-02 00:11:17 -04003944# Check whether --enable-verbose-makecmds was given.
3945if test "${enable_verbose_makecmds+set}" = set; then
3946 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3947then
3948 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3949$as_echo "Disabling verbose make commands" >&6; }
3950 E=@echo
3951 Q=@
3952else
3953 { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3954$as_echo "Enabling verbose make commands" >&6; }
3955 E=@\\#
3956 Q=
3957fi
3958
3959else
3960 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3961$as_echo "Disabling verbose make commands" >&6; }
3962E=@echo
3963Q=@
3964
3965fi
3966
3967
3968
Theodore Ts'oe1052142006-10-21 21:46:47 -04003969# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003970if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003971 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003972then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003973 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3974$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003976 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003977#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003978_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003979
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003980 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3981$as_echo "Enabling compression support" >&6; }
3982 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3983$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003984fi
3985
3986else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003987 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3988$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003989
Theodore Ts'oe1052142006-10-21 21:46:47 -04003990fi
3991
3992# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003993if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003994 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003995then
3996 HTREE_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003997 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3998$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003999else
4000 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004001 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004002#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004003_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004004
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004005 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
4006$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004007fi
4008
4009else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004010 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004011cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004012#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004014
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004015{ $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
4016$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004017
Theodore Ts'oe1052142006-10-21 21:46:47 -04004018fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004019
Theodore Ts'oe1052142006-10-21 21:46:47 -04004020
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004021E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004022LDFLAG_DYNAMIC=
4023PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004024# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004025if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004026 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004027then
4028 ELF_CMT=#
4029 MAKEFILE_ELF=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004030 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4031$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004032else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004033 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004034 ELF_CMT=
4035 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004036 case "$host_os" in
4037 solaris2.*)
4038 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4039 ;;
4040 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004041 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004042 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004043 PRIVATE_LIBS_CMT=#
4044 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004045 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4046$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004047fi
4048
4049else
4050 MAKEFILE_ELF=/dev/null
4051ELF_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004052{ $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4053$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004054
Theodore Ts'oe1052142006-10-21 21:46:47 -04004055fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004056
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004057
Theodore Ts'oe1052142006-10-21 21:46:47 -04004058
4059# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004060if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004061 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004062then
4063 BSDLIB_CMT=#
4064 MAKEFILE_BSDLIB=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004065 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4066$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004067else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004068 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069 BSDLIB_CMT=
4070 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004071 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004072 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004073 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004074 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4075 LIB_EXT=.dylib
4076 ;;
4077 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004078 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4079$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004080fi
4081
4082else
4083 MAKEFILE_BSDLIB=/dev/null
4084BSDLIB_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004085{ $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4086$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004087
Theodore Ts'oe1052142006-10-21 21:46:47 -04004088fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004089
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004090
Theodore Ts'oe1052142006-10-21 21:46:47 -04004091
4092# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004093if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004094 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004095then
4096 PROFILE_CMT=#
4097 MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004098 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4099$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004100else
4101 PROFILE_CMT=
4102 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4103 PROFILED_LIB_EXT=_p.a
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004104 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4105$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004106fi
4107
4108else
4109 PROFILE_CMT=#
4110MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004111{ $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4112$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004113
Theodore Ts'oe1052142006-10-21 21:46:47 -04004114fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004115
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004116
Theodore Ts'oe1052142006-10-21 21:46:47 -04004117
4118# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004119if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004120 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004121then
4122 CHECKER_CMT=#
4123 MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004124 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4125$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004126else
4127 CHECKER_CMT=
4128 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004129 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4130$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004131fi
4132
4133else
4134 CHECKER_CMT=#
4135MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004136{ $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4137$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004138
Theodore Ts'oe1052142006-10-21 21:46:47 -04004139fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004140
4141
4142
4143
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004144
Theodore Ts'oe1052142006-10-21 21:46:47 -04004145
Theodore Ts'o55da9872008-09-02 23:12:38 -04004146
4147
Theodore Ts'oe1052142006-10-21 21:46:47 -04004148# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004149if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004150 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004151then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004152 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4153$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004155 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004156#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004157_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004158
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004159 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4160$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004161fi
4162
4163else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004164 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4165$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004166
Theodore Ts'oe1052142006-10-21 21:46:47 -04004167fi
4168
4169# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004170if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004171 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004172then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004173 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4174$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004175else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004176 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004177#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004178_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004179
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004180 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4181$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004182fi
4183
4184else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004185 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4186$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004187
Theodore Ts'oe1052142006-10-21 21:46:47 -04004188fi
4189
4190# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004191if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004192 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004193then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004194 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4195$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004196 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004197else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004198 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004199 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004200#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004201_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004202
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004203 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4204$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004205fi
4206
4207else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004208 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4209$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004210cat >>confdefs.h <<\_ACEOF
4211#define CONFIG_TESTIO_DEBUG 1
4212_ACEOF
4213
4214TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004215
Theodore Ts'oe1052142006-10-21 21:46:47 -04004216fi
4217
Theodore Ts'oaf773652008-09-01 11:27:27 -04004218
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004219
4220
4221if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4222 if test -n "$ac_tool_prefix"; then
4223 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4224set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004225{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4226$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004227if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004228 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004229else
4230 case $PKG_CONFIG in
4231 [\\/]* | ?:[\\/]*)
4232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4233 ;;
4234 *)
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236for as_dir in $PATH
4237do
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004243 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004244 break 2
4245 fi
4246done
4247done
4248IFS=$as_save_IFS
4249
4250 ;;
4251esac
4252fi
4253PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4254if test -n "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004255 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4256$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004257else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004258 { $as_echo "$as_me:$LINENO: result: no" >&5
4259$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004260fi
4261
4262
4263fi
4264if test -z "$ac_cv_path_PKG_CONFIG"; then
4265 ac_pt_PKG_CONFIG=$PKG_CONFIG
4266 # Extract the first word of "pkg-config", so it can be a program name with args.
4267set dummy pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4269$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004270if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004271 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004272else
4273 case $ac_pt_PKG_CONFIG in
4274 [\\/]* | ?:[\\/]*)
4275 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4276 ;;
4277 *)
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4279for as_dir in $PATH
4280do
4281 IFS=$as_save_IFS
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4285 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004286 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004287 break 2
4288 fi
4289done
4290done
4291IFS=$as_save_IFS
4292
4293 ;;
4294esac
4295fi
4296ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4297if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004298 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4299$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004300else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004301 { $as_echo "$as_me:$LINENO: result: no" >&5
4302$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004303fi
4304
4305 if test "x$ac_pt_PKG_CONFIG" = x; then
4306 PKG_CONFIG=""
4307 else
4308 case $cross_compiling:$ac_tool_warned in
4309yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004310{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4311$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004312ac_tool_warned=yes ;;
4313esac
4314 PKG_CONFIG=$ac_pt_PKG_CONFIG
4315 fi
4316else
4317 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4318fi
4319
4320fi
4321if test -n "$PKG_CONFIG"; then
4322 _pkg_min_version=0.9.0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004323 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4324$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004325 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004326 { $as_echo "$as_me:$LINENO: result: yes" >&5
4327$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004328 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004329 { $as_echo "$as_me:$LINENO: result: no" >&5
4330$as_echo "no" >&6; }
4331 PKG_CONFIG=""
4332 fi
4333
4334fi
4335LIBUUID=
4336DEPLIBUUID=
4337STATIC_LIBUUID=
4338DEPSTATIC_LIBUUID=
4339PROFILED_LIBUUID=
4340DEPPROFILED_LIBUUID=
4341UUID_CMT=
4342# Check whether --enable-libuuid was given.
4343if test "${enable_libuuid+set}" = set; then
4344 enableval=$enable_libuuid; if test "$enableval" = "no"
4345then
4346 if test -z "$PKG_CONFIG"; then
4347 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4348$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4349 { (exit 1); exit 1; }; }
4350 fi
4351
4352 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4353$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4354if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4355 $as_echo_n "(cached) " >&6
4356else
4357 ac_check_lib_save_LIBS=$LIBS
4358LIBS="-luuid $LIBUUID $LIBS"
4359cat >conftest.$ac_ext <<_ACEOF
4360/* confdefs.h. */
4361_ACEOF
4362cat confdefs.h >>conftest.$ac_ext
4363cat >>conftest.$ac_ext <<_ACEOF
4364/* end confdefs.h. */
4365
4366/* Override any GCC internal prototype to avoid an error.
4367 Use char because int might match the return type of a GCC
4368 builtin and then its argument prototype would still apply. */
4369#ifdef __cplusplus
4370extern "C"
4371#endif
4372char uuid_generate ();
4373int
4374main ()
4375{
4376return uuid_generate ();
4377 ;
4378 return 0;
4379}
4380_ACEOF
4381rm -f conftest.$ac_objext conftest$ac_exeext
4382if { (ac_try="$ac_link"
4383case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386esac
4387eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4388$as_echo "$ac_try_echo") >&5
4389 (eval "$ac_link") 2>conftest.er1
4390 ac_status=$?
4391 grep -v '^ *+' conftest.er1 >conftest.err
4392 rm -f conftest.er1
4393 cat conftest.err >&5
4394 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4395 (exit $ac_status); } && {
4396 test -z "$ac_c_werror_flag" ||
4397 test ! -s conftest.err
4398 } && test -s conftest$ac_exeext && {
4399 test "$cross_compiling" = yes ||
4400 $as_test_x conftest$ac_exeext
4401 }; then
4402 ac_cv_lib_uuid_uuid_generate=yes
4403else
4404 $as_echo "$as_me: failed program was:" >&5
4405sed 's/^/| /' conftest.$ac_ext >&5
4406
4407 ac_cv_lib_uuid_uuid_generate=no
4408fi
4409
4410rm -rf conftest.dSYM
4411rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4412 conftest$ac_exeext conftest.$ac_ext
4413LIBS=$ac_check_lib_save_LIBS
4414fi
4415{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4416$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4417if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4418 LIBUUID=`$PKG_CONFIG --libs uuid`;
4419 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4420else
4421 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4422$as_echo "$as_me: error: external uuid library not found" >&2;}
4423 { (exit 1); exit 1; }; }
4424fi
4425
4426 UUID_CMT=#
4427 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4428$as_echo "Disabling private uuid library" >&6; }
4429else
4430 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4431 DEPLIBUUID=$LIBUUID
4432 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4433 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4434 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4435 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4436 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4437$as_echo "Enabling private uuid library" >&6; }
4438fi
4439
4440else
4441 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4442DEPLIBUUID=$LIBUUID
4443STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4444DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4445PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4446DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4447{ $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4448$as_echo "Enabling private uuid library by default" >&6; }
4449
4450fi
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4462 if test -n "$ac_tool_prefix"; then
4463 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4464set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4465{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4466$as_echo_n "checking for $ac_word... " >&6; }
4467if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4468 $as_echo_n "(cached) " >&6
4469else
4470 case $PKG_CONFIG in
4471 [\\/]* | ?:[\\/]*)
4472 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4473 ;;
4474 *)
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476for as_dir in $PATH
4477do
4478 IFS=$as_save_IFS
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4483 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484 break 2
4485 fi
4486done
4487done
4488IFS=$as_save_IFS
4489
4490 ;;
4491esac
4492fi
4493PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4494if test -n "$PKG_CONFIG"; then
4495 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4496$as_echo "$PKG_CONFIG" >&6; }
4497else
4498 { $as_echo "$as_me:$LINENO: result: no" >&5
4499$as_echo "no" >&6; }
4500fi
4501
4502
4503fi
4504if test -z "$ac_cv_path_PKG_CONFIG"; then
4505 ac_pt_PKG_CONFIG=$PKG_CONFIG
4506 # Extract the first word of "pkg-config", so it can be a program name with args.
4507set dummy pkg-config; ac_word=$2
4508{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4509$as_echo_n "checking for $ac_word... " >&6; }
4510if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4511 $as_echo_n "(cached) " >&6
4512else
4513 case $ac_pt_PKG_CONFIG in
4514 [\\/]* | ?:[\\/]*)
4515 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4516 ;;
4517 *)
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519for as_dir in $PATH
4520do
4521 IFS=$as_save_IFS
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4526 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 break 2
4528 fi
4529done
4530done
4531IFS=$as_save_IFS
4532
4533 ;;
4534esac
4535fi
4536ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4537if test -n "$ac_pt_PKG_CONFIG"; then
4538 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4539$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4540else
4541 { $as_echo "$as_me:$LINENO: result: no" >&5
4542$as_echo "no" >&6; }
4543fi
4544
4545 if test "x$ac_pt_PKG_CONFIG" = x; then
4546 PKG_CONFIG=""
4547 else
4548 case $cross_compiling:$ac_tool_warned in
4549yes:)
4550{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4552ac_tool_warned=yes ;;
4553esac
4554 PKG_CONFIG=$ac_pt_PKG_CONFIG
4555 fi
4556else
4557 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4558fi
4559
4560fi
4561if test -n "$PKG_CONFIG"; then
4562 _pkg_min_version=0.9.0
4563 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4564$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4565 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4566 { $as_echo "$as_me:$LINENO: result: yes" >&5
4567$as_echo "yes" >&6; }
4568 else
4569 { $as_echo "$as_me:$LINENO: result: no" >&5
4570$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004571 PKG_CONFIG=""
4572 fi
4573
4574fi
4575LIBBLKID=
4576DEPLIBBLKID=
4577STATIC_LIBBLKID=
4578DEPSTATIC_LIBBLKID=
4579PROFILED_LIBBLKID=
4580DEPPROFILED_LIBBLKID=
4581BLKID_CMT=
4582# Check whether --enable-libblkid was given.
4583if test "${enable_libblkid+set}" = set; then
4584 enableval=$enable_libblkid; if test "$enableval" = "no"
4585then
4586 if test -z "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004587 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4588$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004589 { (exit 1); exit 1; }; }
4590 fi
4591
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004592 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4593$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004594if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004595 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004596else
4597 ac_check_lib_save_LIBS=$LIBS
4598LIBS="-lblkid $LIBBLKID $LIBS"
4599cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h. */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h. */
4605
4606/* Override any GCC internal prototype to avoid an error.
4607 Use char because int might match the return type of a GCC
4608 builtin and then its argument prototype would still apply. */
4609#ifdef __cplusplus
4610extern "C"
4611#endif
4612char blkid_get_cache ();
4613int
4614main ()
4615{
4616return blkid_get_cache ();
4617 ;
4618 return 0;
4619}
4620_ACEOF
4621rm -f conftest.$ac_objext conftest$ac_exeext
4622if { (ac_try="$ac_link"
4623case "(($ac_try" in
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4626esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628$as_echo "$ac_try_echo") >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004629 (eval "$ac_link") 2>conftest.er1
4630 ac_status=$?
4631 grep -v '^ *+' conftest.er1 >conftest.err
4632 rm -f conftest.er1
4633 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004635 (exit $ac_status); } && {
4636 test -z "$ac_c_werror_flag" ||
4637 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004638 } && test -s conftest$ac_exeext && {
4639 test "$cross_compiling" = yes ||
4640 $as_test_x conftest$ac_exeext
4641 }; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004642 ac_cv_lib_blkid_blkid_get_cache=yes
4643else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004644 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004645sed 's/^/| /' conftest.$ac_ext >&5
4646
4647 ac_cv_lib_blkid_blkid_get_cache=no
4648fi
4649
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004650rm -rf conftest.dSYM
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4652 conftest$ac_exeext conftest.$ac_ext
4653LIBS=$ac_check_lib_save_LIBS
4654fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4656$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4657if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004658 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4659 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4660else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004661 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4662$as_echo "$as_me: error: external blkid library not found" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004663 { (exit 1); exit 1; }; }
4664fi
4665
4666 BLKID_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004667 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4668$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004669else
4670 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4671 DEPLIBBLKID=$LIBBLKID
4672 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4673 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4674 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4675 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4676 cat >>confdefs.h <<\_ACEOF
4677#define CONFIG_BUILD_FINDFS 1
4678_ACEOF
4679
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004680 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4681$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004682fi
4683
4684else
4685 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4686DEPLIBBLKID=$LIBBLKID
4687STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4688DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4689PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4690DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4691cat >>confdefs.h <<\_ACEOF
4692#define CONFIG_BUILD_FINDFS 1
4693_ACEOF
4694
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004695{ $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4696$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004697
4698fi
4699
4700
4701
4702
4703
4704
4705
4706
Theodore Ts'oe1052142006-10-21 21:46:47 -04004707# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004708if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004710then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004711 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4712$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004713 DEBUGFS_CMT="#"
4714else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004715 DEBUGFS_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004716 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4717$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004718fi
4719
4720else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004721 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4722$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004723DEBUGFS_CMT=
4724
Theodore Ts'oe1052142006-10-21 21:46:47 -04004725fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004726
Theodore Ts'oe1052142006-10-21 21:46:47 -04004727
4728# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004729if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004730 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004731then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004732 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4733$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004734 IMAGER_CMT="#"
4735else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004736 IMAGER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004737 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4738$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004739fi
4740
4741else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004742 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4743$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004744IMAGER_CMT=
4745
Theodore Ts'oe1052142006-10-21 21:46:47 -04004746fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004747
Theodore Ts'oe1052142006-10-21 21:46:47 -04004748
4749# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004750if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004751 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004752then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4754$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004755 RESIZER_CMT="#"
4756else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004757 RESIZER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004758 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4759$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004760fi
4761
4762else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004763 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4764$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004765RESIZER_CMT=
4766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004768
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004771if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004773then
4774 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004775 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4776$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004777else
4778 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004779 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4780$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004781fi
4782
4783else
4784 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004785 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004786 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004787 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4788$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004789 ;;
4790 *)
4791 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004792 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4793$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004794esac
4795
Theodore Ts'oe1052142006-10-21 21:46:47 -04004796fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004797
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004798
Theodore Ts'oe1052142006-10-21 21:46:47 -04004799
4800# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004801if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004802 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004803then
4804 E2INITRD_PROG='' E2INITRD_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004805 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4806$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004807else
4808 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4810$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004811fi
4812
4813else
4814 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004815{ $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4816$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004817
Theodore Ts'oe1052142006-10-21 21:46:47 -04004818fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004819
4820
Theodore Ts'oe1052142006-10-21 21:46:47 -04004821
Theodore Ts'o32493942007-12-31 10:45:01 -05004822# Check whether --enable-tls was given.
4823if test "${enable_tls+set}" = set; then
4824 enableval=$enable_tls; if test "$enableval" = "no"
4825then
4826 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004827 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4828$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004829else
4830 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004831 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4832$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004833fi
4834
4835else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004836 if test -n "$WITH_DIET_LIBC"
4837then
4838 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004839 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4840$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004841else
4842 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004843 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4844$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004845fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004846
4847fi
4848
4849if test "$try_tls" = "yes"
4850then
4851
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004852 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4853$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004854 if test "${ac_cv_tls+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004855 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05004856else
4857
4858 ax_tls_keywords="__thread __declspec(thread) none"
4859 for ax_tls_keyword in $ax_tls_keywords; do
4860 case $ax_tls_keyword in
4861 none) ac_cv_tls=none ; break ;;
4862 *)
4863 cat >conftest.$ac_ext <<_ACEOF
4864/* confdefs.h. */
4865_ACEOF
4866cat confdefs.h >>conftest.$ac_ext
4867cat >>conftest.$ac_ext <<_ACEOF
4868/* end confdefs.h. */
4869#include <stdlib.h>
4870 static void
4871 foo(void) {
4872 static $ax_tls_keyword int bar;
4873 exit(1);
4874 }
4875int
4876main ()
4877{
4878
4879 ;
4880 return 0;
4881}
4882_ACEOF
4883rm -f conftest.$ac_objext
4884if { (ac_try="$ac_compile"
4885case "(($ac_try" in
4886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887 *) ac_try_echo=$ac_try;;
4888esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004889eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890$as_echo "$ac_try_echo") >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004891 (eval "$ac_compile") 2>conftest.er1
4892 ac_status=$?
4893 grep -v '^ *+' conftest.er1 >conftest.err
4894 rm -f conftest.er1
4895 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004897 (exit $ac_status); } && {
4898 test -z "$ac_c_werror_flag" ||
4899 test ! -s conftest.err
4900 } && test -s conftest.$ac_objext; then
4901 ac_cv_tls=$ax_tls_keyword ; break
4902else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004903 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004904sed 's/^/| /' conftest.$ac_ext >&5
4905
4906 ac_cv_tls=none
4907
4908fi
4909
4910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911 esac
4912 done
4913
4914fi
4915
4916
4917 if test "$ac_cv_tls" != "none"; then
4918
4919cat >>confdefs.h <<_ACEOF
4920#define TLS $ac_cv_tls
4921_ACEOF
4922
4923 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004924 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4925$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004926
4927fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004928# Check whether --enable-uuidd was given.
4929if test "${enable_uuidd+set}" = set; then
4930 enableval=$enable_uuidd; if test "$enableval" = "no"
4931then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004932 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4933$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004934 UUIDD_CMT="#"
4935else
4936 cat >>confdefs.h <<\_ACEOF
4937#define USE_UUIDD 1
4938_ACEOF
4939
4940 UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004941 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4942$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004943fi
4944
4945else
4946 cat >>confdefs.h <<\_ACEOF
4947#define USE_UUIDD 1
4948_ACEOF
4949
4950UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004951{ $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4952$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004953
4954fi
4955
4956
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004957MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4958
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004959GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004960PACKAGE=e2fsprogs
4961VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962VERSION=0.14.1
4963cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004964#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004965_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004966
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004967cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004968#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004970
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004971
4972
4973
4974
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004975{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4976$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4977set x ${MAKE-make}
4978ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004979if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004980 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004982 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004984all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004986_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004987# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004988case `${MAKE-make} -f conftest.make 2>/dev/null` in
4989 *@@@%%%=?*=@@@%%%*)
4990 eval ac_cv_prog_make_${ac_make}_set=yes;;
4991 *)
4992 eval ac_cv_prog_make_${ac_make}_set=no;;
4993esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004994rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004995fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004996if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997 { $as_echo "$as_me:$LINENO: result: yes" >&5
4998$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004999 SET_MAKE=
5000else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005001 { $as_echo "$as_me:$LINENO: result: no" >&5
5002$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005003 SET_MAKE="MAKE=${MAKE-make}"
5004fi
5005
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005006# Find a good install program. We prefer a C program (faster),
5007# so one script is as good as another. But avoid the broken or
5008# incompatible versions:
5009# SysV /etc/install, /usr/sbin/install
5010# SunOS /usr/etc/install
5011# IRIX /sbin/install
5012# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005013# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005014# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5015# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5016# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005017# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005018# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005019# Reject install programs that cannot install multiple files.
5020{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5021$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005022if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005023if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005025else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 # Account for people who put trailing slashes in PATH elements.
5032case $as_dir/ in
5033 ./ | .// | /cC/* | \
5034 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5035 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5036 /usr/ucb/* ) ;;
5037 *)
5038 # OSF1 and SCO ODT 3.0 have their own names for install.
5039 # Don't use installbsd from OSF since it installs stuff as root
5040 # by default.
5041 for ac_prog in ginstall scoinst install; do
5042 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005043 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 -04005044 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005045 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005046 # AIX install. It has an incompatible calling convention.
5047 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005048 elif test $ac_prog = install &&
5049 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5050 # program-specific install script used by HP pwplus--don't use.
5051 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005052 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053 rm -rf conftest.one conftest.two conftest.dir
5054 echo one > conftest.one
5055 echo two > conftest.two
5056 mkdir conftest.dir
5057 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5058 test -s conftest.one && test -s conftest.two &&
5059 test -s conftest.dir/conftest.one &&
5060 test -s conftest.dir/conftest.two
5061 then
5062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5063 break 3
5064 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005065 fi
5066 fi
5067 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005068 done
5069 ;;
5070esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005072done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005073IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005074
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005076
5077fi
5078 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005079 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005080 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005081 # As a last resort, use the slow shell script. Don't cache a
5082 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005083 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005084 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005085 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005086 fi
5087fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005088{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5089$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005090
5091# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5092# It thinks the first close brace ends the variable substitution.
5093test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005095test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005096
5097test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5098
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005099
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005100 MKINSTALLDIRS=
5101 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005102 case "$ac_aux_dir" in
5103 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5104 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5105 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005106 fi
5107 if test -z "$MKINSTALLDIRS"; then
5108 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5109 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005110
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111
5112
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005113 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5114$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005115 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005116if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005117 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005118else
5119 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005120fi
5121
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005122 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5123$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005124
5125
5126
5127
5128
5129
5130# Prepare PATH_SEPARATOR.
5131# The user is always right.
5132if test "${PATH_SEPARATOR+set}" != set; then
5133 echo "#! /bin/sh" >conf$$.sh
5134 echo "exit 0" >>conf$$.sh
5135 chmod +x conf$$.sh
5136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5137 PATH_SEPARATOR=';'
5138 else
5139 PATH_SEPARATOR=:
5140 fi
5141 rm -f conf$$.sh
5142fi
5143
5144# Find out how to test for executable files. Don't use a zero-byte file,
5145# as systems may use methods other than mode bits to determine executability.
5146cat >conf$$.file <<_ASEOF
5147#! /bin/sh
5148exit 0
5149_ASEOF
5150chmod +x conf$$.file
5151if test -x conf$$.file >/dev/null 2>&1; then
5152 ac_executable_p="test -x"
5153else
5154 ac_executable_p="test -f"
5155fi
5156rm -f conf$$.file
5157
5158# Extract the first word of "msgfmt", so it can be a program name with args.
5159set dummy msgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005160{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5161$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005162if test "${ac_cv_path_MSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005163 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164else
5165 case "$MSGFMT" in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5168 ;;
5169 *)
5170 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5171 for ac_dir in $PATH; do
5172 IFS="$ac_save_IFS"
5173 test -z "$ac_dir" && ac_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5176 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5177 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5178 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5179 break 2
5180 fi
5181 fi
5182 done
5183 done
5184 IFS="$ac_save_IFS"
5185 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5186 ;;
5187esac
5188fi
5189MSGFMT="$ac_cv_path_MSGFMT"
5190if test "$MSGFMT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005191 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5192$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005193else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005194 { $as_echo "$as_me:$LINENO: result: no" >&5
5195$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005196fi
5197
5198 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5199set dummy gmsgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005200{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5201$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005202if test "${ac_cv_path_GMSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005203 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204else
5205 case $GMSGFMT in
5206 [\\/]* | ?:[\\/]*)
5207 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5208 ;;
5209 *)
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211for as_dir in $PATH
5212do
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005216 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 -05005217 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005218 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005219 break 2
5220 fi
5221done
5222done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005223IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005224
5225 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5226 ;;
5227esac
5228fi
5229GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005230if test -n "$GMSGFMT"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005231 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5232$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005233else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005234 { $as_echo "$as_me:$LINENO: result: no" >&5
5235$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005236fi
5237
5238
5239
Theodore Ts'oe1052142006-10-21 21:46:47 -04005240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005241# Prepare PATH_SEPARATOR.
5242# The user is always right.
5243if test "${PATH_SEPARATOR+set}" != set; then
5244 echo "#! /bin/sh" >conf$$.sh
5245 echo "exit 0" >>conf$$.sh
5246 chmod +x conf$$.sh
5247 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5248 PATH_SEPARATOR=';'
5249 else
5250 PATH_SEPARATOR=:
5251 fi
5252 rm -f conf$$.sh
5253fi
5254
5255# Find out how to test for executable files. Don't use a zero-byte file,
5256# as systems may use methods other than mode bits to determine executability.
5257cat >conf$$.file <<_ASEOF
5258#! /bin/sh
5259exit 0
5260_ASEOF
5261chmod +x conf$$.file
5262if test -x conf$$.file >/dev/null 2>&1; then
5263 ac_executable_p="test -x"
5264else
5265 ac_executable_p="test -f"
5266fi
5267rm -f conf$$.file
5268
5269# Extract the first word of "xgettext", so it can be a program name with args.
5270set dummy xgettext; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5272$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005273if test "${ac_cv_path_XGETTEXT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005274 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275else
5276 case "$XGETTEXT" in
5277 [\\/]* | ?:[\\/]*)
5278 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5279 ;;
5280 *)
5281 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5282 for ac_dir in $PATH; do
5283 IFS="$ac_save_IFS"
5284 test -z "$ac_dir" && ac_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5287 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5288 (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
5289 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5290 break 2
5291 fi
5292 fi
5293 done
5294 done
5295 IFS="$ac_save_IFS"
5296 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5297 ;;
5298esac
5299fi
5300XGETTEXT="$ac_cv_path_XGETTEXT"
5301if test "$XGETTEXT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005302 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5303$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005304else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005305 { $as_echo "$as_me:$LINENO: result: no" >&5
5306$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005307fi
5308
5309 rm -f messages.po
5310
5311
5312# Prepare PATH_SEPARATOR.
5313# The user is always right.
5314if test "${PATH_SEPARATOR+set}" != set; then
5315 echo "#! /bin/sh" >conf$$.sh
5316 echo "exit 0" >>conf$$.sh
5317 chmod +x conf$$.sh
5318 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5319 PATH_SEPARATOR=';'
5320 else
5321 PATH_SEPARATOR=:
5322 fi
5323 rm -f conf$$.sh
5324fi
5325
5326# Find out how to test for executable files. Don't use a zero-byte file,
5327# as systems may use methods other than mode bits to determine executability.
5328cat >conf$$.file <<_ASEOF
5329#! /bin/sh
5330exit 0
5331_ASEOF
5332chmod +x conf$$.file
5333if test -x conf$$.file >/dev/null 2>&1; then
5334 ac_executable_p="test -x"
5335else
5336 ac_executable_p="test -f"
5337fi
5338rm -f conf$$.file
5339
5340# Extract the first word of "msgmerge", so it can be a program name with args.
5341set dummy msgmerge; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005342{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5343$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005344if test "${ac_cv_path_MSGMERGE+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005345 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005346else
5347 case "$MSGMERGE" in
5348 [\\/]* | ?:[\\/]*)
5349 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5350 ;;
5351 *)
5352 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5353 for ac_dir in $PATH; do
5354 IFS="$ac_save_IFS"
5355 test -z "$ac_dir" && ac_dir=.
5356 for ac_exec_ext in '' $ac_executable_extensions; do
5357 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5358 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5359 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5360 break 2
5361 fi
5362 fi
5363 done
5364 done
5365 IFS="$ac_save_IFS"
5366 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5367 ;;
5368esac
5369fi
5370MSGMERGE="$ac_cv_path_MSGMERGE"
5371if test "$MSGMERGE" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005372 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5373$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005374else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005375 { $as_echo "$as_me:$LINENO: result: no" >&5
5376$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005377fi
5378
5379
5380 if test "$GMSGFMT" != ":"; then
5381 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5382 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5383 : ;
5384 else
5385 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005386 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5387$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005388 GMSGFMT=":"
5389 fi
5390 fi
5391
5392 if test "$XGETTEXT" != ":"; then
5393 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5394 (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
5395 : ;
5396 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005397 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5398$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005399 XGETTEXT=":"
5400 fi
5401 rm -f messages.po
5402 fi
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405
5406
5407if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5411$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005412if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005413 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005414else
5415 if test -n "$RANLIB"; then
5416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5417else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
5423 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005424 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 -05005425 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005426 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005427 break 2
5428 fi
5429done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005430done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005431IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005432
5433fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005434fi
5435RANLIB=$ac_cv_prog_RANLIB
5436if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005437 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5438$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005439else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005440 { $as_echo "$as_me:$LINENO: result: no" >&5
5441$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005442fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005443
Theodore Ts'oe1052142006-10-21 21:46:47 -04005444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005445fi
5446if test -z "$ac_cv_prog_RANLIB"; then
5447 ac_ct_RANLIB=$RANLIB
5448 # Extract the first word of "ranlib", so it can be a program name with args.
5449set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5451$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005452if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005454else
5455 if test -n "$ac_ct_RANLIB"; then
5456 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
5463 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005464 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 -05005465 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005467 break 2
5468 fi
5469done
5470done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473fi
5474fi
5475ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5476if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005477 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5478$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005479else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005480 { $as_echo "$as_me:$LINENO: result: no" >&5
5481$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005482fi
5483
Theodore Ts'oe1052142006-10-21 21:46:47 -04005484 if test "x$ac_ct_RANLIB" = x; then
5485 RANLIB=":"
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005489{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04005491ac_tool_warned=yes ;;
5492esac
5493 RANLIB=$ac_ct_RANLIB
5494 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005495else
5496 RANLIB="$ac_cv_prog_RANLIB"
5497fi
5498
5499
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005500 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5501$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005502if test "${ac_cv_lib_cposix_strerror+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005503 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005504else
5505 ac_check_lib_save_LIBS=$LIBS
5506LIBS="-lcposix $LIBS"
5507cat >conftest.$ac_ext <<_ACEOF
5508/* confdefs.h. */
5509_ACEOF
5510cat confdefs.h >>conftest.$ac_ext
5511cat >>conftest.$ac_ext <<_ACEOF
5512/* end confdefs.h. */
5513
Theodore Ts'oe1052142006-10-21 21:46:47 -04005514/* Override any GCC internal prototype to avoid an error.
5515 Use char because int might match the return type of a GCC
5516 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005517#ifdef __cplusplus
5518extern "C"
5519#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005520char strerror ();
5521int
5522main ()
5523{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005524return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005525 ;
5526 return 0;
5527}
5528_ACEOF
5529rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005530if { (ac_try="$ac_link"
5531case "(($ac_try" in
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5534esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5536$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005537 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005546 } && test -s conftest$ac_exeext && {
5547 test "$cross_compiling" = yes ||
5548 $as_test_x conftest$ac_exeext
5549 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550 ac_cv_lib_cposix_strerror=yes
5551else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005552 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005553sed 's/^/| /' conftest.$ac_ext >&5
5554
Theodore Ts'oe1052142006-10-21 21:46:47 -04005555 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005556fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005557
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005558rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005559rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005560 conftest$ac_exeext conftest.$ac_ext
5561LIBS=$ac_check_lib_save_LIBS
5562fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005563{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5564$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5565if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005566 LIBS="$LIBS -lcposix"
5567fi
5568
5569
5570
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005571{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5572$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005573if test "${ac_cv_c_const+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005574 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005575else
5576 cat >conftest.$ac_ext <<_ACEOF
5577/* confdefs.h. */
5578_ACEOF
5579cat confdefs.h >>conftest.$ac_ext
5580cat >>conftest.$ac_ext <<_ACEOF
5581/* end confdefs.h. */
5582
5583int
5584main ()
5585{
5586/* FIXME: Include the comments suggested by Paul. */
5587#ifndef __cplusplus
5588 /* Ultrix mips cc rejects this. */
5589 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005590 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005592 char const *const *pcpcc;
5593 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005594 /* NEC SVR4.0.2 mips cc rejects this. */
5595 struct point {int x, y;};
5596 static struct point const zero = {0,0};
5597 /* AIX XL C 1.02.0.0 rejects this.
5598 It does not let you subtract one const X* pointer from another in
5599 an arm of an if-expression whose if-part is not a constant
5600 expression */
5601 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005602 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005603 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005604 ++pcpcc;
5605 ppc = (char**) pcpcc;
5606 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005607 { /* SCO 3.2v4 cc rejects this. */
5608 char *t;
5609 char const *s = 0 ? (char *) 0 : (char const *) 0;
5610
5611 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005612 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005613 }
5614 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5615 int x[] = {25, 17};
5616 const int *foo = &x[0];
5617 ++foo;
5618 }
5619 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5620 typedef const int *iptr;
5621 iptr p = 0;
5622 ++p;
5623 }
5624 { /* AIX XL C 1.02.0.0 rejects this saying
5625 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5626 struct s { int j; const int *ap[3]; };
5627 struct s *b; b->j = 5;
5628 }
5629 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5630 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005631 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005633 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634#endif
5635
5636 ;
5637 return 0;
5638}
5639_ACEOF
5640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641if { (ac_try="$ac_compile"
5642case "(($ac_try" in
5643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5644 *) ac_try_echo=$ac_try;;
5645esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5647$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005648 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005654 (exit $ac_status); } && {
5655 test -z "$ac_c_werror_flag" ||
5656 test ! -s conftest.err
5657 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658 ac_cv_c_const=yes
5659else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005660 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661sed 's/^/| /' conftest.$ac_ext >&5
5662
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665
5666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005668{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5669$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670if test $ac_cv_c_const = no; then
5671
5672cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005673#define const /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005674_ACEOF
5675
5676fi
5677
5678
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005679 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5680$as_echo_n "checking for signed... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681if test "${bh_cv_c_signed+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005682 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005683else
5684 cat >conftest.$ac_ext <<_ACEOF
5685/* confdefs.h. */
5686_ACEOF
5687cat confdefs.h >>conftest.$ac_ext
5688cat >>conftest.$ac_ext <<_ACEOF
5689/* end confdefs.h. */
5690
5691int
5692main ()
5693{
5694signed char x;
5695 ;
5696 return 0;
5697}
5698_ACEOF
5699rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005700if { (ac_try="$ac_compile"
5701case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5706$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005707 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717 bh_cv_c_signed=yes
5718else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005719 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005720sed 's/^/| /' conftest.$ac_ext >&5
5721
Theodore Ts'oe1052142006-10-21 21:46:47 -04005722 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005723fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005724
5725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005727{ $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5728$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005729 if test $bh_cv_c_signed = no; then
5730
5731cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005732#define signed /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005733_ACEOF
5734
5735 fi
5736
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005737{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5738$as_echo_n "checking for inline... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005739if test "${ac_cv_c_inline+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005740 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741else
5742 ac_cv_c_inline=no
5743for ac_kw in inline __inline__ __inline; do
5744 cat >conftest.$ac_ext <<_ACEOF
5745/* confdefs.h. */
5746_ACEOF
5747cat confdefs.h >>conftest.$ac_ext
5748cat >>conftest.$ac_ext <<_ACEOF
5749/* end confdefs.h. */
5750#ifndef __cplusplus
5751typedef int foo_t;
5752static $ac_kw foo_t static_foo () {return 0; }
5753$ac_kw foo_t foo () {return 0; }
5754#endif
5755
5756_ACEOF
5757rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005758if { (ac_try="$ac_compile"
5759case "(($ac_try" in
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5762esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5764$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005765 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005766 ac_status=$?
5767 grep -v '^ *+' conftest.er1 >conftest.err
5768 rm -f conftest.er1
5769 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005771 (exit $ac_status); } && {
5772 test -z "$ac_c_werror_flag" ||
5773 test ! -s conftest.err
5774 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778sed 's/^/| /' conftest.$ac_ext >&5
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
5783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005785done
5786
5787fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005788{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5789$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005790
5791
5792case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005793 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005794 *)
5795 case $ac_cv_c_inline in
5796 no) ac_val=;;
5797 *) ac_val=$ac_cv_c_inline;;
5798 esac
5799 cat >>confdefs.h <<_ACEOF
5800#ifndef __cplusplus
5801#define inline $ac_val
5802#endif
5803_ACEOF
5804 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005805esac
5806
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005807{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5808$as_echo_n "checking for off_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809if test "${ac_cv_type_off_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005810 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005811else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005812 ac_cv_type_off_t=no
5813cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005814/* confdefs.h. */
5815_ACEOF
5816cat confdefs.h >>conftest.$ac_ext
5817cat >>conftest.$ac_ext <<_ACEOF
5818/* end confdefs.h. */
5819$ac_includes_default
5820int
5821main ()
5822{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005823if (sizeof (off_t))
5824 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005825 ;
5826 return 0;
5827}
5828_ACEOF
5829rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005830if { (ac_try="$ac_compile"
5831case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5836$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005837 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005838 ac_status=$?
5839 grep -v '^ *+' conftest.er1 >conftest.err
5840 rm -f conftest.er1
5841 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005843 (exit $ac_status); } && {
5844 test -z "$ac_c_werror_flag" ||
5845 test ! -s conftest.err
5846 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005847 cat >conftest.$ac_ext <<_ACEOF
5848/* confdefs.h. */
5849_ACEOF
5850cat confdefs.h >>conftest.$ac_ext
5851cat >>conftest.$ac_ext <<_ACEOF
5852/* end confdefs.h. */
5853$ac_includes_default
5854int
5855main ()
5856{
5857if (sizeof ((off_t)))
5858 return 0;
5859 ;
5860 return 0;
5861}
5862_ACEOF
5863rm -f conftest.$ac_objext
5864if { (ac_try="$ac_compile"
5865case "(($ac_try" in
5866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867 *) ac_try_echo=$ac_try;;
5868esac
5869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5870$as_echo "$ac_try_echo") >&5
5871 (eval "$ac_compile") 2>conftest.er1
5872 ac_status=$?
5873 grep -v '^ *+' conftest.er1 >conftest.err
5874 rm -f conftest.er1
5875 cat conftest.err >&5
5876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); } && {
5878 test -z "$ac_c_werror_flag" ||
5879 test ! -s conftest.err
5880 } && test -s conftest.$ac_objext; then
5881 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005882else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005883 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005885
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005886 ac_cv_type_off_t=yes
5887fi
5888
5889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890else
5891 $as_echo "$as_me: failed program was:" >&5
5892sed 's/^/| /' conftest.$ac_ext >&5
5893
5894
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005895fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005896
5897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005898fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5900$as_echo "$ac_cv_type_off_t" >&6; }
5901if test "x$ac_cv_type_off_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005902 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005903else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005904
5905cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005906#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005907_ACEOF
5908
5909fi
5910
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005911{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5912$as_echo_n "checking for size_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913if test "${ac_cv_type_size_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005914 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005915else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005916 ac_cv_type_size_t=no
5917cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005918/* confdefs.h. */
5919_ACEOF
5920cat confdefs.h >>conftest.$ac_ext
5921cat >>conftest.$ac_ext <<_ACEOF
5922/* end confdefs.h. */
5923$ac_includes_default
5924int
5925main ()
5926{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005927if (sizeof (size_t))
5928 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005929 ;
5930 return 0;
5931}
5932_ACEOF
5933rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005934if { (ac_try="$ac_compile"
5935case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5940$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005941 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005942 ac_status=$?
5943 grep -v '^ *+' conftest.er1 >conftest.err
5944 rm -f conftest.er1
5945 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005951 cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h. */
5957$ac_includes_default
5958int
5959main ()
5960{
5961if (sizeof ((size_t)))
5962 return 0;
5963 ;
5964 return 0;
5965}
5966_ACEOF
5967rm -f conftest.$ac_objext
5968if { (ac_try="$ac_compile"
5969case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5972esac
5973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5974$as_echo "$ac_try_echo") >&5
5975 (eval "$ac_compile") 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } && {
5982 test -z "$ac_c_werror_flag" ||
5983 test ! -s conftest.err
5984 } && test -s conftest.$ac_objext; then
5985 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005986else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005987 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005988sed 's/^/| /' conftest.$ac_ext >&5
5989
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005990 ac_cv_type_size_t=yes
5991fi
5992
5993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5994else
5995 $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006000
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006003{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6004$as_echo "$ac_cv_type_size_t" >&6; }
6005if test "x$ac_cv_type_size_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006006 :
6007else
6008
6009cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006010#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011_ACEOF
6012
6013fi
6014
6015
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006016 { $as_echo "$as_me:$LINENO: checking for long long" >&5
6017$as_echo_n "checking for long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018if test "${ac_cv_type_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006019 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020else
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027long long ll = 1LL; int i = 63;
6028int
6029main ()
6030{
6031long long llmax = (long long) -1;
6032 return ll << i | ll >> i | llmax / ll | llmax % ll;
6033 ;
6034 return 0;
6035}
6036_ACEOF
6037rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006038if { (ac_try="$ac_link"
6039case "(($ac_try" in
6040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041 *) ac_try_echo=$ac_try;;
6042esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006043eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006045 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006046 ac_status=$?
6047 grep -v '^ *+' conftest.er1 >conftest.err
6048 rm -f conftest.er1
6049 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006054 } && test -s conftest$ac_exeext && {
6055 test "$cross_compiling" = yes ||
6056 $as_test_x conftest$ac_exeext
6057 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 ac_cv_type_long_long=yes
6059else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006060 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061sed 's/^/| /' conftest.$ac_ext >&5
6062
Theodore Ts'oe1052142006-10-21 21:46:47 -04006063 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006065
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006066rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006067rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006068 conftest$ac_exeext conftest.$ac_ext
6069fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006070{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6071$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072 if test $ac_cv_type_long_long = yes; then
6073
6074cat >>confdefs.h <<\_ACEOF
6075#define HAVE_LONG_LONG 1
6076_ACEOF
6077
6078 fi
6079
6080
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006081 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6082$as_echo_n "checking for long double... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083if test "${gt_cv_c_long_double+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006084 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085else
6086 if test "$GCC" = yes; then
6087 gt_cv_c_long_double=yes
6088 else
6089 cat >conftest.$ac_ext <<_ACEOF
6090/* confdefs.h. */
6091_ACEOF
6092cat confdefs.h >>conftest.$ac_ext
6093cat >>conftest.$ac_ext <<_ACEOF
6094/* end confdefs.h. */
6095
6096 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6097 long double foo = 0.0;
6098 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6099 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6100
6101int
6102main ()
6103{
6104
6105 ;
6106 return 0;
6107}
6108_ACEOF
6109rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110if { (ac_try="$ac_compile"
6111case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6116$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006117 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006127 gt_cv_c_long_double=yes
6128else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006129 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130sed 's/^/| /' conftest.$ac_ext >&5
6131
Theodore Ts'oe1052142006-10-21 21:46:47 -04006132 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006134
6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136 fi
6137fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006138{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6139$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 if test $gt_cv_c_long_double = yes; then
6141
6142cat >>confdefs.h <<\_ACEOF
6143#define HAVE_LONG_DOUBLE 1
6144_ACEOF
6145
6146 fi
6147
6148
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006149 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6150$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151if test "${gt_cv_c_wchar_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006152 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153else
6154 cat >conftest.$ac_ext <<_ACEOF
6155/* confdefs.h. */
6156_ACEOF
6157cat confdefs.h >>conftest.$ac_ext
6158cat >>conftest.$ac_ext <<_ACEOF
6159/* end confdefs.h. */
6160#include <stddef.h>
6161 wchar_t foo = (wchar_t)'\0';
6162int
6163main ()
6164{
6165
6166 ;
6167 return 0;
6168}
6169_ACEOF
6170rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006171if { (ac_try="$ac_compile"
6172case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6177$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006178 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006179 ac_status=$?
6180 grep -v '^ *+' conftest.er1 >conftest.err
6181 rm -f conftest.er1
6182 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006184 (exit $ac_status); } && {
6185 test -z "$ac_c_werror_flag" ||
6186 test ! -s conftest.err
6187 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006188 gt_cv_c_wchar_t=yes
6189else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006190 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006191sed 's/^/| /' conftest.$ac_ext >&5
6192
Theodore Ts'oe1052142006-10-21 21:46:47 -04006193 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006195
6196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006197fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006198{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6199$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006200 if test $gt_cv_c_wchar_t = yes; then
6201
6202cat >>confdefs.h <<\_ACEOF
6203#define HAVE_WCHAR_T 1
6204_ACEOF
6205
6206 fi
6207
6208
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006209 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6210$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006211if test "${gt_cv_c_wint_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006212 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213else
6214 cat >conftest.$ac_ext <<_ACEOF
6215/* confdefs.h. */
6216_ACEOF
6217cat confdefs.h >>conftest.$ac_ext
6218cat >>conftest.$ac_ext <<_ACEOF
6219/* end confdefs.h. */
6220#include <wchar.h>
6221 wint_t foo = (wchar_t)'\0';
6222int
6223main ()
6224{
6225
6226 ;
6227 return 0;
6228}
6229_ACEOF
6230rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006231if { (ac_try="$ac_compile"
6232case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6237$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006238 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006244 (exit $ac_status); } && {
6245 test -z "$ac_c_werror_flag" ||
6246 test ! -s conftest.err
6247 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248 gt_cv_c_wint_t=yes
6249else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006250 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251sed 's/^/| /' conftest.$ac_ext >&5
6252
Theodore Ts'oe1052142006-10-21 21:46:47 -04006253 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006254fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006255
6256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006257fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006258{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6259$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006260 if test $gt_cv_c_wint_t = yes; then
6261
6262cat >>confdefs.h <<\_ACEOF
6263#define HAVE_WINT_T 1
6264_ACEOF
6265
6266 fi
6267
6268
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006269 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6270$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006271if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006272 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273else
6274 cat >conftest.$ac_ext <<_ACEOF
6275/* confdefs.h. */
6276_ACEOF
6277cat confdefs.h >>conftest.$ac_ext
6278cat >>conftest.$ac_ext <<_ACEOF
6279/* end confdefs.h. */
6280#include <sys/types.h>
6281#include <inttypes.h>
6282int
6283main ()
6284{
6285uintmax_t i = (uintmax_t) -1;
6286 ;
6287 return 0;
6288}
6289_ACEOF
6290rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006291if { (ac_try="$ac_compile"
6292case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6297$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006298 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006308 jm_ac_cv_header_inttypes_h=yes
6309else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006310 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006311sed 's/^/| /' conftest.$ac_ext >&5
6312
Theodore Ts'oe1052142006-10-21 21:46:47 -04006313 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315
6316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006317fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006318{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6319$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006320 if test $jm_ac_cv_header_inttypes_h = yes; then
6321
6322cat >>confdefs.h <<_ACEOF
6323#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6324_ACEOF
6325
6326 fi
6327
6328
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006329 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6330$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331if test "${jm_ac_cv_header_stdint_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006332 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333else
6334 cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
6339/* end confdefs.h. */
6340#include <sys/types.h>
6341#include <stdint.h>
6342int
6343main ()
6344{
6345uintmax_t i = (uintmax_t) -1;
6346 ;
6347 return 0;
6348}
6349_ACEOF
6350rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006351if { (ac_try="$ac_compile"
6352case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6357$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006358 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006359 ac_status=$?
6360 grep -v '^ *+' conftest.er1 >conftest.err
6361 rm -f conftest.er1
6362 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006364 (exit $ac_status); } && {
6365 test -z "$ac_c_werror_flag" ||
6366 test ! -s conftest.err
6367 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006368 jm_ac_cv_header_stdint_h=yes
6369else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006370 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371sed 's/^/| /' conftest.$ac_ext >&5
6372
Theodore Ts'oe1052142006-10-21 21:46:47 -04006373 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006374fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006375
6376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006377fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006378{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6379$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380 if test $jm_ac_cv_header_stdint_h = yes; then
6381
6382cat >>confdefs.h <<_ACEOF
6383#define HAVE_STDINT_H_WITH_UINTMAX 1
6384_ACEOF
6385
6386 fi
6387
6388
6389
6390
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006391 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6392$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393if test "${gt_cv_c_intmax_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006394 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395else
6396 cat >conftest.$ac_ext <<_ACEOF
6397/* confdefs.h. */
6398_ACEOF
6399cat confdefs.h >>conftest.$ac_ext
6400cat >>conftest.$ac_ext <<_ACEOF
6401/* end confdefs.h. */
6402
6403#include <stddef.h>
6404#include <stdlib.h>
6405#if HAVE_STDINT_H_WITH_UINTMAX
6406#include <stdint.h>
6407#endif
6408#if HAVE_INTTYPES_H_WITH_UINTMAX
6409#include <inttypes.h>
6410#endif
6411
6412int
6413main ()
6414{
6415intmax_t x = -1;
6416 ;
6417 return 0;
6418}
6419_ACEOF
6420rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006421if { (ac_try="$ac_compile"
6422case "(($ac_try" in
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6425esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6427$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006428 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006438 gt_cv_c_intmax_t=yes
6439else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006440 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441sed 's/^/| /' conftest.$ac_ext >&5
6442
Theodore Ts'oe1052142006-10-21 21:46:47 -04006443 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445
6446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006448{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6449$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450 if test $gt_cv_c_intmax_t = yes; then
6451
6452cat >>confdefs.h <<\_ACEOF
6453#define HAVE_INTMAX_T 1
6454_ACEOF
6455
6456 fi
6457
6458
6459
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006460 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6461$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462if test "${gt_cv_func_printf_posix+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006463 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464else
6465
6466 if test "$cross_compiling" = yes; then
6467
6468 cat >conftest.$ac_ext <<_ACEOF
6469/* confdefs.h. */
6470_ACEOF
6471cat confdefs.h >>conftest.$ac_ext
6472cat >>conftest.$ac_ext <<_ACEOF
6473/* end confdefs.h. */
6474
6475#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6476 notposix
6477#endif
6478
6479_ACEOF
6480if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6481 $EGREP "notposix" >/dev/null 2>&1; then
6482 gt_cv_func_printf_posix="guessing no"
6483else
6484 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006485fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006486rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488
6489else
6490 cat >conftest.$ac_ext <<_ACEOF
6491/* confdefs.h. */
6492_ACEOF
6493cat confdefs.h >>conftest.$ac_ext
6494cat >>conftest.$ac_ext <<_ACEOF
6495/* end confdefs.h. */
6496
6497#include <stdio.h>
6498#include <string.h>
6499/* The string "%2$d %1$d", with dollar characters protected from the shell's
6500 dollar expansion (possibly an autoconf bug). */
6501static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6502static char buf[100];
6503int main ()
6504{
6505 sprintf (buf, format, 33, 55);
6506 return (strcmp (buf, "55 33") != 0);
6507}
6508_ACEOF
6509rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006510if { (ac_try="$ac_link"
6511case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006515eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6516$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006517 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6526$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006527 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530 (exit $ac_status); }; }; then
6531 gt_cv_func_printf_posix=yes
6532else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006533 $as_echo "$as_me: program exited with status $ac_status" >&5
6534$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535sed 's/^/| /' conftest.$ac_ext >&5
6536
6537( exit $ac_status )
6538gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006539fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006540rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006541rm -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 -05006542fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006543
Theodore Ts'oe1052142006-10-21 21:46:47 -04006544
6545
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006546fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006547{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6548$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549 case $gt_cv_func_printf_posix in
6550 *yes)
6551
6552cat >>confdefs.h <<\_ACEOF
6553#define HAVE_POSIX_PRINTF 1
6554_ACEOF
6555
6556 ;;
6557 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006558
6559# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6560# for constant arguments. Useless!
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006561{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6562$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006563if test "${ac_cv_working_alloca_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006564 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006565else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566 cat >conftest.$ac_ext <<_ACEOF
6567/* confdefs.h. */
6568_ACEOF
6569cat confdefs.h >>conftest.$ac_ext
6570cat >>conftest.$ac_ext <<_ACEOF
6571/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006572#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006573int
6574main ()
6575{
6576char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006577 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006578 ;
6579 return 0;
6580}
6581_ACEOF
6582rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006583if { (ac_try="$ac_link"
6584case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6589$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006590 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006596 (exit $ac_status); } && {
6597 test -z "$ac_c_werror_flag" ||
6598 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006599 } && test -s conftest$ac_exeext && {
6600 test "$cross_compiling" = yes ||
6601 $as_test_x conftest$ac_exeext
6602 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006604else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006605 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607
Theodore Ts'oe1052142006-10-21 21:46:47 -04006608 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006610
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006611rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006613 conftest$ac_exeext conftest.$ac_ext
6614fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006615{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6616$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006617if test $ac_cv_working_alloca_h = yes; then
6618
6619cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006620#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006621_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006622
6623fi
6624
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006625{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6626$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627if test "${ac_cv_func_alloca_works+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006628 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006629else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630 cat >conftest.$ac_ext <<_ACEOF
6631/* confdefs.h. */
6632_ACEOF
6633cat confdefs.h >>conftest.$ac_ext
6634cat >>conftest.$ac_ext <<_ACEOF
6635/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006636#ifdef __GNUC__
6637# define alloca __builtin_alloca
6638#else
6639# ifdef _MSC_VER
6640# include <malloc.h>
6641# define alloca _alloca
6642# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006643# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006644# include <alloca.h>
6645# else
6646# ifdef _AIX
6647 #pragma alloca
6648# else
6649# ifndef alloca /* predefined by HP cc +Olibcalls */
6650char *alloca ();
6651# endif
6652# endif
6653# endif
6654# endif
6655#endif
6656
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006657int
6658main ()
6659{
6660char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006661 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006662 ;
6663 return 0;
6664}
6665_ACEOF
6666rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006667if { (ac_try="$ac_link"
6668case "(($ac_try" in
6669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6671esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6673$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006674 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006680 (exit $ac_status); } && {
6681 test -z "$ac_c_werror_flag" ||
6682 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006683 } && test -s conftest$ac_exeext && {
6684 test "$cross_compiling" = yes ||
6685 $as_test_x conftest$ac_exeext
6686 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006687 ac_cv_func_alloca_works=yes
6688else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006689 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006690sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006691
Theodore Ts'oe1052142006-10-21 21:46:47 -04006692 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006693fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006695rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 conftest$ac_exeext conftest.$ac_ext
6698fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006699{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6700$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006702if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703
6704cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006705#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006706_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006707
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006708else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6710# that cause trouble. Some versions do not even contain alloca or
6711# contain a buggy version. If you still want to use their alloca,
6712# use ar to extract alloca.o from them instead of compiling alloca.c.
6713
Theodore Ts'oe1052142006-10-21 21:46:47 -04006714ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715
6716cat >>confdefs.h <<\_ACEOF
6717#define C_ALLOCA 1
6718_ACEOF
6719
6720
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006721{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6722$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723if test "${ac_cv_os_cray+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006724 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725else
6726 cat >conftest.$ac_ext <<_ACEOF
6727/* confdefs.h. */
6728_ACEOF
6729cat confdefs.h >>conftest.$ac_ext
6730cat >>conftest.$ac_ext <<_ACEOF
6731/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006732#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006733webecray
6734#else
6735wenotbecray
6736#endif
6737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006739if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006741 ac_cv_os_cray=yes
6742else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006743 ac_cv_os_cray=no
6744fi
6745rm -f conftest*
6746
6747fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006748{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6749$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006750if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006752 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6753{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6754$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006755if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006756 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006757else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758 cat >conftest.$ac_ext <<_ACEOF
6759/* confdefs.h. */
6760_ACEOF
6761cat confdefs.h >>conftest.$ac_ext
6762cat >>conftest.$ac_ext <<_ACEOF
6763/* end confdefs.h. */
6764/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6766#define $ac_func innocuous_$ac_func
6767
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006768/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006769 which can conflict with char $ac_func (); below.
6770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6771 <limits.h> exists even on freestanding compilers. */
6772
6773#ifdef __STDC__
6774# include <limits.h>
6775#else
6776# include <assert.h>
6777#endif
6778
6779#undef $ac_func
6780
Theodore Ts'oe1052142006-10-21 21:46:47 -04006781/* Override any GCC internal prototype to avoid an error.
6782 Use char because int might match the return type of a GCC
6783 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784#ifdef __cplusplus
6785extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006788/* The GNU C library defines this for functions which it implements
6789 to always fail with ENOSYS. Some functions are actually named
6790 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006791#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006792choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006793#endif
6794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795int
6796main ()
6797{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006798return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799 ;
6800 return 0;
6801}
6802_ACEOF
6803rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006804if { (ac_try="$ac_link"
6805case "(($ac_try" in
6806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6807 *) ac_try_echo=$ac_try;;
6808esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006809eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6810$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006811 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812 ac_status=$?
6813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006820 } && test -s conftest$ac_exeext && {
6821 test "$cross_compiling" = yes ||
6822 $as_test_x conftest$ac_exeext
6823 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006825else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006826 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006828
Theodore Ts'oe1052142006-10-21 21:46:47 -04006829 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006831
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006832rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006833rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834 conftest$ac_exeext conftest.$ac_ext
6835fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006836ac_res=`eval 'as_val=${'$as_ac_var'}
6837 $as_echo "$as_val"'`
6838 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6839$as_echo "$ac_res" >&6; }
6840as_val=`eval 'as_val=${'$as_ac_var'}
6841 $as_echo "$as_val"'`
6842 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843
6844cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006845#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849fi
6850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006851 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006852fi
6853
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006854{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6855$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006856if test "${ac_cv_c_stack_direction+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006857 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006858else
6859 if test "$cross_compiling" = yes; then
6860 ac_cv_c_stack_direction=0
6861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862 cat >conftest.$ac_ext <<_ACEOF
6863/* confdefs.h. */
6864_ACEOF
6865cat confdefs.h >>conftest.$ac_ext
6866cat >>conftest.$ac_ext <<_ACEOF
6867/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006870find_stack_direction ()
6871{
6872 static char *addr = 0;
6873 auto char dummy;
6874 if (addr == 0)
6875 {
6876 addr = &dummy;
6877 return find_stack_direction ();
6878 }
6879 else
6880 return (&dummy > addr) ? 1 : -1;
6881}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882
6883int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006884main ()
6885{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006886 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006887}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888_ACEOF
6889rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006890if { (ac_try="$ac_link"
6891case "(($ac_try" in
6892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6893 *) ac_try_echo=$ac_try;;
6894esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6896$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006897 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006901 { (case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6906$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006907 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006911 ac_cv_c_stack_direction=1
6912else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006913 $as_echo "$as_me: program exited with status $ac_status" >&5
6914$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917( exit $ac_status )
6918ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006919fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006920rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006921rm -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 -05006922fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006923
6924
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006925fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006926{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6927$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006928
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931_ACEOF
6932
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006933
6934fi
6935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936
6937
6938for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006939do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006940as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006941if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006942 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6943$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006944if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006945 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006946fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006947ac_res=`eval 'as_val=${'$as_ac_Header'}
6948 $as_echo "$as_val"'`
6949 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6950$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006951else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006953{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6954$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961$ac_includes_default
6962#include <$ac_header>
6963_ACEOF
6964rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006965if { (ac_try="$ac_compile"
6966case "(($ac_try" in
6967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6968 *) ac_try_echo=$ac_try;;
6969esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6971$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006972 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006978 (exit $ac_status); } && {
6979 test -z "$ac_c_werror_flag" ||
6980 test ! -s conftest.err
6981 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982 ac_header_compiler=yes
6983else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006984 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006985sed 's/^/| /' conftest.$ac_ext >&5
6986
Theodore Ts'oe1052142006-10-21 21:46:47 -04006987 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006988fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006989
6990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006991{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6992$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993
6994# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006995{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6996$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997cat >conftest.$ac_ext <<_ACEOF
6998/* confdefs.h. */
6999_ACEOF
7000cat confdefs.h >>conftest.$ac_ext
7001cat >>conftest.$ac_ext <<_ACEOF
7002/* end confdefs.h. */
7003#include <$ac_header>
7004_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007005if { (ac_try="$ac_cpp conftest.$ac_ext"
7006case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7011$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007013 ac_status=$?
7014 grep -v '^ *+' conftest.er1 >conftest.err
7015 rm -f conftest.er1
7016 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007018 (exit $ac_status); } >/dev/null && {
7019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7020 test ! -s conftest.err
7021 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022 ac_header_preproc=yes
7023else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007024 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025sed 's/^/| /' conftest.$ac_ext >&5
7026
7027 ac_header_preproc=no
7028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007030rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007031{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7032$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033
7034# So? What about this header?
7035case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7036 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007037 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7038$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7040$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041 ac_header_preproc=yes
7042 ;;
7043 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7045$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7047$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7049$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7051$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7053$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7055$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007056
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007057 ;;
7058esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007059{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7060$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007061if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007062 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007063else
7064 eval "$as_ac_Header=\$ac_header_preproc"
7065fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007066ac_res=`eval 'as_val=${'$as_ac_Header'}
7067 $as_echo "$as_val"'`
7068 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7069$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070
7071fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007072as_val=`eval 'as_val=${'$as_ac_Header'}
7073 $as_echo "$as_val"'`
7074 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007076#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077_ACEOF
7078
7079fi
7080
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007081done
7082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007083
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084for ac_func in getpagesize
7085do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007086as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7087{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7088$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007089if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007090 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092 cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
7097/* end confdefs.h. */
7098/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7100#define $ac_func innocuous_$ac_func
7101
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103 which can conflict with char $ac_func (); below.
7104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7105 <limits.h> exists even on freestanding compilers. */
7106
7107#ifdef __STDC__
7108# include <limits.h>
7109#else
7110# include <assert.h>
7111#endif
7112
7113#undef $ac_func
7114
Theodore Ts'oe1052142006-10-21 21:46:47 -04007115/* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007118#ifdef __cplusplus
7119extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007121char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007122/* The GNU C library defines this for functions which it implements
7123 to always fail with ENOSYS. Some functions are actually named
7124 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007125#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007126choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127#endif
7128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129int
7130main ()
7131{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007132return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007133 ;
7134 return 0;
7135}
7136_ACEOF
7137rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007138if { (ac_try="$ac_link"
7139case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7144$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007145 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007154 } && test -s conftest$ac_exeext && {
7155 test "$cross_compiling" = yes ||
7156 $as_test_x conftest$ac_exeext
7157 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007158 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007159else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007160 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007161sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007162
Theodore Ts'oe1052142006-10-21 21:46:47 -04007163 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007164fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007165
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007166rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007167rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007168 conftest$ac_exeext conftest.$ac_ext
7169fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007170ac_res=`eval 'as_val=${'$as_ac_var'}
7171 $as_echo "$as_val"'`
7172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7173$as_echo "$ac_res" >&6; }
7174as_val=`eval 'as_val=${'$as_ac_var'}
7175 $as_echo "$as_val"'`
7176 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007178#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179_ACEOF
7180
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007181fi
7182done
7183
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007184{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7185$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007187 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007188else
7189 if test "$cross_compiling" = yes; then
7190 ac_cv_func_mmap_fixed_mapped=no
7191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 cat >conftest.$ac_ext <<_ACEOF
7193/* confdefs.h. */
7194_ACEOF
7195cat confdefs.h >>conftest.$ac_ext
7196cat >>conftest.$ac_ext <<_ACEOF
7197/* end confdefs.h. */
7198$ac_includes_default
7199/* malloc might have been renamed as rpl_malloc. */
7200#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007201
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007202/* Thanks to Mike Haertel and Jim Avera for this test.
7203 Here is a matrix of mmap possibilities:
7204 mmap private not fixed
7205 mmap private fixed at somewhere currently unmapped
7206 mmap private fixed at somewhere already mapped
7207 mmap shared not fixed
7208 mmap shared fixed at somewhere currently unmapped
7209 mmap shared fixed at somewhere already mapped
7210 For private mappings, we should verify that changes cannot be read()
7211 back from the file, nor mmap's back from the file at a different
7212 address. (There have been systems where private was not correctly
7213 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007214 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007215 like early versions of FreeBSD and possibly contemporary NetBSD.)
7216 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007218
7219 Grep wants private fixed already mapped.
7220 The main things grep needs to know about mmap are:
7221 * does it exist and is it safe to write into the mmap'd area
7222 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007224#include <fcntl.h>
7225#include <sys/mman.h>
7226
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007227#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007228char *malloc ();
7229#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007232#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007233/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007234# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007235# define HAVE_SYS_PARAM_H 1
7236# endif
7237
7238# ifdef _SC_PAGESIZE
7239# define getpagesize() sysconf(_SC_PAGESIZE)
7240# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007241# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242# include <sys/param.h>
7243# ifdef EXEC_PAGESIZE
7244# define getpagesize() EXEC_PAGESIZE
7245# else /* no EXEC_PAGESIZE */
7246# ifdef NBPG
7247# define getpagesize() NBPG * CLSIZE
7248# ifndef CLSIZE
7249# define CLSIZE 1
7250# endif /* no CLSIZE */
7251# else /* no NBPG */
7252# ifdef NBPC
7253# define getpagesize() NBPC
7254# else /* no NBPC */
7255# ifdef PAGESIZE
7256# define getpagesize() PAGESIZE
7257# endif /* PAGESIZE */
7258# endif /* no NBPC */
7259# endif /* no NBPG */
7260# endif /* no EXEC_PAGESIZE */
7261# else /* no HAVE_SYS_PARAM_H */
7262# define getpagesize() 8192 /* punt totally */
7263# endif /* no HAVE_SYS_PARAM_H */
7264# endif /* no _SC_PAGESIZE */
7265
7266#endif /* no HAVE_GETPAGESIZE */
7267
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007268int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271 char *data, *data2, *data3;
7272 int i, pagesize;
7273 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277 /* First, make a file with some known garbage in it. */
7278 data = (char *) malloc (pagesize);
7279 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007280 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007281 for (i = 0; i < pagesize; ++i)
7282 *(data + i) = rand ();
7283 umask (0);
7284 fd = creat ("conftest.mmap", 0600);
7285 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007286 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 /* Next, try to mmap the file at a fixed address which already has
7292 something else allocated at it. If we can, also make sure that
7293 we see the same garbage. */
7294 fd = open ("conftest.mmap", O_RDWR);
7295 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007296 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297 data2 = (char *) malloc (2 * pagesize);
7298 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007299 return 1;
7300 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7302 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007303 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304 for (i = 0; i < pagesize; ++i)
7305 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007306 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308 /* Finally, make sure that changes to the mapped area do not
7309 percolate back to the file as seen by read(). (This is a bug on
7310 some variants of i386 svr4.0.) */
7311 for (i = 0; i < pagesize; ++i)
7312 *(data2 + i) = *(data2 + i) + 1;
7313 data3 = (char *) malloc (pagesize);
7314 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007315 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007317 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 for (i = 0; i < pagesize; ++i)
7319 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007320 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007322 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007323}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007324_ACEOF
7325rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007326if { (ac_try="$ac_link"
7327case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7332$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007333 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007334 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007337 { (case "(($ac_try" in
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7340esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7342$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007343 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007344 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007347 ac_cv_func_mmap_fixed_mapped=yes
7348else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007349 $as_echo "$as_me: program exited with status $ac_status" >&5
7350$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007352
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353( exit $ac_status )
7354ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007355fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007356rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007357rm -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 -05007358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359
7360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007362{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7363$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007364if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007365
7366cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007367#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007369
7370fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007372
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007373
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007374 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7375$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 -05007376if test "${ac_cv_gnu_library_2_1+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007377 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007379 cat >conftest.$ac_ext <<_ACEOF
7380/* confdefs.h. */
7381_ACEOF
7382cat confdefs.h >>conftest.$ac_ext
7383cat >>conftest.$ac_ext <<_ACEOF
7384/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007385
7386#include <features.h>
7387#ifdef __GNU_LIBRARY__
7388 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7389 Lucky GNU user
7390 #endif
7391#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007392
7393_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007396 ac_cv_gnu_library_2_1=yes
7397else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007398 ac_cv_gnu_library_2_1=no
7399fi
7400rm -f conftest*
7401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402
7403
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007404fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007405{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7406$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007408 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007409
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007411
7412
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007413 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7414$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007416 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007417else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007421 # Guess based on the CPU.
7422 case "$host_cpu" in
7423 alpha* | i3456786 | m68k | s390*)
7424 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7425 *)
7426 gt_cv_int_divbyzero_sigfpe="guessing no";;
7427 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007428
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007429else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430 cat >conftest.$ac_ext <<_ACEOF
7431/* confdefs.h. */
7432_ACEOF
7433cat confdefs.h >>conftest.$ac_ext
7434cat >>conftest.$ac_ext <<_ACEOF
7435/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007436
7437#include <stdlib.h>
7438#include <signal.h>
7439
7440static void
7441#ifdef __cplusplus
7442sigfpe_handler (int sig)
7443#else
7444sigfpe_handler (sig) int sig;
7445#endif
7446{
7447 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7448 exit (sig != SIGFPE);
7449}
7450
7451int x = 1;
7452int y = 0;
7453int z;
7454int nan;
7455
7456int main ()
7457{
7458 signal (SIGFPE, sigfpe_handler);
7459/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7460#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7461 signal (SIGTRAP, sigfpe_handler);
7462#endif
7463/* Linux/SPARC yields signal SIGILL. */
7464#if defined (__sparc__) && defined (__linux__)
7465 signal (SIGILL, sigfpe_handler);
7466#endif
7467
7468 z = x / y;
7469 nan = y / y;
7470 exit (1);
7471}
7472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473_ACEOF
7474rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007475if { (ac_try="$ac_link"
7476case "(($ac_try" in
7477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7478 *) ac_try_echo=$ac_try;;
7479esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7481$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007482 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007483 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007486 { (case "(($ac_try" in
7487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488 *) ac_try_echo=$ac_try;;
7489esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7491$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007492 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007493 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007496 gt_cv_int_divbyzero_sigfpe=yes
7497else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007498 $as_echo "$as_me: program exited with status $ac_status" >&5
7499$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500sed 's/^/| /' conftest.$ac_ext >&5
7501
7502( exit $ac_status )
7503gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007505rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007506rm -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 -04007507fi
7508
Theodore Ts'oe1052142006-10-21 21:46:47 -04007509
7510
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007511fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007512{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7513$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007514 case "$gt_cv_int_divbyzero_sigfpe" in
7515 *yes) value=1;;
7516 *) value=0;;
7517 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518
7519cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007520#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007522
7523
7524
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007525 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7526$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527if test "${ac_cv_type_unsigned_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007528 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529else
7530 cat >conftest.$ac_ext <<_ACEOF
7531/* confdefs.h. */
7532_ACEOF
7533cat confdefs.h >>conftest.$ac_ext
7534cat >>conftest.$ac_ext <<_ACEOF
7535/* end confdefs.h. */
7536unsigned long long ull = 1ULL; int i = 63;
7537int
7538main ()
7539{
7540unsigned long long ullmax = (unsigned long long) -1;
7541 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7542 ;
7543 return 0;
7544}
7545_ACEOF
7546rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007547if { (ac_try="$ac_link"
7548case "(($ac_try" in
7549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7550 *) ac_try_echo=$ac_try;;
7551esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7553$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007554 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007555 ac_status=$?
7556 grep -v '^ *+' conftest.er1 >conftest.err
7557 rm -f conftest.er1
7558 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007560 (exit $ac_status); } && {
7561 test -z "$ac_c_werror_flag" ||
7562 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007563 } && test -s conftest$ac_exeext && {
7564 test "$cross_compiling" = yes ||
7565 $as_test_x conftest$ac_exeext
7566 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567 ac_cv_type_unsigned_long_long=yes
7568else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007569 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570sed 's/^/| /' conftest.$ac_ext >&5
7571
Theodore Ts'oe1052142006-10-21 21:46:47 -04007572 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007574
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007575rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007576rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577 conftest$ac_exeext conftest.$ac_ext
7578fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007579{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7580$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007581 if test $ac_cv_type_unsigned_long_long = yes; then
7582
7583cat >>confdefs.h <<\_ACEOF
7584#define HAVE_UNSIGNED_LONG_LONG 1
7585_ACEOF
7586
7587 fi
7588
7589
7590
7591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007592 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 -05007593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007594 test $ac_cv_type_unsigned_long_long = yes \
7595 && ac_type='unsigned long long' \
7596 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597
7598cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007599#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600_ACEOF
7601
7602 else
7603
7604cat >>confdefs.h <<\_ACEOF
7605#define HAVE_UINTMAX_T 1
7606_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007607
7608 fi
7609
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007610
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007611 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7612$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613if test "${gt_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007614 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007616
7617 cat >conftest.$ac_ext <<_ACEOF
7618/* confdefs.h. */
7619_ACEOF
7620cat confdefs.h >>conftest.$ac_ext
7621cat >>conftest.$ac_ext <<_ACEOF
7622/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007623#include <sys/types.h>
7624#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625int
7626main ()
7627{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007628
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629 ;
7630 return 0;
7631}
7632_ACEOF
7633rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007634if { (ac_try="$ac_compile"
7635case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7638esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007641 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007651 gt_cv_header_inttypes_h=yes
7652else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007653 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007655
Theodore Ts'oe1052142006-10-21 21:46:47 -04007656 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658
7659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660
7661fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007662{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7663$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007664 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007665
7666cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007667#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007669
7670 fi
7671
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007673
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007674 if test $gt_cv_header_inttypes_h = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007675 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7676$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007677if test "${gt_cv_inttypes_pri_broken+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007678 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007679else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680
7681 cat >conftest.$ac_ext <<_ACEOF
7682/* confdefs.h. */
7683_ACEOF
7684cat confdefs.h >>conftest.$ac_ext
7685cat >>conftest.$ac_ext <<_ACEOF
7686/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007687#include <inttypes.h>
7688#ifdef PRId32
7689char *p = PRId32;
7690#endif
7691
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692int
7693main ()
7694{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007695
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696 ;
7697 return 0;
7698}
7699_ACEOF
7700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007701if { (ac_try="$ac_compile"
7702case "(($ac_try" in
7703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7705esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7707$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007708 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007718 gt_cv_inttypes_pri_broken=no
7719else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007720 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007722
Theodore Ts'oe1052142006-10-21 21:46:47 -04007723 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007724fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007725
7726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727
7728fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007729{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7730$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007731 fi
7732 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007733
7734cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007735#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007736_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007737
7738 fi
7739
7740
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007742for ac_header in stdint.h
7743do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007744as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007745if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007746 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7747$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007748if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007749 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007750fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007751ac_res=`eval 'as_val=${'$as_ac_Header'}
7752 $as_echo "$as_val"'`
7753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7754$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007755else
7756 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007757{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7758$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007759cat >conftest.$ac_ext <<_ACEOF
7760/* confdefs.h. */
7761_ACEOF
7762cat confdefs.h >>conftest.$ac_ext
7763cat >>conftest.$ac_ext <<_ACEOF
7764/* end confdefs.h. */
7765$ac_includes_default
7766#include <$ac_header>
7767_ACEOF
7768rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007769if { (ac_try="$ac_compile"
7770case "(($ac_try" in
7771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7772 *) ac_try_echo=$ac_try;;
7773esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007774eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7775$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007776 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007786 ac_header_compiler=yes
7787else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007788 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007789sed 's/^/| /' conftest.$ac_ext >&5
7790
Theodore Ts'oe1052142006-10-21 21:46:47 -04007791 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007793
7794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007795{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7796$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797
7798# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007799{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7800$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801cat >conftest.$ac_ext <<_ACEOF
7802/* confdefs.h. */
7803_ACEOF
7804cat confdefs.h >>conftest.$ac_ext
7805cat >>conftest.$ac_ext <<_ACEOF
7806/* end confdefs.h. */
7807#include <$ac_header>
7808_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007809if { (ac_try="$ac_cpp conftest.$ac_ext"
7810case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817 ac_status=$?
7818 grep -v '^ *+' conftest.er1 >conftest.err
7819 rm -f conftest.er1
7820 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007822 (exit $ac_status); } >/dev/null && {
7823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7824 test ! -s conftest.err
7825 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007826 ac_header_preproc=yes
7827else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007828 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007829sed 's/^/| /' conftest.$ac_ext >&5
7830
7831 ac_header_preproc=no
7832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007835{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7836$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837
7838# So? What about this header?
7839case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7840 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7842$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7844$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007845 ac_header_preproc=yes
7846 ;;
7847 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7849$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7851$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7853$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7855$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7857$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7859$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007861 ;;
7862esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007863{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7864$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007866 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007867else
7868 eval "$as_ac_Header=\$ac_header_preproc"
7869fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007870ac_res=`eval 'as_val=${'$as_ac_Header'}
7871 $as_echo "$as_val"'`
7872 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7873$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007874
7875fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007876as_val=`eval 'as_val=${'$as_ac_Header'}
7877 $as_echo "$as_val"'`
7878 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007879 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881_ACEOF
7882
7883fi
7884
7885done
7886
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007887 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7888$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007889 result=
7890 cat >conftest.$ac_ext <<_ACEOF
7891/* confdefs.h. */
7892_ACEOF
7893cat confdefs.h >>conftest.$ac_ext
7894cat >>conftest.$ac_ext <<_ACEOF
7895/* end confdefs.h. */
7896
7897#include <limits.h>
7898#if HAVE_STDINT_H
7899#include <stdint.h>
7900#endif
7901#ifdef SIZE_MAX
7902Found it
7903#endif
7904
7905_ACEOF
7906if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7907 $EGREP "Found it" >/dev/null 2>&1; then
7908 result=yes
7909fi
7910rm -f conftest*
7911
7912 if test -z "$result"; then
7913 if test "$cross_compiling" = yes; then
7914 # Depending upon the size, compute the lo and hi bounds.
7915cat >conftest.$ac_ext <<_ACEOF
7916/* confdefs.h. */
7917_ACEOF
7918cat confdefs.h >>conftest.$ac_ext
7919cat >>conftest.$ac_ext <<_ACEOF
7920/* end confdefs.h. */
7921#include <stddef.h>
7922int
7923main ()
7924{
7925static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7926test_array [0] = 0
7927
7928 ;
7929 return 0;
7930}
7931_ACEOF
7932rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007933if { (ac_try="$ac_compile"
7934case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007940 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007950 ac_lo=0 ac_mid=0
7951 while :; do
7952 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958#include <stddef.h>
7959int
7960main ()
7961{
7962static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7963test_array [0] = 0
7964
7965 ;
7966 return 0;
7967}
7968_ACEOF
7969rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007970if { (ac_try="$ac_compile"
7971case "(($ac_try" in
7972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7974esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7976$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007977 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007983 (exit $ac_status); } && {
7984 test -z "$ac_c_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987 ac_hi=$ac_mid; break
7988else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007989 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007990sed 's/^/| /' conftest.$ac_ext >&5
7991
Theodore Ts'oe1052142006-10-21 21:46:47 -04007992 ac_lo=`expr $ac_mid + 1`
7993 if test $ac_lo -le $ac_mid; then
7994 ac_lo= ac_hi=
7995 break
7996 fi
7997 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007999
8000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008001 done
8002else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008003 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008004sed 's/^/| /' conftest.$ac_ext >&5
8005
Theodore Ts'oe1052142006-10-21 21:46:47 -04008006 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012#include <stddef.h>
8013int
8014main ()
8015{
8016static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8017test_array [0] = 0
8018
8019 ;
8020 return 0;
8021}
8022_ACEOF
8023rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008024if { (ac_try="$ac_compile"
8025case "(($ac_try" in
8026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8027 *) ac_try_echo=$ac_try;;
8028esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008029eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8030$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008031 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008032 ac_status=$?
8033 grep -v '^ *+' conftest.er1 >conftest.err
8034 rm -f conftest.er1
8035 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008036 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008041 ac_hi=-1 ac_mid=-1
8042 while :; do
8043 cat >conftest.$ac_ext <<_ACEOF
8044/* confdefs.h. */
8045_ACEOF
8046cat confdefs.h >>conftest.$ac_ext
8047cat >>conftest.$ac_ext <<_ACEOF
8048/* end confdefs.h. */
8049#include <stddef.h>
8050int
8051main ()
8052{
8053static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8054test_array [0] = 0
8055
8056 ;
8057 return 0;
8058}
8059_ACEOF
8060rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008061if { (ac_try="$ac_compile"
8062case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8067$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008068 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069 ac_status=$?
8070 grep -v '^ *+' conftest.er1 >conftest.err
8071 rm -f conftest.er1
8072 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008074 (exit $ac_status); } && {
8075 test -z "$ac_c_werror_flag" ||
8076 test ! -s conftest.err
8077 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008078 ac_lo=$ac_mid; break
8079else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008080 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008081sed 's/^/| /' conftest.$ac_ext >&5
8082
Theodore Ts'oe1052142006-10-21 21:46:47 -04008083 ac_hi=`expr '(' $ac_mid ')' - 1`
8084 if test $ac_mid -le $ac_hi; then
8085 ac_lo= ac_hi=
8086 break
8087 fi
8088 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008090
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008092 done
8093else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008094 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008095sed 's/^/| /' conftest.$ac_ext >&5
8096
Theodore Ts'oe1052142006-10-21 21:46:47 -04008097 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008098fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008099
8100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008101fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008102
8103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008104# Binary search between lo and hi bounds.
8105while test "x$ac_lo" != "x$ac_hi"; do
8106 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8107 cat >conftest.$ac_ext <<_ACEOF
8108/* confdefs.h. */
8109_ACEOF
8110cat confdefs.h >>conftest.$ac_ext
8111cat >>conftest.$ac_ext <<_ACEOF
8112/* end confdefs.h. */
8113#include <stddef.h>
8114int
8115main ()
8116{
8117static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8118test_array [0] = 0
8119
8120 ;
8121 return 0;
8122}
8123_ACEOF
8124rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008125if { (ac_try="$ac_compile"
8126case "(($ac_try" in
8127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128 *) ac_try_echo=$ac_try;;
8129esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8131$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008132 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008133 ac_status=$?
8134 grep -v '^ *+' conftest.er1 >conftest.err
8135 rm -f conftest.er1
8136 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008138 (exit $ac_status); } && {
8139 test -z "$ac_c_werror_flag" ||
8140 test ! -s conftest.err
8141 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008142 ac_hi=$ac_mid
8143else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008144 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008145sed 's/^/| /' conftest.$ac_ext >&5
8146
Theodore Ts'oe1052142006-10-21 21:46:47 -04008147 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008149
8150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151done
8152case $ac_lo in
8153?*) res_hi=$ac_lo;;
8154'') result=? ;;
8155esac
8156else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008157 cat >conftest.$ac_ext <<_ACEOF
8158/* confdefs.h. */
8159_ACEOF
8160cat confdefs.h >>conftest.$ac_ext
8161cat >>conftest.$ac_ext <<_ACEOF
8162/* end confdefs.h. */
8163#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164static long int longval () { return ~(size_t)0 / 10; }
8165static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008166#include <stdio.h>
8167#include <stdlib.h>
8168int
8169main ()
8170{
8171
8172 FILE *f = fopen ("conftest.val", "w");
8173 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008174 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008175 if ((~(size_t)0 / 10) < 0)
8176 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008177 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008178 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008179 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008180 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008181 }
8182 else
8183 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008184 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008186 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008187 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008188 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008189 /* Do not output a trailing newline, as this causes \r\n confusion
8190 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008191 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008192
8193 ;
8194 return 0;
8195}
8196_ACEOF
8197rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008198if { (ac_try="$ac_link"
8199case "(($ac_try" in
8200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8201 *) ac_try_echo=$ac_try;;
8202esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8204$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008205 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008206 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008209 { (case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8214$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008215 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008216 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008218 (exit $ac_status); }; }; then
8219 res_hi=`cat conftest.val`
8220else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008221 $as_echo "$as_me: program exited with status $ac_status" >&5
8222$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008223sed 's/^/| /' conftest.$ac_ext >&5
8224
8225( exit $ac_status )
8226result=?
8227fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008228rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230fi
8231rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008233 if test "$cross_compiling" = yes; then
8234 # Depending upon the size, compute the lo and hi bounds.
8235cat >conftest.$ac_ext <<_ACEOF
8236/* confdefs.h. */
8237_ACEOF
8238cat confdefs.h >>conftest.$ac_ext
8239cat >>conftest.$ac_ext <<_ACEOF
8240/* end confdefs.h. */
8241#include <stddef.h>
8242int
8243main ()
8244{
8245static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8246test_array [0] = 0
8247
8248 ;
8249 return 0;
8250}
8251_ACEOF
8252rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008253if { (ac_try="$ac_compile"
8254case "(($ac_try" in
8255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8256 *) ac_try_echo=$ac_try;;
8257esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8259$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008260 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008270 ac_lo=0 ac_mid=0
8271 while :; do
8272 cat >conftest.$ac_ext <<_ACEOF
8273/* confdefs.h. */
8274_ACEOF
8275cat confdefs.h >>conftest.$ac_ext
8276cat >>conftest.$ac_ext <<_ACEOF
8277/* end confdefs.h. */
8278#include <stddef.h>
8279int
8280main ()
8281{
8282static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8283test_array [0] = 0
8284
8285 ;
8286 return 0;
8287}
8288_ACEOF
8289rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008290if { (ac_try="$ac_compile"
8291case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8296$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008307 ac_hi=$ac_mid; break
8308else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008309 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310sed 's/^/| /' conftest.$ac_ext >&5
8311
Theodore Ts'oe1052142006-10-21 21:46:47 -04008312 ac_lo=`expr $ac_mid + 1`
8313 if test $ac_lo -le $ac_mid; then
8314 ac_lo= ac_hi=
8315 break
8316 fi
8317 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008318fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008319
8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321 done
8322else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008323 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008324sed 's/^/| /' conftest.$ac_ext >&5
8325
Theodore Ts'oe1052142006-10-21 21:46:47 -04008326 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008327/* confdefs.h. */
8328_ACEOF
8329cat confdefs.h >>conftest.$ac_ext
8330cat >>conftest.$ac_ext <<_ACEOF
8331/* end confdefs.h. */
8332#include <stddef.h>
8333int
8334main ()
8335{
8336static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8337test_array [0] = 0
8338
8339 ;
8340 return 0;
8341}
8342_ACEOF
8343rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008344if { (ac_try="$ac_compile"
8345case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8350$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008351 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008352 ac_status=$?
8353 grep -v '^ *+' conftest.er1 >conftest.err
8354 rm -f conftest.er1
8355 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008357 (exit $ac_status); } && {
8358 test -z "$ac_c_werror_flag" ||
8359 test ! -s conftest.err
8360 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008361 ac_hi=-1 ac_mid=-1
8362 while :; do
8363 cat >conftest.$ac_ext <<_ACEOF
8364/* confdefs.h. */
8365_ACEOF
8366cat confdefs.h >>conftest.$ac_ext
8367cat >>conftest.$ac_ext <<_ACEOF
8368/* end confdefs.h. */
8369#include <stddef.h>
8370int
8371main ()
8372{
8373static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8374test_array [0] = 0
8375
8376 ;
8377 return 0;
8378}
8379_ACEOF
8380rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381if { (ac_try="$ac_compile"
8382case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8387$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389 ac_status=$?
8390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008394 (exit $ac_status); } && {
8395 test -z "$ac_c_werror_flag" ||
8396 test ! -s conftest.err
8397 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008398 ac_lo=$ac_mid; break
8399else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008400 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401sed 's/^/| /' conftest.$ac_ext >&5
8402
Theodore Ts'oe1052142006-10-21 21:46:47 -04008403 ac_hi=`expr '(' $ac_mid ')' - 1`
8404 if test $ac_mid -le $ac_hi; then
8405 ac_lo= ac_hi=
8406 break
8407 fi
8408 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008410
8411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008412 done
8413else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008414 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008415sed 's/^/| /' conftest.$ac_ext >&5
8416
Theodore Ts'oe1052142006-10-21 21:46:47 -04008417 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008419
8420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008422
8423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424# Binary search between lo and hi bounds.
8425while test "x$ac_lo" != "x$ac_hi"; do
8426 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8427 cat >conftest.$ac_ext <<_ACEOF
8428/* confdefs.h. */
8429_ACEOF
8430cat confdefs.h >>conftest.$ac_ext
8431cat >>conftest.$ac_ext <<_ACEOF
8432/* end confdefs.h. */
8433#include <stddef.h>
8434int
8435main ()
8436{
8437static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8438test_array [0] = 0
8439
8440 ;
8441 return 0;
8442}
8443_ACEOF
8444rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008445if { (ac_try="$ac_compile"
8446case "(($ac_try" in
8447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8448 *) ac_try_echo=$ac_try;;
8449esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008450eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8451$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008452 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008453 ac_status=$?
8454 grep -v '^ *+' conftest.er1 >conftest.err
8455 rm -f conftest.er1
8456 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008458 (exit $ac_status); } && {
8459 test -z "$ac_c_werror_flag" ||
8460 test ! -s conftest.err
8461 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008462 ac_hi=$ac_mid
8463else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008464 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008465sed 's/^/| /' conftest.$ac_ext >&5
8466
Theodore Ts'oe1052142006-10-21 21:46:47 -04008467 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008469
8470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008471done
8472case $ac_lo in
8473?*) res_lo=$ac_lo;;
8474'') result=? ;;
8475esac
8476else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008477 cat >conftest.$ac_ext <<_ACEOF
8478/* confdefs.h. */
8479_ACEOF
8480cat confdefs.h >>conftest.$ac_ext
8481cat >>conftest.$ac_ext <<_ACEOF
8482/* end confdefs.h. */
8483#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008484static long int longval () { return ~(size_t)0 % 10; }
8485static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008486#include <stdio.h>
8487#include <stdlib.h>
8488int
8489main ()
8490{
8491
8492 FILE *f = fopen ("conftest.val", "w");
8493 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008494 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008495 if ((~(size_t)0 % 10) < 0)
8496 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008497 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008498 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008499 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008500 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501 }
8502 else
8503 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008504 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008505 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008506 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008507 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008508 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008509 /* Do not output a trailing newline, as this causes \r\n confusion
8510 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008511 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008512
8513 ;
8514 return 0;
8515}
8516_ACEOF
8517rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008518if { (ac_try="$ac_link"
8519case "(($ac_try" in
8520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8521 *) ac_try_echo=$ac_try;;
8522esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8524$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008525 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008526 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008529 { (case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8534$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008535 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008536 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538 (exit $ac_status); }; }; then
8539 res_lo=`cat conftest.val`
8540else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008541 $as_echo "$as_me: program exited with status $ac_status" >&5
8542$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008543sed 's/^/| /' conftest.$ac_ext >&5
8544
8545( exit $ac_status )
8546result=?
8547fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008548rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008549rm -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 -05008550fi
8551rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008553 if test "$cross_compiling" = yes; then
8554 # Depending upon the size, compute the lo and hi bounds.
8555cat >conftest.$ac_ext <<_ACEOF
8556/* confdefs.h. */
8557_ACEOF
8558cat confdefs.h >>conftest.$ac_ext
8559cat >>conftest.$ac_ext <<_ACEOF
8560/* end confdefs.h. */
8561#include <stddef.h>
8562int
8563main ()
8564{
8565static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8566test_array [0] = 0
8567
8568 ;
8569 return 0;
8570}
8571_ACEOF
8572rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008573if { (ac_try="$ac_compile"
8574case "(($ac_try" in
8575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8576 *) ac_try_echo=$ac_try;;
8577esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8579$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008580 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008590 ac_lo=0 ac_mid=0
8591 while :; do
8592 cat >conftest.$ac_ext <<_ACEOF
8593/* confdefs.h. */
8594_ACEOF
8595cat confdefs.h >>conftest.$ac_ext
8596cat >>conftest.$ac_ext <<_ACEOF
8597/* end confdefs.h. */
8598#include <stddef.h>
8599int
8600main ()
8601{
8602static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8603test_array [0] = 0
8604
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008610if { (ac_try="$ac_compile"
8611case "(($ac_try" in
8612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8614esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8616$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008617 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618 ac_status=$?
8619 grep -v '^ *+' conftest.er1 >conftest.err
8620 rm -f conftest.er1
8621 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008623 (exit $ac_status); } && {
8624 test -z "$ac_c_werror_flag" ||
8625 test ! -s conftest.err
8626 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008627 ac_hi=$ac_mid; break
8628else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008629 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008630sed 's/^/| /' conftest.$ac_ext >&5
8631
Theodore Ts'oe1052142006-10-21 21:46:47 -04008632 ac_lo=`expr $ac_mid + 1`
8633 if test $ac_lo -le $ac_mid; then
8634 ac_lo= ac_hi=
8635 break
8636 fi
8637 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008638fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008639
8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641 done
8642else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008643 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008644sed 's/^/| /' conftest.$ac_ext >&5
8645
Theodore Ts'oe1052142006-10-21 21:46:47 -04008646 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008647/* confdefs.h. */
8648_ACEOF
8649cat confdefs.h >>conftest.$ac_ext
8650cat >>conftest.$ac_ext <<_ACEOF
8651/* end confdefs.h. */
8652#include <stddef.h>
8653int
8654main ()
8655{
8656static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8657test_array [0] = 0
8658
8659 ;
8660 return 0;
8661}
8662_ACEOF
8663rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008664if { (ac_try="$ac_compile"
8665case "(($ac_try" in
8666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8667 *) ac_try_echo=$ac_try;;
8668esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8670$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008677 (exit $ac_status); } && {
8678 test -z "$ac_c_werror_flag" ||
8679 test ! -s conftest.err
8680 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008681 ac_hi=-1 ac_mid=-1
8682 while :; do
8683 cat >conftest.$ac_ext <<_ACEOF
8684/* confdefs.h. */
8685_ACEOF
8686cat confdefs.h >>conftest.$ac_ext
8687cat >>conftest.$ac_ext <<_ACEOF
8688/* end confdefs.h. */
8689#include <stddef.h>
8690int
8691main ()
8692{
8693static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8694test_array [0] = 0
8695
8696 ;
8697 return 0;
8698}
8699_ACEOF
8700rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008701if { (ac_try="$ac_compile"
8702case "(($ac_try" in
8703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8705esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8707$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008708 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008709 ac_status=$?
8710 grep -v '^ *+' conftest.er1 >conftest.err
8711 rm -f conftest.er1
8712 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008714 (exit $ac_status); } && {
8715 test -z "$ac_c_werror_flag" ||
8716 test ! -s conftest.err
8717 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008718 ac_lo=$ac_mid; break
8719else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008720 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008721sed 's/^/| /' conftest.$ac_ext >&5
8722
Theodore Ts'oe1052142006-10-21 21:46:47 -04008723 ac_hi=`expr '(' $ac_mid ')' - 1`
8724 if test $ac_mid -le $ac_hi; then
8725 ac_lo= ac_hi=
8726 break
8727 fi
8728 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008729fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008730
8731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008732 done
8733else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008734 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008735sed 's/^/| /' conftest.$ac_ext >&5
8736
Theodore Ts'oe1052142006-10-21 21:46:47 -04008737 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008739
8740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008742
8743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744# Binary search between lo and hi bounds.
8745while test "x$ac_lo" != "x$ac_hi"; do
8746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8747 cat >conftest.$ac_ext <<_ACEOF
8748/* confdefs.h. */
8749_ACEOF
8750cat confdefs.h >>conftest.$ac_ext
8751cat >>conftest.$ac_ext <<_ACEOF
8752/* end confdefs.h. */
8753#include <stddef.h>
8754int
8755main ()
8756{
8757static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8758test_array [0] = 0
8759
8760 ;
8761 return 0;
8762}
8763_ACEOF
8764rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008765if { (ac_try="$ac_compile"
8766case "(($ac_try" in
8767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8768 *) ac_try_echo=$ac_try;;
8769esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8771$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008772 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008773 ac_status=$?
8774 grep -v '^ *+' conftest.er1 >conftest.err
8775 rm -f conftest.er1
8776 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008778 (exit $ac_status); } && {
8779 test -z "$ac_c_werror_flag" ||
8780 test ! -s conftest.err
8781 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782 ac_hi=$ac_mid
8783else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008784 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785sed 's/^/| /' conftest.$ac_ext >&5
8786
Theodore Ts'oe1052142006-10-21 21:46:47 -04008787 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008789
8790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791done
8792case $ac_lo in
8793?*) fits_in_uint=$ac_lo;;
8794'') result=? ;;
8795esac
8796else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797 cat >conftest.$ac_ext <<_ACEOF
8798/* confdefs.h. */
8799_ACEOF
8800cat confdefs.h >>conftest.$ac_ext
8801cat >>conftest.$ac_ext <<_ACEOF
8802/* end confdefs.h. */
8803#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008804static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8805static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806#include <stdio.h>
8807#include <stdlib.h>
8808int
8809main ()
8810{
8811
8812 FILE *f = fopen ("conftest.val", "w");
8813 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008814 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8816 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008817 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008818 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008819 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008820 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008821 }
8822 else
8823 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008824 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008825 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008827 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008828 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008829 /* Do not output a trailing newline, as this causes \r\n confusion
8830 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008831 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008838if { (ac_try="$ac_link"
8839case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8844$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008845 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008846 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008849 { (case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8854$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008855 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858 (exit $ac_status); }; }; then
8859 fits_in_uint=`cat conftest.val`
8860else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008861 $as_echo "$as_me: program exited with status $ac_status" >&5
8862$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008863sed 's/^/| /' conftest.$ac_ext >&5
8864
8865( exit $ac_status )
8866result=?
8867fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008868rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008869rm -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 -05008870fi
8871rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008872
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008873 if test "$fits_in_uint" = 1; then
8874 cat >conftest.$ac_ext <<_ACEOF
8875/* confdefs.h. */
8876_ACEOF
8877cat confdefs.h >>conftest.$ac_ext
8878cat >>conftest.$ac_ext <<_ACEOF
8879/* end confdefs.h. */
8880#include <stddef.h>
8881 extern size_t foo;
8882 extern unsigned long foo;
8883
8884int
8885main ()
8886{
8887
8888 ;
8889 return 0;
8890}
8891_ACEOF
8892rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008893if { (ac_try="$ac_compile"
8894case "(($ac_try" in
8895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8896 *) ac_try_echo=$ac_try;;
8897esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8899$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008900 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008901 ac_status=$?
8902 grep -v '^ *+' conftest.er1 >conftest.err
8903 rm -f conftest.er1
8904 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008906 (exit $ac_status); } && {
8907 test -z "$ac_c_werror_flag" ||
8908 test ! -s conftest.err
8909 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008910 fits_in_uint=0
8911else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008912 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008913sed 's/^/| /' conftest.$ac_ext >&5
8914
Theodore Ts'oe1052142006-10-21 21:46:47 -04008915
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008916fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008917
8918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008919 fi
8920 if test -z "$result"; then
8921 if test "$fits_in_uint" = 1; then
8922 result="$res_hi$res_lo"U
8923 else
8924 result="$res_hi$res_lo"UL
8925 fi
8926 else
8927 result='~(size_t)0'
8928 fi
8929 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008930 { $as_echo "$as_me:$LINENO: result: $result" >&5
8931$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008932 if test "$result" != yes; then
8933
8934cat >>confdefs.h <<_ACEOF
8935#define SIZE_MAX $result
8936_ACEOF
8937
8938 fi
8939
8940
8941
8942
8943for ac_header in stdint.h
8944do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008945as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008947 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8948$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008950 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008951fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008952ac_res=`eval 'as_val=${'$as_ac_Header'}
8953 $as_echo "$as_val"'`
8954 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8955$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008956else
8957 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008958{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8959$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008960cat >conftest.$ac_ext <<_ACEOF
8961/* confdefs.h. */
8962_ACEOF
8963cat confdefs.h >>conftest.$ac_ext
8964cat >>conftest.$ac_ext <<_ACEOF
8965/* end confdefs.h. */
8966$ac_includes_default
8967#include <$ac_header>
8968_ACEOF
8969rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008970if { (ac_try="$ac_compile"
8971case "(($ac_try" in
8972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8974esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8976$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008977 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008978 ac_status=$?
8979 grep -v '^ *+' conftest.er1 >conftest.err
8980 rm -f conftest.er1
8981 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008983 (exit $ac_status); } && {
8984 test -z "$ac_c_werror_flag" ||
8985 test ! -s conftest.err
8986 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008987 ac_header_compiler=yes
8988else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008989 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008990sed 's/^/| /' conftest.$ac_ext >&5
8991
Theodore Ts'oe1052142006-10-21 21:46:47 -04008992 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008994
8995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008996{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8997$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998
8999# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009000{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9001$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h. */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h. */
9008#include <$ac_header>
9009_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009010if { (ac_try="$ac_cpp conftest.$ac_ext"
9011case "(($ac_try" in
9012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9014esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9016$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009018 ac_status=$?
9019 grep -v '^ *+' conftest.er1 >conftest.err
9020 rm -f conftest.er1
9021 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009023 (exit $ac_status); } >/dev/null && {
9024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9025 test ! -s conftest.err
9026 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009027 ac_header_preproc=yes
9028else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009029 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032 ac_header_preproc=no
9033fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009035rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009036{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9037$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009038
9039# So? What about this header?
9040case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9041 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9043$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9045$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046 ac_header_preproc=yes
9047 ;;
9048 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009049 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9050$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9052$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9054$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9056$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9058$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9060$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009061
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 ;;
9063esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009064{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9065$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009066if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009067 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009068else
9069 eval "$as_ac_Header=\$ac_header_preproc"
9070fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009071ac_res=`eval 'as_val=${'$as_ac_Header'}
9072 $as_echo "$as_val"'`
9073 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9074$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075
9076fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009077as_val=`eval 'as_val=${'$as_ac_Header'}
9078 $as_echo "$as_val"'`
9079 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009080 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009081#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082_ACEOF
9083
9084fi
9085
9086done
9087
9088
9089
9090 if test "X$prefix" = "XNONE"; then
9091 acl_final_prefix="$ac_default_prefix"
9092 else
9093 acl_final_prefix="$prefix"
9094 fi
9095 if test "X$exec_prefix" = "XNONE"; then
9096 acl_final_exec_prefix='${prefix}'
9097 else
9098 acl_final_exec_prefix="$exec_prefix"
9099 fi
9100 acl_save_prefix="$prefix"
9101 prefix="$acl_final_prefix"
9102 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9103 prefix="$acl_save_prefix"
9104
9105
Theodore Ts'oe1052142006-10-21 21:46:47 -04009106# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009107if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009108 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009109else
9110 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009111fi
9112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009113# Prepare PATH_SEPARATOR.
9114# The user is always right.
9115if test "${PATH_SEPARATOR+set}" != set; then
9116 echo "#! /bin/sh" >conf$$.sh
9117 echo "exit 0" >>conf$$.sh
9118 chmod +x conf$$.sh
9119 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9120 PATH_SEPARATOR=';'
9121 else
9122 PATH_SEPARATOR=:
9123 fi
9124 rm -f conf$$.sh
9125fi
9126ac_prog=ld
9127if test "$GCC" = yes; then
9128 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009129 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9130$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009131 case $host in
9132 *-*-mingw*)
9133 # gcc leaves a trailing carriage return which upsets mingw
9134 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9135 *)
9136 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9137 esac
9138 case $ac_prog in
9139 # Accept absolute paths.
9140 [\\/]* | [A-Za-z]:[\\/]*)
9141 re_direlt='/[^/][^/]*/\.\./'
9142 # Canonicalize the path of ld
9143 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9144 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9145 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9146 done
9147 test -z "$LD" && LD="$ac_prog"
9148 ;;
9149 "")
9150 # If it fails, then pretend we aren't using GCC.
9151 ac_prog=ld
9152 ;;
9153 *)
9154 # If it is relative, then search for the first ld in PATH.
9155 with_gnu_ld=unknown
9156 ;;
9157 esac
9158elif test "$with_gnu_ld" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009159 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9160$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009161else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009162 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9163$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009164fi
9165if test "${acl_cv_path_LD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009166 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009167else
9168 if test -z "$LD"; then
9169 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9170 for ac_dir in $PATH; do
9171 test -z "$ac_dir" && ac_dir=.
9172 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9173 acl_cv_path_LD="$ac_dir/$ac_prog"
9174 # Check to see if the program is GNU ld. I'd rather use --version,
9175 # but apparently some GNU ld's only accept -v.
9176 # Break only if it was the GNU/non-GNU ld that we prefer.
9177 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9178 *GNU* | *'with BFD'*)
9179 test "$with_gnu_ld" != no && break ;;
9180 *)
9181 test "$with_gnu_ld" != yes && break ;;
9182 esac
9183 fi
9184 done
9185 IFS="$ac_save_ifs"
9186else
9187 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9188fi
9189fi
9190
9191LD="$acl_cv_path_LD"
9192if test -n "$LD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009193 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9194$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009196 { $as_echo "$as_me:$LINENO: result: no" >&5
9197$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009199test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9200$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009201 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009202{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9203$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009204if test "${acl_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009205 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009206else
9207 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9208case `$LD -v 2>&1 </dev/null` in
9209*GNU* | *'with BFD'*)
9210 acl_cv_prog_gnu_ld=yes ;;
9211*)
9212 acl_cv_prog_gnu_ld=no ;;
9213esac
9214fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009215{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9216$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217with_gnu_ld=$acl_cv_prog_gnu_ld
9218
9219
9220
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009221 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9222$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223if test "${acl_cv_rpath+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009224 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225else
9226
9227 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9228 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9229 . ./conftest.sh
9230 rm -f ./conftest.sh
9231 acl_cv_rpath=done
9232
9233fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009234{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9235$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009236 wl="$acl_cv_wl"
9237 libext="$acl_cv_libext"
9238 shlibext="$acl_cv_shlibext"
9239 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9240 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9241 hardcode_direct="$acl_cv_hardcode_direct"
9242 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009243 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009244if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009245 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009246else
9247 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009248fi
9249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009250
9251
9252
9253
9254
9255
9256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259 acl_save_prefix="$prefix"
9260 prefix="$acl_final_prefix"
9261 acl_save_exec_prefix="$exec_prefix"
9262 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009263
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009264 eval additional_includedir=\"$includedir\"
9265 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267 exec_prefix="$acl_save_exec_prefix"
9268 prefix="$acl_save_prefix"
9269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270
Theodore Ts'oe1052142006-10-21 21:46:47 -04009271# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009272if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009273 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274 if test "X$withval" = "Xno"; then
9275 use_additional=no
9276 else
9277 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009278
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009279 acl_save_prefix="$prefix"
9280 prefix="$acl_final_prefix"
9281 acl_save_exec_prefix="$exec_prefix"
9282 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009284 eval additional_includedir=\"$includedir\"
9285 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009287 exec_prefix="$acl_save_exec_prefix"
9288 prefix="$acl_save_prefix"
9289
9290 else
9291 additional_includedir="$withval/include"
9292 additional_libdir="$withval/lib"
9293 fi
9294 fi
9295
Theodore Ts'oe1052142006-10-21 21:46:47 -04009296fi
9297
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009298 LIBICONV=
9299 LTLIBICONV=
9300 INCICONV=
9301 rpathdirs=
9302 ltrpathdirs=
9303 names_already_handled=
9304 names_next_round='iconv '
9305 while test -n "$names_next_round"; do
9306 names_this_round="$names_next_round"
9307 names_next_round=
9308 for name in $names_this_round; do
9309 already_handled=
9310 for n in $names_already_handled; do
9311 if test "$n" = "$name"; then
9312 already_handled=yes
9313 break
9314 fi
9315 done
9316 if test -z "$already_handled"; then
9317 names_already_handled="$names_already_handled $name"
9318 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9319 eval value=\"\$HAVE_LIB$uppername\"
9320 if test -n "$value"; then
9321 if test "$value" = yes; then
9322 eval value=\"\$LIB$uppername\"
9323 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9324 eval value=\"\$LTLIB$uppername\"
9325 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9326 else
9327 :
9328 fi
9329 else
9330 found_dir=
9331 found_la=
9332 found_so=
9333 found_a=
9334 if test $use_additional = yes; then
9335 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9336 found_dir="$additional_libdir"
9337 found_so="$additional_libdir/lib$name.$shlibext"
9338 if test -f "$additional_libdir/lib$name.la"; then
9339 found_la="$additional_libdir/lib$name.la"
9340 fi
9341 else
9342 if test -f "$additional_libdir/lib$name.$libext"; then
9343 found_dir="$additional_libdir"
9344 found_a="$additional_libdir/lib$name.$libext"
9345 if test -f "$additional_libdir/lib$name.la"; then
9346 found_la="$additional_libdir/lib$name.la"
9347 fi
9348 fi
9349 fi
9350 fi
9351 if test "X$found_dir" = "X"; then
9352 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009353
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009354 acl_save_prefix="$prefix"
9355 prefix="$acl_final_prefix"
9356 acl_save_exec_prefix="$exec_prefix"
9357 exec_prefix="$acl_final_exec_prefix"
9358 eval x=\"$x\"
9359 exec_prefix="$acl_save_exec_prefix"
9360 prefix="$acl_save_prefix"
9361
9362 case "$x" in
9363 -L*)
9364 dir=`echo "X$x" | sed -e 's/^X-L//'`
9365 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9366 found_dir="$dir"
9367 found_so="$dir/lib$name.$shlibext"
9368 if test -f "$dir/lib$name.la"; then
9369 found_la="$dir/lib$name.la"
9370 fi
9371 else
9372 if test -f "$dir/lib$name.$libext"; then
9373 found_dir="$dir"
9374 found_a="$dir/lib$name.$libext"
9375 if test -f "$dir/lib$name.la"; then
9376 found_la="$dir/lib$name.la"
9377 fi
9378 fi
9379 fi
9380 ;;
9381 esac
9382 if test "X$found_dir" != "X"; then
9383 break
9384 fi
9385 done
9386 fi
9387 if test "X$found_dir" != "X"; then
9388 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9389 if test "X$found_so" != "X"; then
9390 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9391 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9392 else
9393 haveit=
9394 for x in $ltrpathdirs; do
9395 if test "X$x" = "X$found_dir"; then
9396 haveit=yes
9397 break
9398 fi
9399 done
9400 if test -z "$haveit"; then
9401 ltrpathdirs="$ltrpathdirs $found_dir"
9402 fi
9403 if test "$hardcode_direct" = yes; then
9404 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9405 else
9406 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9407 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9408 haveit=
9409 for x in $rpathdirs; do
9410 if test "X$x" = "X$found_dir"; then
9411 haveit=yes
9412 break
9413 fi
9414 done
9415 if test -z "$haveit"; then
9416 rpathdirs="$rpathdirs $found_dir"
9417 fi
9418 else
9419 haveit=
9420 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009422 acl_save_prefix="$prefix"
9423 prefix="$acl_final_prefix"
9424 acl_save_exec_prefix="$exec_prefix"
9425 exec_prefix="$acl_final_exec_prefix"
9426 eval x=\"$x\"
9427 exec_prefix="$acl_save_exec_prefix"
9428 prefix="$acl_save_prefix"
9429
9430 if test "X$x" = "X-L$found_dir"; then
9431 haveit=yes
9432 break
9433 fi
9434 done
9435 if test -z "$haveit"; then
9436 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9437 fi
9438 if test "$hardcode_minus_L" != no; then
9439 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9440 else
9441 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9442 fi
9443 fi
9444 fi
9445 fi
9446 else
9447 if test "X$found_a" != "X"; then
9448 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9449 else
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9451 fi
9452 fi
9453 additional_includedir=
9454 case "$found_dir" in
9455 */lib | */lib/)
9456 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9457 additional_includedir="$basedir/include"
9458 ;;
9459 esac
9460 if test "X$additional_includedir" != "X"; then
9461 if test "X$additional_includedir" != "X/usr/include"; then
9462 haveit=
9463 if test "X$additional_includedir" = "X/usr/local/include"; then
9464 if test -n "$GCC"; then
9465 case $host_os in
9466 linux*) haveit=yes;;
9467 esac
9468 fi
9469 fi
9470 if test -z "$haveit"; then
9471 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009473 acl_save_prefix="$prefix"
9474 prefix="$acl_final_prefix"
9475 acl_save_exec_prefix="$exec_prefix"
9476 exec_prefix="$acl_final_exec_prefix"
9477 eval x=\"$x\"
9478 exec_prefix="$acl_save_exec_prefix"
9479 prefix="$acl_save_prefix"
9480
9481 if test "X$x" = "X-I$additional_includedir"; then
9482 haveit=yes
9483 break
9484 fi
9485 done
9486 if test -z "$haveit"; then
9487 if test -d "$additional_includedir"; then
9488 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9489 fi
9490 fi
9491 fi
9492 fi
9493 fi
9494 if test -n "$found_la"; then
9495 save_libdir="$libdir"
9496 case "$found_la" in
9497 */* | *\\*) . "$found_la" ;;
9498 *) . "./$found_la" ;;
9499 esac
9500 libdir="$save_libdir"
9501 for dep in $dependency_libs; do
9502 case "$dep" in
9503 -L*)
9504 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9505 if test "X$additional_libdir" != "X/usr/lib"; then
9506 haveit=
9507 if test "X$additional_libdir" = "X/usr/local/lib"; then
9508 if test -n "$GCC"; then
9509 case $host_os in
9510 linux*) haveit=yes;;
9511 esac
9512 fi
9513 fi
9514 if test -z "$haveit"; then
9515 haveit=
9516 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009518 acl_save_prefix="$prefix"
9519 prefix="$acl_final_prefix"
9520 acl_save_exec_prefix="$exec_prefix"
9521 exec_prefix="$acl_final_exec_prefix"
9522 eval x=\"$x\"
9523 exec_prefix="$acl_save_exec_prefix"
9524 prefix="$acl_save_prefix"
9525
9526 if test "X$x" = "X-L$additional_libdir"; then
9527 haveit=yes
9528 break
9529 fi
9530 done
9531 if test -z "$haveit"; then
9532 if test -d "$additional_libdir"; then
9533 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9534 fi
9535 fi
9536 haveit=
9537 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009539 acl_save_prefix="$prefix"
9540 prefix="$acl_final_prefix"
9541 acl_save_exec_prefix="$exec_prefix"
9542 exec_prefix="$acl_final_exec_prefix"
9543 eval x=\"$x\"
9544 exec_prefix="$acl_save_exec_prefix"
9545 prefix="$acl_save_prefix"
9546
9547 if test "X$x" = "X-L$additional_libdir"; then
9548 haveit=yes
9549 break
9550 fi
9551 done
9552 if test -z "$haveit"; then
9553 if test -d "$additional_libdir"; then
9554 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9555 fi
9556 fi
9557 fi
9558 fi
9559 ;;
9560 -R*)
9561 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9562 if test "$enable_rpath" != no; then
9563 haveit=
9564 for x in $rpathdirs; do
9565 if test "X$x" = "X$dir"; then
9566 haveit=yes
9567 break
9568 fi
9569 done
9570 if test -z "$haveit"; then
9571 rpathdirs="$rpathdirs $dir"
9572 fi
9573 haveit=
9574 for x in $ltrpathdirs; do
9575 if test "X$x" = "X$dir"; then
9576 haveit=yes
9577 break
9578 fi
9579 done
9580 if test -z "$haveit"; then
9581 ltrpathdirs="$ltrpathdirs $dir"
9582 fi
9583 fi
9584 ;;
9585 -l*)
9586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9587 ;;
9588 *.la)
9589 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9590 ;;
9591 *)
9592 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9593 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9594 ;;
9595 esac
9596 done
9597 fi
9598 else
9599 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9601 fi
9602 fi
9603 fi
9604 done
9605 done
9606 if test "X$rpathdirs" != "X"; then
9607 if test -n "$hardcode_libdir_separator"; then
9608 alldirs=
9609 for found_dir in $rpathdirs; do
9610 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9611 done
9612 acl_save_libdir="$libdir"
9613 libdir="$alldirs"
9614 eval flag=\"$hardcode_libdir_flag_spec\"
9615 libdir="$acl_save_libdir"
9616 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9617 else
9618 for found_dir in $rpathdirs; do
9619 acl_save_libdir="$libdir"
9620 libdir="$found_dir"
9621 eval flag=\"$hardcode_libdir_flag_spec\"
9622 libdir="$acl_save_libdir"
9623 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9624 done
9625 fi
9626 fi
9627 if test "X$ltrpathdirs" != "X"; then
9628 for found_dir in $ltrpathdirs; do
9629 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9630 done
9631 fi
9632
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009633
9634
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636
9637
9638
9639
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009640 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9641$as_echo_n "checking for ptrdiff_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642if test "${ac_cv_type_ptrdiff_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009643 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009644else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009645 ac_cv_type_ptrdiff_t=no
9646cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009647/* confdefs.h. */
9648_ACEOF
9649cat confdefs.h >>conftest.$ac_ext
9650cat >>conftest.$ac_ext <<_ACEOF
9651/* end confdefs.h. */
9652$ac_includes_default
9653int
9654main ()
9655{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009656if (sizeof (ptrdiff_t))
9657 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009658 ;
9659 return 0;
9660}
9661_ACEOF
9662rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009663if { (ac_try="$ac_compile"
9664case "(($ac_try" in
9665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9666 *) ac_try_echo=$ac_try;;
9667esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9669$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009670 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 ac_status=$?
9672 grep -v '^ *+' conftest.er1 >conftest.err
9673 rm -f conftest.er1
9674 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009676 (exit $ac_status); } && {
9677 test -z "$ac_c_werror_flag" ||
9678 test ! -s conftest.err
9679 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009680 cat >conftest.$ac_ext <<_ACEOF
9681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
9686$ac_includes_default
9687int
9688main ()
9689{
9690if (sizeof ((ptrdiff_t)))
9691 return 0;
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696rm -f conftest.$ac_objext
9697if { (ac_try="$ac_compile"
9698case "(($ac_try" in
9699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700 *) ac_try_echo=$ac_try;;
9701esac
9702eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703$as_echo "$ac_try_echo") >&5
9704 (eval "$ac_compile") 2>conftest.er1
9705 ac_status=$?
9706 grep -v '^ *+' conftest.er1 >conftest.err
9707 rm -f conftest.er1
9708 cat conftest.err >&5
9709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); } && {
9711 test -z "$ac_c_werror_flag" ||
9712 test ! -s conftest.err
9713 } && test -s conftest.$ac_objext; then
9714 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009715else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009716 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717sed 's/^/| /' conftest.$ac_ext >&5
9718
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719 ac_cv_type_ptrdiff_t=yes
9720fi
9721
9722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723else
9724 $as_echo "$as_me: failed program was:" >&5
9725sed 's/^/| /' conftest.$ac_ext >&5
9726
9727
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009728fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009729
9730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009732{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9733$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9734if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009736else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009737
9738cat >>confdefs.h <<\_ACEOF
9739#define ptrdiff_t long
9740_ACEOF
9741
9742
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009743fi
9744
9745
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009746
9747
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009748
9749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009750
9751
9752
9753
9754
9755for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009756stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009757do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009758as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9761$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009763 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009764fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009765ac_res=`eval 'as_val=${'$as_ac_Header'}
9766 $as_echo "$as_val"'`
9767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9768$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009769else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009770 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009771{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9772$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009773cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780#include <$ac_header>
9781_ACEOF
9782rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009783if { (ac_try="$ac_compile"
9784case "(($ac_try" in
9785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9786 *) ac_try_echo=$ac_try;;
9787esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9789$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009790 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 ac_status=$?
9792 grep -v '^ *+' conftest.er1 >conftest.err
9793 rm -f conftest.er1
9794 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009800 ac_header_compiler=yes
9801else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009802 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009803sed 's/^/| /' conftest.$ac_ext >&5
9804
Theodore Ts'oe1052142006-10-21 21:46:47 -04009805 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009806fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807
9808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009809{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9810$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811
9812# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009813{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9814$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815cat >conftest.$ac_ext <<_ACEOF
9816/* confdefs.h. */
9817_ACEOF
9818cat confdefs.h >>conftest.$ac_ext
9819cat >>conftest.$ac_ext <<_ACEOF
9820/* end confdefs.h. */
9821#include <$ac_header>
9822_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009823if { (ac_try="$ac_cpp conftest.$ac_ext"
9824case "(($ac_try" in
9825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826 *) ac_try_echo=$ac_try;;
9827esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9829$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831 ac_status=$?
9832 grep -v '^ *+' conftest.er1 >conftest.err
9833 rm -f conftest.er1
9834 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009836 (exit $ac_status); } >/dev/null && {
9837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009840 ac_header_preproc=yes
9841else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009842 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843sed 's/^/| /' conftest.$ac_ext >&5
9844
9845 ac_header_preproc=no
9846fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009849{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9850$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009851
9852# So? What about this header?
9853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9854 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9856$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9858$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009859 ac_header_preproc=yes
9860 ;;
9861 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9863$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9865$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9867$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9869$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9871$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9873$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009875 ;;
9876esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009877{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9878$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009879if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009880 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009881else
9882 eval "$as_ac_Header=\$ac_header_preproc"
9883fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009884ac_res=`eval 'as_val=${'$as_ac_Header'}
9885 $as_echo "$as_val"'`
9886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9887$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009888
9889fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009890as_val=`eval 'as_val=${'$as_ac_Header'}
9891 $as_echo "$as_val"'`
9892 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009893 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009894#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895_ACEOF
9896
9897fi
9898
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009899done
9900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9925mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9926strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9927__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009928do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009929as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9930{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9931$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009932if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009933 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009934else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935 cat >conftest.$ac_ext <<_ACEOF
9936/* confdefs.h. */
9937_ACEOF
9938cat confdefs.h >>conftest.$ac_ext
9939cat >>conftest.$ac_ext <<_ACEOF
9940/* end confdefs.h. */
9941/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9943#define $ac_func innocuous_$ac_func
9944
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009945/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946 which can conflict with char $ac_func (); below.
9947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9948 <limits.h> exists even on freestanding compilers. */
9949
9950#ifdef __STDC__
9951# include <limits.h>
9952#else
9953# include <assert.h>
9954#endif
9955
9956#undef $ac_func
9957
Theodore Ts'oe1052142006-10-21 21:46:47 -04009958/* Override any GCC internal prototype to avoid an error.
9959 Use char because int might match the return type of a GCC
9960 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961#ifdef __cplusplus
9962extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009964char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009965/* The GNU C library defines this for functions which it implements
9966 to always fail with ENOSYS. Some functions are actually named
9967 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009968#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009969choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009970#endif
9971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972int
9973main ()
9974{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009975return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009976 ;
9977 return 0;
9978}
9979_ACEOF
9980rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009981if { (ac_try="$ac_link"
9982case "(($ac_try" in
9983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9984 *) ac_try_echo=$ac_try;;
9985esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9987$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009988 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009989 ac_status=$?
9990 grep -v '^ *+' conftest.er1 >conftest.err
9991 rm -f conftest.er1
9992 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009997 } && test -s conftest$ac_exeext && {
9998 test "$cross_compiling" = yes ||
9999 $as_test_x conftest$ac_exeext
10000 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010001 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010002else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010003 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010005
Theodore Ts'oe1052142006-10-21 21:46:47 -040010006 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010008
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010009rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010010rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010011 conftest$ac_exeext conftest.$ac_ext
10012fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010013ac_res=`eval 'as_val=${'$as_ac_var'}
10014 $as_echo "$as_val"'`
10015 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10016$as_echo "$ac_res" >&6; }
10017as_val=`eval 'as_val=${'$as_ac_var'}
10018 $as_echo "$as_val"'`
10019 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010020 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010021#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010022_ACEOF
10023
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010024fi
10025done
10026
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010028
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010029 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10030$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031if test "${ac_cv_have_decl__snprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010032 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033else
10034 cat >conftest.$ac_ext <<_ACEOF
10035/* confdefs.h. */
10036_ACEOF
10037cat confdefs.h >>conftest.$ac_ext
10038cat >>conftest.$ac_ext <<_ACEOF
10039/* end confdefs.h. */
10040#include <stdio.h>
10041int
10042main ()
10043{
10044
10045#ifndef _snprintf
10046 char *p = (char *) _snprintf;
10047#endif
10048
10049 ;
10050 return 0;
10051}
10052_ACEOF
10053rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010054if { (ac_try="$ac_compile"
10055case "(($ac_try" in
10056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057 *) ac_try_echo=$ac_try;;
10058esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10060$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010061 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010062 ac_status=$?
10063 grep -v '^ *+' conftest.er1 >conftest.err
10064 rm -f conftest.er1
10065 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010067 (exit $ac_status); } && {
10068 test -z "$ac_c_werror_flag" ||
10069 test ! -s conftest.err
10070 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010071 ac_cv_have_decl__snprintf=yes
10072else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010073 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074sed 's/^/| /' conftest.$ac_ext >&5
10075
Theodore Ts'oe1052142006-10-21 21:46:47 -040010076 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010077fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010078
10079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010080fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010081{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10082$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083 if test $ac_cv_have_decl__snprintf = yes; then
10084 gt_value=1
10085 else
10086 gt_value=0
10087 fi
10088
10089cat >>confdefs.h <<_ACEOF
10090#define HAVE_DECL__SNPRINTF $gt_value
10091_ACEOF
10092
10093
10094
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010095 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10096$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097if test "${ac_cv_have_decl__snwprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010098 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099else
10100 cat >conftest.$ac_ext <<_ACEOF
10101/* confdefs.h. */
10102_ACEOF
10103cat confdefs.h >>conftest.$ac_ext
10104cat >>conftest.$ac_ext <<_ACEOF
10105/* end confdefs.h. */
10106#include <stdio.h>
10107int
10108main ()
10109{
10110
10111#ifndef _snwprintf
10112 char *p = (char *) _snwprintf;
10113#endif
10114
10115 ;
10116 return 0;
10117}
10118_ACEOF
10119rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010120if { (ac_try="$ac_compile"
10121case "(($ac_try" in
10122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10123 *) ac_try_echo=$ac_try;;
10124esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10126$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010127 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010128 ac_status=$?
10129 grep -v '^ *+' conftest.er1 >conftest.err
10130 rm -f conftest.er1
10131 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137 ac_cv_have_decl__snwprintf=yes
10138else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010139 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010140sed 's/^/| /' conftest.$ac_ext >&5
10141
Theodore Ts'oe1052142006-10-21 21:46:47 -040010142 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010144
10145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010147{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10148$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149 if test $ac_cv_have_decl__snwprintf = yes; then
10150 gt_value=1
10151 else
10152 gt_value=0
10153 fi
10154
10155cat >>confdefs.h <<_ACEOF
10156#define HAVE_DECL__SNWPRINTF $gt_value
10157_ACEOF
10158
10159
10160
10161
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010162 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10163$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010165 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166else
10167 cat >conftest.$ac_ext <<_ACEOF
10168/* confdefs.h. */
10169_ACEOF
10170cat confdefs.h >>conftest.$ac_ext
10171cat >>conftest.$ac_ext <<_ACEOF
10172/* end confdefs.h. */
10173#include <stdio.h>
10174int
10175main ()
10176{
10177
10178#ifndef feof_unlocked
10179 char *p = (char *) feof_unlocked;
10180#endif
10181
10182 ;
10183 return 0;
10184}
10185_ACEOF
10186rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010187if { (ac_try="$ac_compile"
10188case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010194 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010204 ac_cv_have_decl_feof_unlocked=yes
10205else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010206 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010207sed 's/^/| /' conftest.$ac_ext >&5
10208
Theodore Ts'oe1052142006-10-21 21:46:47 -040010209 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010210fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010211
10212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010214{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10215$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010216 if test $ac_cv_have_decl_feof_unlocked = yes; then
10217 gt_value=1
10218 else
10219 gt_value=0
10220 fi
10221
10222cat >>confdefs.h <<_ACEOF
10223#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10224_ACEOF
10225
10226
10227
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010228 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10229$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010230if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010231 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232else
10233 cat >conftest.$ac_ext <<_ACEOF
10234/* confdefs.h. */
10235_ACEOF
10236cat confdefs.h >>conftest.$ac_ext
10237cat >>conftest.$ac_ext <<_ACEOF
10238/* end confdefs.h. */
10239#include <stdio.h>
10240int
10241main ()
10242{
10243
10244#ifndef fgets_unlocked
10245 char *p = (char *) fgets_unlocked;
10246#endif
10247
10248 ;
10249 return 0;
10250}
10251_ACEOF
10252rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010253if { (ac_try="$ac_compile"
10254case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10259$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010260 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010270 ac_cv_have_decl_fgets_unlocked=yes
10271else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010272 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010273sed 's/^/| /' conftest.$ac_ext >&5
10274
Theodore Ts'oe1052142006-10-21 21:46:47 -040010275 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010277
10278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010279fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010280{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10281$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010282 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10283 gt_value=1
10284 else
10285 gt_value=0
10286 fi
10287
10288cat >>confdefs.h <<_ACEOF
10289#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10290_ACEOF
10291
10292
10293
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010294 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10295$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010296if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010297 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298else
10299 cat >conftest.$ac_ext <<_ACEOF
10300/* confdefs.h. */
10301_ACEOF
10302cat confdefs.h >>conftest.$ac_ext
10303cat >>conftest.$ac_ext <<_ACEOF
10304/* end confdefs.h. */
10305#include <stdio.h>
10306int
10307main ()
10308{
10309
10310#ifndef getc_unlocked
10311 char *p = (char *) getc_unlocked;
10312#endif
10313
10314 ;
10315 return 0;
10316}
10317_ACEOF
10318rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010319if { (ac_try="$ac_compile"
10320case "(($ac_try" in
10321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10322 *) ac_try_echo=$ac_try;;
10323esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10325$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010326 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010336 ac_cv_have_decl_getc_unlocked=yes
10337else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010338 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010339sed 's/^/| /' conftest.$ac_ext >&5
10340
Theodore Ts'oe1052142006-10-21 21:46:47 -040010341 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010343
10344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010345fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010346{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10347$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010348 if test $ac_cv_have_decl_getc_unlocked = yes; then
10349 gt_value=1
10350 else
10351 gt_value=0
10352 fi
10353
10354cat >>confdefs.h <<_ACEOF
10355#define HAVE_DECL_GETC_UNLOCKED $gt_value
10356_ACEOF
10357
10358
10359
10360 case $gt_cv_func_printf_posix in
10361 *yes) HAVE_POSIX_PRINTF=1 ;;
10362 *) HAVE_POSIX_PRINTF=0 ;;
10363 esac
10364
10365 if test "$ac_cv_func_asprintf" = yes; then
10366 HAVE_ASPRINTF=1
10367 else
10368 HAVE_ASPRINTF=0
10369 fi
10370
10371 if test "$ac_cv_func_snprintf" = yes; then
10372 HAVE_SNPRINTF=1
10373 else
10374 HAVE_SNPRINTF=0
10375 fi
10376
10377 if test "$ac_cv_func_wprintf" = yes; then
10378 HAVE_WPRINTF=1
10379 else
10380 HAVE_WPRINTF=0
10381 fi
10382
10383
10384
10385
10386
10387
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010388
10389 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010390
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010391 for element in $INCICONV; do
10392 haveit=
10393 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010394
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010395 acl_save_prefix="$prefix"
10396 prefix="$acl_final_prefix"
10397 acl_save_exec_prefix="$exec_prefix"
10398 exec_prefix="$acl_final_exec_prefix"
10399 eval x=\"$x\"
10400 exec_prefix="$acl_save_exec_prefix"
10401 prefix="$acl_save_prefix"
10402
10403 if test "X$x" = "X$element"; then
10404 haveit=yes
10405 break
10406 fi
10407 done
10408 if test -z "$haveit"; then
10409 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10410 fi
10411 done
10412
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010413
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010414 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10415$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010416if test "${am_cv_func_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010417 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010418else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010419
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010420 am_cv_func_iconv="no, consider installing GNU libiconv"
10421 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010422 cat >conftest.$ac_ext <<_ACEOF
10423/* confdefs.h. */
10424_ACEOF
10425cat confdefs.h >>conftest.$ac_ext
10426cat >>conftest.$ac_ext <<_ACEOF
10427/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010428#include <stdlib.h>
10429#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010430int
10431main ()
10432{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010433iconv_t cd = iconv_open("","");
10434 iconv(cd,NULL,NULL,NULL,NULL);
10435 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010436 ;
10437 return 0;
10438}
10439_ACEOF
10440rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010441if { (ac_try="$ac_link"
10442case "(($ac_try" in
10443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10444 *) ac_try_echo=$ac_try;;
10445esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10447$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010448 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010449 ac_status=$?
10450 grep -v '^ *+' conftest.er1 >conftest.err
10451 rm -f conftest.er1
10452 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010454 (exit $ac_status); } && {
10455 test -z "$ac_c_werror_flag" ||
10456 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010457 } && test -s conftest$ac_exeext && {
10458 test "$cross_compiling" = yes ||
10459 $as_test_x conftest$ac_exeext
10460 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010461 am_cv_func_iconv=yes
10462else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010463 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010464sed 's/^/| /' conftest.$ac_ext >&5
10465
Theodore Ts'oe1052142006-10-21 21:46:47 -040010466
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010468
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010469rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010471 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010472 if test "$am_cv_func_iconv" != yes; then
10473 am_save_LIBS="$LIBS"
10474 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475 cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010481#include <stdlib.h>
10482#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010483int
10484main ()
10485{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010486iconv_t cd = iconv_open("","");
10487 iconv(cd,NULL,NULL,NULL,NULL);
10488 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010489 ;
10490 return 0;
10491}
10492_ACEOF
10493rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010494if { (ac_try="$ac_link"
10495case "(($ac_try" in
10496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10497 *) ac_try_echo=$ac_try;;
10498esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10500$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010501 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010502 ac_status=$?
10503 grep -v '^ *+' conftest.er1 >conftest.err
10504 rm -f conftest.er1
10505 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010507 (exit $ac_status); } && {
10508 test -z "$ac_c_werror_flag" ||
10509 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010510 } && test -s conftest$ac_exeext && {
10511 test "$cross_compiling" = yes ||
10512 $as_test_x conftest$ac_exeext
10513 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010514 am_cv_lib_iconv=yes
10515 am_cv_func_iconv=yes
10516else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010517 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010518sed 's/^/| /' conftest.$ac_ext >&5
10519
Theodore Ts'oe1052142006-10-21 21:46:47 -040010520
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010521fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010522
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010523rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010525 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010526 LIBS="$am_save_LIBS"
10527 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010530{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10531$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010532 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010533
10534cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010535#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010536_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010537
10538 fi
10539 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010540 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10541$as_echo_n "checking how to link with libiconv... " >&6; }
10542 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10543$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010544 else
10545 CPPFLAGS="$am_save_CPPFLAGS"
10546 LIBICONV=
10547 LTLIBICONV=
10548 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010549
10550
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010551
10552 if test "$am_cv_func_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010553 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10554$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555 if test "${am_cv_proto_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010556 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010557else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010558
10559 cat >conftest.$ac_ext <<_ACEOF
10560/* confdefs.h. */
10561_ACEOF
10562cat confdefs.h >>conftest.$ac_ext
10563cat >>conftest.$ac_ext <<_ACEOF
10564/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010565
10566#include <stdlib.h>
10567#include <iconv.h>
10568extern
10569#ifdef __cplusplus
10570"C"
10571#endif
10572#if defined(__STDC__) || defined(__cplusplus)
10573size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10574#else
10575size_t iconv();
10576#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578int
10579main ()
10580{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010582 ;
10583 return 0;
10584}
10585_ACEOF
10586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010587if { (ac_try="$ac_compile"
10588case "(($ac_try" in
10589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10590 *) ac_try_echo=$ac_try;;
10591esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10593$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010594 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595 ac_status=$?
10596 grep -v '^ *+' conftest.er1 >conftest.err
10597 rm -f conftest.er1
10598 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010600 (exit $ac_status); } && {
10601 test -z "$ac_c_werror_flag" ||
10602 test ! -s conftest.err
10603 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010604 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010605else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010606 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607sed 's/^/| /' conftest.$ac_ext >&5
10608
Theodore Ts'oe1052142006-10-21 21:46:47 -040010609 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010611
10612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010613 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 +000010614fi
10615
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010616 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010617 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010618 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010619$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010620 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010621
10622cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010623#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010625
10626 fi
10627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010629 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10630$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010631if test "${am_cv_langinfo_codeset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010632 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010633else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634 cat >conftest.$ac_ext <<_ACEOF
10635/* confdefs.h. */
10636_ACEOF
10637cat confdefs.h >>conftest.$ac_ext
10638cat >>conftest.$ac_ext <<_ACEOF
10639/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010640#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010641int
10642main ()
10643{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010644char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010645 ;
10646 return 0;
10647}
10648_ACEOF
10649rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010650if { (ac_try="$ac_link"
10651case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10654esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010657 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010658 ac_status=$?
10659 grep -v '^ *+' conftest.er1 >conftest.err
10660 rm -f conftest.er1
10661 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010666 } && test -s conftest$ac_exeext && {
10667 test "$cross_compiling" = yes ||
10668 $as_test_x conftest$ac_exeext
10669 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010670 am_cv_langinfo_codeset=yes
10671else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010672 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010673sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010674
Theodore Ts'oe1052142006-10-21 21:46:47 -040010675 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010676fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010677
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010678rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010679rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010680 conftest$ac_exeext conftest.$ac_ext
10681
10682fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010683{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10684$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010685 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010686
10687cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010688#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010689_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010690
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010691 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010693 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010694
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010695 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10696$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697if test "${am_cv_val_LC_MESSAGES+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010698 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700 cat >conftest.$ac_ext <<_ACEOF
10701/* confdefs.h. */
10702_ACEOF
10703cat confdefs.h >>conftest.$ac_ext
10704cat >>conftest.$ac_ext <<_ACEOF
10705/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010706#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707int
10708main ()
10709{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010710return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711 ;
10712 return 0;
10713}
10714_ACEOF
10715rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010716if { (ac_try="$ac_link"
10717case "(($ac_try" in
10718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719 *) ac_try_echo=$ac_try;;
10720esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10722$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010724 ac_status=$?
10725 grep -v '^ *+' conftest.er1 >conftest.err
10726 rm -f conftest.er1
10727 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010729 (exit $ac_status); } && {
10730 test -z "$ac_c_werror_flag" ||
10731 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010732 } && test -s conftest$ac_exeext && {
10733 test "$cross_compiling" = yes ||
10734 $as_test_x conftest$ac_exeext
10735 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010736 am_cv_val_LC_MESSAGES=yes
10737else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010738 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010740
Theodore Ts'oe1052142006-10-21 21:46:47 -040010741 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010743
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010744rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010745rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010746 conftest$ac_exeext conftest.$ac_ext
10747fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010748{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10749$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010750 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010751
10752cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010753#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010754_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010755
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010756 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010757
10758 fi
10759
10760 for ac_prog in bison
10761do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010762 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010763set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010764{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10765$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766if test "${ac_cv_prog_INTLBISON+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010767 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010768else
10769 if test -n "$INTLBISON"; then
10770 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10771else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773for as_dir in $PATH
10774do
10775 IFS=$as_save_IFS
10776 test -z "$as_dir" && as_dir=.
10777 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010778 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 -050010779 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781 break 2
10782 fi
10783done
10784done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010785IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010786
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010787fi
10788fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010790if test -n "$INTLBISON"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010791 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10792$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010794 { $as_echo "$as_me:$LINENO: result: no" >&5
10795$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796fi
10797
Theodore Ts'oe1052142006-10-21 21:46:47 -040010798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010800done
10801
10802 if test -z "$INTLBISON"; then
10803 ac_verc_fail=yes
10804 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010805 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10806$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010807 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10808 case $ac_prog_version in
10809 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10810 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10811 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10812 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10813 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010814 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10815$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010816 fi
10817 if test $ac_verc_fail = yes; then
10818 INTLBISON=:
10819 fi
10820
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010821
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010822
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010823
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010824
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010825
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826
10827
10828
10829
10830
10831
10832
10833
10834
10835
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010836 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10837$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010839if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010841else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010842 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010843fi
10844
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010845 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10846$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010847
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010849
10850
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010851 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010852 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010853
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010854 LIBINTL=
10855 LTLIBINTL=
10856 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010857
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010858 if test "$USE_NLS" = "yes"; then
10859 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010861 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10862$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863
Theodore Ts'oe1052142006-10-21 21:46:47 -040010864# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010865if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010866 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010867else
10868 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010869fi
10870
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010871 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10872$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010873
10874 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10875 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010877
10878
10879
10880
10881
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010882 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10883$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010884if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010885 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010886else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010887 cat >conftest.$ac_ext <<_ACEOF
10888/* confdefs.h. */
10889_ACEOF
10890cat confdefs.h >>conftest.$ac_ext
10891cat >>conftest.$ac_ext <<_ACEOF
10892/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010893#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010894extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010895extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010896int
10897main ()
10898{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010899bindtextdomain ("", "");
10900return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010901 ;
10902 return 0;
10903}
10904_ACEOF
10905rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010906if { (ac_try="$ac_link"
10907case "(($ac_try" in
10908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909 *) ac_try_echo=$ac_try;;
10910esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10912$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010914 ac_status=$?
10915 grep -v '^ *+' conftest.er1 >conftest.err
10916 rm -f conftest.er1
10917 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010922 } && test -s conftest$ac_exeext && {
10923 test "$cross_compiling" = yes ||
10924 $as_test_x conftest$ac_exeext
10925 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010926 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010927else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010928 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010929sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010930
Theodore Ts'oe1052142006-10-21 21:46:47 -040010931 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010932fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010934rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010936 conftest$ac_exeext conftest.$ac_ext
10937fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010938{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10939$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010940
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010941 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010942
10943
10944
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010945 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010947 acl_save_prefix="$prefix"
10948 prefix="$acl_final_prefix"
10949 acl_save_exec_prefix="$exec_prefix"
10950 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010951
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010952 eval additional_includedir=\"$includedir\"
10953 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010954
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
10957
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010958
Theodore Ts'oe1052142006-10-21 21:46:47 -040010959# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010960if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010961 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010962 if test "X$withval" = "Xno"; then
10963 use_additional=no
10964 else
10965 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010966
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010967 acl_save_prefix="$prefix"
10968 prefix="$acl_final_prefix"
10969 acl_save_exec_prefix="$exec_prefix"
10970 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010971
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010972 eval additional_includedir=\"$includedir\"
10973 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010974
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010975 exec_prefix="$acl_save_exec_prefix"
10976 prefix="$acl_save_prefix"
10977
10978 else
10979 additional_includedir="$withval/include"
10980 additional_libdir="$withval/lib"
10981 fi
10982 fi
10983
Theodore Ts'oe1052142006-10-21 21:46:47 -040010984fi
10985
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010986 LIBINTL=
10987 LTLIBINTL=
10988 INCINTL=
10989 rpathdirs=
10990 ltrpathdirs=
10991 names_already_handled=
10992 names_next_round='intl '
10993 while test -n "$names_next_round"; do
10994 names_this_round="$names_next_round"
10995 names_next_round=
10996 for name in $names_this_round; do
10997 already_handled=
10998 for n in $names_already_handled; do
10999 if test "$n" = "$name"; then
11000 already_handled=yes
11001 break
11002 fi
11003 done
11004 if test -z "$already_handled"; then
11005 names_already_handled="$names_already_handled $name"
11006 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11007 eval value=\"\$HAVE_LIB$uppername\"
11008 if test -n "$value"; then
11009 if test "$value" = yes; then
11010 eval value=\"\$LIB$uppername\"
11011 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11012 eval value=\"\$LTLIB$uppername\"
11013 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11014 else
11015 :
11016 fi
11017 else
11018 found_dir=
11019 found_la=
11020 found_so=
11021 found_a=
11022 if test $use_additional = yes; then
11023 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11024 found_dir="$additional_libdir"
11025 found_so="$additional_libdir/lib$name.$shlibext"
11026 if test -f "$additional_libdir/lib$name.la"; then
11027 found_la="$additional_libdir/lib$name.la"
11028 fi
11029 else
11030 if test -f "$additional_libdir/lib$name.$libext"; then
11031 found_dir="$additional_libdir"
11032 found_a="$additional_libdir/lib$name.$libext"
11033 if test -f "$additional_libdir/lib$name.la"; then
11034 found_la="$additional_libdir/lib$name.la"
11035 fi
11036 fi
11037 fi
11038 fi
11039 if test "X$found_dir" = "X"; then
11040 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011041
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011042 acl_save_prefix="$prefix"
11043 prefix="$acl_final_prefix"
11044 acl_save_exec_prefix="$exec_prefix"
11045 exec_prefix="$acl_final_exec_prefix"
11046 eval x=\"$x\"
11047 exec_prefix="$acl_save_exec_prefix"
11048 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011049
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011050 case "$x" in
11051 -L*)
11052 dir=`echo "X$x" | sed -e 's/^X-L//'`
11053 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11054 found_dir="$dir"
11055 found_so="$dir/lib$name.$shlibext"
11056 if test -f "$dir/lib$name.la"; then
11057 found_la="$dir/lib$name.la"
11058 fi
11059 else
11060 if test -f "$dir/lib$name.$libext"; then
11061 found_dir="$dir"
11062 found_a="$dir/lib$name.$libext"
11063 if test -f "$dir/lib$name.la"; then
11064 found_la="$dir/lib$name.la"
11065 fi
11066 fi
11067 fi
11068 ;;
11069 esac
11070 if test "X$found_dir" != "X"; then
11071 break
11072 fi
11073 done
11074 fi
11075 if test "X$found_dir" != "X"; then
11076 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11077 if test "X$found_so" != "X"; then
11078 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11080 else
11081 haveit=
11082 for x in $ltrpathdirs; do
11083 if test "X$x" = "X$found_dir"; then
11084 haveit=yes
11085 break
11086 fi
11087 done
11088 if test -z "$haveit"; then
11089 ltrpathdirs="$ltrpathdirs $found_dir"
11090 fi
11091 if test "$hardcode_direct" = yes; then
11092 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11093 else
11094 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11095 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11096 haveit=
11097 for x in $rpathdirs; do
11098 if test "X$x" = "X$found_dir"; then
11099 haveit=yes
11100 break
11101 fi
11102 done
11103 if test -z "$haveit"; then
11104 rpathdirs="$rpathdirs $found_dir"
11105 fi
11106 else
11107 haveit=
11108 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011109
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011110 acl_save_prefix="$prefix"
11111 prefix="$acl_final_prefix"
11112 acl_save_exec_prefix="$exec_prefix"
11113 exec_prefix="$acl_final_exec_prefix"
11114 eval x=\"$x\"
11115 exec_prefix="$acl_save_exec_prefix"
11116 prefix="$acl_save_prefix"
11117
11118 if test "X$x" = "X-L$found_dir"; then
11119 haveit=yes
11120 break
11121 fi
11122 done
11123 if test -z "$haveit"; then
11124 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11125 fi
11126 if test "$hardcode_minus_L" != no; then
11127 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11128 else
11129 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11130 fi
11131 fi
11132 fi
11133 fi
11134 else
11135 if test "X$found_a" != "X"; then
11136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11137 else
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11139 fi
11140 fi
11141 additional_includedir=
11142 case "$found_dir" in
11143 */lib | */lib/)
11144 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11145 additional_includedir="$basedir/include"
11146 ;;
11147 esac
11148 if test "X$additional_includedir" != "X"; then
11149 if test "X$additional_includedir" != "X/usr/include"; then
11150 haveit=
11151 if test "X$additional_includedir" = "X/usr/local/include"; then
11152 if test -n "$GCC"; then
11153 case $host_os in
11154 linux*) haveit=yes;;
11155 esac
11156 fi
11157 fi
11158 if test -z "$haveit"; then
11159 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011160
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011161 acl_save_prefix="$prefix"
11162 prefix="$acl_final_prefix"
11163 acl_save_exec_prefix="$exec_prefix"
11164 exec_prefix="$acl_final_exec_prefix"
11165 eval x=\"$x\"
11166 exec_prefix="$acl_save_exec_prefix"
11167 prefix="$acl_save_prefix"
11168
11169 if test "X$x" = "X-I$additional_includedir"; then
11170 haveit=yes
11171 break
11172 fi
11173 done
11174 if test -z "$haveit"; then
11175 if test -d "$additional_includedir"; then
11176 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11177 fi
11178 fi
11179 fi
11180 fi
11181 fi
11182 if test -n "$found_la"; then
11183 save_libdir="$libdir"
11184 case "$found_la" in
11185 */* | *\\*) . "$found_la" ;;
11186 *) . "./$found_la" ;;
11187 esac
11188 libdir="$save_libdir"
11189 for dep in $dependency_libs; do
11190 case "$dep" in
11191 -L*)
11192 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11193 if test "X$additional_libdir" != "X/usr/lib"; then
11194 haveit=
11195 if test "X$additional_libdir" = "X/usr/local/lib"; then
11196 if test -n "$GCC"; then
11197 case $host_os in
11198 linux*) haveit=yes;;
11199 esac
11200 fi
11201 fi
11202 if test -z "$haveit"; then
11203 haveit=
11204 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011205
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011206 acl_save_prefix="$prefix"
11207 prefix="$acl_final_prefix"
11208 acl_save_exec_prefix="$exec_prefix"
11209 exec_prefix="$acl_final_exec_prefix"
11210 eval x=\"$x\"
11211 exec_prefix="$acl_save_exec_prefix"
11212 prefix="$acl_save_prefix"
11213
11214 if test "X$x" = "X-L$additional_libdir"; then
11215 haveit=yes
11216 break
11217 fi
11218 done
11219 if test -z "$haveit"; then
11220 if test -d "$additional_libdir"; then
11221 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11222 fi
11223 fi
11224 haveit=
11225 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011226
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011227 acl_save_prefix="$prefix"
11228 prefix="$acl_final_prefix"
11229 acl_save_exec_prefix="$exec_prefix"
11230 exec_prefix="$acl_final_exec_prefix"
11231 eval x=\"$x\"
11232 exec_prefix="$acl_save_exec_prefix"
11233 prefix="$acl_save_prefix"
11234
11235 if test "X$x" = "X-L$additional_libdir"; then
11236 haveit=yes
11237 break
11238 fi
11239 done
11240 if test -z "$haveit"; then
11241 if test -d "$additional_libdir"; then
11242 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11243 fi
11244 fi
11245 fi
11246 fi
11247 ;;
11248 -R*)
11249 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11250 if test "$enable_rpath" != no; then
11251 haveit=
11252 for x in $rpathdirs; do
11253 if test "X$x" = "X$dir"; then
11254 haveit=yes
11255 break
11256 fi
11257 done
11258 if test -z "$haveit"; then
11259 rpathdirs="$rpathdirs $dir"
11260 fi
11261 haveit=
11262 for x in $ltrpathdirs; do
11263 if test "X$x" = "X$dir"; then
11264 haveit=yes
11265 break
11266 fi
11267 done
11268 if test -z "$haveit"; then
11269 ltrpathdirs="$ltrpathdirs $dir"
11270 fi
11271 fi
11272 ;;
11273 -l*)
11274 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11275 ;;
11276 *.la)
11277 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11278 ;;
11279 *)
11280 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11281 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11282 ;;
11283 esac
11284 done
11285 fi
11286 else
11287 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11289 fi
11290 fi
11291 fi
11292 done
11293 done
11294 if test "X$rpathdirs" != "X"; then
11295 if test -n "$hardcode_libdir_separator"; then
11296 alldirs=
11297 for found_dir in $rpathdirs; do
11298 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11299 done
11300 acl_save_libdir="$libdir"
11301 libdir="$alldirs"
11302 eval flag=\"$hardcode_libdir_flag_spec\"
11303 libdir="$acl_save_libdir"
11304 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11305 else
11306 for found_dir in $rpathdirs; do
11307 acl_save_libdir="$libdir"
11308 libdir="$found_dir"
11309 eval flag=\"$hardcode_libdir_flag_spec\"
11310 libdir="$acl_save_libdir"
11311 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11312 done
11313 fi
11314 fi
11315 if test "X$ltrpathdirs" != "X"; then
11316 for found_dir in $ltrpathdirs; do
11317 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11318 done
11319 fi
11320
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011321 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11322$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011323if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011324 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011325else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011326 gt_save_CPPFLAGS="$CPPFLAGS"
11327 CPPFLAGS="$CPPFLAGS $INCINTL"
11328 gt_save_LIBS="$LIBS"
11329 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 cat >conftest.$ac_ext <<_ACEOF
11331/* confdefs.h. */
11332_ACEOF
11333cat confdefs.h >>conftest.$ac_ext
11334cat >>conftest.$ac_ext <<_ACEOF
11335/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011336#include <libintl.h>
11337extern int _nl_msg_cat_cntr;
11338extern
11339#ifdef __cplusplus
11340"C"
11341#endif
11342const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011343int
11344main ()
11345{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011346bindtextdomain ("", "");
11347return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 ;
11349 return 0;
11350}
11351_ACEOF
11352rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011353if { (ac_try="$ac_link"
11354case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11359$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011360 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361 ac_status=$?
11362 grep -v '^ *+' conftest.er1 >conftest.err
11363 rm -f conftest.er1
11364 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011366 (exit $ac_status); } && {
11367 test -z "$ac_c_werror_flag" ||
11368 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011369 } && test -s conftest$ac_exeext && {
11370 test "$cross_compiling" = yes ||
11371 $as_test_x conftest$ac_exeext
11372 }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011373 gt_cv_func_gnugettext1_libintl=yes
11374else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011375 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376sed 's/^/| /' conftest.$ac_ext >&5
11377
Theodore Ts'oe1052142006-10-21 21:46:47 -040011378 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011380
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011381rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011383 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011384 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11385 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011386 cat >conftest.$ac_ext <<_ACEOF
11387/* confdefs.h. */
11388_ACEOF
11389cat confdefs.h >>conftest.$ac_ext
11390cat >>conftest.$ac_ext <<_ACEOF
11391/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011392#include <libintl.h>
11393extern int _nl_msg_cat_cntr;
11394extern
11395#ifdef __cplusplus
11396"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011397#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011398const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399int
11400main ()
11401{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402bindtextdomain ("", "");
11403return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011404 ;
11405 return 0;
11406}
11407_ACEOF
11408rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011409if { (ac_try="$ac_link"
11410case "(($ac_try" in
11411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11412 *) ac_try_echo=$ac_try;;
11413esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11415$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011416 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011417 ac_status=$?
11418 grep -v '^ *+' conftest.er1 >conftest.err
11419 rm -f conftest.er1
11420 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011422 (exit $ac_status); } && {
11423 test -z "$ac_c_werror_flag" ||
11424 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011425 } && test -s conftest$ac_exeext && {
11426 test "$cross_compiling" = yes ||
11427 $as_test_x conftest$ac_exeext
11428 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011429 LIBINTL="$LIBINTL $LIBICONV"
11430 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11431 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011433else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011434 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435sed 's/^/| /' conftest.$ac_ext >&5
11436
Theodore Ts'oe1052142006-10-21 21:46:47 -040011437
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011440rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011443 fi
11444 CPPFLAGS="$gt_save_CPPFLAGS"
11445 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011446fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011447{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11448$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011449 fi
11450
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011451 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11452 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011453 && test "$PACKAGE" != gettext-runtime \
11454 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011455 gt_use_preinstalled_gnugettext=yes
11456 else
11457 LIBINTL=
11458 LTLIBINTL=
11459 INCINTL=
11460 fi
11461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011462
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011463 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11464 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011465 fi
11466 fi
11467
11468 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011470 USE_INCLUDED_LIBINTL=yes
11471 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11472 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11473 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011474 fi
11475
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011476 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11477 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11478 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011479 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011481
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011482 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11483 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011484
11485cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011486#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011487_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011488
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011489 else
11490 USE_NLS=no
11491 fi
11492 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011493
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011494 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11495$as_echo_n "checking whether to use NLS... " >&6; }
11496 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11497$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011498 if test "$USE_NLS" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011499 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11500$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011501 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11502 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11503 gt_source="external libintl"
11504 else
11505 gt_source="libc"
11506 fi
11507 else
11508 gt_source="included intl directory"
11509 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011510 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11511$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011512 fi
11513
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011514 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011515
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011516 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11517 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011518 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11519$as_echo_n "checking how to link with libintl... " >&6; }
11520 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11521$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011523 for element in $INCINTL; do
11524 haveit=
11525 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011527 acl_save_prefix="$prefix"
11528 prefix="$acl_final_prefix"
11529 acl_save_exec_prefix="$exec_prefix"
11530 exec_prefix="$acl_final_exec_prefix"
11531 eval x=\"$x\"
11532 exec_prefix="$acl_save_exec_prefix"
11533 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011534
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011535 if test "X$x" = "X$element"; then
11536 haveit=yes
11537 break
11538 fi
11539 done
11540 if test -z "$haveit"; then
11541 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11542 fi
11543 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011544
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011545 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011546
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011548cat >>confdefs.h <<\_ACEOF
11549#define HAVE_GETTEXT 1
11550_ACEOF
11551
11552
11553cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011554#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011556
11557 fi
11558
11559 POSUB=po
11560 fi
11561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011562
11563 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011564 BUILD_INCLUDED_LIBINTL=yes
11565 fi
11566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567
11568
11569
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011570
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011571 nls_cv_header_intl=
11572 nls_cv_header_libgt=
11573
11574 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011576
11577 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011579
11580 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581
11582
11583 if test "$USE_INCLUDED_LIBINTL" = yes; then
11584 INTLOBJS="\$(GETTOBJS)"
11585 fi
11586
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011587
11588 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589
11590
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011591
11592 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011593
11594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011595
11596
11597
11598
11599
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11601$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11602set x ${MAKE-make}
11603ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011604if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011605 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011606else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011610 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011612# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011613case `${MAKE-make} -f conftest.make 2>/dev/null` in
11614 *@@@%%%=?*=@@@%%%*)
11615 eval ac_cv_prog_make_${ac_make}_set=yes;;
11616 *)
11617 eval ac_cv_prog_make_${ac_make}_set=no;;
11618esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011621if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011622 { $as_echo "$as_me:$LINENO: result: yes" >&5
11623$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011624 SET_MAKE=
11625else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011626 { $as_echo "$as_me:$LINENO: result: no" >&5
11627$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011628 SET_MAKE="MAKE=${MAKE-make}"
11629fi
11630
11631# Extract the first word of "ln", so it can be a program name with args.
11632set dummy ln; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011633{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11634$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011635if test "${ac_cv_path_LN+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011636 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011637else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011638 case $LN in
11639 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011640 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11641 ;;
11642 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644for as_dir in $PATH
11645do
11646 IFS=$as_save_IFS
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011649 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 -050011650 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011652 break 2
11653 fi
11654done
11655done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011656IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011658 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11659 ;;
11660esac
11661fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011662LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011663if test -n "$LN"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011664 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11665$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011667 { $as_echo "$as_me:$LINENO: result: no" >&5
11668$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011669fi
11670
Theodore Ts'oe1052142006-10-21 21:46:47 -040011671
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011672{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11673$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674LN_S=$as_ln_s
11675if test "$LN_S" = "ln -s"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011676 { $as_echo "$as_me:$LINENO: result: yes" >&5
11677$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011678else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011679 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11680$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011681fi
11682
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011683# Extract the first word of "mv", so it can be a program name with args.
11684set dummy mv; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11686$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687if test "${ac_cv_path_MV+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011688 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690 case $MV in
11691 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11693 ;;
11694 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011701 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 -050011702 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 break 2
11705 fi
11706done
11707done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011710 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11711 ;;
11712esac
11713fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715if test -n "$MV"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11717$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719 { $as_echo "$as_me:$LINENO: result: no" >&5
11720$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721fi
11722
Theodore Ts'oe1052142006-10-21 21:46:47 -040011723
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724# Extract the first word of "cp", so it can be a program name with args.
11725set dummy cp; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11727$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728if test "${ac_cv_path_CP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011729 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731 case $CP in
11732 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11734 ;;
11735 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011742 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 -050011743 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745 break 2
11746 fi
11747done
11748done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11752 ;;
11753esac
11754fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756if test -n "$CP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011757 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11758$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011760 { $as_echo "$as_me:$LINENO: result: no" >&5
11761$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762fi
11763
Theodore Ts'oe1052142006-10-21 21:46:47 -040011764
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011765# Extract the first word of "rm", so it can be a program name with args.
11766set dummy rm; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11768$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769if test "${ac_cv_path_RM+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011770 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011771else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772 case $RM in
11773 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011774 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11775 ;;
11776 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
11782 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011784 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786 break 2
11787 fi
11788done
11789done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011791
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11793 ;;
11794esac
11795fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011796RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011797if test -n "$RM"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011798 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11799$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011800else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011801 { $as_echo "$as_me:$LINENO: result: no" >&5
11802$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011803fi
11804
Theodore Ts'oe1052142006-10-21 21:46:47 -040011805
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011806# Extract the first word of "chmod", so it can be a program name with args.
11807set dummy chmod; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11809$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011810if test "${ac_cv_path_CHMOD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011811 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011812else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011813 case $CHMOD in
11814 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11816 ;;
11817 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819for as_dir in $PATH
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011824 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 -050011825 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011827 break 2
11828 fi
11829done
11830done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011833 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11834 ;;
11835esac
11836fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011837CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011838if test -n "$CHMOD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011839 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11840$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011842 { $as_echo "$as_me:$LINENO: result: no" >&5
11843$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844fi
11845
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846
Theodore Ts'o32237012005-01-17 19:13:39 -050011847for ac_prog in gawk mawk nawk awk
11848do
11849 # Extract the first word of "$ac_prog", so it can be a program name with args.
11850set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011851{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11852$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011853if test "${ac_cv_prog_AWK+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011854 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011855else
Theodore Ts'o32237012005-01-17 19:13:39 -050011856 if test -n "$AWK"; then
11857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11858else
11859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860for as_dir in $PATH
11861do
11862 IFS=$as_save_IFS
11863 test -z "$as_dir" && as_dir=.
11864 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011865 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 -050011866 ac_cv_prog_AWK="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868 break 2
11869 fi
11870done
11871done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011873
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011874fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011875fi
11876AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011877if test -n "$AWK"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011878 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11879$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011880else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011881 { $as_echo "$as_me:$LINENO: result: no" >&5
11882$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011883fi
11884
Theodore Ts'oe1052142006-10-21 21:46:47 -040011885
Theodore Ts'o32237012005-01-17 19:13:39 -050011886 test -n "$AWK" && break
11887done
11888
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
11890$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011891if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011892 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011893else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011894 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11895 then ac_cv_path_EGREP="$GREP -E"
11896 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011897 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011898 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011899 # Loop through the user's path and test for each of PROGNAME-LIST
11900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11902do
11903 IFS=$as_save_IFS
11904 test -z "$as_dir" && as_dir=.
11905 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011906 for ac_exec_ext in '' $ac_executable_extensions; do
11907 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11908 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11909# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910 # Check for GNU $ac_path_EGREP
11911case `"$ac_path_EGREP" --version 2>&1` in
11912*GNU*)
11913 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11914*)
11915 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011916 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011917 while :
11918 do
11919 cat "conftest.in" "conftest.in" >"conftest.tmp"
11920 mv "conftest.tmp" "conftest.in"
11921 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011922 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011923 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11925 ac_count=`expr $ac_count + 1`
11926 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11927 # Best one so far, save it but keep looking for a better one
11928 ac_cv_path_EGREP="$ac_path_EGREP"
11929 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011930 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931 # 10*(2^10) chars as input seems more than enough
11932 test $ac_count -gt 10 && break
11933 done
11934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11935esac
11936
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011937 $ac_path_EGREP_found && break 3
11938 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011939 done
11940done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011942 if test -z "$ac_cv_path_EGREP"; then
11943 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11944$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 -040011945 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011946 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011947else
11948 ac_cv_path_EGREP=$EGREP
11949fi
11950
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951 fi
11952fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11954$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011956
11957
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011958# Extract the first word of "sed", so it can be a program name with args.
11959set dummy sed; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011960{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11961$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011962if test "${ac_cv_path_SED+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011963 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011964else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965 case $SED in
11966 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011967 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11968 ;;
11969 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11971for as_dir in $PATH
11972do
11973 IFS=$as_save_IFS
11974 test -z "$as_dir" && as_dir=.
11975 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011976 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 -050011977 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979 break 2
11980 fi
11981done
11982done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011983IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011985 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11986 ;;
11987esac
11988fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011990if test -n "$SED"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011991 { $as_echo "$as_me:$LINENO: result: $SED" >&5
11992$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011993else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011994 { $as_echo "$as_me:$LINENO: result: no" >&5
11995$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011996fi
11997
Theodore Ts'oe1052142006-10-21 21:46:47 -040011998
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011999# Extract the first word of "perl", so it can be a program name with args.
12000set dummy perl; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012001{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12002$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012003if test "${ac_cv_path_PERL+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012004 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006 case $PERL in
12007 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012008 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12009 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012010 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012for as_dir in $PATH
12013do
12014 IFS=$as_save_IFS
12015 test -z "$as_dir" && as_dir=.
12016 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012017 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 -050012018 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012019 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020 break 2
12021 fi
12022done
12023done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012024IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012026 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12027 ;;
12028esac
12029fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012031if test -n "$PERL"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012032 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12033$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012034else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035 { $as_echo "$as_me:$LINENO: result: no" >&5
12036$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012037fi
12038
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012040# Extract the first word of "ldconfig", so it can be a program name with args.
12041set dummy ldconfig; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012042{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12043$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044if test "${ac_cv_path_LDCONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012045 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047 case $LDCONFIG in
12048 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012049 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12050 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012051 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12053for as_dir in $PATH
12054do
12055 IFS=$as_save_IFS
12056 test -z "$as_dir" && as_dir=.
12057 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012058 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 -050012059 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012060 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061 break 2
12062 fi
12063done
12064done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012065IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012066
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012067 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12068 ;;
12069esac
12070fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012072if test -n "$LDCONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012073 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12074$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012075else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012076 { $as_echo "$as_me:$LINENO: result: no" >&5
12077$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012078fi
12079
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081if test -n "$ac_tool_prefix"; then
12082 # 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 +000012083set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12085$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086if test "${ac_cv_prog_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012088else
12089 if test -n "$AR"; then
12090 ac_cv_prog_AR="$AR" # Let the user override the test.
12091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093for as_dir in $PATH
12094do
12095 IFS=$as_save_IFS
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012098 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 -050012099 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012100 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101 break 2
12102 fi
12103done
12104done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012107fi
12108fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012110if test -n "$AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12112$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012113else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114 { $as_echo "$as_me:$LINENO: result: no" >&5
12115$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012116fi
12117
Theodore Ts'oe1052142006-10-21 21:46:47 -040012118
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012120if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122 # Extract the first word of "ar", so it can be a program name with args.
12123set dummy ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012124{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12125$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012128else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 if test -n "$ac_ct_AR"; then
12130 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012131else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $PATH
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012138 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 -050012139 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 break 2
12142 fi
12143done
12144done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147fi
12148fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149ac_ct_AR=$ac_cv_prog_ac_ct_AR
12150if test -n "$ac_ct_AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012151 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12152$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154 { $as_echo "$as_me:$LINENO: result: no" >&5
12155$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012156fi
12157
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158 if test "x$ac_ct_AR" = x; then
12159 AR="ar"
12160 else
12161 case $cross_compiling:$ac_tool_warned in
12162yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012163{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012165ac_tool_warned=yes ;;
12166esac
12167 AR=$ac_ct_AR
12168 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012169else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171fi
12172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173if test -n "$ac_tool_prefix"; then
12174 # 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 +000012175set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12177$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012180else
12181 if test -n "$RANLIB"; then
12182 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12183else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185for as_dir in $PATH
12186do
12187 IFS=$as_save_IFS
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012190 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 -050012191 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193 break 2
12194 fi
12195done
12196done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012199fi
12200fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012202if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012203 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12204$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012205else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206 { $as_echo "$as_me:$LINENO: result: no" >&5
12207$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012208fi
12209
Theodore Ts'oe1052142006-10-21 21:46:47 -040012210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012212if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214 # Extract the first word of "ranlib", so it can be a program name with args.
12215set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12217$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012219 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012220else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012221 if test -n "$ac_ct_RANLIB"; then
12222 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012223else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225for as_dir in $PATH
12226do
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012230 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 -050012231 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233 break 2
12234 fi
12235done
12236done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239fi
12240fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12242if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012243 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12244$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012245else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246 { $as_echo "$as_me:$LINENO: result: no" >&5
12247$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012248fi
12249
Theodore Ts'oe1052142006-10-21 21:46:47 -040012250 if test "x$ac_ct_RANLIB" = x; then
12251 RANLIB=":"
12252 else
12253 case $cross_compiling:$ac_tool_warned in
12254yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012257ac_tool_warned=yes ;;
12258esac
12259 RANLIB=$ac_ct_RANLIB
12260 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012261else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012262 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012263fi
12264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012265if test -n "$ac_tool_prefix"; then
12266 # 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 +000012267set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012268{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12269$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012271 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012272else
12273 if test -n "$STRIP"; then
12274 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12275else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12277for as_dir in $PATH
12278do
12279 IFS=$as_save_IFS
12280 test -z "$as_dir" && as_dir=.
12281 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012282 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 -050012283 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012284 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012285 break 2
12286 fi
12287done
12288done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012289IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012291fi
12292fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012294if test -n "$STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12296$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012297else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012298 { $as_echo "$as_me:$LINENO: result: no" >&5
12299$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012300fi
12301
Theodore Ts'oe1052142006-10-21 21:46:47 -040012302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012303fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012304if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012305 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012306 # Extract the first word of "strip", so it can be a program name with args.
12307set dummy strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12309$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012310if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012311 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012312else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 if test -n "$ac_ct_STRIP"; then
12314 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012315else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317for as_dir in $PATH
12318do
12319 IFS=$as_save_IFS
12320 test -z "$as_dir" && as_dir=.
12321 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012322 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 -050012323 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 break 2
12326 fi
12327done
12328done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012329IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012331fi
12332fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12334if test -n "$ac_ct_STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12336$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012338 { $as_echo "$as_me:$LINENO: result: no" >&5
12339$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012340fi
12341
Theodore Ts'oe1052142006-10-21 21:46:47 -040012342 if test "x$ac_ct_STRIP" = x; then
12343 STRIP=":"
12344 else
12345 case $cross_compiling:$ac_tool_warned in
12346yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012347{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12348$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012349ac_tool_warned=yes ;;
12350esac
12351 STRIP=$ac_ct_STRIP
12352 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012353else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012354 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012355fi
12356
Manish Katiyar7321d942008-04-14 17:20:03 +053012357# Extract the first word of "makeinfo", so it can be a program name with args.
12358set dummy makeinfo; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012359{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12360$as_echo_n "checking for $ac_word... " >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012361if test "${ac_cv_prog_MAKEINFO+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012362 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012363else
12364 if test -n "$MAKEINFO"; then
12365 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12366else
12367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12368for as_dir in $PATH
12369do
12370 IFS=$as_save_IFS
12371 test -z "$as_dir" && as_dir=.
12372 for ac_exec_ext in '' $ac_executable_extensions; do
12373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12374 ac_cv_prog_MAKEINFO="makeinfo"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012376 break 2
12377 fi
12378done
12379done
12380IFS=$as_save_IFS
12381
12382fi
12383fi
12384MAKEINFO=$ac_cv_prog_MAKEINFO
12385if test -n "$MAKEINFO"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012386 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12387$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012388else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012389 { $as_echo "$as_me:$LINENO: result: no" >&5
12390$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012391fi
12392
12393
12394if test "_$MAKEINFO" = "_"; then
12395 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12396else
12397 case "$MAKEINFO" in
12398 */missing.*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012399 { $as_echo "$as_me:$LINENO: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012400*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012401$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012402*** Makeinfo is missing. Info documentation will not be built." >&2;}
12403 ;;
12404 *)
12405 ;;
12406 esac
12407fi
12408
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012409# Find a good install program. We prefer a C program (faster),
12410# so one script is as good as another. But avoid the broken or
12411# incompatible versions:
12412# SysV /etc/install, /usr/sbin/install
12413# SunOS /usr/etc/install
12414# IRIX /sbin/install
12415# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012417# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012418# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12419# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012420# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012421# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012422# Reject install programs that cannot install multiple files.
12423{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12424$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012425if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012426if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012427 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012428else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12430for as_dir in $PATH
12431do
12432 IFS=$as_save_IFS
12433 test -z "$as_dir" && as_dir=.
12434 # Account for people who put trailing slashes in PATH elements.
12435case $as_dir/ in
12436 ./ | .// | /cC/* | \
12437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12438 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12439 /usr/ucb/* ) ;;
12440 *)
12441 # OSF1 and SCO ODT 3.0 have their own names for install.
12442 # Don't use installbsd from OSF since it installs stuff as root
12443 # by default.
12444 for ac_prog in ginstall scoinst install; do
12445 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012446 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 +000012447 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012449 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012450 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451 elif test $ac_prog = install &&
12452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12453 # program-specific install script used by HP pwplus--don't use.
12454 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012455 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012456 rm -rf conftest.one conftest.two conftest.dir
12457 echo one > conftest.one
12458 echo two > conftest.two
12459 mkdir conftest.dir
12460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12461 test -s conftest.one && test -s conftest.two &&
12462 test -s conftest.dir/conftest.one &&
12463 test -s conftest.dir/conftest.two
12464 then
12465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12466 break 3
12467 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012468 fi
12469 fi
12470 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012471 done
12472 ;;
12473esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012475done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012477
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012479
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012480fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012481 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012483 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484 # As a last resort, use the slow shell script. Don't cache a
12485 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012486 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012487 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012488 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012489 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012490fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012491{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12492$as_echo "$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012493
12494# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12495# It thinks the first close brace ends the variable substitution.
12496test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012498test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012499
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012500test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12501
Theodore Ts'o6c133521999-07-03 20:37:03 +000012502# See if we need a separate native compiler.
12503if test $cross_compiling = no; then
12504 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505
Theodore Ts'o6c133521999-07-03 20:37:03 +000012506else
12507 for ac_prog in gcc cc
12508do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012509 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012510set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12512$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513if test "${ac_cv_prog_BUILD_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012514 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012515else
12516 if test -n "$BUILD_CC"; then
12517 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12518else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012521do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012525 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 -050012526 ac_cv_prog_BUILD_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012527 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528 break 2
12529 fi
12530done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012531done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012532IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534fi
12535fi
12536BUILD_CC=$ac_cv_prog_BUILD_CC
12537if test -n "$BUILD_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12539$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012540else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012541 { $as_echo "$as_me:$LINENO: result: no" >&5
12542$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543fi
12544
Theodore Ts'oe1052142006-10-21 21:46:47 -040012545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012546 test -n "$BUILD_CC" && break
12547done
12548
12549fi
12550
Theodore Ts'o740837d2007-12-16 17:21:38 -050012551
12552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553
12554
12555
12556
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012581
Theodore Ts'o106ad962007-04-04 21:26:37 -040012582
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010012583
12584
Theodore Ts'o3d058022008-07-12 22:06:30 -040012585
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040012586
Theodore Ts'od7f45af2008-09-12 10:15:26 -040012587
12588for 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 -050012589do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012590as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012591if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12593$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012595 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012597ac_res=`eval 'as_val=${'$as_ac_Header'}
12598 $as_echo "$as_val"'`
12599 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12600$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601else
12602 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012603{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12604$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012605cat >conftest.$ac_ext <<_ACEOF
12606/* confdefs.h. */
12607_ACEOF
12608cat confdefs.h >>conftest.$ac_ext
12609cat >>conftest.$ac_ext <<_ACEOF
12610/* end confdefs.h. */
12611$ac_includes_default
12612#include <$ac_header>
12613_ACEOF
12614rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012615if { (ac_try="$ac_compile"
12616case "(($ac_try" in
12617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12619esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12621$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012623 ac_status=$?
12624 grep -v '^ *+' conftest.er1 >conftest.err
12625 rm -f conftest.er1
12626 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012628 (exit $ac_status); } && {
12629 test -z "$ac_c_werror_flag" ||
12630 test ! -s conftest.err
12631 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012632 ac_header_compiler=yes
12633else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012634 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012635sed 's/^/| /' conftest.$ac_ext >&5
12636
Theodore Ts'oe1052142006-10-21 21:46:47 -040012637 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012638fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012639
12640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012641{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12642$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643
12644# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12646$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012647cat >conftest.$ac_ext <<_ACEOF
12648/* confdefs.h. */
12649_ACEOF
12650cat confdefs.h >>conftest.$ac_ext
12651cat >>conftest.$ac_ext <<_ACEOF
12652/* end confdefs.h. */
12653#include <$ac_header>
12654_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012655if { (ac_try="$ac_cpp conftest.$ac_ext"
12656case "(($ac_try" in
12657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12658 *) ac_try_echo=$ac_try;;
12659esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12661$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012662 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663 ac_status=$?
12664 grep -v '^ *+' conftest.er1 >conftest.err
12665 rm -f conftest.er1
12666 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012668 (exit $ac_status); } >/dev/null && {
12669 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12670 test ! -s conftest.err
12671 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012672 ac_header_preproc=yes
12673else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012674 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677 ac_header_preproc=no
12678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012679
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012680rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012681{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12682$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683
12684# So? What about this header?
12685case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12686 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12688$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12690$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691 ac_header_preproc=yes
12692 ;;
12693 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12695$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12697$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12699$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12701$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12703$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12705$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012706
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012707 ;;
12708esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012709{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12710$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012712 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012713else
12714 eval "$as_ac_Header=\$ac_header_preproc"
12715fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012716ac_res=`eval 'as_val=${'$as_ac_Header'}
12717 $as_echo "$as_val"'`
12718 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12719$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720
12721fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012722as_val=`eval 'as_val=${'$as_ac_Header'}
12723 $as_echo "$as_val"'`
12724 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012726#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012727_ACEOF
12728
12729fi
12730
12731done
12732
12733
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012734
12735for ac_header in sys/disk.h sys/mount.h
12736do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012737as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12738{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12739$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012740if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012742else
12743 cat >conftest.$ac_ext <<_ACEOF
12744/* confdefs.h. */
12745_ACEOF
12746cat confdefs.h >>conftest.$ac_ext
12747cat >>conftest.$ac_ext <<_ACEOF
12748/* end confdefs.h. */
12749
12750#if HAVE_SYS_QUEUE_H
12751#include <sys/queue.h>
12752#endif
12753
12754
12755#include <$ac_header>
12756_ACEOF
12757rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012758if { (ac_try="$ac_compile"
12759case "(($ac_try" in
12760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12761 *) ac_try_echo=$ac_try;;
12762esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12764$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012766 ac_status=$?
12767 grep -v '^ *+' conftest.er1 >conftest.err
12768 rm -f conftest.er1
12769 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012775 eval "$as_ac_Header=yes"
12776else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012777 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012778sed 's/^/| /' conftest.$ac_ext >&5
12779
Theodore Ts'oe1052142006-10-21 21:46:47 -040012780 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012781fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012782
12783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012784fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012785ac_res=`eval 'as_val=${'$as_ac_Header'}
12786 $as_echo "$as_val"'`
12787 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12788$as_echo "$ac_res" >&6; }
12789as_val=`eval 'as_val=${'$as_ac_Header'}
12790 $as_echo "$as_val"'`
12791 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012792 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012793#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012794_ACEOF
12795
12796fi
12797
12798done
12799
12800
12801for ac_header in net/if.h
12802do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12804{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12805$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012806if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012808else
12809 cat >conftest.$ac_ext <<_ACEOF
12810/* confdefs.h. */
12811_ACEOF
12812cat confdefs.h >>conftest.$ac_ext
12813cat >>conftest.$ac_ext <<_ACEOF
12814/* end confdefs.h. */
12815
12816#if HAVE_SYS_TYPES_H
12817#include <sys/types.h>
12818#endif
12819#if HAVE_SYS_SOCKET
12820#include <sys/socket.h>
12821#endif
12822
12823
12824#include <$ac_header>
12825_ACEOF
12826rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012827if { (ac_try="$ac_compile"
12828case "(($ac_try" in
12829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12830 *) ac_try_echo=$ac_try;;
12831esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012832eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12833$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012834 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012835 ac_status=$?
12836 grep -v '^ *+' conftest.er1 >conftest.err
12837 rm -f conftest.er1
12838 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012839 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012840 (exit $ac_status); } && {
12841 test -z "$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12843 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012844 eval "$as_ac_Header=yes"
12845else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012846 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012847sed 's/^/| /' conftest.$ac_ext >&5
12848
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012850fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012851
12852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012853fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012854ac_res=`eval 'as_val=${'$as_ac_Header'}
12855 $as_echo "$as_val"'`
12856 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12857$as_echo "$ac_res" >&6; }
12858as_val=`eval 'as_val=${'$as_ac_Header'}
12859 $as_echo "$as_val"'`
12860 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012861 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012862#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012863_ACEOF
12864
12865fi
12866
12867done
12868
12869
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012870for ac_func in vprintf
12871do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012872as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12873{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12874$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012875if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012876 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877else
12878 cat >conftest.$ac_ext <<_ACEOF
12879/* confdefs.h. */
12880_ACEOF
12881cat confdefs.h >>conftest.$ac_ext
12882cat >>conftest.$ac_ext <<_ACEOF
12883/* end confdefs.h. */
12884/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12886#define $ac_func innocuous_$ac_func
12887
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012888/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012889 which can conflict with char $ac_func (); below.
12890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12891 <limits.h> exists even on freestanding compilers. */
12892
12893#ifdef __STDC__
12894# include <limits.h>
12895#else
12896# include <assert.h>
12897#endif
12898
12899#undef $ac_func
12900
Theodore Ts'oe1052142006-10-21 21:46:47 -040012901/* Override any GCC internal prototype to avoid an error.
12902 Use char because int might match the return type of a GCC
12903 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012904#ifdef __cplusplus
12905extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012906#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012907char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012908/* The GNU C library defines this for functions which it implements
12909 to always fail with ENOSYS. Some functions are actually named
12910 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012911#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012912choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012913#endif
12914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915int
12916main ()
12917{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012918return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919 ;
12920 return 0;
12921}
12922_ACEOF
12923rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012924if { (ac_try="$ac_link"
12925case "(($ac_try" in
12926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12927 *) ac_try_echo=$ac_try;;
12928esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12930$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012931 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012932 ac_status=$?
12933 grep -v '^ *+' conftest.er1 >conftest.err
12934 rm -f conftest.er1
12935 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012937 (exit $ac_status); } && {
12938 test -z "$ac_c_werror_flag" ||
12939 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012940 } && test -s conftest$ac_exeext && {
12941 test "$cross_compiling" = yes ||
12942 $as_test_x conftest$ac_exeext
12943 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012944 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012945else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012946 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012948
Theodore Ts'oe1052142006-10-21 21:46:47 -040012949 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012951
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012952rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954 conftest$ac_exeext conftest.$ac_ext
12955fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012956ac_res=`eval 'as_val=${'$as_ac_var'}
12957 $as_echo "$as_val"'`
12958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12959$as_echo "$ac_res" >&6; }
12960as_val=`eval 'as_val=${'$as_ac_var'}
12961 $as_echo "$as_val"'`
12962 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012964#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012965_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012966
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012967{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12968$as_echo_n "checking for _doprnt... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969if test "${ac_cv_func__doprnt+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012970 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012971else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972 cat >conftest.$ac_ext <<_ACEOF
12973/* confdefs.h. */
12974_ACEOF
12975cat confdefs.h >>conftest.$ac_ext
12976cat >>conftest.$ac_ext <<_ACEOF
12977/* end confdefs.h. */
12978/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12980#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012981
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012982/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983 which can conflict with char _doprnt (); below.
12984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12985 <limits.h> exists even on freestanding compilers. */
12986
12987#ifdef __STDC__
12988# include <limits.h>
12989#else
12990# include <assert.h>
12991#endif
12992
12993#undef _doprnt
12994
Theodore Ts'oe1052142006-10-21 21:46:47 -040012995/* Override any GCC internal prototype to avoid an error.
12996 Use char because int might match the return type of a GCC
12997 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012998#ifdef __cplusplus
12999extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013000#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013002/* The GNU C library defines this for functions which it implements
13003 to always fail with ENOSYS. Some functions are actually named
13004 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013005#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013006choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013007#endif
13008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009int
13010main ()
13011{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013012return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013013 ;
13014 return 0;
13015}
13016_ACEOF
13017rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013018if { (ac_try="$ac_link"
13019case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13022esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13024$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013025 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013034 } && test -s conftest$ac_exeext && {
13035 test "$cross_compiling" = yes ||
13036 $as_test_x conftest$ac_exeext
13037 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013039else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013040 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013042
Theodore Ts'oe1052142006-10-21 21:46:47 -040013043 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013045
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013046rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013047rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013048 conftest$ac_exeext conftest.$ac_ext
13049fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013050{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13051$as_echo "$ac_cv_func__doprnt" >&6; }
13052if test "x$ac_cv_func__doprnt" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013053
13054cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013055#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013057
13058fi
13059
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013060fi
13061done
13062
13063
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013064{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13065$as_echo_n "checking for struct dirent.d_reclen... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013066if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013067 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013068else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 cat >conftest.$ac_ext <<_ACEOF
13070/* confdefs.h. */
13071_ACEOF
13072cat confdefs.h >>conftest.$ac_ext
13073cat >>conftest.$ac_ext <<_ACEOF
13074/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013075#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013077int
13078main ()
13079{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013080static struct dirent ac_aggr;
13081if (ac_aggr.d_reclen)
13082return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083 ;
13084 return 0;
13085}
13086_ACEOF
13087rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013088if { (ac_try="$ac_compile"
13089case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13092esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13094$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013095 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013096 ac_status=$?
13097 grep -v '^ *+' conftest.er1 >conftest.err
13098 rm -f conftest.er1
13099 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013101 (exit $ac_status); } && {
13102 test -z "$ac_c_werror_flag" ||
13103 test ! -s conftest.err
13104 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013105 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013106else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013107 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108sed 's/^/| /' conftest.$ac_ext >&5
13109
Theodore Ts'oe1052142006-10-21 21:46:47 -040013110 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013111/* confdefs.h. */
13112_ACEOF
13113cat confdefs.h >>conftest.$ac_ext
13114cat >>conftest.$ac_ext <<_ACEOF
13115/* end confdefs.h. */
13116#include <dirent.h>
13117
13118int
13119main ()
13120{
13121static struct dirent ac_aggr;
13122if (sizeof ac_aggr.d_reclen)
13123return 0;
13124 ;
13125 return 0;
13126}
13127_ACEOF
13128rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013129if { (ac_try="$ac_compile"
13130case "(($ac_try" in
13131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13132 *) ac_try_echo=$ac_try;;
13133esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13135$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013136 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013137 ac_status=$?
13138 grep -v '^ *+' conftest.er1 >conftest.err
13139 rm -f conftest.er1
13140 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013142 (exit $ac_status); } && {
13143 test -z "$ac_c_werror_flag" ||
13144 test ! -s conftest.err
13145 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013146 ac_cv_member_struct_dirent_d_reclen=yes
13147else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013148 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013149sed 's/^/| /' conftest.$ac_ext >&5
13150
Theodore Ts'oe1052142006-10-21 21:46:47 -040013151 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013153
13154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013155fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013156
13157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013158fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013159{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13160$as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13161if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013162 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013163#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013164_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013165
13166fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013167
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013168{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13169$as_echo_n "checking for ssize_t... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013170if test "${ac_cv_type_ssize_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013171 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013172else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013173 ac_cv_type_ssize_t=no
13174cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175/* confdefs.h. */
13176_ACEOF
13177cat confdefs.h >>conftest.$ac_ext
13178cat >>conftest.$ac_ext <<_ACEOF
13179/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013180#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013182int
13183main ()
13184{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013185if (sizeof (ssize_t))
13186 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013187 ;
13188 return 0;
13189}
13190_ACEOF
13191rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013192if { (ac_try="$ac_compile"
13193case "(($ac_try" in
13194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195 *) ac_try_echo=$ac_try;;
13196esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013199 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013205 (exit $ac_status); } && {
13206 test -z "$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013209 cat >conftest.$ac_ext <<_ACEOF
13210/* confdefs.h. */
13211_ACEOF
13212cat confdefs.h >>conftest.$ac_ext
13213cat >>conftest.$ac_ext <<_ACEOF
13214/* end confdefs.h. */
13215#include <sys/types.h>
13216
13217int
13218main ()
13219{
13220if (sizeof ((ssize_t)))
13221 return 0;
13222 ;
13223 return 0;
13224}
13225_ACEOF
13226rm -f conftest.$ac_objext
13227if { (ac_try="$ac_compile"
13228case "(($ac_try" in
13229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13230 *) ac_try_echo=$ac_try;;
13231esac
13232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13233$as_echo "$ac_try_echo") >&5
13234 (eval "$ac_compile") 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest.$ac_objext; then
13244 :
Theodore Ts'offf45482003-04-13 00:44:19 -040013245else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013246 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247sed 's/^/| /' conftest.$ac_ext >&5
13248
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013249 ac_cv_type_ssize_t=yes
13250fi
13251
13252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13253else
13254 $as_echo "$as_me: failed program was:" >&5
13255sed 's/^/| /' conftest.$ac_ext >&5
13256
13257
Theodore Ts'offf45482003-04-13 00:44:19 -040013258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013259
13260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013261fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013262{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13263$as_echo "$ac_cv_type_ssize_t" >&6; }
13264if test "x$ac_cv_type_ssize_t" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013265 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013266#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013267_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013268
13269fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013270
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013271{ $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13272$as_echo_n "checking whether llseek is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013273if test "${ac_cv_have_decl_llseek+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013274 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013275else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013276 cat >conftest.$ac_ext <<_ACEOF
13277/* confdefs.h. */
13278_ACEOF
13279cat confdefs.h >>conftest.$ac_ext
13280cat >>conftest.$ac_ext <<_ACEOF
13281/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013282#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013284int
13285main ()
13286{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013287#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013288 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013289#endif
13290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013291 ;
13292 return 0;
13293}
13294_ACEOF
13295rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013296if { (ac_try="$ac_compile"
13297case "(($ac_try" in
13298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299 *) ac_try_echo=$ac_try;;
13300esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13302$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013303 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013304 ac_status=$?
13305 grep -v '^ *+' conftest.er1 >conftest.err
13306 rm -f conftest.er1
13307 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013309 (exit $ac_status); } && {
13310 test -z "$ac_c_werror_flag" ||
13311 test ! -s conftest.err
13312 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013313 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013314else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013315 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013316sed 's/^/| /' conftest.$ac_ext >&5
13317
Theodore Ts'oe1052142006-10-21 21:46:47 -040013318 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013319fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013320
13321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013322fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013323{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13324$as_echo "$ac_cv_have_decl_llseek" >&6; }
13325if test "x$ac_cv_have_decl_llseek" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013326 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013327#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013328_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013329
13330fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013331
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013332{ $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13333$as_echo_n "checking whether lseek64 is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013334if test "${ac_cv_have_decl_lseek64+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013335 $as_echo_n "(cached) " >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013337 cat >conftest.$ac_ext <<_ACEOF
13338/* confdefs.h. */
13339_ACEOF
13340cat confdefs.h >>conftest.$ac_ext
13341cat >>conftest.$ac_ext <<_ACEOF
13342/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013343#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013344 #define _LARGEFILE64_SOURCE
13345 #include <unistd.h>
13346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347int
13348main ()
13349{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013350#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013351 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013352#endif
13353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013354 ;
13355 return 0;
13356}
13357_ACEOF
13358rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013359if { (ac_try="$ac_compile"
13360case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13365$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013366 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013367 ac_status=$?
13368 grep -v '^ *+' conftest.er1 >conftest.err
13369 rm -f conftest.er1
13370 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013372 (exit $ac_status); } && {
13373 test -z "$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13375 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013376 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013377else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013378 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379sed 's/^/| /' conftest.$ac_ext >&5
13380
Theodore Ts'oe1052142006-10-21 21:46:47 -040013381 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013383
13384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013385fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013386{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13387$as_echo "$ac_cv_have_decl_lseek64" >&6; }
13388if test "x$ac_cv_have_decl_lseek64" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013389 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013390#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013391_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013392
13393fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013394
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013395# The cast to long int works around a bug in the HP C Compiler
13396# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13397# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13398# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013399{ $as_echo "$as_me:$LINENO: checking size of short" >&5
13400$as_echo_n "checking size of short... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013401if test "${ac_cv_sizeof_short+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013402 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013403else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013404 if test "$cross_compiling" = yes; then
13405 # Depending upon the size, compute the lo and hi bounds.
13406cat >conftest.$ac_ext <<_ACEOF
13407/* confdefs.h. */
13408_ACEOF
13409cat confdefs.h >>conftest.$ac_ext
13410cat >>conftest.$ac_ext <<_ACEOF
13411/* end confdefs.h. */
13412$ac_includes_default
13413int
13414main ()
13415{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013416static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417test_array [0] = 0
13418
13419 ;
13420 return 0;
13421}
13422_ACEOF
13423rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013424if { (ac_try="$ac_compile"
13425case "(($ac_try" in
13426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13427 *) ac_try_echo=$ac_try;;
13428esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13430$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013431 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013432 ac_status=$?
13433 grep -v '^ *+' conftest.er1 >conftest.err
13434 rm -f conftest.er1
13435 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013437 (exit $ac_status); } && {
13438 test -z "$ac_c_werror_flag" ||
13439 test ! -s conftest.err
13440 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013441 ac_lo=0 ac_mid=0
13442 while :; do
13443 cat >conftest.$ac_ext <<_ACEOF
13444/* confdefs.h. */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h. */
13449$ac_includes_default
13450int
13451main ()
13452{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013453static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013454test_array [0] = 0
13455
13456 ;
13457 return 0;
13458}
13459_ACEOF
13460rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013461if { (ac_try="$ac_compile"
13462case "(($ac_try" in
13463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13464 *) ac_try_echo=$ac_try;;
13465esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013466eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13467$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013468 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469 ac_status=$?
13470 grep -v '^ *+' conftest.er1 >conftest.err
13471 rm -f conftest.er1
13472 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013474 (exit $ac_status); } && {
13475 test -z "$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13477 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013478 ac_hi=$ac_mid; break
13479else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013480 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013481sed 's/^/| /' conftest.$ac_ext >&5
13482
Theodore Ts'oe1052142006-10-21 21:46:47 -040013483 ac_lo=`expr $ac_mid + 1`
13484 if test $ac_lo -le $ac_mid; then
13485 ac_lo= ac_hi=
13486 break
13487 fi
13488 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013489fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013490
13491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013492 done
13493else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013494 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013495sed 's/^/| /' conftest.$ac_ext >&5
13496
Theodore Ts'oe1052142006-10-21 21:46:47 -040013497 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013498/* confdefs.h. */
13499_ACEOF
13500cat confdefs.h >>conftest.$ac_ext
13501cat >>conftest.$ac_ext <<_ACEOF
13502/* end confdefs.h. */
13503$ac_includes_default
13504int
13505main ()
13506{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013507static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013508test_array [0] = 0
13509
13510 ;
13511 return 0;
13512}
13513_ACEOF
13514rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013515if { (ac_try="$ac_compile"
13516case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13521$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013522 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013523 ac_status=$?
13524 grep -v '^ *+' conftest.er1 >conftest.err
13525 rm -f conftest.er1
13526 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013528 (exit $ac_status); } && {
13529 test -z "$ac_c_werror_flag" ||
13530 test ! -s conftest.err
13531 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013532 ac_hi=-1 ac_mid=-1
13533 while :; do
13534 cat >conftest.$ac_ext <<_ACEOF
13535/* confdefs.h. */
13536_ACEOF
13537cat confdefs.h >>conftest.$ac_ext
13538cat >>conftest.$ac_ext <<_ACEOF
13539/* end confdefs.h. */
13540$ac_includes_default
13541int
13542main ()
13543{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013544static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013545test_array [0] = 0
13546
13547 ;
13548 return 0;
13549}
13550_ACEOF
13551rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013552if { (ac_try="$ac_compile"
13553case "(($ac_try" in
13554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13555 *) ac_try_echo=$ac_try;;
13556esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13558$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013559 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560 ac_status=$?
13561 grep -v '^ *+' conftest.er1 >conftest.err
13562 rm -f conftest.er1
13563 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013565 (exit $ac_status); } && {
13566 test -z "$ac_c_werror_flag" ||
13567 test ! -s conftest.err
13568 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013569 ac_lo=$ac_mid; break
13570else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013571 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013572sed 's/^/| /' conftest.$ac_ext >&5
13573
Theodore Ts'oe1052142006-10-21 21:46:47 -040013574 ac_hi=`expr '(' $ac_mid ')' - 1`
13575 if test $ac_mid -le $ac_hi; then
13576 ac_lo= ac_hi=
13577 break
13578 fi
13579 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013581
13582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013583 done
13584else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013585 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013586sed 's/^/| /' conftest.$ac_ext >&5
13587
Theodore Ts'oe1052142006-10-21 21:46:47 -040013588 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013589fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013590
13591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013592fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013593
13594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013595# Binary search between lo and hi bounds.
13596while test "x$ac_lo" != "x$ac_hi"; do
13597 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13598 cat >conftest.$ac_ext <<_ACEOF
13599/* confdefs.h. */
13600_ACEOF
13601cat confdefs.h >>conftest.$ac_ext
13602cat >>conftest.$ac_ext <<_ACEOF
13603/* end confdefs.h. */
13604$ac_includes_default
13605int
13606main ()
13607{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013608static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013609test_array [0] = 0
13610
13611 ;
13612 return 0;
13613}
13614_ACEOF
13615rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013616if { (ac_try="$ac_compile"
13617case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13620esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13622$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013623 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ac_status=$?
13625 grep -v '^ *+' conftest.er1 >conftest.err
13626 rm -f conftest.er1
13627 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013629 (exit $ac_status); } && {
13630 test -z "$ac_c_werror_flag" ||
13631 test ! -s conftest.err
13632 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013633 ac_hi=$ac_mid
13634else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013635 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013636sed 's/^/| /' conftest.$ac_ext >&5
13637
Theodore Ts'oe1052142006-10-21 21:46:47 -040013638 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013639fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013640
13641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013642done
13643case $ac_lo in
13644?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013645'') if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013646 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13647$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13648{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013649See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013650$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013651See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013653 else
13654 ac_cv_sizeof_short=0
13655 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013658 cat >conftest.$ac_ext <<_ACEOF
13659/* confdefs.h. */
13660_ACEOF
13661cat confdefs.h >>conftest.$ac_ext
13662cat >>conftest.$ac_ext <<_ACEOF
13663/* end confdefs.h. */
13664$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013665static long int longval () { return (long int) (sizeof (short)); }
13666static unsigned long int ulongval () { return (long int) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013667#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013668#include <stdlib.h>
13669int
13670main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013671{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013672
13673 FILE *f = fopen ("conftest.val", "w");
13674 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013675 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013676 if (((long int) (sizeof (short))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013677 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013678 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013679 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013680 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013681 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682 }
13683 else
13684 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013685 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013686 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013687 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013688 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013689 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013690 /* Do not output a trailing newline, as this causes \r\n confusion
13691 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013692 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693
13694 ;
13695 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013696}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697_ACEOF
13698rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013699if { (ac_try="$ac_link"
13700case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013706 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013707 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013710 { (case "(($ac_try" in
13711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13713esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13715$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013716 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013717 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013719 (exit $ac_status); }; }; then
13720 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013721else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013722 $as_echo "$as_me: program exited with status $ac_status" >&5
13723$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724sed 's/^/| /' conftest.$ac_ext >&5
13725
13726( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013727if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013728 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13730{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013731See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013732$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013734 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013735 else
13736 ac_cv_sizeof_short=0
13737 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013738fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013739rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040013740rm -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 -050013741fi
13742rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013743fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013744{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13745$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013746
13747
13748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013749cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013750#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013752
13753
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013754# The cast to long int works around a bug in the HP C Compiler
13755# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13756# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13757# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013758{ $as_echo "$as_me:$LINENO: checking size of int" >&5
13759$as_echo_n "checking size of int... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013760if test "${ac_cv_sizeof_int+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013761 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013763 if test "$cross_compiling" = yes; then
13764 # Depending upon the size, compute the lo and hi bounds.
13765cat >conftest.$ac_ext <<_ACEOF
13766/* confdefs.h. */
13767_ACEOF
13768cat confdefs.h >>conftest.$ac_ext
13769cat >>conftest.$ac_ext <<_ACEOF
13770/* end confdefs.h. */
13771$ac_includes_default
13772int
13773main ()
13774{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013775static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013776test_array [0] = 0
13777
13778 ;
13779 return 0;
13780}
13781_ACEOF
13782rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013783if { (ac_try="$ac_compile"
13784case "(($ac_try" in
13785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786 *) ac_try_echo=$ac_try;;
13787esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13789$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013790 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791 ac_status=$?
13792 grep -v '^ *+' conftest.er1 >conftest.err
13793 rm -f conftest.er1
13794 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013796 (exit $ac_status); } && {
13797 test -z "$ac_c_werror_flag" ||
13798 test ! -s conftest.err
13799 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013800 ac_lo=0 ac_mid=0
13801 while :; do
13802 cat >conftest.$ac_ext <<_ACEOF
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
13807/* end confdefs.h. */
13808$ac_includes_default
13809int
13810main ()
13811{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013812static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813test_array [0] = 0
13814
13815 ;
13816 return 0;
13817}
13818_ACEOF
13819rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013820if { (ac_try="$ac_compile"
13821case "(($ac_try" in
13822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13823 *) ac_try_echo=$ac_try;;
13824esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13826$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828 ac_status=$?
13829 grep -v '^ *+' conftest.er1 >conftest.err
13830 rm -f conftest.er1
13831 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013833 (exit $ac_status); } && {
13834 test -z "$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013837 ac_hi=$ac_mid; break
13838else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013839 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840sed 's/^/| /' conftest.$ac_ext >&5
13841
Theodore Ts'oe1052142006-10-21 21:46:47 -040013842 ac_lo=`expr $ac_mid + 1`
13843 if test $ac_lo -le $ac_mid; then
13844 ac_lo= ac_hi=
13845 break
13846 fi
13847 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013849
13850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013851 done
13852else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013853 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013854sed 's/^/| /' conftest.$ac_ext >&5
13855
Theodore Ts'oe1052142006-10-21 21:46:47 -040013856 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013857/* confdefs.h. */
13858_ACEOF
13859cat confdefs.h >>conftest.$ac_ext
13860cat >>conftest.$ac_ext <<_ACEOF
13861/* end confdefs.h. */
13862$ac_includes_default
13863int
13864main ()
13865{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013866static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013867test_array [0] = 0
13868
13869 ;
13870 return 0;
13871}
13872_ACEOF
13873rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013874if { (ac_try="$ac_compile"
13875case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013881 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013891 ac_hi=-1 ac_mid=-1
13892 while :; do
13893 cat >conftest.$ac_ext <<_ACEOF
13894/* confdefs.h. */
13895_ACEOF
13896cat confdefs.h >>conftest.$ac_ext
13897cat >>conftest.$ac_ext <<_ACEOF
13898/* end confdefs.h. */
13899$ac_includes_default
13900int
13901main ()
13902{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013903static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013904test_array [0] = 0
13905
13906 ;
13907 return 0;
13908}
13909_ACEOF
13910rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013911if { (ac_try="$ac_compile"
13912case "(($ac_try" in
13913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13914 *) ac_try_echo=$ac_try;;
13915esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13917$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013918 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919 ac_status=$?
13920 grep -v '^ *+' conftest.er1 >conftest.err
13921 rm -f conftest.er1
13922 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013924 (exit $ac_status); } && {
13925 test -z "$ac_c_werror_flag" ||
13926 test ! -s conftest.err
13927 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928 ac_lo=$ac_mid; break
13929else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013930 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931sed 's/^/| /' conftest.$ac_ext >&5
13932
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933 ac_hi=`expr '(' $ac_mid ')' - 1`
13934 if test $ac_mid -le $ac_hi; then
13935 ac_lo= ac_hi=
13936 break
13937 fi
13938 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013940
13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013942 done
13943else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013944 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013945sed 's/^/| /' conftest.$ac_ext >&5
13946
Theodore Ts'oe1052142006-10-21 21:46:47 -040013947 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013948fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949
13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013952
13953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013954# Binary search between lo and hi bounds.
13955while test "x$ac_lo" != "x$ac_hi"; do
13956 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13957 cat >conftest.$ac_ext <<_ACEOF
13958/* confdefs.h. */
13959_ACEOF
13960cat confdefs.h >>conftest.$ac_ext
13961cat >>conftest.$ac_ext <<_ACEOF
13962/* end confdefs.h. */
13963$ac_includes_default
13964int
13965main ()
13966{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013967static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968test_array [0] = 0
13969
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013975if { (ac_try="$ac_compile"
13976case "(($ac_try" in
13977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13978 *) ac_try_echo=$ac_try;;
13979esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13981$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013982 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013983 ac_status=$?
13984 grep -v '^ *+' conftest.er1 >conftest.err
13985 rm -f conftest.er1
13986 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013988 (exit $ac_status); } && {
13989 test -z "$ac_c_werror_flag" ||
13990 test ! -s conftest.err
13991 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013992 ac_hi=$ac_mid
13993else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013994 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013995sed 's/^/| /' conftest.$ac_ext >&5
13996
Theodore Ts'oe1052142006-10-21 21:46:47 -040013997 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013999
14000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001done
14002case $ac_lo in
14003?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014004'') if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014005 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14007{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014008See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014009$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014011 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014012 else
14013 ac_cv_sizeof_int=0
14014 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014015esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014017 cat >conftest.$ac_ext <<_ACEOF
14018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h. */
14023$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014024static long int longval () { return (long int) (sizeof (int)); }
14025static unsigned long int ulongval () { return (long int) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014026#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014027#include <stdlib.h>
14028int
14029main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014030{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031
14032 FILE *f = fopen ("conftest.val", "w");
14033 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014034 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014035 if (((long int) (sizeof (int))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014036 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014037 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014038 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014039 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014040 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041 }
14042 else
14043 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014044 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014045 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014046 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014047 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014049 /* Do not output a trailing newline, as this causes \r\n confusion
14050 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014051 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052
14053 ;
14054 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014055}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056_ACEOF
14057rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014058if { (ac_try="$ac_link"
14059case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14062esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14064$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014066 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014069 { (case "(($ac_try" in
14070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14072esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14074$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014075 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014078 (exit $ac_status); }; }; then
14079 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014080else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014081 $as_echo "$as_me: program exited with status $ac_status" >&5
14082$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083sed 's/^/| /' conftest.$ac_ext >&5
14084
14085( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014086if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014087 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14089{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014090See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014091$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014093 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014094 else
14095 ac_cv_sizeof_int=0
14096 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014098rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014099rm -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 -050014100fi
14101rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014102fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014103{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14104$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014105
14106
14107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014108cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014109#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014111
14112
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014113# The cast to long int works around a bug in the HP C Compiler
14114# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14115# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14116# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014117{ $as_echo "$as_me:$LINENO: checking size of long" >&5
14118$as_echo_n "checking size of long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014119if test "${ac_cv_sizeof_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014120 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014122 if test "$cross_compiling" = yes; then
14123 # Depending upon the size, compute the lo and hi bounds.
14124cat >conftest.$ac_ext <<_ACEOF
14125/* confdefs.h. */
14126_ACEOF
14127cat confdefs.h >>conftest.$ac_ext
14128cat >>conftest.$ac_ext <<_ACEOF
14129/* end confdefs.h. */
14130$ac_includes_default
14131int
14132main ()
14133{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014134static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014135test_array [0] = 0
14136
14137 ;
14138 return 0;
14139}
14140_ACEOF
14141rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014142if { (ac_try="$ac_compile"
14143case "(($ac_try" in
14144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14145 *) ac_try_echo=$ac_try;;
14146esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14148$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014149 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150 ac_status=$?
14151 grep -v '^ *+' conftest.er1 >conftest.err
14152 rm -f conftest.er1
14153 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014155 (exit $ac_status); } && {
14156 test -z "$ac_c_werror_flag" ||
14157 test ! -s conftest.err
14158 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014159 ac_lo=0 ac_mid=0
14160 while :; do
14161 cat >conftest.$ac_ext <<_ACEOF
14162/* confdefs.h. */
14163_ACEOF
14164cat confdefs.h >>conftest.$ac_ext
14165cat >>conftest.$ac_ext <<_ACEOF
14166/* end confdefs.h. */
14167$ac_includes_default
14168int
14169main ()
14170{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014171static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014172test_array [0] = 0
14173
14174 ;
14175 return 0;
14176}
14177_ACEOF
14178rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179if { (ac_try="$ac_compile"
14180case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014196 ac_hi=$ac_mid; break
14197else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014198 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014199sed 's/^/| /' conftest.$ac_ext >&5
14200
Theodore Ts'oe1052142006-10-21 21:46:47 -040014201 ac_lo=`expr $ac_mid + 1`
14202 if test $ac_lo -le $ac_mid; then
14203 ac_lo= ac_hi=
14204 break
14205 fi
14206 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014208
14209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014210 done
14211else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014212 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014213sed 's/^/| /' conftest.$ac_ext >&5
14214
Theodore Ts'oe1052142006-10-21 21:46:47 -040014215 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014216/* confdefs.h. */
14217_ACEOF
14218cat confdefs.h >>conftest.$ac_ext
14219cat >>conftest.$ac_ext <<_ACEOF
14220/* end confdefs.h. */
14221$ac_includes_default
14222int
14223main ()
14224{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014225static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014226test_array [0] = 0
14227
14228 ;
14229 return 0;
14230}
14231_ACEOF
14232rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014233if { (ac_try="$ac_compile"
14234case "(($ac_try" in
14235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14236 *) ac_try_echo=$ac_try;;
14237esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14239$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014241 ac_status=$?
14242 grep -v '^ *+' conftest.er1 >conftest.err
14243 rm -f conftest.er1
14244 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014246 (exit $ac_status); } && {
14247 test -z "$ac_c_werror_flag" ||
14248 test ! -s conftest.err
14249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014250 ac_hi=-1 ac_mid=-1
14251 while :; do
14252 cat >conftest.$ac_ext <<_ACEOF
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259int
14260main ()
14261{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014262static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014263test_array [0] = 0
14264
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014270if { (ac_try="$ac_compile"
14271case "(($ac_try" in
14272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273 *) ac_try_echo=$ac_try;;
14274esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278 ac_status=$?
14279 grep -v '^ *+' conftest.er1 >conftest.err
14280 rm -f conftest.er1
14281 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014283 (exit $ac_status); } && {
14284 test -z "$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014287 ac_lo=$ac_mid; break
14288else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014289 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014290sed 's/^/| /' conftest.$ac_ext >&5
14291
Theodore Ts'oe1052142006-10-21 21:46:47 -040014292 ac_hi=`expr '(' $ac_mid ')' - 1`
14293 if test $ac_mid -le $ac_hi; then
14294 ac_lo= ac_hi=
14295 break
14296 fi
14297 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299
14300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014301 done
14302else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014303 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014304sed 's/^/| /' conftest.$ac_ext >&5
14305
Theodore Ts'oe1052142006-10-21 21:46:47 -040014306 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014308
14309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014310fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311
14312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313# Binary search between lo and hi bounds.
14314while test "x$ac_lo" != "x$ac_hi"; do
14315 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14316 cat >conftest.$ac_ext <<_ACEOF
14317/* confdefs.h. */
14318_ACEOF
14319cat confdefs.h >>conftest.$ac_ext
14320cat >>conftest.$ac_ext <<_ACEOF
14321/* end confdefs.h. */
14322$ac_includes_default
14323int
14324main ()
14325{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014326static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327test_array [0] = 0
14328
14329 ;
14330 return 0;
14331}
14332_ACEOF
14333rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014334if { (ac_try="$ac_compile"
14335case "(($ac_try" in
14336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14337 *) ac_try_echo=$ac_try;;
14338esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14340$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342 ac_status=$?
14343 grep -v '^ *+' conftest.er1 >conftest.err
14344 rm -f conftest.er1
14345 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014347 (exit $ac_status); } && {
14348 test -z "$ac_c_werror_flag" ||
14349 test ! -s conftest.err
14350 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351 ac_hi=$ac_mid
14352else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014353 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014354sed 's/^/| /' conftest.$ac_ext >&5
14355
Theodore Ts'oe1052142006-10-21 21:46:47 -040014356 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014358
14359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014360done
14361case $ac_lo in
14362?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014363'') if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014364 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14366{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014368$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014370 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014371 else
14372 ac_cv_sizeof_long=0
14373 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014374esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014375else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376 cat >conftest.$ac_ext <<_ACEOF
14377/* confdefs.h. */
14378_ACEOF
14379cat confdefs.h >>conftest.$ac_ext
14380cat >>conftest.$ac_ext <<_ACEOF
14381/* end confdefs.h. */
14382$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014383static long int longval () { return (long int) (sizeof (long)); }
14384static unsigned long int ulongval () { return (long int) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014385#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386#include <stdlib.h>
14387int
14388main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014389{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014390
14391 FILE *f = fopen ("conftest.val", "w");
14392 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014393 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014394 if (((long int) (sizeof (long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014396 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014397 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014398 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014399 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400 }
14401 else
14402 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014403 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014404 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014405 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014406 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014407 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014408 /* Do not output a trailing newline, as this causes \r\n confusion
14409 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014410 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014411
14412 ;
14413 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014414}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014415_ACEOF
14416rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417if { (ac_try="$ac_link"
14418case "(($ac_try" in
14419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14421esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014422eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14423$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014425 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014428 { (case "(($ac_try" in
14429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14430 *) ac_try_echo=$ac_try;;
14431esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14433$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014434 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014435 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437 (exit $ac_status); }; }; then
14438 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014439else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014440 $as_echo "$as_me: program exited with status $ac_status" >&5
14441$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014442sed 's/^/| /' conftest.$ac_ext >&5
14443
14444( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014445if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014446 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14447$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14448{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014450$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014451See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014452 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014453 else
14454 ac_cv_sizeof_long=0
14455 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014457rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014458rm -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 -050014459fi
14460rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014461fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014462{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14463$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014464
14465
14466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014467cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014468#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014470
14471
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014472# The cast to long int works around a bug in the HP C Compiler
14473# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14474# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14475# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014476{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
14477$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014478if test "${ac_cv_sizeof_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014479 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481 if test "$cross_compiling" = yes; then
14482 # Depending upon the size, compute the lo and hi bounds.
14483cat >conftest.$ac_ext <<_ACEOF
14484/* confdefs.h. */
14485_ACEOF
14486cat confdefs.h >>conftest.$ac_ext
14487cat >>conftest.$ac_ext <<_ACEOF
14488/* end confdefs.h. */
14489$ac_includes_default
14490int
14491main ()
14492{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014493static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014494test_array [0] = 0
14495
14496 ;
14497 return 0;
14498}
14499_ACEOF
14500rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014501if { (ac_try="$ac_compile"
14502case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14507$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014508 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014518 ac_lo=0 ac_mid=0
14519 while :; do
14520 cat >conftest.$ac_ext <<_ACEOF
14521/* confdefs.h. */
14522_ACEOF
14523cat confdefs.h >>conftest.$ac_ext
14524cat >>conftest.$ac_ext <<_ACEOF
14525/* end confdefs.h. */
14526$ac_includes_default
14527int
14528main ()
14529{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014530static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531test_array [0] = 0
14532
14533 ;
14534 return 0;
14535}
14536_ACEOF
14537rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014538if { (ac_try="$ac_compile"
14539case "(($ac_try" in
14540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14541 *) ac_try_echo=$ac_try;;
14542esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14544$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014545 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555 ac_hi=$ac_mid; break
14556else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014557 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558sed 's/^/| /' conftest.$ac_ext >&5
14559
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560 ac_lo=`expr $ac_mid + 1`
14561 if test $ac_lo -le $ac_mid; then
14562 ac_lo= ac_hi=
14563 break
14564 fi
14565 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567
14568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569 done
14570else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014571 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014572sed 's/^/| /' conftest.$ac_ext >&5
14573
Theodore Ts'oe1052142006-10-21 21:46:47 -040014574 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575/* confdefs.h. */
14576_ACEOF
14577cat confdefs.h >>conftest.$ac_ext
14578cat >>conftest.$ac_ext <<_ACEOF
14579/* end confdefs.h. */
14580$ac_includes_default
14581int
14582main ()
14583{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014584static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014585test_array [0] = 0
14586
14587 ;
14588 return 0;
14589}
14590_ACEOF
14591rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014592if { (ac_try="$ac_compile"
14593case "(($ac_try" in
14594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14595 *) ac_try_echo=$ac_try;;
14596esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014597eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14598$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014599 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014600 ac_status=$?
14601 grep -v '^ *+' conftest.er1 >conftest.err
14602 rm -f conftest.er1
14603 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014605 (exit $ac_status); } && {
14606 test -z "$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14608 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014609 ac_hi=-1 ac_mid=-1
14610 while :; do
14611 cat >conftest.$ac_ext <<_ACEOF
14612/* confdefs.h. */
14613_ACEOF
14614cat confdefs.h >>conftest.$ac_ext
14615cat >>conftest.$ac_ext <<_ACEOF
14616/* end confdefs.h. */
14617$ac_includes_default
14618int
14619main ()
14620{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014621static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622test_array [0] = 0
14623
14624 ;
14625 return 0;
14626}
14627_ACEOF
14628rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629if { (ac_try="$ac_compile"
14630case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14633esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014636 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014637 ac_status=$?
14638 grep -v '^ *+' conftest.er1 >conftest.err
14639 rm -f conftest.er1
14640 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014642 (exit $ac_status); } && {
14643 test -z "$ac_c_werror_flag" ||
14644 test ! -s conftest.err
14645 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014646 ac_lo=$ac_mid; break
14647else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014648 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014649sed 's/^/| /' conftest.$ac_ext >&5
14650
Theodore Ts'oe1052142006-10-21 21:46:47 -040014651 ac_hi=`expr '(' $ac_mid ')' - 1`
14652 if test $ac_mid -le $ac_hi; then
14653 ac_lo= ac_hi=
14654 break
14655 fi
14656 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014658
14659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014660 done
14661else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014662 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014663sed 's/^/| /' conftest.$ac_ext >&5
14664
Theodore Ts'oe1052142006-10-21 21:46:47 -040014665 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667
14668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014670
14671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014672# Binary search between lo and hi bounds.
14673while test "x$ac_lo" != "x$ac_hi"; do
14674 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14675 cat >conftest.$ac_ext <<_ACEOF
14676/* confdefs.h. */
14677_ACEOF
14678cat confdefs.h >>conftest.$ac_ext
14679cat >>conftest.$ac_ext <<_ACEOF
14680/* end confdefs.h. */
14681$ac_includes_default
14682int
14683main ()
14684{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014685static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014686test_array [0] = 0
14687
14688 ;
14689 return 0;
14690}
14691_ACEOF
14692rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014693if { (ac_try="$ac_compile"
14694case "(($ac_try" in
14695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14696 *) ac_try_echo=$ac_try;;
14697esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14699$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014700 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014706 (exit $ac_status); } && {
14707 test -z "$ac_c_werror_flag" ||
14708 test ! -s conftest.err
14709 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014710 ac_hi=$ac_mid
14711else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014712 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014713sed 's/^/| /' conftest.$ac_ext >&5
14714
Theodore Ts'oe1052142006-10-21 21:46:47 -040014715 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014716fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014717
14718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014719done
14720case $ac_lo in
14721?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014722'') if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014723 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14724$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14725{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014726See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014727$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014728See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014729 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014730 else
14731 ac_cv_sizeof_long_long=0
14732 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014733esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014734else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014735 cat >conftest.$ac_ext <<_ACEOF
14736/* confdefs.h. */
14737_ACEOF
14738cat confdefs.h >>conftest.$ac_ext
14739cat >>conftest.$ac_ext <<_ACEOF
14740/* end confdefs.h. */
14741$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014742static long int longval () { return (long int) (sizeof (long long)); }
14743static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014744#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014745#include <stdlib.h>
14746int
14747main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014748{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014749
14750 FILE *f = fopen ("conftest.val", "w");
14751 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014752 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014753 if (((long int) (sizeof (long long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014754 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014755 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014756 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014757 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014758 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759 }
14760 else
14761 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014762 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014763 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014764 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014765 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014767 /* Do not output a trailing newline, as this causes \r\n confusion
14768 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014769 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014770
14771 ;
14772 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014773}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014774_ACEOF
14775rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014776if { (ac_try="$ac_link"
14777case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14782$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014784 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014785 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014787 { (case "(($ac_try" in
14788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14789 *) ac_try_echo=$ac_try;;
14790esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014791eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14792$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014793 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014794 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014796 (exit $ac_status); }; }; then
14797 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014798else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014799 $as_echo "$as_me: program exited with status $ac_status" >&5
14800$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014801sed 's/^/| /' conftest.$ac_ext >&5
14802
14803( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014804if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014805 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14807{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014808See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014809$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014811 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014812 else
14813 ac_cv_sizeof_long_long=0
14814 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014815fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014816rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014817rm -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 -050014818fi
14819rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014820fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014821{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14822$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014823
14824
14825
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014826cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014827#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014828_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014829
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014830
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014831SIZEOF_SHORT=$ac_cv_sizeof_short
14832SIZEOF_INT=$ac_cv_sizeof_int
14833SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014834SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14835
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014836
14837
14838
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014839
14840 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14841$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014842if test "${ac_cv_c_bigendian+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014843 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014844else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014845 ac_cv_c_bigendian=unknown
14846 # See if we're dealing with a universal compiler.
14847 cat >conftest.$ac_ext <<_ACEOF
14848/* confdefs.h. */
14849_ACEOF
14850cat confdefs.h >>conftest.$ac_ext
14851cat >>conftest.$ac_ext <<_ACEOF
14852/* end confdefs.h. */
14853#ifndef __APPLE_CC__
14854 not a universal capable compiler
14855 #endif
14856 typedef int dummy;
14857
14858_ACEOF
14859rm -f conftest.$ac_objext
14860if { (ac_try="$ac_compile"
14861case "(($ac_try" in
14862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14863 *) ac_try_echo=$ac_try;;
14864esac
14865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14866$as_echo "$ac_try_echo") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14868 ac_status=$?
14869 grep -v '^ *+' conftest.er1 >conftest.err
14870 rm -f conftest.er1
14871 cat conftest.err >&5
14872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } && {
14874 test -z "$ac_c_werror_flag" ||
14875 test ! -s conftest.err
14876 } && test -s conftest.$ac_objext; then
14877
14878 # Check for potential -arch flags. It is not universal unless
14879 # there are some -arch flags. Note that *ppc* also matches
14880 # ppc64. This check is also rather less than ideal.
14881 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14882 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14883 esac
14884else
14885 $as_echo "$as_me: failed program was:" >&5
14886sed 's/^/| /' conftest.$ac_ext >&5
14887
14888
14889fi
14890
14891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 if test $ac_cv_c_bigendian = unknown; then
14893 # See if sys/param.h defines the BYTE_ORDER macro.
14894 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895/* confdefs.h. */
14896_ACEOF
14897cat confdefs.h >>conftest.$ac_ext
14898cat >>conftest.$ac_ext <<_ACEOF
14899/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014900#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014901 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014903int
14904main ()
14905{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014906#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14907 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14908 && LITTLE_ENDIAN)
14909 bogus endian macros
14910 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014911
14912 ;
14913 return 0;
14914}
14915_ACEOF
14916rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014917if { (ac_try="$ac_compile"
14918case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14921esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14923$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014924 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014925 ac_status=$?
14926 grep -v '^ *+' conftest.er1 >conftest.err
14927 rm -f conftest.er1
14928 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014930 (exit $ac_status); } && {
14931 test -z "$ac_c_werror_flag" ||
14932 test ! -s conftest.err
14933 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014934 # It does; now see whether it defined to BIG_ENDIAN or not.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014935 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014936/* confdefs.h. */
14937_ACEOF
14938cat confdefs.h >>conftest.$ac_ext
14939cat >>conftest.$ac_ext <<_ACEOF
14940/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014941#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014942 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014944int
14945main ()
14946{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014947#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014948 not big endian
14949 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014950
14951 ;
14952 return 0;
14953}
14954_ACEOF
14955rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014956if { (ac_try="$ac_compile"
14957case "(($ac_try" in
14958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14959 *) ac_try_echo=$ac_try;;
14960esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014961eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14962$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014963 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014964 ac_status=$?
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014969 (exit $ac_status); } && {
14970 test -z "$ac_c_werror_flag" ||
14971 test ! -s conftest.err
14972 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014973 ac_cv_c_bigendian=yes
14974else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014975 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014976sed 's/^/| /' conftest.$ac_ext >&5
14977
Theodore Ts'oe1052142006-10-21 21:46:47 -040014978 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014980
14981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014982else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014983 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014984sed 's/^/| /' conftest.$ac_ext >&5
14985
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014986
14987fi
14988
14989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14990 fi
14991 if test $ac_cv_c_bigendian = unknown; then
14992 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14993 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014994/* confdefs.h. */
14995_ACEOF
14996cat confdefs.h >>conftest.$ac_ext
14997cat >>conftest.$ac_ext <<_ACEOF
14998/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014999#include <limits.h>
15000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015001int
15002main ()
15003{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015004#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15005 bogus endian macros
15006 #endif
15007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015008 ;
15009 return 0;
15010}
15011_ACEOF
15012rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015013if { (ac_try="$ac_compile"
15014case "(($ac_try" in
15015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15016 *) ac_try_echo=$ac_try;;
15017esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15019$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015020 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015021 ac_status=$?
15022 grep -v '^ *+' conftest.er1 >conftest.err
15023 rm -f conftest.er1
15024 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015026 (exit $ac_status); } && {
15027 test -z "$ac_c_werror_flag" ||
15028 test ! -s conftest.err
15029 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015030 # It does; now see whether it defined to _BIG_ENDIAN or not.
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037#include <limits.h>
15038
15039int
15040main ()
15041{
15042#ifndef _BIG_ENDIAN
15043 not big endian
15044 #endif
15045
15046 ;
15047 return 0;
15048}
15049_ACEOF
15050rm -f conftest.$ac_objext
15051if { (ac_try="$ac_compile"
15052case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055esac
15056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15057$as_echo "$ac_try_echo") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15059 ac_status=$?
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
15063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } && {
15065 test -z "$ac_c_werror_flag" ||
15066 test ! -s conftest.err
15067 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015068 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015069else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015070 $as_echo "$as_me: failed program was:" >&5
15071sed 's/^/| /' conftest.$ac_ext >&5
15072
15073 ac_cv_c_bigendian=no
15074fi
15075
15076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15077else
15078 $as_echo "$as_me: failed program was:" >&5
15079sed 's/^/| /' conftest.$ac_ext >&5
15080
15081
15082fi
15083
15084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15085 fi
15086 if test $ac_cv_c_bigendian = unknown; then
15087 # Compile a test program.
15088 if test "$cross_compiling" = yes; then
15089 # Try to guess by grepping values from an object file.
15090 cat >conftest.$ac_ext <<_ACEOF
15091/* confdefs.h. */
15092_ACEOF
15093cat confdefs.h >>conftest.$ac_ext
15094cat >>conftest.$ac_ext <<_ACEOF
15095/* end confdefs.h. */
15096short int ascii_mm[] =
15097 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15098 short int ascii_ii[] =
15099 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15100 int use_ascii (int i) {
15101 return ascii_mm[i] + ascii_ii[i];
15102 }
15103 short int ebcdic_ii[] =
15104 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15105 short int ebcdic_mm[] =
15106 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15107 int use_ebcdic (int i) {
15108 return ebcdic_mm[i] + ebcdic_ii[i];
15109 }
15110 extern int foo;
15111
15112int
15113main ()
15114{
15115return use_ascii (foo) == use_ebcdic (foo);
15116 ;
15117 return 0;
15118}
15119_ACEOF
15120rm -f conftest.$ac_objext
15121if { (ac_try="$ac_compile"
15122case "(($ac_try" in
15123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15124 *) ac_try_echo=$ac_try;;
15125esac
15126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15127$as_echo "$ac_try_echo") >&5
15128 (eval "$ac_compile") 2>conftest.er1
15129 ac_status=$?
15130 grep -v '^ *+' conftest.er1 >conftest.err
15131 rm -f conftest.er1
15132 cat conftest.err >&5
15133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15134 (exit $ac_status); } && {
15135 test -z "$ac_c_werror_flag" ||
15136 test ! -s conftest.err
15137 } && test -s conftest.$ac_objext; then
15138 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15139 ac_cv_c_bigendian=yes
15140 fi
15141 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15142 if test "$ac_cv_c_bigendian" = unknown; then
15143 ac_cv_c_bigendian=no
15144 else
15145 # finding both strings is unlikely to happen, but who knows?
15146 ac_cv_c_bigendian=unknown
15147 fi
15148 fi
15149else
15150 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151sed 's/^/| /' conftest.$ac_ext >&5
15152
Theodore Ts'oe1052142006-10-21 21:46:47 -040015153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015154fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015155
15156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015157else
15158 cat >conftest.$ac_ext <<_ACEOF
15159/* confdefs.h. */
15160_ACEOF
15161cat confdefs.h >>conftest.$ac_ext
15162cat >>conftest.$ac_ext <<_ACEOF
15163/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015164$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015165int
15166main ()
15167{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015168
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015169 /* Are we little or big endian? From Harbison&Steele. */
15170 union
15171 {
15172 long int l;
15173 char c[sizeof (long int)];
15174 } u;
15175 u.l = 1;
15176 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015177
15178 ;
15179 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015180}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015181_ACEOF
15182rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015183if { (ac_try="$ac_link"
15184case "(($ac_try" in
15185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186 *) ac_try_echo=$ac_try;;
15187esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15189$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015190 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015191 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015194 { (case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015198eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15199$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015200 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015203 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015204 ac_cv_c_bigendian=no
15205else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015206 $as_echo "$as_me: program exited with status $ac_status" >&5
15207$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015208sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015210( exit $ac_status )
15211ac_cv_c_bigendian=yes
15212fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015213rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040015214rm -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 -040015215fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015216
15217
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015218 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015219fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015220{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15221$as_echo "$ac_cv_c_bigendian" >&6; }
15222 case $ac_cv_c_bigendian in #(
15223 yes)
15224 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015225#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015226_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015227;; #(
15228 no)
15229 ;; #(
15230 universal)
15231
15232cat >>confdefs.h <<\_ACEOF
15233#define AC_APPLE_UNIVERSAL_BUILD 1
15234_ACEOF
15235
15236 ;; #(
15237 *)
15238 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15239 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15240$as_echo "$as_me: error: unknown endianness
15241 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015242 { (exit 1); exit 1; }; } ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015243 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015244
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015245BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015246ASM_TYPES_HEADER=./asm_types.h
15247
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015248echo "/* These defines are needed for the public ext2fs.h header file */" \
15249 > public_config.h
15250if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15251 uniq tmp_config.$$ >> public_config.h
15252else
15253 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15254fi
15255if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15256 uniq tmp_config.$$ >> public_config.h
15257else
15258 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15259fi
15260rm -f tmp_config.$$
15261PUBLIC_CONFIG_HEADER=./public_config.h
15262
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015265do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015266as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015267if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015268 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15269$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015270if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015271 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015272fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015273ac_res=`eval 'as_val=${'$as_ac_Header'}
15274 $as_echo "$as_val"'`
15275 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15276$as_echo "$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015277else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015278 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015279{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15280$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015281cat >conftest.$ac_ext <<_ACEOF
15282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287$ac_includes_default
15288#include <$ac_header>
15289_ACEOF
15290rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015291if { (ac_try="$ac_compile"
15292case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15295esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15297$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015298 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015299 ac_status=$?
15300 grep -v '^ *+' conftest.er1 >conftest.err
15301 rm -f conftest.er1
15302 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015304 (exit $ac_status); } && {
15305 test -z "$ac_c_werror_flag" ||
15306 test ! -s conftest.err
15307 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015308 ac_header_compiler=yes
15309else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015310 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311sed 's/^/| /' conftest.$ac_ext >&5
15312
Theodore Ts'oe1052142006-10-21 21:46:47 -040015313 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015314fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015315
15316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015317{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15318$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319
15320# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015321{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15322$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015323cat >conftest.$ac_ext <<_ACEOF
15324/* confdefs.h. */
15325_ACEOF
15326cat confdefs.h >>conftest.$ac_ext
15327cat >>conftest.$ac_ext <<_ACEOF
15328/* end confdefs.h. */
15329#include <$ac_header>
15330_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015331if { (ac_try="$ac_cpp conftest.$ac_ext"
15332case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15337$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015344 (exit $ac_status); } >/dev/null && {
15345 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015348 ac_header_preproc=yes
15349else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015350 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_header_preproc=no
15354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015355
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015356rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015357{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15358$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015359
15360# So? What about this header?
15361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15362 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15364$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15366$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367 ac_header_preproc=yes
15368 ;;
15369 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015370 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15371$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15372 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15373$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15375$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15377$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15379$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15381$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015382
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015383 ;;
15384esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015385{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15386$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015387if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015388 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015389else
15390 eval "$as_ac_Header=\$ac_header_preproc"
15391fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015392ac_res=`eval 'as_val=${'$as_ac_Header'}
15393 $as_echo "$as_val"'`
15394 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15395$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015396
15397fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015398as_val=`eval 'as_val=${'$as_ac_Header'}
15399 $as_echo "$as_val"'`
15400 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015401 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015402#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015403_ACEOF
15404
15405fi
15406
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015407done
15408
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015409{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15410$as_echo_n "checking for intptr_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015411if test "${ac_cv_type_intptr_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015412 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015413else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015414 ac_cv_type_intptr_t=no
15415cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015416/* confdefs.h. */
15417_ACEOF
15418cat confdefs.h >>conftest.$ac_ext
15419cat >>conftest.$ac_ext <<_ACEOF
15420/* end confdefs.h. */
15421$ac_includes_default
15422int
15423main ()
15424{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015425if (sizeof (intptr_t))
15426 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427 ;
15428 return 0;
15429}
15430_ACEOF
15431rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015432if { (ac_try="$ac_compile"
15433case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15436esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15438$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015439 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015440 ac_status=$?
15441 grep -v '^ *+' conftest.er1 >conftest.err
15442 rm -f conftest.er1
15443 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015445 (exit $ac_status); } && {
15446 test -z "$ac_c_werror_flag" ||
15447 test ! -s conftest.err
15448 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015449 cat >conftest.$ac_ext <<_ACEOF
15450/* confdefs.h. */
15451_ACEOF
15452cat confdefs.h >>conftest.$ac_ext
15453cat >>conftest.$ac_ext <<_ACEOF
15454/* end confdefs.h. */
15455$ac_includes_default
15456int
15457main ()
15458{
15459if (sizeof ((intptr_t)))
15460 return 0;
15461 ;
15462 return 0;
15463}
15464_ACEOF
15465rm -f conftest.$ac_objext
15466if { (ac_try="$ac_compile"
15467case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15470esac
15471eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15472$as_echo "$ac_try_echo") >&5
15473 (eval "$ac_compile") 2>conftest.er1
15474 ac_status=$?
15475 grep -v '^ *+' conftest.er1 >conftest.err
15476 rm -f conftest.er1
15477 cat conftest.err >&5
15478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15479 (exit $ac_status); } && {
15480 test -z "$ac_c_werror_flag" ||
15481 test ! -s conftest.err
15482 } && test -s conftest.$ac_objext; then
15483 :
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015484else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015485 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015486sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015487
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015488 ac_cv_type_intptr_t=yes
15489fi
15490
15491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15492else
15493 $as_echo "$as_me: failed program was:" >&5
15494sed 's/^/| /' conftest.$ac_ext >&5
15495
15496
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015497fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015498
15499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015500fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015501{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15502$as_echo "$ac_cv_type_intptr_t" >&6; }
15503if test "x$ac_cv_type_intptr_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015504
15505cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015506#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015507_ACEOF
15508
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015510fi
15511
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015512{ $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15513$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015514if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015515 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015516else
15517 cat >conftest.$ac_ext <<_ACEOF
15518/* confdefs.h. */
15519_ACEOF
15520cat confdefs.h >>conftest.$ac_ext
15521cat >>conftest.$ac_ext <<_ACEOF
15522/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015523#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015524int
15525main ()
15526{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015527struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528 ;
15529 return 0;
15530}
15531_ACEOF
15532rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015533if { (ac_try="$ac_compile"
15534case "(($ac_try" in
15535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15536 *) ac_try_echo=$ac_try;;
15537esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15539$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015540 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015541 ac_status=$?
15542 grep -v '^ *+' conftest.er1 >conftest.err
15543 rm -f conftest.er1
15544 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015546 (exit $ac_status); } && {
15547 test -z "$ac_c_werror_flag" ||
15548 test ! -s conftest.err
15549 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015550 e2fsprogs_cv_struct_st_flags=yes
15551else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015552 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015553sed 's/^/| /' conftest.$ac_ext >&5
15554
Theodore Ts'oe1052142006-10-21 21:46:47 -040015555 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015556fi
15557
Theodore Ts'oe1052142006-10-21 21:46:47 -040015558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559fi
15560
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015561{ $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15562$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015563if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015564 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15565$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015566 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015567 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015568else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015569 cat >conftest.$ac_ext <<_ACEOF
15570/* confdefs.h. */
15571_ACEOF
15572cat confdefs.h >>conftest.$ac_ext
15573cat >>conftest.$ac_ext <<_ACEOF
15574/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015575#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015576int
15577main ()
15578{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015579struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015580 ;
15581 return 0;
15582}
15583_ACEOF
15584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015585if { (ac_try="$ac_compile"
15586case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15589esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15591$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015592 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015593 ac_status=$?
15594 grep -v '^ *+' conftest.er1 >conftest.err
15595 rm -f conftest.er1
15596 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015598 (exit $ac_status); } && {
15599 test -z "$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015602 e2fsprogs_cv_struct_st_flags_immut=yes
15603else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015604 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015605sed 's/^/| /' conftest.$ac_ext >&5
15606
Theodore Ts'oe1052142006-10-21 21:46:47 -040015607 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015608fi
15609
Theodore Ts'oe1052142006-10-21 21:46:47 -040015610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15611fi
15612
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015613 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15614$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015615 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015616 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015617#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015618_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015619
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015620 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015621fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015622{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15623$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015624if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015625 $as_echo_n "(cached) " >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015627 cat >conftest.$ac_ext <<_ACEOF
15628/* confdefs.h. */
15629_ACEOF
15630cat confdefs.h >>conftest.$ac_ext
15631cat >>conftest.$ac_ext <<_ACEOF
15632/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015633#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015634 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015636int
15637main ()
15638{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015639static struct sockaddr ac_aggr;
15640if (ac_aggr.sa_len)
15641return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015642 ;
15643 return 0;
15644}
15645_ACEOF
15646rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015647if { (ac_try="$ac_compile"
15648case "(($ac_try" in
15649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15650 *) ac_try_echo=$ac_try;;
15651esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15653$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015654 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015655 ac_status=$?
15656 grep -v '^ *+' conftest.er1 >conftest.err
15657 rm -f conftest.er1
15658 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015660 (exit $ac_status); } && {
15661 test -z "$ac_c_werror_flag" ||
15662 test ! -s conftest.err
15663 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015664 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015665else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015666 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667sed 's/^/| /' conftest.$ac_ext >&5
15668
Theodore Ts'oe1052142006-10-21 21:46:47 -040015669 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015670/* confdefs.h. */
15671_ACEOF
15672cat confdefs.h >>conftest.$ac_ext
15673cat >>conftest.$ac_ext <<_ACEOF
15674/* end confdefs.h. */
15675#include <sys/types.h>
15676 #include <sys/socket.h>
15677
15678int
15679main ()
15680{
15681static struct sockaddr ac_aggr;
15682if (sizeof ac_aggr.sa_len)
15683return 0;
15684 ;
15685 return 0;
15686}
15687_ACEOF
15688rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015689if { (ac_try="$ac_compile"
15690case "(($ac_try" in
15691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15692 *) ac_try_echo=$ac_try;;
15693esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015694eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15695$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015696 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015697 ac_status=$?
15698 grep -v '^ *+' conftest.er1 >conftest.err
15699 rm -f conftest.er1
15700 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015702 (exit $ac_status); } && {
15703 test -z "$ac_c_werror_flag" ||
15704 test ! -s conftest.err
15705 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015706 ac_cv_member_struct_sockaddr_sa_len=yes
15707else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015708 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015709sed 's/^/| /' conftest.$ac_ext >&5
15710
Theodore Ts'oe1052142006-10-21 21:46:47 -040015711 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015713
15714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015715fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015716
15717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015718fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015719{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15720$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15721if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015722
15723cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015724#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015725_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015726
15727fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015747
Theodore Ts'o762c7c62005-04-06 14:44:16 -040015748
15749
Andreas Dilger9b7d8112005-07-09 22:06:59 -050015750
Theodore Ts'oae2868a2006-10-22 00:18:49 -040015751
Theodore Ts'o106ad962007-04-04 21:26:37 -040015752
15753
15754
Theodore Ts'o740837d2007-12-16 17:21:38 -050015755
15756
Theodore Ts'o261cd392008-01-21 13:45:00 -050015757
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040015758
15759
Theodore Ts'o1207e362009-04-15 13:05:09 -040015760
15761
15762for 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
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015763do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015764as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15765{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15766$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015767if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015768 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015769else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015770 cat >conftest.$ac_ext <<_ACEOF
15771/* confdefs.h. */
15772_ACEOF
15773cat confdefs.h >>conftest.$ac_ext
15774cat >>conftest.$ac_ext <<_ACEOF
15775/* end confdefs.h. */
15776/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15778#define $ac_func innocuous_$ac_func
15779
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015780/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015781 which can conflict with char $ac_func (); below.
15782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15783 <limits.h> exists even on freestanding compilers. */
15784
15785#ifdef __STDC__
15786# include <limits.h>
15787#else
15788# include <assert.h>
15789#endif
15790
15791#undef $ac_func
15792
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793/* Override any GCC internal prototype to avoid an error.
15794 Use char because int might match the return type of a GCC
15795 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015796#ifdef __cplusplus
15797extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015798#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015800/* The GNU C library defines this for functions which it implements
15801 to always fail with ENOSYS. Some functions are actually named
15802 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015803#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015804choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015805#endif
15806
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807int
15808main ()
15809{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015810return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015816if { (ac_try="$ac_link"
15817case "(($ac_try" in
15818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15819 *) ac_try_echo=$ac_try;;
15820esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15822$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015823 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015824 ac_status=$?
15825 grep -v '^ *+' conftest.er1 >conftest.err
15826 rm -f conftest.er1
15827 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015832 } && test -s conftest$ac_exeext && {
15833 test "$cross_compiling" = yes ||
15834 $as_test_x conftest$ac_exeext
15835 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015837else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015838 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015839sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015840
Theodore Ts'oe1052142006-10-21 21:46:47 -040015841 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015842fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015843
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015844rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015846 conftest$ac_exeext conftest.$ac_ext
15847fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015848ac_res=`eval 'as_val=${'$as_ac_var'}
15849 $as_echo "$as_val"'`
15850 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15851$as_echo "$ac_res" >&6; }
15852as_val=`eval 'as_val=${'$as_ac_var'}
15853 $as_echo "$as_val"'`
15854 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015855 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015856#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015857_ACEOF
15858
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015859fi
15860done
15861
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015862SOCKET_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015863{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15864$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015865if test "${ac_cv_lib_socket_socket+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015866 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015867else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015868 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015869LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015870cat >conftest.$ac_ext <<_ACEOF
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876
Theodore Ts'oe1052142006-10-21 21:46:47 -040015877/* Override any GCC internal prototype to avoid an error.
15878 Use char because int might match the return type of a GCC
15879 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015880#ifdef __cplusplus
15881extern "C"
15882#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015883char socket ();
15884int
15885main ()
15886{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015887return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015888 ;
15889 return 0;
15890}
15891_ACEOF
15892rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015893if { (ac_try="$ac_link"
15894case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15897esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15899$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015900 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015901 ac_status=$?
15902 grep -v '^ *+' conftest.er1 >conftest.err
15903 rm -f conftest.er1
15904 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015906 (exit $ac_status); } && {
15907 test -z "$ac_c_werror_flag" ||
15908 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015909 } && test -s conftest$ac_exeext && {
15910 test "$cross_compiling" = yes ||
15911 $as_test_x conftest$ac_exeext
15912 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015913 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015914else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015915 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015916sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015917
Theodore Ts'oe1052142006-10-21 21:46:47 -040015918 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015920
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015921rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015923 conftest$ac_exeext conftest.$ac_ext
15924LIBS=$ac_check_lib_save_LIBS
15925fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015926{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15927$as_echo "$ac_cv_lib_socket_socket" >&6; }
15928if test "x$ac_cv_lib_socket_socket" = x""yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015929 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015930fi
15931
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015932
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015933DLOPEN_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015934{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15935$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015937 $as_echo_n "(cached) " >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015938else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015939 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015940LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015941cat >conftest.$ac_ext <<_ACEOF
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947
Theodore Ts'oe1052142006-10-21 21:46:47 -040015948/* Override any GCC internal prototype to avoid an error.
15949 Use char because int might match the return type of a GCC
15950 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015951#ifdef __cplusplus
15952extern "C"
15953#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015954char dlopen ();
15955int
15956main ()
15957{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015958return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015959 ;
15960 return 0;
15961}
15962_ACEOF
15963rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015964if { (ac_try="$ac_link"
15965case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15968esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15970$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015971 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972 ac_status=$?
15973 grep -v '^ *+' conftest.er1 >conftest.err
15974 rm -f conftest.er1
15975 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015977 (exit $ac_status); } && {
15978 test -z "$ac_c_werror_flag" ||
15979 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015980 } && test -s conftest$ac_exeext && {
15981 test "$cross_compiling" = yes ||
15982 $as_test_x conftest$ac_exeext
15983 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015984 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015985else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015986 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015987sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015988
Theodore Ts'oe1052142006-10-21 21:46:47 -040015989 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015991
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015992rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994 conftest$ac_exeext conftest.$ac_ext
15995LIBS=$ac_check_lib_save_LIBS
15996fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015997{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15998$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15999if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016000 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016001cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016002#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016003_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016004
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016005fi
16006
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016007
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016008{ $as_echo "$as_me:$LINENO: checking for optreset" >&5
16009$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016010if test "${ac_cv_have_optreset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016011 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016012else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016013 cat >conftest.$ac_ext <<_ACEOF
16014/* confdefs.h. */
16015_ACEOF
16016cat confdefs.h >>conftest.$ac_ext
16017cat >>conftest.$ac_ext <<_ACEOF
16018/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016019#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016020
16021_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016022if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016023 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016024 ac_cv_have_optreset=yes
16025else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016026 ac_cv_have_optreset=no
16027fi
16028rm -f conftest*
16029
16030fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016031{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16032$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016033if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016034 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016035#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016036_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016037
16038fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016039SEM_INIT_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016040{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16041$as_echo_n "checking for sem_init... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016042if test "${ac_cv_func_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016043 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016044else
16045 cat >conftest.$ac_ext <<_ACEOF
16046/* confdefs.h. */
16047_ACEOF
16048cat confdefs.h >>conftest.$ac_ext
16049cat >>conftest.$ac_ext <<_ACEOF
16050/* end confdefs.h. */
16051/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16052 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16053#define sem_init innocuous_sem_init
16054
16055/* System header to define __stub macros and hopefully few prototypes,
16056 which can conflict with char sem_init (); below.
16057 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16058 <limits.h> exists even on freestanding compilers. */
16059
16060#ifdef __STDC__
16061# include <limits.h>
16062#else
16063# include <assert.h>
16064#endif
16065
16066#undef sem_init
16067
16068/* Override any GCC internal prototype to avoid an error.
16069 Use char because int might match the return type of a GCC
16070 builtin and then its argument prototype would still apply. */
16071#ifdef __cplusplus
16072extern "C"
16073#endif
16074char sem_init ();
16075/* The GNU C library defines this for functions which it implements
16076 to always fail with ENOSYS. Some functions are actually named
16077 something starting with __ and the normal name is an alias. */
16078#if defined __stub_sem_init || defined __stub___sem_init
16079choke me
16080#endif
16081
16082int
16083main ()
16084{
16085return sem_init ();
16086 ;
16087 return 0;
16088}
16089_ACEOF
16090rm -f conftest.$ac_objext conftest$ac_exeext
16091if { (ac_try="$ac_link"
16092case "(($ac_try" in
16093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16094 *) ac_try_echo=$ac_try;;
16095esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16097$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016098 (eval "$ac_link") 2>conftest.er1
16099 ac_status=$?
16100 grep -v '^ *+' conftest.er1 >conftest.err
16101 rm -f conftest.er1
16102 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016107 } && test -s conftest$ac_exeext && {
16108 test "$cross_compiling" = yes ||
16109 $as_test_x conftest$ac_exeext
16110 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016111 ac_cv_func_sem_init=yes
16112else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016113 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016114sed 's/^/| /' conftest.$ac_ext >&5
16115
16116 ac_cv_func_sem_init=no
16117fi
16118
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016119rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016120rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16121 conftest$ac_exeext conftest.$ac_ext
16122fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016123{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16124$as_echo "$ac_cv_func_sem_init" >&6; }
16125if test "x$ac_cv_func_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016126 :
16127else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016128 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16129$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016130if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016131 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016132else
16133 ac_check_lib_save_LIBS=$LIBS
16134LIBS="-lpthread $LIBS"
16135cat >conftest.$ac_ext <<_ACEOF
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141
16142/* Override any GCC internal prototype to avoid an error.
16143 Use char because int might match the return type of a GCC
16144 builtin and then its argument prototype would still apply. */
16145#ifdef __cplusplus
16146extern "C"
16147#endif
16148char sem_init ();
16149int
16150main ()
16151{
16152return sem_init ();
16153 ;
16154 return 0;
16155}
16156_ACEOF
16157rm -f conftest.$ac_objext conftest$ac_exeext
16158if { (ac_try="$ac_link"
16159case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16162esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16164$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016165 (eval "$ac_link") 2>conftest.er1
16166 ac_status=$?
16167 grep -v '^ *+' conftest.er1 >conftest.err
16168 rm -f conftest.er1
16169 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016174 } && test -s conftest$ac_exeext && {
16175 test "$cross_compiling" = yes ||
16176 $as_test_x conftest$ac_exeext
16177 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016178 ac_cv_lib_pthread_sem_init=yes
16179else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016180 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016181sed 's/^/| /' conftest.$ac_ext >&5
16182
16183 ac_cv_lib_pthread_sem_init=no
16184fi
16185
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016186rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16188 conftest$ac_exeext conftest.$ac_ext
16189LIBS=$ac_check_lib_save_LIBS
16190fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16192$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16193if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016194 cat >>confdefs.h <<\_ACEOF
16195#define HAVE_SEM_INIT 1
16196_ACEOF
16197
16198 SEM_INIT_LIB=-lpthread
16199else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016200 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16201$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016202if test "${ac_cv_lib_rt_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016203 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016204else
16205 ac_check_lib_save_LIBS=$LIBS
16206LIBS="-lrt $LIBS"
16207cat >conftest.$ac_ext <<_ACEOF
16208/* confdefs.h. */
16209_ACEOF
16210cat confdefs.h >>conftest.$ac_ext
16211cat >>conftest.$ac_ext <<_ACEOF
16212/* end confdefs.h. */
16213
16214/* Override any GCC internal prototype to avoid an error.
16215 Use char because int might match the return type of a GCC
16216 builtin and then its argument prototype would still apply. */
16217#ifdef __cplusplus
16218extern "C"
16219#endif
16220char sem_init ();
16221int
16222main ()
16223{
16224return sem_init ();
16225 ;
16226 return 0;
16227}
16228_ACEOF
16229rm -f conftest.$ac_objext conftest$ac_exeext
16230if { (ac_try="$ac_link"
16231case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16236$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016237 (eval "$ac_link") 2>conftest.er1
16238 ac_status=$?
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016246 } && test -s conftest$ac_exeext && {
16247 test "$cross_compiling" = yes ||
16248 $as_test_x conftest$ac_exeext
16249 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016250 ac_cv_lib_rt_sem_init=yes
16251else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016252 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016253sed 's/^/| /' conftest.$ac_ext >&5
16254
16255 ac_cv_lib_rt_sem_init=no
16256fi
16257
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016258rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16260 conftest$ac_exeext conftest.$ac_ext
16261LIBS=$ac_check_lib_save_LIBS
16262fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016263{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16264$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16265if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016266 cat >>confdefs.h <<\_ACEOF
16267#define HAVE_SEM_INIT 1
16268_ACEOF
16269
16270 SEM_INIT_LIB=-lrt
16271else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016272 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16273$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016274if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016275 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016276else
16277 ac_check_lib_save_LIBS=$LIBS
16278LIBS="-lposix4 $LIBS"
16279cat >conftest.$ac_ext <<_ACEOF
16280/* confdefs.h. */
16281_ACEOF
16282cat confdefs.h >>conftest.$ac_ext
16283cat >>conftest.$ac_ext <<_ACEOF
16284/* end confdefs.h. */
16285
16286/* Override any GCC internal prototype to avoid an error.
16287 Use char because int might match the return type of a GCC
16288 builtin and then its argument prototype would still apply. */
16289#ifdef __cplusplus
16290extern "C"
16291#endif
16292char sem_init ();
16293int
16294main ()
16295{
16296return sem_init ();
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext conftest$ac_exeext
16302if { (ac_try="$ac_link"
16303case "(($ac_try" in
16304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16305 *) ac_try_echo=$ac_try;;
16306esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16308$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016309 (eval "$ac_link") 2>conftest.er1
16310 ac_status=$?
16311 grep -v '^ *+' conftest.er1 >conftest.err
16312 rm -f conftest.er1
16313 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016318 } && test -s conftest$ac_exeext && {
16319 test "$cross_compiling" = yes ||
16320 $as_test_x conftest$ac_exeext
16321 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016322 ac_cv_lib_posix4_sem_init=yes
16323else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016324 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016325sed 's/^/| /' conftest.$ac_ext >&5
16326
16327 ac_cv_lib_posix4_sem_init=no
16328fi
16329
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016330rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16332 conftest$ac_exeext conftest.$ac_ext
16333LIBS=$ac_check_lib_save_LIBS
16334fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016335{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16336$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16337if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016338 cat >>confdefs.h <<\_ACEOF
16339#define HAVE_SEM_INIT 1
16340_ACEOF
16341
16342 SEM_INIT_LIB=-lposix4
16343fi
16344
16345fi
16346
16347fi
16348
16349fi
16350
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016351{ $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16352$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040016353if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016354 UNI_DIFF_OPTS=-u
16355else
16356 UNI_DIFF_OPTS=-c
16357fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016358{ $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16359$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016360
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016361case "$host_os" in
16362linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016363 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016364#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016365_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016366
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016367 ;;
16368esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016369LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016370CYGWIN_CMT="#"
16371UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016372case "$host_os" in
16373linux*)
16374 LINUX_CMT=
16375 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016376cygwin)
16377 CYGWIN_CMT=
16378 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016379 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016380esac
16381
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016382
16383
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016384case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016385linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016386 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16387 root_prefix="";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016388 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16389$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016390 fi
16391 ;;
16392esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016393case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016394linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016395 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016396 prefix="/usr";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016397 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16398$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016399 if test "$mandir" = '${prefix}/man' ; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016400 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16401$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016402 mandir=/usr/share/man
16403 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016404 fi
16405;;
16406esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016407if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016408 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016409 root_prefix="$ac_default_prefix"
16410 else
16411 root_prefix="$prefix"
16412 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016413 root_bindir=$bindir
16414 root_sbindir=$sbindir
16415 root_libdir=$libdir
16416 root_sysconfdir=$sysconfdir
16417else
16418 root_bindir='${root_prefix}/bin'
16419 root_sbindir='${root_prefix}/sbin'
16420 root_libdir='${root_prefix}/lib'
16421 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016422fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016423if test "$bindir" != '${exec_prefix}/bin'; then
16424 root_bindir=$bindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016425 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16426$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016427fi
16428if test "$sbindir" != '${exec_prefix}/sbin'; then
16429 root_sbindir=$sbindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016430 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16431$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016432fi
16433if test "$libdir" != '${exec_prefix}/lib'; then
16434 root_libdir=$libdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016435 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16436$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016437fi
16438if test "$sysconfdir" != '${prefix}/etc'; then
16439 root_sysconfdir=$sysconfdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016440 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16441$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016442fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016443
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016444
16445
16446
16447
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016448{ $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16449$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016450if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016451 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016452else
16453 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016454cat >conftest.$ac_ext <<_ACEOF
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016460#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016461int
16462main ()
16463{
Theodore Ts'oae851481997-04-29 18:13:24 +000016464fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016465 ;
16466 return 0;
16467}
16468_ACEOF
16469rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016470if { (ac_try="$ac_link"
16471case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16474esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016475eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16476$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016477 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016478 ac_status=$?
16479 grep -v '^ *+' conftest.er1 >conftest.err
16480 rm -f conftest.er1
16481 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016483 (exit $ac_status); } && {
16484 test -z "$ac_c_werror_flag" ||
16485 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016486 } && test -s conftest$ac_exeext && {
16487 test "$cross_compiling" = yes ||
16488 $as_test_x conftest$ac_exeext
16489 }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016490 ac_cv_e2fsprogs_use_static=yes
16491else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016492 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016493sed 's/^/| /' conftest.$ac_ext >&5
16494
Theodore Ts'oe1052142006-10-21 21:46:47 -040016495 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016496fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016497
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016498rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016499rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016500 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016501LDFLAGS=$SAVE_LDFLAGS
16502fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016503
Theodore Ts'odefde781999-01-04 07:39:19 +000016504case "$host_os" in
16505solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016506 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016507;;
16508esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016509{ $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16510$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016511LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016512if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016513 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016514fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016515
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016516case "$host_os" in
16517darwin*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016518 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16519$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016520 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016521#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016522_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016523
16524 ;;
16525esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016526SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16527ET_DIR=`cd ${srcdir}/lib/et; pwd`
16528
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016529
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016530if test "$cross_compiling" = yes ; then
16531 DO_TEST_SUITE=
16532else
16533 DO_TEST_SUITE=check
16534fi
16535
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016536INTL_FLAGS=
16537if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16538 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16539fi
16540
Theodore Ts'odd947da2005-11-09 18:37:07 -040016541if test $cross_compiling = no; then
16542 BUILD_CFLAGS="$CFLAGS"
16543 BUILD_LDFLAGS="$LDFLAGS"
16544else
16545 BUILD_CFLAGS=
16546 BUILD_LDFLAGS=
16547fi
16548
16549
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016550test -d lib || mkdir lib
16551test -d include || mkdir include
16552test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016553test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016554for i in MCONFIG Makefile e2fsprogs.spec \
16555 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016556 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16557 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016558 lib/uuid/Makefile lib/uuid/uuid_types.h \
16559 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016560 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16561 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016562 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016563 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16564 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16565 if test -d `dirname ${srcdir}/$i` ; then
16566 outlist="$outlist $i"
16567 fi
16568done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016569ac_config_files="$ac_config_files $outlist"
16570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016571cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016572# This file is a shell script that caches the results of configure
16573# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016574# scripts and configure runs, see configure's option --config-cache.
16575# It is not useful on other systems. If it contains results you don't
16576# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016577#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016578# config.status only pays attention to the cache file if you give it
16579# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016580#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016581# `ac_cv_env_foo' variables (set or unset) will be overridden when
16582# loading this file, other *unset* `ac_cv_foo' will be assigned the
16583# following values.
16584
16585_ACEOF
16586
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016587# The following way of writing the cache mishandles newlines in values,
16588# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016589# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016590# Ultrix sh set writes to stderr and can't be redirected directly,
16591# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016592(
16593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16594 eval ac_val=\$$ac_var
16595 case $ac_val in #(
16596 *${as_nl}*)
16597 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016598 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16599$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016600 esac
16601 case $ac_var in #(
16602 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -040016604 *) $as_unset $ac_var ;;
16605 esac ;;
16606 esac
16607 done
16608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016609 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16611 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016612 # `set' does not quote correctly, so add quotes (double-quote
16613 # substitution turns \\\\ into \\, and sed turns \\ into \).
16614 sed -n \
16615 "s/'/'\\\\''/g;
16616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016617 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016618 *)
16619 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016621 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016622 esac |
16623 sort
16624) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016625 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016626 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016627 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016628 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16630 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16632 :end' >>confcache
16633if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16634 if test -w "$cache_file"; then
16635 test "x$cache_file" != "x/dev/null" &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016636 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16637$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016638 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016639 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016640 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16641$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016642 fi
16643fi
16644rm -f confcache
16645
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016646test "x$prefix" = xNONE && prefix=$ac_default_prefix
16647# Let make expand exec_prefix.
16648test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16649
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016650# Transform confdefs.h into DEFS.
16651# Protect against shell expansion while executing Makefile rules.
16652# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016653#
16654# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016655# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016656# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016657ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016658:mline
16659/\\$/{
16660 N
16661 s,\\\n,,
16662 b mline
16663}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016664t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016665:clear
16666s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016667t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016668s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016669t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016670b any
16671:quote
16672s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16673s/\[/\\&/g
16674s/\]/\\&/g
16675s/\$/$$/g
16676H
16677:any
16678${
16679 g
16680 s/^\n//
16681 s/\n/ /g
16682 p
16683}
16684'
16685DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016686
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016688ac_libobjs=
16689ac_ltlibobjs=
16690for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16691 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016692 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16695 # will be set to the directory where LIBOBJS objects are built.
16696 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16697 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016698done
16699LIBOBJS=$ac_libobjs
16700
16701LTLIBOBJS=$ac_ltlibobjs
16702
16703
16704
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016705
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016706: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016707ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016708ac_clean_files_save=$ac_clean_files
16709ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016710{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16711$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16712cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016713#! $SHELL
16714# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016715# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016716# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016717# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016719debug=false
16720ac_cs_recheck=false
16721ac_cs_silent=false
16722SHELL=\${CONFIG_SHELL-$SHELL}
16723_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016724
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016725cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016726## --------------------- ##
16727## M4sh Initialization. ##
16728## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016729
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016730# Be more Bourne compatible
16731DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016732if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16733 emulate sh
16734 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016735 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016736 # is contrary to our usage. Disable this feature.
16737 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016738 setopt NO_GLOB_SUBST
16739else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016740 case `(set -o) 2>/dev/null` in
16741 *posix*) set -o posix ;;
16742esac
16743
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016744fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016745
16746
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016747
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016748
Theodore Ts'oe1052142006-10-21 21:46:47 -040016749# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016750# Avoid depending upon Character Ranges.
16751as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16752as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16753as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16754as_cr_digits='0123456789'
16755as_cr_alnum=$as_cr_Letters$as_cr_digits
16756
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016757as_nl='
16758'
16759export as_nl
16760# Printing a long string crashes Solaris 7 /usr/bin/printf.
16761as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16762as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16763as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16764if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16765 as_echo='printf %s\n'
16766 as_echo_n='printf %s'
16767else
16768 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16769 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16770 as_echo_n='/usr/ucb/echo -n'
16771 else
16772 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16773 as_echo_n_body='eval
16774 arg=$1;
16775 case $arg in
16776 *"$as_nl"*)
16777 expr "X$arg" : "X\\(.*\\)$as_nl";
16778 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16779 esac;
16780 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16781 '
16782 export as_echo_n_body
16783 as_echo_n='sh -c $as_echo_n_body as_echo'
16784 fi
16785 export as_echo_body
16786 as_echo='sh -c $as_echo_body as_echo'
16787fi
16788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016789# The user is always right.
16790if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016791 PATH_SEPARATOR=:
16792 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16793 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16794 PATH_SEPARATOR=';'
16795 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016796fi
16797
Theodore Ts'oe1052142006-10-21 21:46:47 -040016798# Support unset when possible.
16799if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16800 as_unset=unset
16801else
16802 as_unset=false
16803fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016804
Theodore Ts'oe1052142006-10-21 21:46:47 -040016805
16806# IFS
16807# We need space, tab and new line, in precisely that order. Quoting is
16808# there to prevent editors from complaining about space-tab.
16809# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16810# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040016811IFS=" "" $as_nl"
16812
16813# Find who we are. Look in the path if we contain no directory separator.
16814case $0 in
16815 *[\\/]* ) as_myself=$0 ;;
16816 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016817for as_dir in $PATH
16818do
16819 IFS=$as_save_IFS
16820 test -z "$as_dir" && as_dir=.
16821 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16822done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016823IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016824
Theodore Ts'oe1052142006-10-21 21:46:47 -040016825 ;;
16826esac
16827# We did not find ourselves, most probably we were run as `sh COMMAND'
16828# in which case we are not to be found in the path.
16829if test "x$as_myself" = x; then
16830 as_myself=$0
16831fi
16832if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016833 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -040016834 { (exit 1); exit 1; }
16835fi
16836
16837# Work around bugs in pre-3.0 UWIN ksh.
16838for as_var in ENV MAIL MAILPATH
16839do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16840done
16841PS1='$ '
16842PS2='> '
16843PS4='+ '
16844
16845# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016846LC_ALL=C
16847export LC_ALL
16848LANGUAGE=C
16849export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040016850
16851# Required to use basename.
16852if expr a : '\(a\)' >/dev/null 2>&1 &&
16853 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16854 as_expr=expr
16855else
16856 as_expr=false
16857fi
16858
16859if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16860 as_basename=basename
16861else
16862 as_basename=false
16863fi
16864
16865
16866# Name of the executable.
16867as_me=`$as_basename -- "$0" ||
16868$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16869 X"$0" : 'X\(//\)$' \| \
16870 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016871$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016872 sed '/^.*\/\([^/][^/]*\)\/*$/{
16873 s//\1/
16874 q
16875 }
16876 /^X\/\(\/\/\)$/{
16877 s//\1/
16878 q
16879 }
16880 /^X\/\(\/\).*/{
16881 s//\1/
16882 q
16883 }
16884 s/.*/./; q'`
16885
16886# CDPATH.
16887$as_unset CDPATH
16888
16889
16890
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016891 as_lineno_1=$LINENO
16892 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016893 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016894 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016896 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16897 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040016898 # line-number line after each line using $LINENO; the second 'sed'
16899 # does the real work. The second script uses 'N' to pair each
16900 # line-number line with the line containing $LINENO, and appends
16901 # trailing '-' during substitution so that $LINENO is not a special
16902 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016903 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016904 # scripts with optimization help from Paolo Bonzini. Blame Lee
16905 # E. McMahon (1931-1989) for sed's syntax. :-)
16906 sed -n '
16907 p
16908 /[$]LINENO/=
16909 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016910 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016911 s/[$]LINENO.*/&-/
16912 t lineno
16913 b
16914 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016915 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040016916 :loop
16917 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016918 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040016919 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016920 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016921 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016922 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016923 { (exit 1); exit 1; }; }
16924
16925 # Don't try to exec as it changes $[0], causing all sort of problems
16926 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016927 # original and so on. Autoconf is especially sensitive to this).
16928 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016929 # Exit status is that of the last command.
16930 exit
16931}
16932
16933
Theodore Ts'oe1052142006-10-21 21:46:47 -040016934if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16935 as_dirname=dirname
16936else
16937 as_dirname=false
16938fi
16939
16940ECHO_C= ECHO_N= ECHO_T=
16941case `echo -n x` in
16942-n*)
16943 case `echo 'x\c'` in
16944 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16945 *) ECHO_C='\c';;
16946 esac;;
16947*)
16948 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016949esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016950if expr a : '\(a\)' >/dev/null 2>&1 &&
16951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016952 as_expr=expr
16953else
16954 as_expr=false
16955fi
16956
16957rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040016958if test -d conf$$.dir; then
16959 rm -f conf$$.dir/conf$$.file
16960else
16961 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016962 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040016963fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016964if (echo >conf$$.file) 2>/dev/null; then
16965 if ln -s conf$$.file conf$$ 2>/dev/null; then
16966 as_ln_s='ln -s'
16967 # ... but there are two gotchas:
16968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16970 # In both cases, we have to default to `cp -p'.
16971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16972 as_ln_s='cp -p'
16973 elif ln conf$$.file conf$$ 2>/dev/null; then
16974 as_ln_s=ln
16975 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016976 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016977 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016978else
16979 as_ln_s='cp -p'
16980fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016981rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16982rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016983
16984if mkdir -p . 2>/dev/null; then
16985 as_mkdir_p=:
16986else
16987 test -d ./-p && rmdir ./-p
16988 as_mkdir_p=false
16989fi
16990
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016991if test -x / >/dev/null 2>&1; then
16992 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016993else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016994 if ls -dL / >/dev/null 2>&1; then
16995 as_ls_L_option=L
16996 else
16997 as_ls_L_option=
16998 fi
16999 as_test_x='
17000 eval sh -c '\''
17001 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017002 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017003 else
17004 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017005 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017006 esac;
17007 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17008 ???[sx]*):;;*)false;;esac;fi
17009 '\'' sh
17010 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017011fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017012as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017013
17014# Sed expression to map a string onto a valid CPP name.
17015as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17016
17017# Sed expression to map a string onto a valid variable name.
17018as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17019
17020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017021exec 6>&1
17022
Theodore Ts'oe1052142006-10-21 21:46:47 -040017023# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017024# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040017025# values after options handling.
17026ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017027This file was extended by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017028generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017029
17030 CONFIG_FILES = $CONFIG_FILES
17031 CONFIG_HEADERS = $CONFIG_HEADERS
17032 CONFIG_LINKS = $CONFIG_LINKS
17033 CONFIG_COMMANDS = $CONFIG_COMMANDS
17034 $ $0 $@
17035
Theodore Ts'oe1052142006-10-21 21:46:47 -040017036on `(hostname || uname -n) 2>/dev/null | sed 1q`
17037"
17038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017039_ACEOF
17040
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017041case $ac_config_files in *"
17042"*) set x $ac_config_files; shift; ac_config_files=$*;;
17043esac
17044
17045
17046
17047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017048# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017049config_files="$ac_config_files"
17050config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017051
Theodore Ts'oe1052142006-10-21 21:46:47 -040017052_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017053
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017055ac_cs_usage="\
17056\`$as_me' instantiates files from templates according to the
17057current configuration.
17058
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017059Usage: $0 [OPTION]... [FILE]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017060
17061 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017062 -V, --version print version number and configuration settings, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017063 -q, --quiet, --silent
17064 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017065 -d, --debug don't remove temporary files
17066 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017067 --file=FILE[:TEMPLATE]
17068 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017069
17070Configuration files:
17071$config_files
17072
17073Configuration commands:
17074$config_commands
17075
17076Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017077
Theodore Ts'oe1052142006-10-21 21:46:47 -040017078_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017080ac_cs_version="\\
17081config.status
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017082configured by $0, generated by GNU Autoconf 2.63,
17083 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017084
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017085Copyright (C) 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017086This config.status script is free software; the Free Software Foundation
17087gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017088
17089ac_pwd='$ac_pwd'
17090srcdir='$srcdir'
17091INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017092AWK='$AWK'
17093test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017094_ACEOF
17095
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17097# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017098ac_need_defaults=:
17099while test $# != 0
17100do
17101 case $1 in
17102 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017103 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17104 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017105 ac_shift=:
17106 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017107 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017108 ac_option=$1
17109 ac_optarg=$2
17110 ac_shift=shift
17111 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017112 esac
17113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017114 case $ac_option in
17115 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17117 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017119 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017120 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017121 debug=: ;;
17122 --file | --fil | --fi | --f )
17123 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017124 case $ac_optarg in
17125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17126 esac
17127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017128 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017129 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017130 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17132 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17133 ac_cs_silent=: ;;
17134
17135 # This is an error.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017136 -*) { $as_echo "$as_me: error: unrecognized option: $1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017137Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017138 { (exit 1); exit 1; }; } ;;
17139
Theodore Ts'oe1052142006-10-21 21:46:47 -040017140 *) ac_config_targets="$ac_config_targets $1"
17141 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017142
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017143 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017144 shift
17145done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017146
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017147ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017148
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017149if $ac_cs_silent; then
17150 exec 6>/dev/null
17151 ac_configure_extra_args="$ac_configure_extra_args --silent"
17152fi
17153
17154_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017156if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017157 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17158 shift
17159 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17160 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017161 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017162 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017163fi
17164
17165_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017166cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017167exec 5>>config.log
17168{
17169 echo
17170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17171## Running $as_me. ##
17172_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017173 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017174} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017175
Theodore Ts'oe1052142006-10-21 21:46:47 -040017176_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017178#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017179# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017180#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017181# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017182 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017183 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017184 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017185 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17186 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017187
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017189_ACEOF
17190
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017191cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017192
17193# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017194for ac_config_target in $ac_config_targets
17195do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017196 case $ac_config_target in
17197 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17198 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17199
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017200 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17201$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017202 { (exit 1); exit 1; }; };;
17203 esac
17204done
17205
Theodore Ts'oe1052142006-10-21 21:46:47 -040017206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017207# If the user did not use the arguments to specify the items to instantiate,
17208# then the envvar interface is used. Set only those that are not.
17209# We use the long form for the default assignment because of an extremely
17210# bizarre bug on SunOS 4.1.3.
17211if $ac_need_defaults; then
17212 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17213 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17214fi
17215
17216# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017217# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017218# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017219# Hook for its removal unless debugging.
17220# Note that there is a small window in which the directory will not be cleaned:
17221# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017222$debug ||
17223{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017224 tmp=
17225 trap 'exit_status=$?
17226 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17227' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017228 trap '{ (exit 1); exit 1; }' 1 2 13 15
17229}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017230# Create a (secure) tmp directory for tmp files.
17231
17232{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017233 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017234 test -n "$tmp" && test -d "$tmp"
17235} ||
17236{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017237 tmp=./conf$$-$RANDOM
17238 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017239} ||
17240{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017241 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017242 { (exit 1); exit 1; }
17243}
17244
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017245# Set up the scripts for CONFIG_FILES section.
17246# No need to generate them if there are no CONFIG_FILES.
17247# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017248if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017249
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017250if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17251 ac_cs_awk_getline=:
17252 ac_cs_awk_pipe_init=
17253 ac_cs_awk_read_file='
17254 while ((getline aline < (F[key])) > 0)
17255 print(aline)
17256 close(F[key])'
17257 ac_cs_awk_pipe_fini=
17258else
17259 ac_cs_awk_getline=false
17260 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17261 ac_cs_awk_read_file='
17262 print "|#_!!_#|"
17263 print "cat " F[key] " &&"
17264 '$ac_cs_awk_pipe_init
17265 # The final `:' finishes the AND list.
17266 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17267fi
17268ac_cr=' '
17269ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17270if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17271 ac_cs_awk_cr='\\r'
17272else
17273 ac_cs_awk_cr=$ac_cr
17274fi
17275
17276echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017277_ACEOF
17278
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017279# Create commands to substitute file output variables.
17280{
17281 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17282 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17283 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17284 echo "_ACAWK" &&
17285 echo "_ACEOF"
17286} >conf$$files.sh &&
17287. ./conf$$files.sh ||
17288 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17289$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17290 { (exit 1); exit 1; }; }
17291rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017292
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017293{
17294 echo "cat >conf$$subs.awk <<_ACEOF" &&
17295 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17296 echo "_ACEOF"
17297} >conf$$subs.sh ||
17298 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17299$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17300 { (exit 1); exit 1; }; }
17301ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017302ac_delim='%!_!# '
17303for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017304 . ./conf$$subs.sh ||
17305 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17306$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17307 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017308
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017309 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17310 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017311 break
17312 elif $ac_last_try; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017313 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17314$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017315 { (exit 1); exit 1; }; }
17316 else
17317 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017318 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017319done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017320rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017321
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17323cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017324_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017325sed -n '
17326h
17327s/^/S["/; s/!.*/"]=/
17328p
17329g
17330s/^[^!]*!//
17331:repl
17332t repl
17333s/'"$ac_delim"'$//
17334t delim
17335:nl
17336h
17337s/\(.\{148\}\).*/\1/
17338t more1
17339s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17340p
17341n
17342b repl
17343:more1
17344s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17345p
17346g
17347s/.\{148\}//
17348t nl
17349:delim
17350h
17351s/\(.\{148\}\).*/\1/
17352t more2
17353s/["\\]/\\&/g; s/^/"/; s/$/"/
17354p
17355b
17356:more2
17357s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17358p
17359g
17360s/.\{148\}//
17361t delim
17362' <conf$$subs.awk | sed '
17363/^[^""]/{
17364 N
17365 s/\n//
17366}
17367' >>$CONFIG_STATUS || ac_write_fail=1
17368rm -f conf$$subs.awk
17369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17370_ACAWK
17371cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17372 for (key in S) S_is_set[key] = 1
17373 FS = ""
17374 \$ac_cs_awk_pipe_init
17375}
17376{
17377 line = $ 0
17378 nfields = split(line, field, "@")
17379 substed = 0
17380 len = length(field[1])
17381 for (i = 2; i < nfields; i++) {
17382 key = field[i]
17383 keylen = length(key)
17384 if (S_is_set[key]) {
17385 value = S[key]
17386 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17387 len += length(value) + length(field[++i])
17388 substed = 1
17389 } else
17390 len += 1 + keylen
17391 }
17392 if (nfields == 3 && !substed) {
17393 key = field[2]
17394 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17395 \$ac_cs_awk_read_file
17396 next
17397 }
17398 }
17399 print line
17400}
17401\$ac_cs_awk_pipe_fini
17402_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040017403_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17405if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17406 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17407else
17408 cat
17409fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17410 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17411$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017412 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017413_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017414
17415# VPATH may cause trouble with some makes, so we remove $(srcdir),
17416# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17417# trailing colons and then remove the whole line if VPATH becomes empty
17418# (actually we leave an empty line to preserve line numbers).
17419if test "x$srcdir" = x.; then
17420 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17421s/:*\$(srcdir):*/:/
17422s/:*\${srcdir}:*/:/
17423s/:*@srcdir@:*/:/
17424s/^\([^=]*=[ ]*\):*/\1/
17425s/:*$//
17426s/^[^=]*=[ ]*$//
17427}'
17428fi
17429
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017431fi # test -n "$CONFIG_FILES"
17432
Theodore Ts'oe1052142006-10-21 21:46:47 -040017433
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017434eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17435shift
17436for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040017437do
17438 case $ac_tag in
17439 :[FHLC]) ac_mode=$ac_tag; continue;;
17440 esac
17441 case $ac_mode$ac_tag in
17442 :[FHL]*:*);;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017443 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17444$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017445 { (exit 1); exit 1; }; };;
17446 :[FH]-) ac_tag=-:-;;
17447 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17448 esac
17449 ac_save_IFS=$IFS
17450 IFS=:
17451 set x $ac_tag
17452 IFS=$ac_save_IFS
17453 shift
17454 ac_file=$1
17455 shift
17456
17457 case $ac_mode in
17458 :L) ac_source=$1;;
17459 :[FH])
17460 ac_file_inputs=
17461 for ac_f
17462 do
17463 case $ac_f in
17464 -) ac_f="$tmp/stdin";;
17465 *) # Look for the file first in the build tree, then in the source tree
17466 # (if the path is not absolute). The absolute path cannot be DOS-style,
17467 # because $ac_f cannot contain `:'.
17468 test -f "$ac_f" ||
17469 case $ac_f in
17470 [\\/$]*) false;;
17471 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17472 esac ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017473 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17474$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017475 { (exit 1); exit 1; }; };;
17476 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017477 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17478 ac_file_inputs="$ac_file_inputs '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017479 done
17480
17481 # Let's still pretend it is `configure' which instantiates (i.e., don't
17482 # use $as_me), people would be surprised to read:
17483 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017484 configure_input='Generated from '`
17485 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17486 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017487 if test x"$ac_file" != x-; then
17488 configure_input="$ac_file. $configure_input"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017489 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17490$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017491 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017492 # Neutralize special characters interpreted by sed in replacement strings.
17493 case $configure_input in #(
17494 *\&* | *\|* | *\\* )
17495 ac_sed_conf_input=`$as_echo "$configure_input" |
17496 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17497 *) ac_sed_conf_input=$configure_input;;
17498 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017499
17500 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017501 *:-:* | *:-) cat >"$tmp/stdin" \
17502 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17503$as_echo "$as_me: error: could not create $ac_file" >&2;}
17504 { (exit 1); exit 1; }; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017505 esac
17506 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017507 esac
17508
Theodore Ts'oe1052142006-10-21 21:46:47 -040017509 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017510$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17511 X"$ac_file" : 'X\(//\)[^/]' \| \
17512 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017513 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017514$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17516 s//\1/
17517 q
17518 }
17519 /^X\(\/\/\)[^/].*/{
17520 s//\1/
17521 q
17522 }
17523 /^X\(\/\/\)$/{
17524 s//\1/
17525 q
17526 }
17527 /^X\(\/\).*/{
17528 s//\1/
17529 q
17530 }
17531 s/.*/./; q'`
17532 { as_dir="$ac_dir"
17533 case $as_dir in #(
17534 -*) as_dir=./$as_dir;;
17535 esac
17536 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017537 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017538 while :; do
17539 case $as_dir in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017540 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Theodore Ts'oe1052142006-10-21 21:46:47 -040017541 *) as_qdir=$as_dir;;
17542 esac
17543 as_dirs="'$as_qdir' $as_dirs"
17544 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017545$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17546 X"$as_dir" : 'X\(//\)[^/]' \| \
17547 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017548 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017549$as_echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017550 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17551 s//\1/
17552 q
17553 }
17554 /^X\(\/\/\)[^/].*/{
17555 s//\1/
17556 q
17557 }
17558 /^X\(\/\/\)$/{
17559 s//\1/
17560 q
17561 }
17562 /^X\(\/\).*/{
17563 s//\1/
17564 q
17565 }
17566 s/.*/./; q'`
17567 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017568 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017569 test -z "$as_dirs" || eval "mkdir $as_dirs"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017570 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17571$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017572 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017573 ac_builddir=.
17574
Theodore Ts'oe1052142006-10-21 21:46:47 -040017575case "$ac_dir" in
17576.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17577*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017578 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017579 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017580 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017581 case $ac_top_builddir_sub in
17582 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17583 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17584 esac ;;
17585esac
17586ac_abs_top_builddir=$ac_pwd
17587ac_abs_builddir=$ac_pwd$ac_dir_suffix
17588# for backward compatibility:
17589ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017590
17591case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017592 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017593 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017594 ac_top_srcdir=$ac_top_builddir_sub
17595 ac_abs_top_srcdir=$ac_pwd ;;
17596 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017597 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017598 ac_top_srcdir=$srcdir
17599 ac_abs_top_srcdir=$srcdir ;;
17600 *) # Relative name.
17601 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17602 ac_top_srcdir=$ac_top_build_prefix$srcdir
17603 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017604esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017605ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017607
Theodore Ts'oe1052142006-10-21 21:46:47 -040017608 case $ac_mode in
17609 :F)
17610 #
17611 # CONFIG_FILE
17612 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017613
17614 case $INSTALL in
17615 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017616 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017617 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017618_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017619
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017620cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017621# If the template does not know about datarootdir, expand it.
17622# FIXME: This hack should be removed a few years after 2.60.
17623ac_datarootdir_hack=; ac_datarootdir_seen=
17624
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017625ac_sed_dataroot='
17626/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040017627 p
17628 q
17629}
17630/@datadir@/p
17631/@docdir@/p
17632/@infodir@/p
17633/@localedir@/p
17634/@mandir@/p
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017635'
17636case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017637*datarootdir*) ac_datarootdir_seen=yes;;
17638*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017639 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17640$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017641_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017643 ac_datarootdir_hack='
17644 s&@datadir@&$datadir&g
17645 s&@docdir@&$docdir&g
17646 s&@infodir@&$infodir&g
17647 s&@localedir@&$localedir&g
17648 s&@mandir@&$mandir&g
17649 s&\\\${datarootdir}&$datarootdir&g' ;;
17650esac
17651_ACEOF
17652
17653# Neutralize VPATH when `$srcdir' = `.'.
17654# Shell code in configure.ac might set extrasub.
17655# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017656cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17657ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017658$extrasub
17659_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017660cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017661:t
17662/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017663s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017664s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017665s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017666s&@srcdir@&$ac_srcdir&;t t
17667s&@abs_srcdir@&$ac_abs_srcdir&;t t
17668s&@top_srcdir@&$ac_top_srcdir&;t t
17669s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17670s&@builddir@&$ac_builddir&;t t
17671s&@abs_builddir@&$ac_abs_builddir&;t t
17672s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17673s&@INSTALL@&$ac_INSTALL&;t t
17674$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017675"
17676eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17677if $ac_cs_awk_getline; then
17678 $AWK -f "$tmp/subs.awk"
17679else
17680 $AWK -f "$tmp/subs.awk" | $SHELL
17681fi >$tmp/out \
17682 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17683$as_echo "$as_me: error: could not create $ac_file" >&2;}
17684 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017685
Theodore Ts'oe1052142006-10-21 21:46:47 -040017686test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17687 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17688 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017689 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017690which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017691$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017692which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017693
Theodore Ts'oe1052142006-10-21 21:46:47 -040017694 rm -f "$tmp/stdin"
17695 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017696 -) cat "$tmp/out" && rm -f "$tmp/out";;
17697 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17698 esac \
17699 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17700$as_echo "$as_me: error: could not create $ac_file" >&2;}
17701 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017702 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017703
17704
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017705 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17706$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017707 ;;
17708 esac
17709
17710
17711 case $ac_file$ac_mode in
17712 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017713 for ac_file in $CONFIG_FILES; do
17714 # Support "outfile[:infile[:infile...]]"
17715 case "$ac_file" in
17716 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000017717 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017718 # PO directories have a Makefile.in generated from Makefile.in.in.
17719 case "$ac_file" in */Makefile.in)
17720 # Adjust a relative srcdir.
17721 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17722 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17723 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17724 # In autoconf-2.13 it is called $ac_given_srcdir.
17725 # In autoconf-2.50 it is called $srcdir.
17726 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17727 case "$ac_given_srcdir" in
17728 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17729 /*) top_srcdir="$ac_given_srcdir" ;;
17730 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17731 esac
17732 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17733 rm -f "$ac_dir/POTFILES"
17734 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17735 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 -050017736 POMAKEFILEDEPS="POTFILES.in"
17737 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017738 # on $ac_dir but don't depend on user-specified configuration
17739 # parameters.
17740 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17741 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017742 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017743 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17744 fi
17745 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17746 # Hide the ALL_LINGUAS assigment from automake.
17747 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017748 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17749 else
17750 # The set of available languages was given in configure.in.
17751 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017752 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017753 # Compute POFILES
17754 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17755 # Compute UPDATEPOFILES
17756 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17757 # Compute DUMMYPOFILES
17758 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17759 # Compute GMOFILES
17760 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017761 case "$ac_given_srcdir" in
17762 .) srcdirpre= ;;
17763 *) srcdirpre='$(srcdir)/' ;;
17764 esac
17765 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017766 UPDATEPOFILES=
17767 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017768 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017769 for lang in $ALL_LINGUAS; do
17770 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017771 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17772 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017773 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017774 done
17775 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17776 # environment variable.
17777 INST_LINGUAS=
17778 if test -n "$ALL_LINGUAS"; then
17779 for presentlang in $ALL_LINGUAS; do
17780 useit=no
17781 if test "%UNSET%" != "$LINGUAS"; then
17782 desiredlanguages="$LINGUAS"
17783 else
17784 desiredlanguages="$ALL_LINGUAS"
17785 fi
17786 for desiredlang in $desiredlanguages; do
17787 # Use the presentlang catalog if desiredlang is
17788 # a. equal to presentlang, or
17789 # b. a variant of presentlang (because in this case,
17790 # presentlang can be used as a fallback for messages
17791 # which are not translated in the desiredlang catalog).
17792 case "$desiredlang" in
17793 "$presentlang"*) useit=yes;;
17794 esac
17795 done
17796 if test $useit = yes; then
17797 INST_LINGUAS="$INST_LINGUAS $presentlang"
17798 fi
17799 done
17800 fi
17801 CATALOGS=
17802 if test -n "$INST_LINGUAS"; then
17803 for lang in $INST_LINGUAS; do
17804 CATALOGS="$CATALOGS $lang.gmo"
17805 done
17806 fi
17807 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017808 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 -040017809 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17810 if test -f "$f"; then
17811 case "$f" in
17812 *.orig | *.bak | *~) ;;
17813 *) cat "$f" >> "$ac_dir/Makefile" ;;
17814 esac
17815 fi
17816 done
17817 fi
17818 ;;
17819 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017820 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017821
Theodore Ts'oe1052142006-10-21 21:46:47 -040017822 esac
17823done # for ac_tag
17824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017825
17826{ (exit 0); exit 0; }
17827_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017828chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017829ac_clean_files=$ac_clean_files_save
17830
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017831test $ac_write_fail = 0 ||
17832 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17833$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17834 { (exit 1); exit 1; }; }
17835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017836
17837# configure is writing to config.log, and then calls config.status.
17838# config.status does its own redirection, appending to config.log.
17839# Unfortunately, on DOS this fails, as config.log is still kept open
17840# by configure, so config.status won't be able to write to it; its
17841# output is simply discarded. So we exec the FD to /dev/null,
17842# effectively closing config.log, so it can be properly (re)opened and
17843# appended to by config.status. When coming back to configure, we
17844# need to make the FD available again.
17845if test "$no_create" != yes; then
17846 ac_cs_success=:
17847 ac_config_status_args=
17848 test "$silent" = yes &&
17849 ac_config_status_args="$ac_config_status_args --quiet"
17850 exec 5>/dev/null
17851 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17852 exec 5>>config.log
17853 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17854 # would make configure fail if this is the last instruction.
17855 $ac_cs_success || { (exit 1); exit 1; }
17856fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017857if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17858 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17859$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17860fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017861
Theodore Ts'oee683a12005-02-05 15:53:56 -050017862if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi