blob: f2729e51a0ea7fd1c743d34f615950b8d4695273 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003# Generated by GNU Autoconf 2.63.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
Scott James Remnant39fd3d42009-05-14 13:03:25 +010040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050087
Theodore Ts'oe1052142006-10-21 21:46:47 -040088
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040094IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400106IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500107
Theodore Ts'oe1052142006-10-21 21:46:47 -0400108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -0400117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100154$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100180 if test $as_have_required = yes && (eval ":
Theodore Ts'oe1052142006-10-21 21:46:47 -0400181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400245 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500246 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
Theodore Ts'oe1052142006-10-21 21:46:47 -0400271fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
Theodore Ts'oe1052142006-10-21 21:46:47 -0400292fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400293
Theodore Ts'oe1052142006-10-21 21:46:47 -0400294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500349 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Theodore Ts'oe1052142006-10-21 21:46:47 -0400367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500462 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500467 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500470 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400471 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500472 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400473 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481 # Exit status is that of the last command.
482 exit
483}
484
485
Theodore Ts'oe1052142006-10-21 21:46:47 -0400486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500501esac
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100514 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400515fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500530else
531 as_ln_s='cp -p'
532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400545else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100554 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400555 else
556 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100557 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573
Theodore Ts'oe1052142006-10-21 21:46:47 -0400574exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500581#
582# Initializations.
583#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000584ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400585ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500586ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400587LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="version.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400605#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500606# include <sys/types.h>
607#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400608#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500609# include <sys/stat.h>
610#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400611#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500612# include <stdlib.h>
613# include <stddef.h>
614#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500616# include <stdlib.h>
617# endif
618#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500621# include <memory.h>
622# endif
623# include <string.h>
624#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400625#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626# include <strings.h>
627#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400628#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500629# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400630#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400631#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400632# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500633#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400634#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500635# include <unistd.h>
636#endif"
637
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100638ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400639LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100640BUILD_LDFLAGS
641BUILD_CFLAGS
642INTL_FLAGS
643DO_TEST_SUITE
644ET_DIR
645SS_DIR
646LDFLAG_STATIC
647root_sysconfdir
648root_libdir
649root_sbindir
650root_bindir
651root_prefix
652UNIX_CMT
653CYGWIN_CMT
654LINUX_CMT
655UNI_DIFF_OPTS
656SEM_INIT_LIB
657DLOPEN_LIB
658SOCKET_LIB
659SIZEOF_LONG_LONG
660SIZEOF_LONG
661SIZEOF_INT
662SIZEOF_SHORT
663BUILD_CC
664MAKEINFO
665STRIP
666AR
667LDCONFIG
668PERL
669SED
670AWK
671CHMOD
672RM
673CP
674MV
675LN_S
676LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400677ifNotGNUmake
678ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100679BINARY_TYPE
680POSUB
681LTLIBINTL
682LIBINTL
683INTLLIBS
684INTL_LIBTOOL_SUFFIX_PREFIX
685INTLOBJS
686GENCAT
687INSTOBJEXT
688DATADIRNAME
689CATOBJEXT
690USE_INCLUDED_LIBINTL
691BUILD_INCLUDED_LIBINTL
692INTLBISON
693LTLIBICONV
694LIBICONV
695HAVE_WPRINTF
696HAVE_SNPRINTF
697HAVE_ASPRINTF
698HAVE_POSIX_PRINTF
699GLIBC21
700ALLOCA
701RANLIB
702MSGMERGE
703XGETTEXT
704GMSGFMT
705MSGFMT
706USE_NLS
707MKINSTALLDIRS
708INSTALL_DATA
709INSTALL_SCRIPT
710INSTALL_PROGRAM
711SET_MAKE
712VERSION
713PACKAGE
714GETTEXT_PACKAGE
715UUIDD_CMT
716E2INITRD_MAN
717E2INITRD_PROG
718FSCK_MAN
719FSCK_PROG
720RESIZER_CMT
721IMAGER_CMT
722DEBUGFS_CMT
723BLKID_CMT
724DEPPROFILED_LIBBLKID
725PROFILED_LIBBLKID
726DEPSTATIC_LIBBLKID
727STATIC_LIBBLKID
728DEPLIBBLKID
729LIBBLKID
730UUID_CMT
731DEPPROFILED_LIBUUID
732PROFILED_LIBUUID
733DEPSTATIC_LIBUUID
734STATIC_LIBUUID
735DEPLIBUUID
736LIBUUID
737PKG_CONFIG
738TEST_IO_CMT
739PRIVATE_LIBS_CMT
740LDFLAG_DYNAMIC
741PROFILED_LIB_EXT
742STATIC_LIB_EXT
743LIB_EXT
744CHECKER_CMT
745PROFILE_CMT
746BSDLIB_CMT
747ELF_CMT
748HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400749Q
750E
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100751MAINTAINER_CMT
752LINUX_INCLUDE
753EGREP
754GREP
755LD
756CPP
757OBJEXT
758EXEEXT
759ac_ct_CC
760CPPFLAGS
761LDFLAGS
762CFLAGS
763CC
764host_os
765host_vendor
766host_cpu
767host
768build_os
769build_vendor
770build_cpu
771build
772E2FSPROGS_PKGVER
773E2FSPROGS_VERSION
774E2FSPROGS_DAY
775E2FSPROGS_MONTH
776E2FSPROGS_YEAR
777target_alias
778host_alias
779build_alias
780LIBS
781ECHO_T
782ECHO_N
783ECHO_C
784DEFS
785mandir
786localedir
787libdir
788psdir
789pdfdir
790dvidir
791htmldir
792infodir
793docdir
794oldincludedir
795includedir
796localstatedir
797sharedstatedir
798sysconfdir
799datadir
800datarootdir
801libexecdir
802sbindir
803bindir
804program_transform_name
805prefix
806exec_prefix
807PACKAGE_BUGREPORT
808PACKAGE_STRING
809PACKAGE_VERSION
810PACKAGE_TARNAME
811PACKAGE_NAME
812PATH_SEPARATOR
813SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400814ac_subst_files='MCONFIG
815MAKEFILE_ELF
816MAKEFILE_BSDLIB
817MAKEFILE_PROFILE
818MAKEFILE_CHECKER
819MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400820ASM_TYPES_HEADER
821PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100822ac_user_opts='
823enable_option_checking
824with_diet_libc
825with_cc
826with_linker
827with_ccopts
828with_ldopts
829with_root_prefix
830enable_maintainer_mode
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400831enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100832enable_compression
833enable_htree
834enable_elf_shlibs
835enable_bsd_shlibs
836enable_profile
837enable_checker
838enable_jbd_debug
839enable_blkid_debug
840enable_testio_debug
841enable_libuuid
842enable_libblkid
843enable_debugfs
844enable_imager
845enable_resizer
846enable_fsck
847enable_e2initrd_helper
848enable_tls
849enable_uuidd
850enable_nls
851with_gnu_ld
852enable_rpath
853with_libiconv_prefix
854with_included_gettext
855with_libintl_prefix
856'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400857 ac_precious_vars='build_alias
858host_alias
859target_alias
860CC
861CFLAGS
862LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400863LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400864CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400865CPP
866PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400867
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000868
869# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500870ac_init_help=
871ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100872ac_unrecognized_opts=
873ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874# The variables have the same names as the options, with
875# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500876cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000877exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000887verbose=
888x_includes=NONE
889x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000905includedir='${prefix}/include'
906oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400907docdir='${datarootdir}/doc/${PACKAGE}'
908infodir='${datarootdir}/info'
909htmldir='${docdir}'
910dvidir='${docdir}'
911pdfdir='${docdir}'
912psdir='${docdir}'
913libdir='${exec_prefix}/lib'
914localedir='${datarootdir}/locale'
915mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400918ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919for ac_option
920do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921 # If the previous option needs an argument, assign it.
922 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400923 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924 ac_prev=
925 continue
926 fi
927
Theodore Ts'oe1052142006-10-21 21:46:47 -0400928 case $ac_option in
929 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
930 *) ac_optarg=yes ;;
931 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000932
933 # Accept the important Cygnus configure options, so we can diagnose typos.
934
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935 case $ac_dashdash$ac_option in
936 --)
937 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000938
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939 -bindir | --bindir | --bindi | --bind | --bin | --bi)
940 ac_prev=bindir ;;
941 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500942 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943
944 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500945 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000946 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500947 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000948
949 -cache-file | --cache-file | --cache-fil | --cache-fi \
950 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
951 ac_prev=cache_file ;;
952 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
953 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500954 cache_file=$ac_optarg ;;
955
956 --config-cache | -C)
957 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000960 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400961 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500962 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000963
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
965 | --dataroo | --dataro | --datar)
966 ac_prev=datarootdir ;;
967 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
968 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
969 datarootdir=$ac_optarg ;;
970
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000971 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100972 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
975 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500976 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981"enable_$ac_useropt"
982"*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400987
988 -docdir | --docdir | --docdi | --doc | --do)
989 ac_prev=docdir ;;
990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
991 docdir=$ac_optarg ;;
992
993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 ac_prev=dvidir ;;
995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
996 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000997
998 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001003 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001004 ac_useropt_orig=$ac_useropt
1005 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006 case $ac_user_opts in
1007 *"
1008"enable_$ac_useropt"
1009"*) ;;
1010 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011 ac_unrecognized_sep=', ';;
1012 esac
1013 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014
1015 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017 | --exec | --exe | --ex)
1018 ac_prev=exec_prefix ;;
1019 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001022 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001023
1024 -gas | --gas | --ga | --g)
1025 # Obsolete; use --with-gas.
1026 with_gas=yes ;;
1027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001028 -help | --help | --hel | --he | -h)
1029 ac_init_help=long ;;
1030 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031 ac_init_help=recursive ;;
1032 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
1035 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001036 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001037 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001038 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039
Theodore Ts'oe1052142006-10-21 21:46:47 -04001040 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041 ac_prev=htmldir ;;
1042 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043 | --ht=*)
1044 htmldir=$ac_optarg ;;
1045
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001046 -includedir | --includedir | --includedi | --included | --include \
1047 | --includ | --inclu | --incl | --inc)
1048 ac_prev=includedir ;;
1049 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001051 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001052
1053 -infodir | --infodir | --infodi | --infod | --info | --inf)
1054 ac_prev=infodir ;;
1055 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
1058 -libdir | --libdir | --libdi | --libd)
1059 ac_prev=libdir ;;
1060 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001062
1063 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064 | --libexe | --libex | --libe)
1065 ac_prev=libexecdir ;;
1066 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001068 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001069
Theodore Ts'oe1052142006-10-21 21:46:47 -04001070 -localedir | --localedir | --localedi | --localed | --locale)
1071 ac_prev=localedir ;;
1072 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073 localedir=$ac_optarg ;;
1074
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001075 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001076 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001077 ac_prev=localstatedir ;;
1078 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001079 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081
1082 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083 ac_prev=mandir ;;
1084 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087 -nfp | --nfp | --nf)
1088 # Obsolete; use --without-fp.
1089 with_fp=no ;;
1090
1091 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093 no_create=yes ;;
1094
1095 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097 no_recursion=yes ;;
1098
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101 | --oldin | --oldi | --old | --ol | --o)
1102 ac_prev=oldincludedir ;;
1103 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001107
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001108 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109 ac_prev=prefix ;;
1110 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112
1113 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114 | --program-pre | --program-pr | --program-p)
1115 ac_prev=program_prefix ;;
1116 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001118 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001119
1120 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121 | --program-suf | --program-su | --program-s)
1122 ac_prev=program_suffix ;;
1123 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126
1127 -program-transform-name | --program-transform-name \
1128 | --program-transform-nam | --program-transform-na \
1129 | --program-transform-n | --program-transform- \
1130 | --program-transform | --program-transfor \
1131 | --program-transfo | --program-transf \
1132 | --program-trans | --program-tran \
1133 | --progr-tra | --program-tr | --program-t)
1134 ac_prev=program_transform_name ;;
1135 -program-transform-name=* | --program-transform-name=* \
1136 | --program-transform-nam=* | --program-transform-na=* \
1137 | --program-transform-n=* | --program-transform-=* \
1138 | --program-transform=* | --program-transfor=* \
1139 | --program-transfo=* | --program-transf=* \
1140 | --program-trans=* | --program-tran=* \
1141 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143
Theodore Ts'oe1052142006-10-21 21:46:47 -04001144 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145 ac_prev=pdfdir ;;
1146 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147 pdfdir=$ac_optarg ;;
1148
1149 -psdir | --psdir | --psdi | --psd | --ps)
1150 ac_prev=psdir ;;
1151 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152 psdir=$ac_optarg ;;
1153
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155 | -silent | --silent | --silen | --sile | --sil)
1156 silent=yes ;;
1157
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001158 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1159 ac_prev=sbindir ;;
1160 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1161 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001163
1164 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1165 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1166 | --sharedst | --shareds | --shared | --share | --shar \
1167 | --sha | --sh)
1168 ac_prev=sharedstatedir ;;
1169 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1170 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1171 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1172 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001174
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001175 -site | --site | --sit)
1176 ac_prev=site ;;
1177 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179
1180 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1181 ac_prev=srcdir ;;
1182 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001185 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1186 | --syscon | --sysco | --sysc | --sys | --sy)
1187 ac_prev=sysconfdir ;;
1188 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1189 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001190 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001191
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 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196
1197 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1198 verbose=yes ;;
1199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001200 -version | --version | --versio | --versi | --vers | -V)
1201 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202
1203 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001204 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001206 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1207 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001208 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1212 *"
1213"with_$ac_useropt"
1214"*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001219
1220 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001222 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1224 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001226 ac_useropt_orig=$ac_useropt
1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228 case $ac_user_opts in
1229 *"
1230"with_$ac_useropt"
1231"*) ;;
1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1233 ac_unrecognized_sep=', ';;
1234 esac
1235 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001236
1237 --x)
1238 # Obsolete; use --with-x.
1239 with_x=yes ;;
1240
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001246 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001253 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001256Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258 ;;
1259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001264 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001267 export $ac_envvar ;;
1268
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001269 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001275 ;;
1276
1277 esac
1278done
1279
1280if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001282 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001283 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284fi
1285
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001286if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1290 { (exit 1); exit 1; }; } ;;
1291 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1292 esac
1293fi
1294
1295# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001296for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1297 datadir sysconfdir sharedstatedir localstatedir includedir \
1298 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1299 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001300do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001301 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001302 # Remove trailing slashes.
1303 case $ac_val in
1304 */ )
1305 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1306 eval $ac_var=\$ac_val;;
1307 esac
1308 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001309 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001310 [\\/$]* | ?:[\\/]* ) continue;;
1311 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001313 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317# There might be people who depend on the old broken behavior: `$host'
1318# used to hold the argument of --host etc.
1319# FIXME: To remove some day.
1320build=$build_alias
1321host=$host_alias
1322target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001324# FIXME: To remove some day.
1325if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001328 $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 -05001329 If a cross compiler is detected then cross compile mode will be used." >&2
1330 elif test "x$build_alias" != "x$host_alias"; then
1331 cross_compiling=yes
1332 fi
1333fi
1334
1335ac_tool_prefix=
1336test -n "$host_alias" && ac_tool_prefix=$host_alias-
1337
1338test "$silent" = yes && exec 6>/dev/null
1339
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001340
Theodore Ts'oe1052142006-10-21 21:46:47 -04001341ac_pwd=`pwd` && test -n "$ac_pwd" &&
1342ac_ls_di=`ls -di .` &&
1343ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001344 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345 { (exit 1); exit 1; }; }
1346test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001347 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 { (exit 1); exit 1; }; }
1349
1350
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001354 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1363 q
1364 }
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1367 q
1368 }
1369 /^X\(\/\/\)$/{
1370 s//\1/
1371 q
1372 }
1373 /^X\(\/\).*/{
1374 s//\1/
1375 q
1376 }
1377 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001378 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001379 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001380 srcdir=..
1381 fi
1382else
1383 ac_srcdir_defaulted=no
1384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001387 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001388 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001390ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1391ac_abs_confdir=`(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001392 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001393 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001394 pwd)`
1395# When building in place, set srcdir=.
1396if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398fi
1399# Remove unnecessary trailing slashes from srcdir.
1400# Double slashes in file names in object file debugging info
1401# mess up M-x gdb in Emacs.
1402case $srcdir in
1403*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404esac
1405for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001412#
1413# Report the --help message.
1414#
1415if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419\`configure' configures this package to adapt to many kinds of systems.
1420
1421Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426Defaults for the options are specified in brackets.
1427
1428Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001441 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001443 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001444
1445By default, \`make install' will install all the files in
1446\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448for instance \`--prefix=\$HOME'.
1449
1450For better control, use the options below.
1451
1452Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472_ACEOF
1473
1474 cat <<\_ACEOF
1475
1476System types:
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479_ACEOF
1480fi
1481
1482if test -n "$ac_init_help"; then
1483
1484 cat <<\_ACEOF
1485
1486Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001487 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1489 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001490 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'oc13351f2009-07-02 00:11:17 -04001491 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492 --enable-compression enable EXPERIMENTAL compression support
1493 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001494 --enable-elf-shlibs select ELF shared libraries
1495 --enable-bsd-shlibs select BSD shared libraries
1496 --enable-profile build profiling libraries
1497 --enable-checker build checker libraries
1498 --enable-jbd-debug enable journal debugging
1499 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001500 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001501 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001502 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503 --disable-debugfs disable support of debugfs program
1504 --disable-imager disable support of e2image program
1505 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506 --enable-fsck build fsck wrapper program
1507 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001508 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001509 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510 --disable-nls do not use Native Language Support
1511 --disable-rpath do not hardcode runtime library paths
1512
1513Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001516 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001517 --with-cc=COMPILER select compiler to use
1518 --with-linker=LINKER select linker to use
1519 --with-ccopts=CCOPTS select compiler command line options
1520 --with-ldopts=LDOPTS select linker command line options
1521 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1522 --with-gnu-ld assume the C compiler uses GNU ld default=no
1523 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1524 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1525 --with-included-gettext use the GNU gettext library included here
1526 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1527 --without-libintl-prefix don't search for libintl in includedir and libdir
1528
1529Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001534 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001535 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001538 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539
1540Use these variables to override the choices made by `configure' or to help
1541it to find libraries and programs with nonstandard names/locations.
1542
1543_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001544ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001545fi
1546
1547if test "$ac_init_help" = "recursive"; then
1548 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001550 test -d "$ac_dir" ||
1551 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 ac_builddir=.
1554
Theodore Ts'oe1052142006-10-21 21:46:47 -04001555case "$ac_dir" in
1556.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001558 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001560 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564 esac ;;
1565esac
1566ac_abs_top_builddir=$ac_pwd
1567ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568# for backward compatibility:
1569ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001570
1571case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1580 *) # Relative name.
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001586
Theodore Ts'oe1052142006-10-21 21:46:47 -04001587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1590 echo &&
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001595 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001596 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001597 fi || ac_status=$?
1598 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001599 done
1600fi
1601
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603if $ac_init_version; then
1604 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605configure
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001606generated by GNU Autoconf 2.63
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607
Theodore Ts'oe1052142006-10-21 21:46:47 -04001608Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016092002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001610This configure script is free software; the Free Software Foundation
1611gives unlimited permission to copy, distribute and modify it.
1612_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001613 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001616This file contains any messages produced by compilers while
1617running configure, to aid debugging if configure makes a mistake.
1618
1619It was created by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001620generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621
1622 $ $0 $@
1623
1624_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001625exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001626{
1627cat <<_ASUNAME
1628## --------- ##
1629## Platform. ##
1630## --------- ##
1631
1632hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636uname -v = `(uname -v) 2>/dev/null || echo unknown`
1637
1638/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1640
1641/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001644/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1648
1649_ASUNAME
1650
1651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1652for as_dir in $PATH
1653do
1654 IFS=$as_save_IFS
1655 test -z "$as_dir" && as_dir=.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001656 $as_echo "PATH: $as_dir"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659
1660} >&5
1661
1662cat >&5 <<_ACEOF
1663
1664
1665## ----------- ##
1666## Core tests. ##
1667## ----------- ##
1668
1669_ACEOF
1670
1671
1672# Keep a trace of the command line.
1673# Strip out --no-create and --no-recursion so they do not pile up.
1674# Strip out --silent because we don't want to record it for future runs.
1675# Also quote any args containing shell meta-characters.
1676# Make two passes to allow for proper duplicate-argument suppression.
1677ac_configure_args=
1678ac_configure_args0=
1679ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001680ac_must_keep_next=false
1681for ac_pass in 1 2
1682do
1683 for ac_arg
1684 do
1685 case $ac_arg in
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1689 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001690 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001691 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001692 esac
1693 case $ac_pass in
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1695 2)
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1699 else
1700 case $ac_arg in
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1707 esac
1708 ;;
1709 -* ) ac_must_keep_next=true ;;
1710 esac
1711 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001712 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001713 ;;
1714 esac
1715 done
1716done
1717$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1719
1720# When interrupted or exit'd, cleanup temporary files, and complete
1721# config.log. We remove comments because anyway the quotes in there
1722# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001723# WARNING: Use '\'' to represent an apostrophe within the trap.
1724# 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 -05001725trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1727 {
1728 echo
1729
1730 cat <<\_ASBOX
1731## ---------------- ##
1732## Cache variables. ##
1733## ---------------- ##
1734_ASBOX
1735 echo
1736 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001737(
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1740 case $ac_val in #(
1741 *${as_nl}*)
1742 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001743 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1744$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001745 esac
1746 case $ac_var in #(
1747 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001748 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -04001749 *) $as_unset $ac_var ;;
1750 esac ;;
1751 esac
1752 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001753 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001754 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1755 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001756 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001757 "s/'\''/'\''\\\\'\'''\''/g;
1758 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1759 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001760 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001761 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001762 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001763 esac |
1764 sort
1765)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001766 echo
1767
1768 cat <<\_ASBOX
1769## ----------------- ##
1770## Output variables. ##
1771## ----------------- ##
1772_ASBOX
1773 echo
1774 for ac_var in $ac_subst_vars
1775 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001776 eval ac_val=\$$ac_var
1777 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001779 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001780 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001781 done | sort
1782 echo
1783
1784 if test -n "$ac_subst_files"; then
1785 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001786## ------------------- ##
1787## File substitutions. ##
1788## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001789_ASBOX
1790 echo
1791 for ac_var in $ac_subst_files
1792 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001793 eval ac_val=\$$ac_var
1794 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001795 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001796 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001797 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001798 done | sort
1799 echo
1800 fi
1801
1802 if test -s confdefs.h; then
1803 cat <<\_ASBOX
1804## ----------- ##
1805## confdefs.h. ##
1806## ----------- ##
1807_ASBOX
1808 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001809 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001810 echo
1811 fi
1812 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001813 $as_echo "$as_me: caught signal $ac_signal"
1814 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001815 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001816 rm -f core *.core core.conftest.* &&
1817 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001818 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001819' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001820for ac_signal in 1 2 13 15; do
1821 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1822done
1823ac_signal=0
1824
1825# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001826rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001827
1828# Predefined preprocessor variables.
1829
1830cat >>confdefs.h <<_ACEOF
1831#define PACKAGE_NAME "$PACKAGE_NAME"
1832_ACEOF
1833
1834
1835cat >>confdefs.h <<_ACEOF
1836#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1837_ACEOF
1838
1839
1840cat >>confdefs.h <<_ACEOF
1841#define PACKAGE_VERSION "$PACKAGE_VERSION"
1842_ACEOF
1843
1844
1845cat >>confdefs.h <<_ACEOF
1846#define PACKAGE_STRING "$PACKAGE_STRING"
1847_ACEOF
1848
1849
1850cat >>confdefs.h <<_ACEOF
1851#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1852_ACEOF
1853
1854
1855# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001856# Prefer an explicitly selected file to automatically selected ones.
1857ac_site_file1=NONE
1858ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001859if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001860 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001861elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001862 ac_site_file1=$prefix/share/config.site
1863 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04001864else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001865 ac_site_file1=$ac_default_prefix/share/config.site
1866 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001867fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001868for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001869do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001870 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001871 if test -r "$ac_site_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001872 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1873$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001874 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001875 . "$ac_site_file"
1876 fi
1877done
1878
1879if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001880 # Some versions of bash will fail to source /dev/null (special
1881 # files actually), so we avoid doing that.
1882 if test -f "$cache_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001883 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1884$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001885 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001886 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1887 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001888 esac
1889 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001890else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001891 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1892$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001893 >$cache_file
1894fi
1895
1896# Check that the precious variables saved in the cache have kept the same
1897# value.
1898ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001899for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001900 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1901 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001902 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1903 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001904 case $ac_old_set,$ac_new_set in
1905 set,)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001906 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1907$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 -05001908 ac_cache_corrupted=: ;;
1909 ,set)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001910 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1911$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001912 ac_cache_corrupted=: ;;
1913 ,);;
1914 *)
1915 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001916 # differences in whitespace do not lead to failure.
1917 ac_old_val_w=`echo x $ac_old_val`
1918 ac_new_val_w=`echo x $ac_new_val`
1919 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1921$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1922 ac_cache_corrupted=:
1923 else
1924 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1925$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1926 eval $ac_var=\$ac_old_val
1927 fi
1928 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1929$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1930 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1931$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001932 fi;;
1933 esac
1934 # Pass precious variables to config.status.
1935 if test "$ac_new_set" = set; then
1936 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001937 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001938 *) ac_arg=$ac_var=$ac_new_val ;;
1939 esac
1940 case " $ac_configure_args " in
1941 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1942 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1943 esac
1944 fi
1945done
1946if $ac_cache_corrupted; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001947 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952$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 -05001953 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001954fi
1955
Theodore Ts'oe1052142006-10-21 21:46:47 -04001956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001972ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001973ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001978
1979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001980ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001981for ac_dir in config "$srcdir"/config; do
1982 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001983 ac_aux_dir=$ac_dir
1984 ac_install_sh="$ac_aux_dir/install-sh -c"
1985 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001986 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001987 ac_aux_dir=$ac_dir
1988 ac_install_sh="$ac_aux_dir/install.sh -c"
1989 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001990 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001991 ac_aux_dir=$ac_dir
1992 ac_install_sh="$ac_aux_dir/shtool install -c"
1993 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001994 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001995done
1996if test -z "$ac_aux_dir"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001997 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1998$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 -05001999 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002001
2002# These three variables are undocumented and unsupported,
2003# and are intended to be withdrawn in a future Autoconf release.
2004# They can cause serious problems if a builder's source tree is in a directory
2005# whose full name contains unusual characters.
2006ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2007ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2008ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2009
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002010
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002011MCONFIG=./MCONFIG
2012
Theodore Ts'o74becf31997-04-26 14:37:06 +00002013BINARY_TYPE=bin
2014E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2015 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2016DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2017 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002018E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002019MONTH=`echo $DATE | awk -F- '{print $2}'`
2020YEAR=`echo $DATE | awk -F- '{print $3}'`
2021
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002022if expr $YEAR ">" 1900 > /dev/null ; then
2023 E2FSPROGS_YEAR=$YEAR
2024elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002025 E2FSPROGS_YEAR=19$YEAR
2026else
2027 E2FSPROGS_YEAR=20$YEAR
2028fi
2029
2030case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002031Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2032Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2033Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2034Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2035May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2036Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2037Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2038Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2039Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2040Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2041Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2042Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002043*) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2044$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002045esac
2046
Andreas Dilger927566a2006-11-12 19:41:25 -05002047base_ver=`echo $E2FSPROGS_VERSION | \
2048 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002049
2050date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2051
2052case $E2FSPROGS_VERSION in
2053*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002054 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002055 ;;
2056*)
2057 E2FSPROGS_PKGVER="$base_ver"
2058 ;;
2059esac
2060
2061unset DATE MONTH YEAR base_ver pre_vers date_spec
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002062{ $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2063$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2064{ $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2065$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002066
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002067
2068
2069
Andreas Dilger927566a2006-11-12 19:41:25 -05002070
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002071# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002072$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002073 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2074$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002075 { (exit 1); exit 1; }; }
2076
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002077{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2078$as_echo_n "checking build system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002079if test "${ac_cv_build+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002080 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002081else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002082 ac_build_alias=$build_alias
2083test "x$ac_build_alias" = x &&
2084 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2085test "x$ac_build_alias" = x &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002086 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2087$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002088 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002089ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002090 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2091$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002092 { (exit 1); exit 1; }; }
2093
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002094fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002095{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2096$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002097case $ac_cv_build in
2098*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002099*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2100$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101 { (exit 1); exit 1; }; };;
2102esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002104ac_save_IFS=$IFS; IFS='-'
2105set x $ac_cv_build
2106shift
2107build_cpu=$1
2108build_vendor=$2
2109shift; shift
2110# Remember, the first character of IFS is used to create $*,
2111# except with old shells:
2112build_os=$*
2113IFS=$ac_save_IFS
2114case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002115
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002116
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002117{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2118$as_echo_n "checking host system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002119if test "${ac_cv_host+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002120 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002121else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002122 if test "x$host_alias" = x; then
2123 ac_cv_host=$ac_cv_build
2124else
2125 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002126 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2127$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002128 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002129fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002131fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002132{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2133$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002134case $ac_cv_host in
2135*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002136*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2137$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002138 { (exit 1); exit 1; }; };;
2139esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002140host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002141ac_save_IFS=$IFS; IFS='-'
2142set x $ac_cv_host
2143shift
2144host_cpu=$1
2145host_vendor=$2
2146shift; shift
2147# Remember, the first character of IFS is used to create $*,
2148# except with old shells:
2149host_os=$*
2150IFS=$ac_save_IFS
2151case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002152
2153
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002154WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002155
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002157if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002159WITH_DIET_LIBC=yes
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002160{ $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2161$as_echo "CC=$CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162fi
2163
2164# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002165if test "${with_cc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002166 withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2167$as_echo "CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002168CC=$withval
2169else
2170 if test -z "$CC" ; then CC=cc; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002171{ $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2172$as_echo "CC defaults to $CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002173fi
2174export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002176ac_ext=c
2177ac_cpp='$CPP $CPPFLAGS'
2178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2180ac_compiler_gnu=$ac_cv_c_compiler_gnu
2181if test -n "$ac_tool_prefix"; then
2182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2183set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002184{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2185$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002186if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002187 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002188else
2189 if test -n "$CC"; then
2190 ac_cv_prog_CC="$CC" # Let the user override the test.
2191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193for as_dir in $PATH
2194do
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002198 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 -05002199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002201 break 2
2202 fi
2203done
2204done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002205IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002206
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002207fi
2208fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002209CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002210if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002211 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2212$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002213else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002214 { $as_echo "$as_me:$LINENO: result: no" >&5
2215$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002216fi
2217
Theodore Ts'oe1052142006-10-21 21:46:47 -04002218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002219fi
2220if test -z "$ac_cv_prog_CC"; then
2221 ac_ct_CC=$CC
2222 # Extract the first word of "gcc", so it can be a program name with args.
2223set dummy gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002224{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2225$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002227 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002228else
2229 if test -n "$ac_ct_CC"; then
2230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2231else
2232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2233for as_dir in $PATH
2234do
2235 IFS=$as_save_IFS
2236 test -z "$as_dir" && as_dir=.
2237 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002238 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 -05002239 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002241 break 2
2242 fi
2243done
2244done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002245IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002246
2247fi
2248fi
2249ac_ct_CC=$ac_cv_prog_ac_ct_CC
2250if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002251 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2252$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002253else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002254 { $as_echo "$as_me:$LINENO: result: no" >&5
2255$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002256fi
2257
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258 if test "x$ac_ct_CC" = x; then
2259 CC=""
2260 else
2261 case $cross_compiling:$ac_tool_warned in
2262yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002263{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002265ac_tool_warned=yes ;;
2266esac
2267 CC=$ac_ct_CC
2268 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269else
2270 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002271fi
2272
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002273if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002274 if test -n "$ac_tool_prefix"; then
2275 # 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 -05002276set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002277{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002280 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002281else
2282 if test -n "$CC"; then
2283 ac_cv_prog_CC="$CC" # Let the user override the test.
2284else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286for as_dir in $PATH
2287do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002294 break 2
2295 fi
2296done
2297done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002299
2300fi
2301fi
2302CC=$ac_cv_prog_CC
2303if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002304 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2305$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002307 { $as_echo "$as_me:$LINENO: result: no" >&5
2308$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002309fi
2310
Theodore Ts'oe1052142006-10-21 21:46:47 -04002311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002312 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002313fi
2314if test -z "$CC"; then
2315 # Extract the first word of "cc", so it can be a program name with args.
2316set dummy cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002317{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2318$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002319if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002320 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002321else
2322 if test -n "$CC"; then
2323 ac_cv_prog_CC="$CC" # Let the user override the test.
2324else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002325 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327for as_dir in $PATH
2328do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002332 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 -05002333 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2334 ac_prog_rejected=yes
2335 continue
2336 fi
2337 ac_cv_prog_CC="cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339 break 2
2340 fi
2341done
2342done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002343IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002344
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002345if test $ac_prog_rejected = yes; then
2346 # We found a bogon in the path, so make sure we never use it.
2347 set dummy $ac_cv_prog_CC
2348 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002349 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002350 # We chose a different compiler from the bogus one.
2351 # However, it has the same basename, so the bogon will be chosen
2352 # first if we set CC to just the basename; use the full file name.
2353 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002354 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002355 fi
2356fi
2357fi
2358fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002359CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002360if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002361 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2362$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002363else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002366fi
2367
Theodore Ts'oe1052142006-10-21 21:46:47 -04002368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002369fi
2370if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002372 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373 do
2374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2375set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002376{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2377$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002378if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002379 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002380else
2381 if test -n "$CC"; then
2382 ac_cv_prog_CC="$CC" # Let the user override the test.
2383else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385for as_dir in $PATH
2386do
2387 IFS=$as_save_IFS
2388 test -z "$as_dir" && as_dir=.
2389 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002390 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 -05002391 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002393 break 2
2394 fi
2395done
2396done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002398
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002399fi
2400fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002402if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002403 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2404$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002405else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002406 { $as_echo "$as_me:$LINENO: result: no" >&5
2407$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002408fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409
Theodore Ts'oe1052142006-10-21 21:46:47 -04002410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002411 test -n "$CC" && break
2412 done
2413fi
2414if test -z "$CC"; then
2415 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002416 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002417do
2418 # Extract the first word of "$ac_prog", so it can be a program name with args.
2419set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2421$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002423 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002424else
2425 if test -n "$ac_ct_CC"; then
2426 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2427else
2428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429for as_dir in $PATH
2430do
2431 IFS=$as_save_IFS
2432 test -z "$as_dir" && as_dir=.
2433 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002434 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 -05002435 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002438 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002439done
2440done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442
2443fi
2444fi
2445ac_ct_CC=$ac_cv_prog_ac_ct_CC
2446if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002447 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2448$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002450 { $as_echo "$as_me:$LINENO: result: no" >&5
2451$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002452fi
2453
Theodore Ts'oe1052142006-10-21 21:46:47 -04002454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455 test -n "$ac_ct_CC" && break
2456done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002457
Theodore Ts'oe1052142006-10-21 21:46:47 -04002458 if test "x$ac_ct_CC" = x; then
2459 CC=""
2460 else
2461 case $cross_compiling:$ac_tool_warned in
2462yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002463{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002465ac_tool_warned=yes ;;
2466esac
2467 CC=$ac_ct_CC
2468 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002472
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002473
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002474test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002478$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002480 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481
2482# Provide some information about the compiler.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002483$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2484set X $ac_compile
2485ac_compiler=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486{ (ac_try="$ac_compiler --version >&5"
2487case "(($ac_try" in
2488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2489 *) ac_try_echo=$ac_try;;
2490esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2492$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002494 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002497{ (ac_try="$ac_compiler -v >&5"
2498case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;;
2501esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2503$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508{ (ac_try="$ac_compiler -V >&5"
2509case "(($ac_try" in
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2512esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002513eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2514$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518 (exit $ac_status); }
2519
2520cat >conftest.$ac_ext <<_ACEOF
2521/* confdefs.h. */
2522_ACEOF
2523cat confdefs.h >>conftest.$ac_ext
2524cat >>conftest.$ac_ext <<_ACEOF
2525/* end confdefs.h. */
2526
2527int
2528main ()
2529{
2530
2531 ;
2532 return 0;
2533}
2534_ACEOF
2535ac_clean_files_save=$ac_clean_files
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002536ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537# Try to create an executable without -o first, disregard a.out.
2538# It will help us diagnose broken compilers, and finding out an intuition
2539# of exeext.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002540{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2541$as_echo_n "checking for C compiler default output file name... " >&6; }
2542ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2543
2544# The possible output files:
2545ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2546
Theodore Ts'oe1052142006-10-21 21:46:47 -04002547ac_rmfiles=
2548for ac_file in $ac_files
2549do
2550 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2553 esac
2554done
2555rm -f $ac_rmfiles
2556
2557if { (ac_try="$ac_link_default"
2558case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2563$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002564 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2569# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2570# in a Makefile. We should not override ac_cv_exeext if it was cached,
2571# so that the user can short-circuit this test for compilers unknown to
2572# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002573for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002574do
2575 test -f "$ac_file" || continue
2576 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578 ;;
2579 [ab].out )
2580 # We found the default executable, but exeext='' is most
2581 # certainly right.
2582 break;;
2583 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2585 then :; else
2586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2587 fi
2588 # We set ac_cv_exeext here because the later test for it is not
2589 # safe: cross compilers may not add the suffix if given an `-o'
2590 # argument, so we may need to know it at that point already.
2591 # Even if this section looks crufty: it has the advantage of
2592 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593 break;;
2594 * )
2595 break;;
2596 esac
2597done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002598test "$ac_cv_exeext" = no && ac_cv_exeext=
2599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002600else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002601 ac_file=''
2602fi
2603
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002604{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2605$as_echo "$ac_file" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002606if test -z "$ac_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002607 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002608sed 's/^/| /' conftest.$ac_ext >&5
2609
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002610{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2612{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002613See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614$as_echo "$as_me: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002615See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002616 { (exit 77); exit 77; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002617fi
2618
2619ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002620
Theodore Ts'oe1052142006-10-21 21:46:47 -04002621# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002622# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002623{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2624$as_echo_n "checking whether the C compiler works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002625# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2626# If not cross compiling, check that we can run a simple program.
2627if test "$cross_compiling" != yes; then
2628 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002629 { (case "(($ac_try" in
2630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2631 *) ac_try_echo=$ac_try;;
2632esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2634$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002635 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002636 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 (exit $ac_status); }; }; then
2639 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002640 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 if test "$cross_compiling" = maybe; then
2642 cross_compiling=yes
2643 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002644 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2645$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2646{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647If you meant to cross compile, use \`--host'.
2648See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002649$as_echo "$as_me: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650If you meant to cross compile, use \`--host'.
2651See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002652 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002653 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002654 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002655fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002656{ $as_echo "$as_me:$LINENO: result: yes" >&5
2657$as_echo "yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002658
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002659rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002663{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2664$as_echo_n "checking whether we are cross compiling... " >&6; }
2665{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2666$as_echo "$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002667
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002668{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2669$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002670if { (ac_try="$ac_link"
2671case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2676$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002677 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002678 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002680 (exit $ac_status); }; then
2681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2682# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2683# work properly (i.e., refer to `conftest.exe'), while it won't with
2684# `rm'.
2685for ac_file in conftest.exe conftest conftest.*; do
2686 test -f "$ac_file" || continue
2687 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002690 break;;
2691 * ) break;;
2692 esac
2693done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002694else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002695 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002698See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002699$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002700See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002701 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702fi
2703
2704rm -f conftest$ac_cv_exeext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002705{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2706$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707
2708rm -f conftest.$ac_ext
2709EXEEXT=$ac_cv_exeext
2710ac_exeext=$EXEEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002711{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2712$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713if test "${ac_cv_objext+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002714 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002715else
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002732if { (ac_try="$ac_compile"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2738$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002739 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002742 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002743 for ac_file in conftest.o conftest.obj conftest.*; do
2744 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002745 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002746 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002747 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2748 break;;
2749 esac
2750done
2751else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002752 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002753sed 's/^/| /' conftest.$ac_ext >&5
2754
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002755{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2757{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002758See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002759$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002760See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002761 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002762fi
2763
2764rm -f conftest.$ac_cv_objext conftest.$ac_ext
2765fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002766{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2767$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002768OBJEXT=$ac_cv_objext
2769ac_objext=$OBJEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002770{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2771$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002773 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002774else
2775 cat >conftest.$ac_ext <<_ACEOF
2776/* confdefs.h. */
2777_ACEOF
2778cat confdefs.h >>conftest.$ac_ext
2779cat >>conftest.$ac_ext <<_ACEOF
2780/* end confdefs.h. */
2781
2782int
2783main ()
2784{
2785#ifndef __GNUC__
2786 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002787#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002789 ;
2790 return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002794if { (ac_try="$ac_compile"
2795case "(($ac_try" in
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2798esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2800$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802 ac_status=$?
2803 grep -v '^ *+' conftest.er1 >conftest.err
2804 rm -f conftest.er1
2805 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002807 (exit $ac_status); } && {
2808 test -z "$ac_c_werror_flag" ||
2809 test ! -s conftest.err
2810 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002811 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002812else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002813 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002814sed 's/^/| /' conftest.$ac_ext >&5
2815
Theodore Ts'oe1052142006-10-21 21:46:47 -04002816 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002818
2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002820ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002823{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2824$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2825if test $ac_compiler_gnu = yes; then
2826 GCC=yes
2827else
2828 GCC=
2829fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002830ac_test_CFLAGS=${CFLAGS+set}
2831ac_save_CFLAGS=$CFLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002832{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2833$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002835 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002836else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002837 ac_save_c_werror_flag=$ac_c_werror_flag
2838 ac_c_werror_flag=yes
2839 ac_cv_prog_cc_g=no
2840 CFLAGS="-g"
2841 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842/* confdefs.h. */
2843_ACEOF
2844cat confdefs.h >>conftest.$ac_ext
2845cat >>conftest.$ac_ext <<_ACEOF
2846/* end confdefs.h. */
2847
2848int
2849main ()
2850{
2851
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857if { (ac_try="$ac_compile"
2858case "(($ac_try" in
2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2860 *) ac_try_echo=$ac_try;;
2861esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2863$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002864 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865 ac_status=$?
2866 grep -v '^ *+' conftest.er1 >conftest.err
2867 rm -f conftest.er1
2868 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002870 (exit $ac_status); } && {
2871 test -z "$ac_c_werror_flag" ||
2872 test ! -s conftest.err
2873 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002874 ac_cv_prog_cc_g=yes
2875else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002876 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002877sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002878
Theodore Ts'oe1052142006-10-21 21:46:47 -04002879 CFLAGS=""
2880 cat >conftest.$ac_ext <<_ACEOF
2881/* confdefs.h. */
2882_ACEOF
2883cat confdefs.h >>conftest.$ac_ext
2884cat >>conftest.$ac_ext <<_ACEOF
2885/* end confdefs.h. */
2886
2887int
2888main ()
2889{
2890
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895rm -f conftest.$ac_objext
2896if { (ac_try="$ac_compile"
2897case "(($ac_try" in
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2900esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002903 (eval "$ac_compile") 2>conftest.er1
2904 ac_status=$?
2905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002909 (exit $ac_status); } && {
2910 test -z "$ac_c_werror_flag" ||
2911 test ! -s conftest.err
2912 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913 :
2914else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002915 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002916sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ac_c_werror_flag=$ac_save_c_werror_flag
2919 CFLAGS="-g"
2920 cat >conftest.$ac_ext <<_ACEOF
2921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
2926
2927int
2928main ()
2929{
2930
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (ac_try="$ac_compile"
2937case "(($ac_try" in
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2940esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2942$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002943 (eval "$ac_compile") 2>conftest.er1
2944 ac_status=$?
2945 grep -v '^ *+' conftest.er1 >conftest.err
2946 rm -f conftest.er1
2947 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002949 (exit $ac_status); } && {
2950 test -z "$ac_c_werror_flag" ||
2951 test ! -s conftest.err
2952 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002953 ac_cv_prog_cc_g=yes
2954else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002955 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002956sed 's/^/| /' conftest.$ac_ext >&5
2957
2958
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002960
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002962fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002963
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965fi
2966
2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2968 ac_c_werror_flag=$ac_save_c_werror_flag
2969fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002970{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2971$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002972if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002974elif test $ac_cv_prog_cc_g = yes; then
2975 if test "$GCC" = yes; then
2976 CFLAGS="-g -O2"
2977 else
2978 CFLAGS="-g"
2979 fi
2980else
2981 if test "$GCC" = yes; then
2982 CFLAGS="-O2"
2983 else
2984 CFLAGS=
2985 fi
2986fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002987{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2988$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002989if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002990 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993ac_save_CC=$CC
2994cat >conftest.$ac_ext <<_ACEOF
2995/* confdefs.h. */
2996_ACEOF
2997cat confdefs.h >>conftest.$ac_ext
2998cat >>conftest.$ac_ext <<_ACEOF
2999/* end confdefs.h. */
3000#include <stdarg.h>
3001#include <stdio.h>
3002#include <sys/types.h>
3003#include <sys/stat.h>
3004/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3005struct buf { int x; };
3006FILE * (*rcsopen) (struct buf *, struct stat *, int);
3007static char *e (p, i)
3008 char **p;
3009 int i;
3010{
3011 return p[i];
3012}
3013static char *f (char * (*g) (char **, int), char **p, ...)
3014{
3015 char *s;
3016 va_list v;
3017 va_start (v,p);
3018 s = g (p, va_arg (v,int));
3019 va_end (v);
3020 return s;
3021}
3022
3023/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3024 function prototypes and stuff, but not '\xHH' hex character constants.
3025 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003026 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3028 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003029 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003030int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3031
Theodore Ts'oe1052142006-10-21 21:46:47 -04003032/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3033 inside strings and character constants. */
3034#define FOO(x) 'x'
3035int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037int test (int i, double x);
3038struct s1 {int (*f) (int a);};
3039struct s2 {int (*f) (double a);};
3040int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3041int argc;
3042char **argv;
3043int
3044main ()
3045{
3046return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3047 ;
3048 return 0;
3049}
3050_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003051for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3052 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053do
3054 CC="$ac_save_CC $ac_arg"
3055 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003056if { (ac_try="$ac_compile"
3057case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3062$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003063 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003064 ac_status=$?
3065 grep -v '^ *+' conftest.er1 >conftest.err
3066 rm -f conftest.er1
3067 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003069 (exit $ac_status); } && {
3070 test -z "$ac_c_werror_flag" ||
3071 test ! -s conftest.err
3072 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003073 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003075 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076sed 's/^/| /' conftest.$ac_ext >&5
3077
Theodore Ts'oe1052142006-10-21 21:46:47 -04003078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003080
3081rm -f core conftest.err conftest.$ac_objext
3082 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003083done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003084rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085CC=$ac_save_CC
3086
3087fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003088# AC_CACHE_VAL
3089case "x$ac_cv_prog_cc_c89" in
3090 x)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003091 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3092$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003093 xno)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003094 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3095$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003097 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003098 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3099$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100esac
3101
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103ac_ext=c
3104ac_cpp='$CPP $CPPFLAGS'
3105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3107ac_compiler_gnu=$ac_cv_c_compiler_gnu
3108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003109ac_ext=c
3110ac_cpp='$CPP $CPPFLAGS'
3111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3113ac_compiler_gnu=$ac_cv_c_compiler_gnu
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003114{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3115$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003116# On Suns, sometimes $CPP names a directory.
3117if test -n "$CPP" && test -d "$CPP"; then
3118 CPP=
3119fi
3120if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121 if test "${ac_cv_prog_CPP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003122 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003123else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124 # Double quotes because CPP needs to be expanded
3125 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3126 do
3127 ac_preproc_ok=false
3128for ac_c_preproc_warn_flag in '' yes
3129do
3130 # Use a header file that comes with gcc, so configuring glibc
3131 # with a fresh cross-compiler works.
3132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3133 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003134 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135 # not just through cpp. "Syntax error" is here to catch this case.
3136 cat >conftest.$ac_ext <<_ACEOF
3137/* confdefs.h. */
3138_ACEOF
3139cat confdefs.h >>conftest.$ac_ext
3140cat >>conftest.$ac_ext <<_ACEOF
3141/* end confdefs.h. */
3142#ifdef __STDC__
3143# include <limits.h>
3144#else
3145# include <assert.h>
3146#endif
3147 Syntax error
3148_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003149if { (ac_try="$ac_cpp conftest.$ac_ext"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003154eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157 ac_status=$?
3158 grep -v '^ *+' conftest.er1 >conftest.err
3159 rm -f conftest.er1
3160 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003162 (exit $ac_status); } >/dev/null && {
3163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3164 test ! -s conftest.err
3165 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003166 :
3167else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003168 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003171 # Broken: fails on valid input.
3172continue
3173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003175rm -f conftest.err conftest.$ac_ext
3176
Theodore Ts'oe1052142006-10-21 21:46:47 -04003177 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003178 # can be detected and how.
3179 cat >conftest.$ac_ext <<_ACEOF
3180/* confdefs.h. */
3181_ACEOF
3182cat confdefs.h >>conftest.$ac_ext
3183cat >>conftest.$ac_ext <<_ACEOF
3184/* end confdefs.h. */
3185#include <ac_nonexistent.h>
3186_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003187if { (ac_try="$ac_cpp conftest.$ac_ext"
3188case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003195 ac_status=$?
3196 grep -v '^ *+' conftest.er1 >conftest.err
3197 rm -f conftest.er1
3198 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003200 (exit $ac_status); } >/dev/null && {
3201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204 # Broken: success on invalid input.
3205continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003206else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003207 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003208sed 's/^/| /' conftest.$ac_ext >&5
3209
3210 # Passes both tests.
3211ac_preproc_ok=:
3212break
3213fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215rm -f conftest.err conftest.$ac_ext
3216
3217done
3218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3219rm -f conftest.err conftest.$ac_ext
3220if $ac_preproc_ok; then
3221 break
3222fi
3223
3224 done
3225 ac_cv_prog_CPP=$CPP
3226
3227fi
3228 CPP=$ac_cv_prog_CPP
3229else
3230 ac_cv_prog_CPP=$CPP
3231fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003232{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3233$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003234ac_preproc_ok=false
3235for ac_c_preproc_warn_flag in '' yes
3236do
3237 # Use a header file that comes with gcc, so configuring glibc
3238 # with a fresh cross-compiler works.
3239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3240 # <limits.h> exists even on freestanding compilers.
3241 # On the NeXT, cc -E runs the code through the compiler's parser,
3242 # not just through cpp. "Syntax error" is here to catch this case.
3243 cat >conftest.$ac_ext <<_ACEOF
3244/* confdefs.h. */
3245_ACEOF
3246cat confdefs.h >>conftest.$ac_ext
3247cat >>conftest.$ac_ext <<_ACEOF
3248/* end confdefs.h. */
3249#ifdef __STDC__
3250# include <limits.h>
3251#else
3252# include <assert.h>
3253#endif
3254 Syntax error
3255_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256if { (ac_try="$ac_cpp conftest.$ac_ext"
3257case "(($ac_try" in
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3260esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3262$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003264 ac_status=$?
3265 grep -v '^ *+' conftest.er1 >conftest.err
3266 rm -f conftest.er1
3267 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003269 (exit $ac_status); } >/dev/null && {
3270 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3271 test ! -s conftest.err
3272 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003273 :
3274else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003275 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276sed 's/^/| /' conftest.$ac_ext >&5
3277
3278 # Broken: fails on valid input.
3279continue
3280fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003282rm -f conftest.err conftest.$ac_ext
3283
Theodore Ts'oe1052142006-10-21 21:46:47 -04003284 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 # can be detected and how.
3286 cat >conftest.$ac_ext <<_ACEOF
3287/* confdefs.h. */
3288_ACEOF
3289cat confdefs.h >>conftest.$ac_ext
3290cat >>conftest.$ac_ext <<_ACEOF
3291/* end confdefs.h. */
3292#include <ac_nonexistent.h>
3293_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003294if { (ac_try="$ac_cpp conftest.$ac_ext"
3295case "(($ac_try" in
3296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3298esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3300$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302 ac_status=$?
3303 grep -v '^ *+' conftest.er1 >conftest.err
3304 rm -f conftest.er1
3305 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003307 (exit $ac_status); } >/dev/null && {
3308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003311 # Broken: success on invalid input.
3312continue
3313else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003314 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003315sed 's/^/| /' conftest.$ac_ext >&5
3316
3317 # Passes both tests.
3318ac_preproc_ok=:
3319break
3320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003322rm -f conftest.err conftest.$ac_ext
3323
3324done
3325# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3326rm -f conftest.err conftest.$ac_ext
3327if $ac_preproc_ok; then
3328 :
3329else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003330 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3332{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003336 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003337fi
3338
3339ac_ext=c
3340ac_cpp='$CPP $CPPFLAGS'
3341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344
3345
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003346# Check whether --with-linker was given.
3347if test "${with_linker+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003348 withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3349$as_echo "LD=$withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003350LD=$withval
3351else
3352 if test -z "$LD" ; then LD=$CC; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003353{ $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3354$as_echo "LD defaults to $LD" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003355fi
3356export LD
3357
3358
3359# Check whether --with-ccopts was given.
3360if test "${with_ccopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003361 withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3362$as_echo "CCOPTS is $withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003363CFLAGS=$withval
3364fi
3365
3366
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003367{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3368$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003369if test "${ac_cv_path_GREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003370 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003371else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003372 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003374 # Loop through the user's path and test for each of PROGNAME-LIST
3375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003376for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3377do
3378 IFS=$as_save_IFS
3379 test -z "$as_dir" && as_dir=.
3380 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003381 for ac_exec_ext in '' $ac_executable_extensions; do
3382 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3383 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3384# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003385 # Check for GNU $ac_path_GREP
3386case `"$ac_path_GREP" --version 2>&1` in
3387*GNU*)
3388 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3389*)
3390 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003391 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003392 while :
3393 do
3394 cat "conftest.in" "conftest.in" >"conftest.tmp"
3395 mv "conftest.tmp" "conftest.in"
3396 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003397 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003398 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3399 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3400 ac_count=`expr $ac_count + 1`
3401 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3402 # Best one so far, save it but keep looking for a better one
3403 ac_cv_path_GREP="$ac_path_GREP"
3404 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003405 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003406 # 10*(2^10) chars as input seems more than enough
3407 test $ac_count -gt 10 && break
3408 done
3409 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3410esac
3411
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003412 $ac_path_GREP_found && break 3
3413 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003414 done
3415done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003416IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003417 if test -z "$ac_cv_path_GREP"; then
3418 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3419$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 -04003420 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003421 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003422else
3423 ac_cv_path_GREP=$GREP
3424fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425
Theodore Ts'oe1052142006-10-21 21:46:47 -04003426fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003427{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3428$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429 GREP="$ac_cv_path_GREP"
3430
3431
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003432{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3433$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003434if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003435 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04003436else
3437 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3438 then ac_cv_path_EGREP="$GREP -E"
3439 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003440 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003441 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003442 # Loop through the user's path and test for each of PROGNAME-LIST
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3451 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3452# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003453 # Check for GNU $ac_path_EGREP
3454case `"$ac_path_EGREP" --version 2>&1` in
3455*GNU*)
3456 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3457*)
3458 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003459 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003460 while :
3461 do
3462 cat "conftest.in" "conftest.in" >"conftest.tmp"
3463 mv "conftest.tmp" "conftest.in"
3464 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003465 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003466 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3468 ac_count=`expr $ac_count + 1`
3469 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3470 # Best one so far, save it but keep looking for a better one
3471 ac_cv_path_EGREP="$ac_path_EGREP"
3472 ac_path_EGREP_max=$ac_count
3473 fi
3474 # 10*(2^10) chars as input seems more than enough
3475 test $ac_count -gt 10 && break
3476 done
3477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3478esac
3479
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003480 $ac_path_EGREP_found && break 3
3481 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003482 done
3483done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003485 if test -z "$ac_cv_path_EGREP"; then
3486 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3487$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 -04003488 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003489 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490else
3491 ac_cv_path_EGREP=$EGREP
3492fi
3493
Theodore Ts'oe1052142006-10-21 21:46:47 -04003494 fi
3495fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003496{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3497$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003498 EGREP="$ac_cv_path_EGREP"
3499
3500
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003501{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3502$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503if test "${ac_cv_header_stdc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003504 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505else
3506 cat >conftest.$ac_ext <<_ACEOF
3507/* confdefs.h. */
3508_ACEOF
3509cat confdefs.h >>conftest.$ac_ext
3510cat >>conftest.$ac_ext <<_ACEOF
3511/* end confdefs.h. */
3512#include <stdlib.h>
3513#include <stdarg.h>
3514#include <string.h>
3515#include <float.h>
3516
3517int
3518main ()
3519{
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
3525rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526if { (ac_try="$ac_compile"
3527case "(($ac_try" in
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3530esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3532$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003533 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003534 ac_status=$?
3535 grep -v '^ *+' conftest.er1 >conftest.err
3536 rm -f conftest.er1
3537 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003539 (exit $ac_status); } && {
3540 test -z "$ac_c_werror_flag" ||
3541 test ! -s conftest.err
3542 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003543 ac_cv_header_stdc=yes
3544else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003545 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546sed 's/^/| /' conftest.$ac_ext >&5
3547
Theodore Ts'oe1052142006-10-21 21:46:47 -04003548 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003549fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003550
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552
3553if test $ac_cv_header_stdc = yes; then
3554 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3555 cat >conftest.$ac_ext <<_ACEOF
3556/* confdefs.h. */
3557_ACEOF
3558cat confdefs.h >>conftest.$ac_ext
3559cat >>conftest.$ac_ext <<_ACEOF
3560/* end confdefs.h. */
3561#include <string.h>
3562
3563_ACEOF
3564if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3565 $EGREP "memchr" >/dev/null 2>&1; then
3566 :
3567else
3568 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003569fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003570rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003571
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003572fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573
3574if test $ac_cv_header_stdc = yes; then
3575 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3576 cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h. */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h. */
3582#include <stdlib.h>
3583
3584_ACEOF
3585if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3586 $EGREP "free" >/dev/null 2>&1; then
3587 :
3588else
3589 ac_cv_header_stdc=no
3590fi
3591rm -f conftest*
3592
3593fi
3594
3595if test $ac_cv_header_stdc = yes; then
3596 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3597 if test "$cross_compiling" = yes; then
3598 :
3599else
3600 cat >conftest.$ac_ext <<_ACEOF
3601/* confdefs.h. */
3602_ACEOF
3603cat confdefs.h >>conftest.$ac_ext
3604cat >>conftest.$ac_ext <<_ACEOF
3605/* end confdefs.h. */
3606#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003607#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608#if ((' ' & 0x0FF) == 0x020)
3609# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3610# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3611#else
3612# define ISLOWER(c) \
3613 (('a' <= (c) && (c) <= 'i') \
3614 || ('j' <= (c) && (c) <= 'r') \
3615 || ('s' <= (c) && (c) <= 'z'))
3616# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3617#endif
3618
3619#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3620int
3621main ()
3622{
3623 int i;
3624 for (i = 0; i < 256; i++)
3625 if (XOR (islower (i), ISLOWER (i))
3626 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003627 return 2;
3628 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629}
3630_ACEOF
3631rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003632if { (ac_try="$ac_link"
3633case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003639 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003640 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643 { (case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003649 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003650 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652 (exit $ac_status); }; }; then
3653 :
3654else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003655 $as_echo "$as_me: program exited with status $ac_status" >&5
3656$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657sed 's/^/| /' conftest.$ac_ext >&5
3658
3659( exit $ac_status )
3660ac_cv_header_stdc=no
3661fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003662rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3664fi
3665
3666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667fi
3668fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003669{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3670$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003671if test $ac_cv_header_stdc = yes; then
3672
3673cat >>confdefs.h <<\_ACEOF
3674#define STDC_HEADERS 1
3675_ACEOF
3676
3677fi
3678
3679# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3690 inttypes.h stdint.h unistd.h
3691do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003692as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3693{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3694$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003695if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003696 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003697else
3698 cat >conftest.$ac_ext <<_ACEOF
3699/* confdefs.h. */
3700_ACEOF
3701cat confdefs.h >>conftest.$ac_ext
3702cat >>conftest.$ac_ext <<_ACEOF
3703/* end confdefs.h. */
3704$ac_includes_default
3705
3706#include <$ac_header>
3707_ACEOF
3708rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003709if { (ac_try="$ac_compile"
3710case "(($ac_try" in
3711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3712 *) ac_try_echo=$ac_try;;
3713esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3715$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003716 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003722 (exit $ac_status); } && {
3723 test -z "$ac_c_werror_flag" ||
3724 test ! -s conftest.err
3725 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003726 eval "$as_ac_Header=yes"
3727else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003728 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003729sed 's/^/| /' conftest.$ac_ext >&5
3730
Theodore Ts'oe1052142006-10-21 21:46:47 -04003731 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003732fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003733
3734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003735fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003736ac_res=`eval 'as_val=${'$as_ac_Header'}
3737 $as_echo "$as_val"'`
3738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3739$as_echo "$ac_res" >&6; }
3740as_val=`eval 'as_val=${'$as_ac_Header'}
3741 $as_echo "$as_val"'`
3742 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003743 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003744#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003745_ACEOF
3746
3747fi
3748
3749done
3750
3751
3752if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003753 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3754$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003755if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003756 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003757fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003758{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3759$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003760else
3761 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003762{ $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3763$as_echo_n "checking linux/fs.h usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003764cat >conftest.$ac_ext <<_ACEOF
3765/* confdefs.h. */
3766_ACEOF
3767cat confdefs.h >>conftest.$ac_ext
3768cat >>conftest.$ac_ext <<_ACEOF
3769/* end confdefs.h. */
3770$ac_includes_default
3771#include <linux/fs.h>
3772_ACEOF
3773rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003774if { (ac_try="$ac_compile"
3775case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003781 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003791 ac_header_compiler=yes
3792else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003793 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003794sed 's/^/| /' conftest.$ac_ext >&5
3795
Theodore Ts'oe1052142006-10-21 21:46:47 -04003796 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003797fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003798
3799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003800{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3801$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003802
3803# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003804{ $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3805$as_echo_n "checking linux/fs.h presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003806cat >conftest.$ac_ext <<_ACEOF
3807/* confdefs.h. */
3808_ACEOF
3809cat confdefs.h >>conftest.$ac_ext
3810cat >>conftest.$ac_ext <<_ACEOF
3811/* end confdefs.h. */
3812#include <linux/fs.h>
3813_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003814if { (ac_try="$ac_cpp conftest.$ac_ext"
3815case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3820$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003822 ac_status=$?
3823 grep -v '^ *+' conftest.er1 >conftest.err
3824 rm -f conftest.er1
3825 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003827 (exit $ac_status); } >/dev/null && {
3828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3829 test ! -s conftest.err
3830 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003831 ac_header_preproc=yes
3832else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003833 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003834sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 ac_header_preproc=no
3837fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003838
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003839rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003840{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3841$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003842
3843# So? What about this header?
3844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3845 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003846 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3847$as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3848 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3849$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003850 ac_header_preproc=yes
3851 ;;
3852 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003853 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3854$as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3855 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3856$as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3857 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3858$as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3859 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3860$as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3861 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3862$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3863 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3864$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 -04003865
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003866 ;;
3867esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003868{ $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3869$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003870if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003871 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003872else
3873 ac_cv_header_linux_fs_h=$ac_header_preproc
3874fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003875{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3876$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003877
3878fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003879if test "x$ac_cv_header_linux_fs_h" = x""yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003880 linux_headers=yes
3881else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003882 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003883fi
3884
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003885
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003886if test "$linux_headers" != yes; then
3887 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003888fi
3889
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003890{ $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3891$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003892if test "$GCC" = yes
3893then
3894 case "$host_cpu" in
3895 alpha) addcflags="-mieee" ;;
3896 esac
3897fi
3898if test "x$addcflags" != x
3899then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003900 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3901$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003902 CFLAGS="$addcflags $CFLAGS"
3903else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003904 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3905$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003906fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003907LIB_EXT=.a
3908STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04003909PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003910
Theodore Ts'oe1052142006-10-21 21:46:47 -04003911# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003912if test "${with_ldopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003913 withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3914$as_echo "LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003915LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003916fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003917
Theodore Ts'oe1052142006-10-21 21:46:47 -04003918
3919# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003920if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003922else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003923 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003924fi
3925# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003926if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003927 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003928then
3929 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003930 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3931$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003932else
3933 MAINTAINER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003934 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3935$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003936fi
3937
3938else
3939 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003940{ $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3941$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003942
Theodore Ts'oe1052142006-10-21 21:46:47 -04003943fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003944
Theodore Ts'oe1052142006-10-21 21:46:47 -04003945
Theodore Ts'oc13351f2009-07-02 00:11:17 -04003946# Check whether --enable-verbose-makecmds was given.
3947if test "${enable_verbose_makecmds+set}" = set; then
3948 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
3949then
3950 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3951$as_echo "Disabling verbose make commands" >&6; }
3952 E=@echo
3953 Q=@
3954else
3955 { $as_echo "$as_me:$LINENO: result: Enabling verbose make commands" >&5
3956$as_echo "Enabling verbose make commands" >&6; }
3957 E=@\\#
3958 Q=
3959fi
3960
3961else
3962 { $as_echo "$as_me:$LINENO: result: Disabling verbose make commands" >&5
3963$as_echo "Disabling verbose make commands" >&6; }
3964E=@echo
3965Q=@
3966
3967fi
3968
3969
3970
Theodore Ts'oe1052142006-10-21 21:46:47 -04003971# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003972if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003973 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003974then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003975 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3976$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003978 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003979#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003980_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003981
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003982 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3983$as_echo "Enabling compression support" >&6; }
3984 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3985$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003986fi
3987
3988else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003989 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3990$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003991
Theodore Ts'oe1052142006-10-21 21:46:47 -04003992fi
3993
3994# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003995if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003996 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003997then
3998 HTREE_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003999 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
4000$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004001else
4002 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004003 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004004#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004005_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004006
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004007 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
4008$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004009fi
4010
4011else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004012 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004014#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004015_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004016
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004017{ $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
4018$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004019
Theodore Ts'oe1052142006-10-21 21:46:47 -04004020fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004021
Theodore Ts'oe1052142006-10-21 21:46:47 -04004022
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004023E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004024LDFLAG_DYNAMIC=
4025PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004026# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004027if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004028 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004029then
4030 ELF_CMT=#
4031 MAKEFILE_ELF=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004032 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4033$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004034else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004035 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004036 ELF_CMT=
4037 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004038 case "$host_os" in
4039 solaris2.*)
4040 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4041 ;;
4042 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004043 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004044 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004045 PRIVATE_LIBS_CMT=#
4046 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004047 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4048$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004049fi
4050
4051else
4052 MAKEFILE_ELF=/dev/null
4053ELF_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004054{ $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4055$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004056
Theodore Ts'oe1052142006-10-21 21:46:47 -04004057fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004059
Theodore Ts'oe1052142006-10-21 21:46:47 -04004060
4061# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004062if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004063 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004064then
4065 BSDLIB_CMT=#
4066 MAKEFILE_BSDLIB=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004067 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4068$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004069else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004070 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004071 BSDLIB_CMT=
4072 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004073 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004074 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004075 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004076 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4077 LIB_EXT=.dylib
4078 ;;
4079 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004080 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4081$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004082fi
4083
4084else
4085 MAKEFILE_BSDLIB=/dev/null
4086BSDLIB_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004087{ $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4088$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004091
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004092
Theodore Ts'oe1052142006-10-21 21:46:47 -04004093
4094# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004095if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004096 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097then
4098 PROFILE_CMT=#
4099 MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004100 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4101$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004102else
4103 PROFILE_CMT=
4104 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4105 PROFILED_LIB_EXT=_p.a
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004106 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4107$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004108fi
4109
4110else
4111 PROFILE_CMT=#
4112MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004113{ $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4114$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004115
Theodore Ts'oe1052142006-10-21 21:46:47 -04004116fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004117
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004118
Theodore Ts'oe1052142006-10-21 21:46:47 -04004119
4120# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004121if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004122 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004123then
4124 CHECKER_CMT=#
4125 MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004126 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4127$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004128else
4129 CHECKER_CMT=
4130 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004131 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4132$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004133fi
4134
4135else
4136 CHECKER_CMT=#
4137MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004138{ $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4139$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004140
Theodore Ts'oe1052142006-10-21 21:46:47 -04004141fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004142
4143
4144
4145
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004146
Theodore Ts'oe1052142006-10-21 21:46:47 -04004147
Theodore Ts'o55da9872008-09-02 23:12:38 -04004148
4149
Theodore Ts'oe1052142006-10-21 21:46:47 -04004150# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004151if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004152 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004153then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004154 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4155$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004156else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004157 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004158#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004159_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004160
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004161 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4162$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004163fi
4164
4165else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004166 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4167$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004168
Theodore Ts'oe1052142006-10-21 21:46:47 -04004169fi
4170
4171# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004172if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004173 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004174then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004175 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4176$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004177else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004178 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004179#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004180_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004181
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004182 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4183$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004184fi
4185
4186else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004187 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4188$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004189
Theodore Ts'oe1052142006-10-21 21:46:47 -04004190fi
4191
4192# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004193if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004194 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004195then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004196 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4197$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004198 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004199else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004200 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004201 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004202#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004203_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004204
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004205 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4206$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004207fi
4208
4209else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004210 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4211$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004212cat >>confdefs.h <<\_ACEOF
4213#define CONFIG_TESTIO_DEBUG 1
4214_ACEOF
4215
4216TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004217
Theodore Ts'oe1052142006-10-21 21:46:47 -04004218fi
4219
Theodore Ts'oaf773652008-09-01 11:27:27 -04004220
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004221
4222
4223if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4226set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4228$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004229if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004230 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004231else
4232 case $PKG_CONFIG in
4233 [\\/]* | ?:[\\/]*)
4234 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4235 ;;
4236 *)
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4244 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004246 break 2
4247 fi
4248done
4249done
4250IFS=$as_save_IFS
4251
4252 ;;
4253esac
4254fi
4255PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4256if test -n "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004257 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4258$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004259else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004260 { $as_echo "$as_me:$LINENO: result: no" >&5
4261$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004262fi
4263
4264
4265fi
4266if test -z "$ac_cv_path_PKG_CONFIG"; then
4267 ac_pt_PKG_CONFIG=$PKG_CONFIG
4268 # Extract the first word of "pkg-config", so it can be a program name with args.
4269set dummy pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4271$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004272if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004273 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004274else
4275 case $ac_pt_PKG_CONFIG in
4276 [\\/]* | ?:[\\/]*)
4277 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4278 ;;
4279 *)
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283 IFS=$as_save_IFS
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4287 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004289 break 2
4290 fi
4291done
4292done
4293IFS=$as_save_IFS
4294
4295 ;;
4296esac
4297fi
4298ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4299if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4301$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004302else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004303 { $as_echo "$as_me:$LINENO: result: no" >&5
4304$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004305fi
4306
4307 if test "x$ac_pt_PKG_CONFIG" = x; then
4308 PKG_CONFIG=""
4309 else
4310 case $cross_compiling:$ac_tool_warned in
4311yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004312{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004314ac_tool_warned=yes ;;
4315esac
4316 PKG_CONFIG=$ac_pt_PKG_CONFIG
4317 fi
4318else
4319 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4320fi
4321
4322fi
4323if test -n "$PKG_CONFIG"; then
4324 _pkg_min_version=0.9.0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004325 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4326$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004327 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004328 { $as_echo "$as_me:$LINENO: result: yes" >&5
4329$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004330 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004331 { $as_echo "$as_me:$LINENO: result: no" >&5
4332$as_echo "no" >&6; }
4333 PKG_CONFIG=""
4334 fi
4335
4336fi
4337LIBUUID=
4338DEPLIBUUID=
4339STATIC_LIBUUID=
4340DEPSTATIC_LIBUUID=
4341PROFILED_LIBUUID=
4342DEPPROFILED_LIBUUID=
4343UUID_CMT=
4344# Check whether --enable-libuuid was given.
4345if test "${enable_libuuid+set}" = set; then
4346 enableval=$enable_libuuid; if test "$enableval" = "no"
4347then
4348 if test -z "$PKG_CONFIG"; then
4349 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4350$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4351 { (exit 1); exit 1; }; }
4352 fi
4353
4354 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4355$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4356if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4357 $as_echo_n "(cached) " >&6
4358else
4359 ac_check_lib_save_LIBS=$LIBS
4360LIBS="-luuid $LIBUUID $LIBS"
4361cat >conftest.$ac_ext <<_ACEOF
4362/* confdefs.h. */
4363_ACEOF
4364cat confdefs.h >>conftest.$ac_ext
4365cat >>conftest.$ac_ext <<_ACEOF
4366/* end confdefs.h. */
4367
4368/* Override any GCC internal prototype to avoid an error.
4369 Use char because int might match the return type of a GCC
4370 builtin and then its argument prototype would still apply. */
4371#ifdef __cplusplus
4372extern "C"
4373#endif
4374char uuid_generate ();
4375int
4376main ()
4377{
4378return uuid_generate ();
4379 ;
4380 return 0;
4381}
4382_ACEOF
4383rm -f conftest.$ac_objext conftest$ac_exeext
4384if { (ac_try="$ac_link"
4385case "(($ac_try" in
4386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387 *) ac_try_echo=$ac_try;;
4388esac
4389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4390$as_echo "$ac_try_echo") >&5
4391 (eval "$ac_link") 2>conftest.er1
4392 ac_status=$?
4393 grep -v '^ *+' conftest.er1 >conftest.err
4394 rm -f conftest.er1
4395 cat conftest.err >&5
4396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397 (exit $ac_status); } && {
4398 test -z "$ac_c_werror_flag" ||
4399 test ! -s conftest.err
4400 } && test -s conftest$ac_exeext && {
4401 test "$cross_compiling" = yes ||
4402 $as_test_x conftest$ac_exeext
4403 }; then
4404 ac_cv_lib_uuid_uuid_generate=yes
4405else
4406 $as_echo "$as_me: failed program was:" >&5
4407sed 's/^/| /' conftest.$ac_ext >&5
4408
4409 ac_cv_lib_uuid_uuid_generate=no
4410fi
4411
4412rm -rf conftest.dSYM
4413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4414 conftest$ac_exeext conftest.$ac_ext
4415LIBS=$ac_check_lib_save_LIBS
4416fi
4417{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4418$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4419if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4420 LIBUUID=`$PKG_CONFIG --libs uuid`;
4421 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4422else
4423 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4424$as_echo "$as_me: error: external uuid library not found" >&2;}
4425 { (exit 1); exit 1; }; }
4426fi
4427
4428 UUID_CMT=#
4429 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4430$as_echo "Disabling private uuid library" >&6; }
4431else
4432 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4433 DEPLIBUUID=$LIBUUID
4434 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4435 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4436 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4437 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4438 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4439$as_echo "Enabling private uuid library" >&6; }
4440fi
4441
4442else
4443 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4444DEPLIBUUID=$LIBUUID
4445STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4446DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4447PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4448DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4449{ $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4450$as_echo "Enabling private uuid library by default" >&6; }
4451
4452fi
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4464 if test -n "$ac_tool_prefix"; then
4465 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4466set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4467{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4468$as_echo_n "checking for $ac_word... " >&6; }
4469if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4470 $as_echo_n "(cached) " >&6
4471else
4472 case $PKG_CONFIG in
4473 [\\/]* | ?:[\\/]*)
4474 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4475 ;;
4476 *)
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478for as_dir in $PATH
4479do
4480 IFS=$as_save_IFS
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 break 2
4487 fi
4488done
4489done
4490IFS=$as_save_IFS
4491
4492 ;;
4493esac
4494fi
4495PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4496if test -n "$PKG_CONFIG"; then
4497 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4498$as_echo "$PKG_CONFIG" >&6; }
4499else
4500 { $as_echo "$as_me:$LINENO: result: no" >&5
4501$as_echo "no" >&6; }
4502fi
4503
4504
4505fi
4506if test -z "$ac_cv_path_PKG_CONFIG"; then
4507 ac_pt_PKG_CONFIG=$PKG_CONFIG
4508 # Extract the first word of "pkg-config", so it can be a program name with args.
4509set dummy pkg-config; ac_word=$2
4510{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
4512if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4513 $as_echo_n "(cached) " >&6
4514else
4515 case $ac_pt_PKG_CONFIG in
4516 [\\/]* | ?:[\\/]*)
4517 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4518 ;;
4519 *)
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4528 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4530 fi
4531done
4532done
4533IFS=$as_save_IFS
4534
4535 ;;
4536esac
4537fi
4538ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4539if test -n "$ac_pt_PKG_CONFIG"; then
4540 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4541$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4542else
4543 { $as_echo "$as_me:$LINENO: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547 if test "x$ac_pt_PKG_CONFIG" = x; then
4548 PKG_CONFIG=""
4549 else
4550 case $cross_compiling:$ac_tool_warned in
4551yes:)
4552{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4554ac_tool_warned=yes ;;
4555esac
4556 PKG_CONFIG=$ac_pt_PKG_CONFIG
4557 fi
4558else
4559 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4560fi
4561
4562fi
4563if test -n "$PKG_CONFIG"; then
4564 _pkg_min_version=0.9.0
4565 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4566$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4567 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4568 { $as_echo "$as_me:$LINENO: result: yes" >&5
4569$as_echo "yes" >&6; }
4570 else
4571 { $as_echo "$as_me:$LINENO: result: no" >&5
4572$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004573 PKG_CONFIG=""
4574 fi
4575
4576fi
4577LIBBLKID=
4578DEPLIBBLKID=
4579STATIC_LIBBLKID=
4580DEPSTATIC_LIBBLKID=
4581PROFILED_LIBBLKID=
4582DEPPROFILED_LIBBLKID=
4583BLKID_CMT=
4584# Check whether --enable-libblkid was given.
4585if test "${enable_libblkid+set}" = set; then
4586 enableval=$enable_libblkid; if test "$enableval" = "no"
4587then
4588 if test -z "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004589 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4590$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004591 { (exit 1); exit 1; }; }
4592 fi
4593
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004594 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4595$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004596if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004597 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004598else
4599 ac_check_lib_save_LIBS=$LIBS
4600LIBS="-lblkid $LIBBLKID $LIBS"
4601cat >conftest.$ac_ext <<_ACEOF
4602/* confdefs.h. */
4603_ACEOF
4604cat confdefs.h >>conftest.$ac_ext
4605cat >>conftest.$ac_ext <<_ACEOF
4606/* end confdefs.h. */
4607
4608/* Override any GCC internal prototype to avoid an error.
4609 Use char because int might match the return type of a GCC
4610 builtin and then its argument prototype would still apply. */
4611#ifdef __cplusplus
4612extern "C"
4613#endif
4614char blkid_get_cache ();
4615int
4616main ()
4617{
4618return blkid_get_cache ();
4619 ;
4620 return 0;
4621}
4622_ACEOF
4623rm -f conftest.$ac_objext conftest$ac_exeext
4624if { (ac_try="$ac_link"
4625case "(($ac_try" in
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4628esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630$as_echo "$ac_try_echo") >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004631 (eval "$ac_link") 2>conftest.er1
4632 ac_status=$?
4633 grep -v '^ *+' conftest.er1 >conftest.err
4634 rm -f conftest.er1
4635 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004637 (exit $ac_status); } && {
4638 test -z "$ac_c_werror_flag" ||
4639 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004640 } && test -s conftest$ac_exeext && {
4641 test "$cross_compiling" = yes ||
4642 $as_test_x conftest$ac_exeext
4643 }; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004644 ac_cv_lib_blkid_blkid_get_cache=yes
4645else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004646 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004647sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 ac_cv_lib_blkid_blkid_get_cache=no
4650fi
4651
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004652rm -rf conftest.dSYM
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4654 conftest$ac_exeext conftest.$ac_ext
4655LIBS=$ac_check_lib_save_LIBS
4656fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4658$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4659if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004660 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4661 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4662else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004663 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4664$as_echo "$as_me: error: external blkid library not found" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004665 { (exit 1); exit 1; }; }
4666fi
4667
4668 BLKID_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004669 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4670$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004671else
4672 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4673 DEPLIBBLKID=$LIBBLKID
4674 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4675 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4676 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4677 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4678 cat >>confdefs.h <<\_ACEOF
4679#define CONFIG_BUILD_FINDFS 1
4680_ACEOF
4681
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004682 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4683$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004684fi
4685
4686else
4687 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4688DEPLIBBLKID=$LIBBLKID
4689STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4690DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4691PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4692DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4693cat >>confdefs.h <<\_ACEOF
4694#define CONFIG_BUILD_FINDFS 1
4695_ACEOF
4696
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004697{ $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4698$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004699
4700fi
4701
4702
4703
4704
4705
4706
4707
4708
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004710if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004711 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004712then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004713 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4714$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004715 DEBUGFS_CMT="#"
4716else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004717 DEBUGFS_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004718 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4719$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004720fi
4721
4722else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004723 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4724$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004725DEBUGFS_CMT=
4726
Theodore Ts'oe1052142006-10-21 21:46:47 -04004727fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004728
Theodore Ts'oe1052142006-10-21 21:46:47 -04004729
4730# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004731if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004732 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004733then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004734 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4735$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004736 IMAGER_CMT="#"
4737else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004738 IMAGER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004739 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4740$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004741fi
4742
4743else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004744 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4745$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004746IMAGER_CMT=
4747
Theodore Ts'oe1052142006-10-21 21:46:47 -04004748fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004749
Theodore Ts'oe1052142006-10-21 21:46:47 -04004750
4751# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004752if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004753 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004754then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004755 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4756$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004757 RESIZER_CMT="#"
4758else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004759 RESIZER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004760 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4761$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004762fi
4763
4764else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004765 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4766$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004767RESIZER_CMT=
4768
Theodore Ts'oe1052142006-10-21 21:46:47 -04004769fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004770
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004773if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004774 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004775then
4776 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004777 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4778$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004779else
4780 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4782$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004783fi
4784
4785else
4786 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004787 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004788 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4790$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004791 ;;
4792 *)
4793 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004794 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4795$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004796esac
4797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004799
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004800
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801
4802# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004803if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004804 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004805then
4806 E2INITRD_PROG='' E2INITRD_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004807 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4808$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004809else
4810 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004811 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4812$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004813fi
4814
4815else
4816 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004817{ $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4818$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004819
Theodore Ts'oe1052142006-10-21 21:46:47 -04004820fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004821
4822
Theodore Ts'oe1052142006-10-21 21:46:47 -04004823
Theodore Ts'o32493942007-12-31 10:45:01 -05004824# Check whether --enable-tls was given.
4825if test "${enable_tls+set}" = set; then
4826 enableval=$enable_tls; if test "$enableval" = "no"
4827then
4828 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004829 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4830$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004831else
4832 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004833 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4834$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004835fi
4836
4837else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004838 if test -n "$WITH_DIET_LIBC"
4839then
4840 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004841 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4842$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004843else
4844 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004845 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4846$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004847fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004848
4849fi
4850
4851if test "$try_tls" = "yes"
4852then
4853
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004854 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4855$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004856 if test "${ac_cv_tls+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004857 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05004858else
4859
4860 ax_tls_keywords="__thread __declspec(thread) none"
4861 for ax_tls_keyword in $ax_tls_keywords; do
4862 case $ax_tls_keyword in
4863 none) ac_cv_tls=none ; break ;;
4864 *)
4865 cat >conftest.$ac_ext <<_ACEOF
4866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#include <stdlib.h>
4872 static void
4873 foo(void) {
4874 static $ax_tls_keyword int bar;
4875 exit(1);
4876 }
4877int
4878main ()
4879{
4880
4881 ;
4882 return 0;
4883}
4884_ACEOF
4885rm -f conftest.$ac_objext
4886if { (ac_try="$ac_compile"
4887case "(($ac_try" in
4888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4890esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4892$as_echo "$ac_try_echo") >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004893 (eval "$ac_compile") 2>conftest.er1
4894 ac_status=$?
4895 grep -v '^ *+' conftest.er1 >conftest.err
4896 rm -f conftest.er1
4897 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004899 (exit $ac_status); } && {
4900 test -z "$ac_c_werror_flag" ||
4901 test ! -s conftest.err
4902 } && test -s conftest.$ac_objext; then
4903 ac_cv_tls=$ax_tls_keyword ; break
4904else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004905 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004906sed 's/^/| /' conftest.$ac_ext >&5
4907
4908 ac_cv_tls=none
4909
4910fi
4911
4912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 esac
4914 done
4915
4916fi
4917
4918
4919 if test "$ac_cv_tls" != "none"; then
4920
4921cat >>confdefs.h <<_ACEOF
4922#define TLS $ac_cv_tls
4923_ACEOF
4924
4925 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004926 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4927$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004928
4929fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004930# Check whether --enable-uuidd was given.
4931if test "${enable_uuidd+set}" = set; then
4932 enableval=$enable_uuidd; if test "$enableval" = "no"
4933then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004934 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4935$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004936 UUIDD_CMT="#"
4937else
4938 cat >>confdefs.h <<\_ACEOF
4939#define USE_UUIDD 1
4940_ACEOF
4941
4942 UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004943 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4944$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004945fi
4946
4947else
4948 cat >>confdefs.h <<\_ACEOF
4949#define USE_UUIDD 1
4950_ACEOF
4951
4952UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004953{ $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4954$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004955
4956fi
4957
4958
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004959MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4960
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004961GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004962PACKAGE=e2fsprogs
4963VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004964VERSION=0.14.1
4965cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004966#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004967_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004969cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004970#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004972
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004973
4974
4975
4976
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004977{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4978$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4979set x ${MAKE-make}
4980ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004981if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004982 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004984 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004986all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004988_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004989# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004990case `${MAKE-make} -f conftest.make 2>/dev/null` in
4991 *@@@%%%=?*=@@@%%%*)
4992 eval ac_cv_prog_make_${ac_make}_set=yes;;
4993 *)
4994 eval ac_cv_prog_make_${ac_make}_set=no;;
4995esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004996rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004997fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004998if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004999 { $as_echo "$as_me:$LINENO: result: yes" >&5
5000$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005001 SET_MAKE=
5002else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005003 { $as_echo "$as_me:$LINENO: result: no" >&5
5004$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005005 SET_MAKE="MAKE=${MAKE-make}"
5006fi
5007
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005008# Find a good install program. We prefer a C program (faster),
5009# so one script is as good as another. But avoid the broken or
5010# incompatible versions:
5011# SysV /etc/install, /usr/sbin/install
5012# SunOS /usr/etc/install
5013# IRIX /sbin/install
5014# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005015# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005016# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5017# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5018# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005020# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005021# Reject install programs that cannot install multiple files.
5022{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5023$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005024if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005025if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005027else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029for as_dir in $PATH
5030do
5031 IFS=$as_save_IFS
5032 test -z "$as_dir" && as_dir=.
5033 # Account for people who put trailing slashes in PATH elements.
5034case $as_dir/ in
5035 ./ | .// | /cC/* | \
5036 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5037 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5038 /usr/ucb/* ) ;;
5039 *)
5040 # OSF1 and SCO ODT 3.0 have their own names for install.
5041 # Don't use installbsd from OSF since it installs stuff as root
5042 # by default.
5043 for ac_prog in ginstall scoinst install; do
5044 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005045 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 -04005046 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005047 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005048 # AIX install. It has an incompatible calling convention.
5049 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 elif test $ac_prog = install &&
5051 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5052 # program-specific install script used by HP pwplus--don't use.
5053 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005054 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055 rm -rf conftest.one conftest.two conftest.dir
5056 echo one > conftest.one
5057 echo two > conftest.two
5058 mkdir conftest.dir
5059 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5060 test -s conftest.one && test -s conftest.two &&
5061 test -s conftest.dir/conftest.one &&
5062 test -s conftest.dir/conftest.two
5063 then
5064 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5065 break 3
5066 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005067 fi
5068 fi
5069 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005070 done
5071 ;;
5072esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005073
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005074done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005075IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005076
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005077rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005078
5079fi
5080 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005081 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005082 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005083 # As a last resort, use the slow shell script. Don't cache a
5084 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005085 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005088 fi
5089fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005090{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5091$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005092
5093# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5094# It thinks the first close brace ends the variable substitution.
5095test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005097test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005098
5099test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5100
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005102 MKINSTALLDIRS=
5103 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005104 case "$ac_aux_dir" in
5105 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5106 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5107 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005108 fi
5109 if test -z "$MKINSTALLDIRS"; then
5110 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5111 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005112
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005113
5114
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005115 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5116$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005117 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005118if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005119 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005120else
5121 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005122fi
5123
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005124 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5125$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005126
5127
5128
5129
5130
5131
5132# Prepare PATH_SEPARATOR.
5133# The user is always right.
5134if test "${PATH_SEPARATOR+set}" != set; then
5135 echo "#! /bin/sh" >conf$$.sh
5136 echo "exit 0" >>conf$$.sh
5137 chmod +x conf$$.sh
5138 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5139 PATH_SEPARATOR=';'
5140 else
5141 PATH_SEPARATOR=:
5142 fi
5143 rm -f conf$$.sh
5144fi
5145
5146# Find out how to test for executable files. Don't use a zero-byte file,
5147# as systems may use methods other than mode bits to determine executability.
5148cat >conf$$.file <<_ASEOF
5149#! /bin/sh
5150exit 0
5151_ASEOF
5152chmod +x conf$$.file
5153if test -x conf$$.file >/dev/null 2>&1; then
5154 ac_executable_p="test -x"
5155else
5156 ac_executable_p="test -f"
5157fi
5158rm -f conf$$.file
5159
5160# Extract the first word of "msgfmt", so it can be a program name with args.
5161set dummy msgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5163$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164if test "${ac_cv_path_MSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005166else
5167 case "$MSGFMT" in
5168 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5170 ;;
5171 *)
5172 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5173 for ac_dir in $PATH; do
5174 IFS="$ac_save_IFS"
5175 test -z "$ac_dir" && ac_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5178 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5179 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5180 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5181 break 2
5182 fi
5183 fi
5184 done
5185 done
5186 IFS="$ac_save_IFS"
5187 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5188 ;;
5189esac
5190fi
5191MSGFMT="$ac_cv_path_MSGFMT"
5192if test "$MSGFMT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005193 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5194$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005195else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005196 { $as_echo "$as_me:$LINENO: result: no" >&5
5197$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005198fi
5199
5200 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5201set dummy gmsgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204if test "${ac_cv_path_GMSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005205 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005206else
5207 case $GMSGFMT in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5210 ;;
5211 *)
5212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5213for as_dir in $PATH
5214do
5215 IFS=$as_save_IFS
5216 test -z "$as_dir" && as_dir=.
5217 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005218 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 -05005219 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005221 break 2
5222 fi
5223done
5224done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005225IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005226
5227 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5228 ;;
5229esac
5230fi
5231GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005232if test -n "$GMSGFMT"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5234$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005235else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005236 { $as_echo "$as_me:$LINENO: result: no" >&5
5237$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005238fi
5239
5240
5241
Theodore Ts'oe1052142006-10-21 21:46:47 -04005242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005243# Prepare PATH_SEPARATOR.
5244# The user is always right.
5245if test "${PATH_SEPARATOR+set}" != set; then
5246 echo "#! /bin/sh" >conf$$.sh
5247 echo "exit 0" >>conf$$.sh
5248 chmod +x conf$$.sh
5249 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5250 PATH_SEPARATOR=';'
5251 else
5252 PATH_SEPARATOR=:
5253 fi
5254 rm -f conf$$.sh
5255fi
5256
5257# Find out how to test for executable files. Don't use a zero-byte file,
5258# as systems may use methods other than mode bits to determine executability.
5259cat >conf$$.file <<_ASEOF
5260#! /bin/sh
5261exit 0
5262_ASEOF
5263chmod +x conf$$.file
5264if test -x conf$$.file >/dev/null 2>&1; then
5265 ac_executable_p="test -x"
5266else
5267 ac_executable_p="test -f"
5268fi
5269rm -f conf$$.file
5270
5271# Extract the first word of "xgettext", so it can be a program name with args.
5272set dummy xgettext; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005273{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5274$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275if test "${ac_cv_path_XGETTEXT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005276 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005277else
5278 case "$XGETTEXT" in
5279 [\\/]* | ?:[\\/]*)
5280 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5281 ;;
5282 *)
5283 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5284 for ac_dir in $PATH; do
5285 IFS="$ac_save_IFS"
5286 test -z "$ac_dir" && ac_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5289 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5290 (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
5291 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5292 break 2
5293 fi
5294 fi
5295 done
5296 done
5297 IFS="$ac_save_IFS"
5298 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5299 ;;
5300esac
5301fi
5302XGETTEXT="$ac_cv_path_XGETTEXT"
5303if test "$XGETTEXT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5305$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005306else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005307 { $as_echo "$as_me:$LINENO: result: no" >&5
5308$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005309fi
5310
5311 rm -f messages.po
5312
5313
5314# Prepare PATH_SEPARATOR.
5315# The user is always right.
5316if test "${PATH_SEPARATOR+set}" != set; then
5317 echo "#! /bin/sh" >conf$$.sh
5318 echo "exit 0" >>conf$$.sh
5319 chmod +x conf$$.sh
5320 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5321 PATH_SEPARATOR=';'
5322 else
5323 PATH_SEPARATOR=:
5324 fi
5325 rm -f conf$$.sh
5326fi
5327
5328# Find out how to test for executable files. Don't use a zero-byte file,
5329# as systems may use methods other than mode bits to determine executability.
5330cat >conf$$.file <<_ASEOF
5331#! /bin/sh
5332exit 0
5333_ASEOF
5334chmod +x conf$$.file
5335if test -x conf$$.file >/dev/null 2>&1; then
5336 ac_executable_p="test -x"
5337else
5338 ac_executable_p="test -f"
5339fi
5340rm -f conf$$.file
5341
5342# Extract the first word of "msgmerge", so it can be a program name with args.
5343set dummy msgmerge; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5345$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005346if test "${ac_cv_path_MSGMERGE+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005347 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005348else
5349 case "$MSGMERGE" in
5350 [\\/]* | ?:[\\/]*)
5351 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5352 ;;
5353 *)
5354 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5355 for ac_dir in $PATH; do
5356 IFS="$ac_save_IFS"
5357 test -z "$ac_dir" && ac_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5360 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5361 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5362 break 2
5363 fi
5364 fi
5365 done
5366 done
5367 IFS="$ac_save_IFS"
5368 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5369 ;;
5370esac
5371fi
5372MSGMERGE="$ac_cv_path_MSGMERGE"
5373if test "$MSGMERGE" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005374 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5375$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005377 { $as_echo "$as_me:$LINENO: result: no" >&5
5378$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005379fi
5380
5381
5382 if test "$GMSGFMT" != ":"; then
5383 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5384 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5385 : ;
5386 else
5387 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5389$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005390 GMSGFMT=":"
5391 fi
5392 fi
5393
5394 if test "$XGETTEXT" != ":"; then
5395 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5396 (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
5397 : ;
5398 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5400$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005401 XGETTEXT=":"
5402 fi
5403 rm -f messages.po
5404 fi
5405
Theodore Ts'oe1052142006-10-21 21:46:47 -04005406 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005407
5408
5409if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5411set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005414if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005415 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005416else
5417 if test -n "$RANLIB"; then
5418 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5419else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005426 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 -05005427 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005429 break 2
5430 fi
5431done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005432done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005433IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005434
5435fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005436fi
5437RANLIB=$ac_cv_prog_RANLIB
5438if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005439 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5440$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005441else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005442 { $as_echo "$as_me:$LINENO: result: no" >&5
5443$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005445
Theodore Ts'oe1052142006-10-21 21:46:47 -04005446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005447fi
5448if test -z "$ac_cv_prog_RANLIB"; then
5449 ac_ct_RANLIB=$RANLIB
5450 # Extract the first word of "ranlib", so it can be a program name with args.
5451set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5453$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005454if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005455 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005456else
5457 if test -n "$ac_ct_RANLIB"; then
5458 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5459else
5460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461for as_dir in $PATH
5462do
5463 IFS=$as_save_IFS
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005466 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 -05005467 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005469 break 2
5470 fi
5471done
5472done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005473IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005475fi
5476fi
5477ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5478if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005479 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5480$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005481else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005482 { $as_echo "$as_me:$LINENO: result: no" >&5
5483$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484fi
5485
Theodore Ts'oe1052142006-10-21 21:46:47 -04005486 if test "x$ac_ct_RANLIB" = x; then
5487 RANLIB=":"
5488 else
5489 case $cross_compiling:$ac_tool_warned in
5490yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005491{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5492$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04005493ac_tool_warned=yes ;;
5494esac
5495 RANLIB=$ac_ct_RANLIB
5496 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005497else
5498 RANLIB="$ac_cv_prog_RANLIB"
5499fi
5500
5501
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005502 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5503$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005504if test "${ac_cv_lib_cposix_strerror+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005505 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005506else
5507 ac_check_lib_save_LIBS=$LIBS
5508LIBS="-lcposix $LIBS"
5509cat >conftest.$ac_ext <<_ACEOF
5510/* confdefs.h. */
5511_ACEOF
5512cat confdefs.h >>conftest.$ac_ext
5513cat >>conftest.$ac_ext <<_ACEOF
5514/* end confdefs.h. */
5515
Theodore Ts'oe1052142006-10-21 21:46:47 -04005516/* Override any GCC internal prototype to avoid an error.
5517 Use char because int might match the return type of a GCC
5518 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519#ifdef __cplusplus
5520extern "C"
5521#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005522char strerror ();
5523int
5524main ()
5525{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005526return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005527 ;
5528 return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005532if { (ac_try="$ac_link"
5533case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5538$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005539 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005540 ac_status=$?
5541 grep -v '^ *+' conftest.er1 >conftest.err
5542 rm -f conftest.er1
5543 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005545 (exit $ac_status); } && {
5546 test -z "$ac_c_werror_flag" ||
5547 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005548 } && test -s conftest$ac_exeext && {
5549 test "$cross_compiling" = yes ||
5550 $as_test_x conftest$ac_exeext
5551 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005552 ac_cv_lib_cposix_strerror=yes
5553else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005554 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555sed 's/^/| /' conftest.$ac_ext >&5
5556
Theodore Ts'oe1052142006-10-21 21:46:47 -04005557 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005558fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005559
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005560rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005561rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562 conftest$ac_exeext conftest.$ac_ext
5563LIBS=$ac_check_lib_save_LIBS
5564fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005565{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5566$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5567if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005568 LIBS="$LIBS -lcposix"
5569fi
5570
5571
5572
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5574$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005575if test "${ac_cv_c_const+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005577else
5578 cat >conftest.$ac_ext <<_ACEOF
5579/* confdefs.h. */
5580_ACEOF
5581cat confdefs.h >>conftest.$ac_ext
5582cat >>conftest.$ac_ext <<_ACEOF
5583/* end confdefs.h. */
5584
5585int
5586main ()
5587{
5588/* FIXME: Include the comments suggested by Paul. */
5589#ifndef __cplusplus
5590 /* Ultrix mips cc rejects this. */
5591 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005592 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005594 char const *const *pcpcc;
5595 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005596 /* NEC SVR4.0.2 mips cc rejects this. */
5597 struct point {int x, y;};
5598 static struct point const zero = {0,0};
5599 /* AIX XL C 1.02.0.0 rejects this.
5600 It does not let you subtract one const X* pointer from another in
5601 an arm of an if-expression whose if-part is not a constant
5602 expression */
5603 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005604 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005606 ++pcpcc;
5607 ppc = (char**) pcpcc;
5608 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005609 { /* SCO 3.2v4 cc rejects this. */
5610 char *t;
5611 char const *s = 0 ? (char *) 0 : (char const *) 0;
5612
5613 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005614 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005615 }
5616 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5617 int x[] = {25, 17};
5618 const int *foo = &x[0];
5619 ++foo;
5620 }
5621 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5622 typedef const int *iptr;
5623 iptr p = 0;
5624 ++p;
5625 }
5626 { /* AIX XL C 1.02.0.0 rejects this saying
5627 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5628 struct s { int j; const int *ap[3]; };
5629 struct s *b; b->j = 5;
5630 }
5631 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5632 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005633 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005634 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005635 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636#endif
5637
5638 ;
5639 return 0;
5640}
5641_ACEOF
5642rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005643if { (ac_try="$ac_compile"
5644case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5649$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005650 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005651 ac_status=$?
5652 grep -v '^ *+' conftest.er1 >conftest.err
5653 rm -f conftest.er1
5654 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005656 (exit $ac_status); } && {
5657 test -z "$ac_c_werror_flag" ||
5658 test ! -s conftest.err
5659 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005660 ac_cv_c_const=yes
5661else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005662 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005663sed 's/^/| /' conftest.$ac_ext >&5
5664
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667
5668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005670{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5671$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672if test $ac_cv_c_const = no; then
5673
5674cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675#define const /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005676_ACEOF
5677
5678fi
5679
5680
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005681 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5682$as_echo_n "checking for signed... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005683if test "${bh_cv_c_signed+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005685else
5686 cat >conftest.$ac_ext <<_ACEOF
5687/* confdefs.h. */
5688_ACEOF
5689cat confdefs.h >>conftest.$ac_ext
5690cat >>conftest.$ac_ext <<_ACEOF
5691/* end confdefs.h. */
5692
5693int
5694main ()
5695{
5696signed char x;
5697 ;
5698 return 0;
5699}
5700_ACEOF
5701rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005702if { (ac_try="$ac_compile"
5703case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5708$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005709 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005719 bh_cv_c_signed=yes
5720else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005721 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005722sed 's/^/| /' conftest.$ac_ext >&5
5723
Theodore Ts'oe1052142006-10-21 21:46:47 -04005724 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726
5727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005728fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005729{ $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5730$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005731 if test $bh_cv_c_signed = no; then
5732
5733cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734#define signed /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735_ACEOF
5736
5737 fi
5738
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005739{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5740$as_echo_n "checking for inline... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005741if test "${ac_cv_c_inline+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005742 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005743else
5744 ac_cv_c_inline=no
5745for ac_kw in inline __inline__ __inline; do
5746 cat >conftest.$ac_ext <<_ACEOF
5747/* confdefs.h. */
5748_ACEOF
5749cat confdefs.h >>conftest.$ac_ext
5750cat >>conftest.$ac_ext <<_ACEOF
5751/* end confdefs.h. */
5752#ifndef __cplusplus
5753typedef int foo_t;
5754static $ac_kw foo_t static_foo () {return 0; }
5755$ac_kw foo_t foo () {return 0; }
5756#endif
5757
5758_ACEOF
5759rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005760if { (ac_try="$ac_compile"
5761case "(($ac_try" in
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5764esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5766$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005767 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005768 ac_status=$?
5769 grep -v '^ *+' conftest.er1 >conftest.err
5770 rm -f conftest.er1
5771 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005773 (exit $ac_status); } && {
5774 test -z "$ac_c_werror_flag" ||
5775 test ! -s conftest.err
5776 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005777 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005778else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005779 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005780sed 's/^/| /' conftest.$ac_ext >&5
5781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784
5785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5786 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787done
5788
5789fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5791$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005792
5793
5794case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005795 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796 *)
5797 case $ac_cv_c_inline in
5798 no) ac_val=;;
5799 *) ac_val=$ac_cv_c_inline;;
5800 esac
5801 cat >>confdefs.h <<_ACEOF
5802#ifndef __cplusplus
5803#define inline $ac_val
5804#endif
5805_ACEOF
5806 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005807esac
5808
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005809{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5810$as_echo_n "checking for off_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005811if test "${ac_cv_type_off_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005812 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005813else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005814 ac_cv_type_off_t=no
5815cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816/* confdefs.h. */
5817_ACEOF
5818cat confdefs.h >>conftest.$ac_ext
5819cat >>conftest.$ac_ext <<_ACEOF
5820/* end confdefs.h. */
5821$ac_includes_default
5822int
5823main ()
5824{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825if (sizeof (off_t))
5826 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005827 ;
5828 return 0;
5829}
5830_ACEOF
5831rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005832if { (ac_try="$ac_compile"
5833case "(($ac_try" in
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5836esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5838$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005839 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005840 ac_status=$?
5841 grep -v '^ *+' conftest.er1 >conftest.err
5842 rm -f conftest.er1
5843 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005849 cat >conftest.$ac_ext <<_ACEOF
5850/* confdefs.h. */
5851_ACEOF
5852cat confdefs.h >>conftest.$ac_ext
5853cat >>conftest.$ac_ext <<_ACEOF
5854/* end confdefs.h. */
5855$ac_includes_default
5856int
5857main ()
5858{
5859if (sizeof ((off_t)))
5860 return 0;
5861 ;
5862 return 0;
5863}
5864_ACEOF
5865rm -f conftest.$ac_objext
5866if { (ac_try="$ac_compile"
5867case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870esac
5871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5872$as_echo "$ac_try_echo") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5874 ac_status=$?
5875 grep -v '^ *+' conftest.er1 >conftest.err
5876 rm -f conftest.er1
5877 cat conftest.err >&5
5878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005884else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005885 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005887
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005888 ac_cv_type_off_t=yes
5889fi
5890
5891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892else
5893 $as_echo "$as_me: failed program was:" >&5
5894sed 's/^/| /' conftest.$ac_ext >&5
5895
5896
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005898
5899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005900fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005901{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5902$as_echo "$ac_cv_type_off_t" >&6; }
5903if test "x$ac_cv_type_off_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005904 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005906
5907cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005908#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005909_ACEOF
5910
5911fi
5912
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005913{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5914$as_echo_n "checking for size_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005915if test "${ac_cv_type_size_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005916 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005917else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005918 ac_cv_type_size_t=no
5919cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5924/* end confdefs.h. */
5925$ac_includes_default
5926int
5927main ()
5928{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005929if (sizeof (size_t))
5930 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931 ;
5932 return 0;
5933}
5934_ACEOF
5935rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005936if { (ac_try="$ac_compile"
5937case "(($ac_try" in
5938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5939 *) ac_try_echo=$ac_try;;
5940esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5942$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005943 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005944 ac_status=$?
5945 grep -v '^ *+' conftest.er1 >conftest.err
5946 rm -f conftest.er1
5947 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005949 (exit $ac_status); } && {
5950 test -z "$ac_c_werror_flag" ||
5951 test ! -s conftest.err
5952 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005953 cat >conftest.$ac_ext <<_ACEOF
5954/* confdefs.h. */
5955_ACEOF
5956cat confdefs.h >>conftest.$ac_ext
5957cat >>conftest.$ac_ext <<_ACEOF
5958/* end confdefs.h. */
5959$ac_includes_default
5960int
5961main ()
5962{
5963if (sizeof ((size_t)))
5964 return 0;
5965 ;
5966 return 0;
5967}
5968_ACEOF
5969rm -f conftest.$ac_objext
5970if { (ac_try="$ac_compile"
5971case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974esac
5975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5976$as_echo "$ac_try_echo") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_c_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest.$ac_objext; then
5987 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005988else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005989 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005990sed 's/^/| /' conftest.$ac_ext >&5
5991
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005992 ac_cv_type_size_t=yes
5993fi
5994
5995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5996else
5997 $as_echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006002
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006004fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006005{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6006$as_echo "$ac_cv_type_size_t" >&6; }
6007if test "x$ac_cv_type_size_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006008 :
6009else
6010
6011cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006012#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006013_ACEOF
6014
6015fi
6016
6017
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006018 { $as_echo "$as_me:$LINENO: checking for long long" >&5
6019$as_echo_n "checking for long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020if test "${ac_cv_type_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006021 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022else
6023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
6029long long ll = 1LL; int i = 63;
6030int
6031main ()
6032{
6033long long llmax = (long long) -1;
6034 return ll << i | ll >> i | llmax / ll | llmax % ll;
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006040if { (ac_try="$ac_link"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006047 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006053 (exit $ac_status); } && {
6054 test -z "$ac_c_werror_flag" ||
6055 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006056 } && test -s conftest$ac_exeext && {
6057 test "$cross_compiling" = yes ||
6058 $as_test_x conftest$ac_exeext
6059 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060 ac_cv_type_long_long=yes
6061else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006062 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063sed 's/^/| /' conftest.$ac_ext >&5
6064
Theodore Ts'oe1052142006-10-21 21:46:47 -04006065 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006068rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006069rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070 conftest$ac_exeext conftest.$ac_ext
6071fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006072{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6073$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074 if test $ac_cv_type_long_long = yes; then
6075
6076cat >>confdefs.h <<\_ACEOF
6077#define HAVE_LONG_LONG 1
6078_ACEOF
6079
6080 fi
6081
6082
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006083 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6084$as_echo_n "checking for long double... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085if test "${gt_cv_c_long_double+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006086 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006087else
6088 if test "$GCC" = yes; then
6089 gt_cv_c_long_double=yes
6090 else
6091 cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h. */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
6096/* end confdefs.h. */
6097
6098 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6099 long double foo = 0.0;
6100 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6101 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6102
6103int
6104main ()
6105{
6106
6107 ;
6108 return 0;
6109}
6110_ACEOF
6111rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006112if { (ac_try="$ac_compile"
6113case "(($ac_try" in
6114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6115 *) ac_try_echo=$ac_try;;
6116esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006117eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6118$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129 gt_cv_c_long_double=yes
6130else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006131 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132sed 's/^/| /' conftest.$ac_ext >&5
6133
Theodore Ts'oe1052142006-10-21 21:46:47 -04006134 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006136
6137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006138 fi
6139fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006140{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6141$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142 if test $gt_cv_c_long_double = yes; then
6143
6144cat >>confdefs.h <<\_ACEOF
6145#define HAVE_LONG_DOUBLE 1
6146_ACEOF
6147
6148 fi
6149
6150
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006151 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6152$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153if test "${gt_cv_c_wchar_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006154 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006155else
6156 cat >conftest.$ac_ext <<_ACEOF
6157/* confdefs.h. */
6158_ACEOF
6159cat confdefs.h >>conftest.$ac_ext
6160cat >>conftest.$ac_ext <<_ACEOF
6161/* end confdefs.h. */
6162#include <stddef.h>
6163 wchar_t foo = (wchar_t)'\0';
6164int
6165main ()
6166{
6167
6168 ;
6169 return 0;
6170}
6171_ACEOF
6172rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006173if { (ac_try="$ac_compile"
6174case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6179$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006180 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006181 ac_status=$?
6182 grep -v '^ *+' conftest.er1 >conftest.err
6183 rm -f conftest.er1
6184 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006186 (exit $ac_status); } && {
6187 test -z "$ac_c_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006190 gt_cv_c_wchar_t=yes
6191else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006192 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006193sed 's/^/| /' conftest.$ac_ext >&5
6194
Theodore Ts'oe1052142006-10-21 21:46:47 -04006195 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006196fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006197
6198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006200{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6201$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006202 if test $gt_cv_c_wchar_t = yes; then
6203
6204cat >>confdefs.h <<\_ACEOF
6205#define HAVE_WCHAR_T 1
6206_ACEOF
6207
6208 fi
6209
6210
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006211 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6212$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006213if test "${gt_cv_c_wint_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006214 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006215else
6216 cat >conftest.$ac_ext <<_ACEOF
6217/* confdefs.h. */
6218_ACEOF
6219cat confdefs.h >>conftest.$ac_ext
6220cat >>conftest.$ac_ext <<_ACEOF
6221/* end confdefs.h. */
6222#include <wchar.h>
6223 wint_t foo = (wchar_t)'\0';
6224int
6225main ()
6226{
6227
6228 ;
6229 return 0;
6230}
6231_ACEOF
6232rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006233if { (ac_try="$ac_compile"
6234case "(($ac_try" in
6235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6237esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6239$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006240 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006241 ac_status=$?
6242 grep -v '^ *+' conftest.er1 >conftest.err
6243 rm -f conftest.er1
6244 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006246 (exit $ac_status); } && {
6247 test -z "$ac_c_werror_flag" ||
6248 test ! -s conftest.err
6249 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006250 gt_cv_c_wint_t=yes
6251else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006252 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253sed 's/^/| /' conftest.$ac_ext >&5
6254
Theodore Ts'oe1052142006-10-21 21:46:47 -04006255 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006257
6258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006259fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006260{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6261$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006262 if test $gt_cv_c_wint_t = yes; then
6263
6264cat >>confdefs.h <<\_ACEOF
6265#define HAVE_WINT_T 1
6266_ACEOF
6267
6268 fi
6269
6270
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006271 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6272$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006274 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275else
6276 cat >conftest.$ac_ext <<_ACEOF
6277/* confdefs.h. */
6278_ACEOF
6279cat confdefs.h >>conftest.$ac_ext
6280cat >>conftest.$ac_ext <<_ACEOF
6281/* end confdefs.h. */
6282#include <sys/types.h>
6283#include <inttypes.h>
6284int
6285main ()
6286{
6287uintmax_t i = (uintmax_t) -1;
6288 ;
6289 return 0;
6290}
6291_ACEOF
6292rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006293if { (ac_try="$ac_compile"
6294case "(($ac_try" in
6295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6296 *) ac_try_echo=$ac_try;;
6297esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6299$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006300 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301 ac_status=$?
6302 grep -v '^ *+' conftest.er1 >conftest.err
6303 rm -f conftest.er1
6304 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006306 (exit $ac_status); } && {
6307 test -z "$ac_c_werror_flag" ||
6308 test ! -s conftest.err
6309 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310 jm_ac_cv_header_inttypes_h=yes
6311else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006312 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313sed 's/^/| /' conftest.$ac_ext >&5
6314
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006317
6318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006319fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006320{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6321$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006322 if test $jm_ac_cv_header_inttypes_h = yes; then
6323
6324cat >>confdefs.h <<_ACEOF
6325#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6326_ACEOF
6327
6328 fi
6329
6330
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006331 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6332$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333if test "${jm_ac_cv_header_stdint_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006334 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006335else
6336 cat >conftest.$ac_ext <<_ACEOF
6337/* confdefs.h. */
6338_ACEOF
6339cat confdefs.h >>conftest.$ac_ext
6340cat >>conftest.$ac_ext <<_ACEOF
6341/* end confdefs.h. */
6342#include <sys/types.h>
6343#include <stdint.h>
6344int
6345main ()
6346{
6347uintmax_t i = (uintmax_t) -1;
6348 ;
6349 return 0;
6350}
6351_ACEOF
6352rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006353if { (ac_try="$ac_compile"
6354case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6359$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361 ac_status=$?
6362 grep -v '^ *+' conftest.er1 >conftest.err
6363 rm -f conftest.er1
6364 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006366 (exit $ac_status); } && {
6367 test -z "$ac_c_werror_flag" ||
6368 test ! -s conftest.err
6369 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370 jm_ac_cv_header_stdint_h=yes
6371else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006372 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373sed 's/^/| /' conftest.$ac_ext >&5
6374
Theodore Ts'oe1052142006-10-21 21:46:47 -04006375 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006376fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006377
6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006379fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006380{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6381$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382 if test $jm_ac_cv_header_stdint_h = yes; then
6383
6384cat >>confdefs.h <<_ACEOF
6385#define HAVE_STDINT_H_WITH_UINTMAX 1
6386_ACEOF
6387
6388 fi
6389
6390
6391
6392
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006393 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6394$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395if test "${gt_cv_c_intmax_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006396 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397else
6398 cat >conftest.$ac_ext <<_ACEOF
6399/* confdefs.h. */
6400_ACEOF
6401cat confdefs.h >>conftest.$ac_ext
6402cat >>conftest.$ac_ext <<_ACEOF
6403/* end confdefs.h. */
6404
6405#include <stddef.h>
6406#include <stdlib.h>
6407#if HAVE_STDINT_H_WITH_UINTMAX
6408#include <stdint.h>
6409#endif
6410#if HAVE_INTTYPES_H_WITH_UINTMAX
6411#include <inttypes.h>
6412#endif
6413
6414int
6415main ()
6416{
6417intmax_t x = -1;
6418 ;
6419 return 0;
6420}
6421_ACEOF
6422rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006423if { (ac_try="$ac_compile"
6424case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6429$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006430 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440 gt_cv_c_intmax_t=yes
6441else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006442 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443sed 's/^/| /' conftest.$ac_ext >&5
6444
Theodore Ts'oe1052142006-10-21 21:46:47 -04006445 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006446fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006447
6448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6451$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452 if test $gt_cv_c_intmax_t = yes; then
6453
6454cat >>confdefs.h <<\_ACEOF
6455#define HAVE_INTMAX_T 1
6456_ACEOF
6457
6458 fi
6459
6460
6461
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006462 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6463$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464if test "${gt_cv_func_printf_posix+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006465 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006466else
6467
6468 if test "$cross_compiling" = yes; then
6469
6470 cat >conftest.$ac_ext <<_ACEOF
6471/* confdefs.h. */
6472_ACEOF
6473cat confdefs.h >>conftest.$ac_ext
6474cat >>conftest.$ac_ext <<_ACEOF
6475/* end confdefs.h. */
6476
6477#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6478 notposix
6479#endif
6480
6481_ACEOF
6482if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6483 $EGREP "notposix" >/dev/null 2>&1; then
6484 gt_cv_func_printf_posix="guessing no"
6485else
6486 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006487fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006488rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490
6491else
6492 cat >conftest.$ac_ext <<_ACEOF
6493/* confdefs.h. */
6494_ACEOF
6495cat confdefs.h >>conftest.$ac_ext
6496cat >>conftest.$ac_ext <<_ACEOF
6497/* end confdefs.h. */
6498
6499#include <stdio.h>
6500#include <string.h>
6501/* The string "%2$d %1$d", with dollar characters protected from the shell's
6502 dollar expansion (possibly an autoconf bug). */
6503static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6504static char buf[100];
6505int main ()
6506{
6507 sprintf (buf, format, 33, 55);
6508 return (strcmp (buf, "55 33") != 0);
6509}
6510_ACEOF
6511rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006512if { (ac_try="$ac_link"
6513case "(($ac_try" in
6514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6516esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6518$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006519 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006527eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6528$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006529 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532 (exit $ac_status); }; }; then
6533 gt_cv_func_printf_posix=yes
6534else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006535 $as_echo "$as_me: program exited with status $ac_status" >&5
6536$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537sed 's/^/| /' conftest.$ac_ext >&5
6538
6539( exit $ac_status )
6540gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006541fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006542rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006543rm -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 -05006544fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006545
Theodore Ts'oe1052142006-10-21 21:46:47 -04006546
6547
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006548fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006549{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6550$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006551 case $gt_cv_func_printf_posix in
6552 *yes)
6553
6554cat >>confdefs.h <<\_ACEOF
6555#define HAVE_POSIX_PRINTF 1
6556_ACEOF
6557
6558 ;;
6559 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006560
6561# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6562# for constant arguments. Useless!
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006563{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6564$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565if test "${ac_cv_working_alloca_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006566 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006567else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568 cat >conftest.$ac_ext <<_ACEOF
6569/* confdefs.h. */
6570_ACEOF
6571cat confdefs.h >>conftest.$ac_ext
6572cat >>conftest.$ac_ext <<_ACEOF
6573/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006574#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575int
6576main ()
6577{
6578char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006579 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580 ;
6581 return 0;
6582}
6583_ACEOF
6584rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006585if { (ac_try="$ac_link"
6586case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006592 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006601 } && test -s conftest$ac_exeext && {
6602 test "$cross_compiling" = yes ||
6603 $as_test_x conftest$ac_exeext
6604 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006606else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006607 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006609
Theodore Ts'oe1052142006-10-21 21:46:47 -04006610 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006612
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006613rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006614rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006615 conftest$ac_exeext conftest.$ac_ext
6616fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006617{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6618$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006619if test $ac_cv_working_alloca_h = yes; then
6620
6621cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006622#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006623_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006624
6625fi
6626
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006627{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6628$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629if test "${ac_cv_func_alloca_works+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006630 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006631else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632 cat >conftest.$ac_ext <<_ACEOF
6633/* confdefs.h. */
6634_ACEOF
6635cat confdefs.h >>conftest.$ac_ext
6636cat >>conftest.$ac_ext <<_ACEOF
6637/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006638#ifdef __GNUC__
6639# define alloca __builtin_alloca
6640#else
6641# ifdef _MSC_VER
6642# include <malloc.h>
6643# define alloca _alloca
6644# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006645# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006646# include <alloca.h>
6647# else
6648# ifdef _AIX
6649 #pragma alloca
6650# else
6651# ifndef alloca /* predefined by HP cc +Olibcalls */
6652char *alloca ();
6653# endif
6654# endif
6655# endif
6656# endif
6657#endif
6658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006659int
6660main ()
6661{
6662char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006663 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 ;
6665 return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006669if { (ac_try="$ac_link"
6670case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6675$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677 ac_status=$?
6678 grep -v '^ *+' conftest.er1 >conftest.err
6679 rm -f conftest.er1
6680 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006682 (exit $ac_status); } && {
6683 test -z "$ac_c_werror_flag" ||
6684 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006685 } && test -s conftest$ac_exeext && {
6686 test "$cross_compiling" = yes ||
6687 $as_test_x conftest$ac_exeext
6688 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006689 ac_cv_func_alloca_works=yes
6690else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006691 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006693
Theodore Ts'oe1052142006-10-21 21:46:47 -04006694 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006696
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006697rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006698rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699 conftest$ac_exeext conftest.$ac_ext
6700fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006701{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6702$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006703
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006704if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705
6706cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006707#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006709
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006710else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6712# that cause trouble. Some versions do not even contain alloca or
6713# contain a buggy version. If you still want to use their alloca,
6714# use ar to extract alloca.o from them instead of compiling alloca.c.
6715
Theodore Ts'oe1052142006-10-21 21:46:47 -04006716ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717
6718cat >>confdefs.h <<\_ACEOF
6719#define C_ALLOCA 1
6720_ACEOF
6721
6722
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006723{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6724$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725if test "${ac_cv_os_cray+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006726 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727else
6728 cat >conftest.$ac_ext <<_ACEOF
6729/* confdefs.h. */
6730_ACEOF
6731cat confdefs.h >>conftest.$ac_ext
6732cat >>conftest.$ac_ext <<_ACEOF
6733/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006735webecray
6736#else
6737wenotbecray
6738#endif
6739
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006741if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006743 ac_cv_os_cray=yes
6744else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006745 ac_cv_os_cray=no
6746fi
6747rm -f conftest*
6748
6749fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006750{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6751$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006752if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006754 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6755{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6756$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006757if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006758 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006760 cat >conftest.$ac_ext <<_ACEOF
6761/* confdefs.h. */
6762_ACEOF
6763cat confdefs.h >>conftest.$ac_ext
6764cat >>conftest.$ac_ext <<_ACEOF
6765/* end confdefs.h. */
6766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6767 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6768#define $ac_func innocuous_$ac_func
6769
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006770/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771 which can conflict with char $ac_func (); below.
6772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6773 <limits.h> exists even on freestanding compilers. */
6774
6775#ifdef __STDC__
6776# include <limits.h>
6777#else
6778# include <assert.h>
6779#endif
6780
6781#undef $ac_func
6782
Theodore Ts'oe1052142006-10-21 21:46:47 -04006783/* Override any GCC internal prototype to avoid an error.
6784 Use char because int might match the return type of a GCC
6785 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786#ifdef __cplusplus
6787extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006790/* The GNU C library defines this for functions which it implements
6791 to always fail with ENOSYS. Some functions are actually named
6792 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006793#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006794choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006795#endif
6796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797int
6798main ()
6799{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006800return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801 ;
6802 return 0;
6803}
6804_ACEOF
6805rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006806if { (ac_try="$ac_link"
6807case "(($ac_try" in
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6810esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6812$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006813 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814 ac_status=$?
6815 grep -v '^ *+' conftest.er1 >conftest.err
6816 rm -f conftest.er1
6817 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006822 } && test -s conftest$ac_exeext && {
6823 test "$cross_compiling" = yes ||
6824 $as_test_x conftest$ac_exeext
6825 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006826 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006827else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006828 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006830
Theodore Ts'oe1052142006-10-21 21:46:47 -04006831 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006834rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836 conftest$ac_exeext conftest.$ac_ext
6837fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006838ac_res=`eval 'as_val=${'$as_ac_var'}
6839 $as_echo "$as_val"'`
6840 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6841$as_echo "$ac_res" >&6; }
6842as_val=`eval 'as_val=${'$as_ac_var'}
6843 $as_echo "$as_val"'`
6844 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845
6846cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006847#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006851fi
6852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006854fi
6855
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006856{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6857$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858if test "${ac_cv_c_stack_direction+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006859 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006860else
6861 if test "$cross_compiling" = yes; then
6862 ac_cv_c_stack_direction=0
6863else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864 cat >conftest.$ac_ext <<_ACEOF
6865/* confdefs.h. */
6866_ACEOF
6867cat confdefs.h >>conftest.$ac_ext
6868cat >>conftest.$ac_ext <<_ACEOF
6869/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006870$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006872find_stack_direction ()
6873{
6874 static char *addr = 0;
6875 auto char dummy;
6876 if (addr == 0)
6877 {
6878 addr = &dummy;
6879 return find_stack_direction ();
6880 }
6881 else
6882 return (&dummy > addr) ? 1 : -1;
6883}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884
6885int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006886main ()
6887{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006888 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006889}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890_ACEOF
6891rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006892if { (ac_try="$ac_link"
6893case "(($ac_try" in
6894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895 *) ac_try_echo=$ac_try;;
6896esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6898$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006899 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006903 { (case "(($ac_try" in
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6906esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6908$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006913 ac_cv_c_stack_direction=1
6914else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006915 $as_echo "$as_me: program exited with status $ac_status" >&5
6916$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006918
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919( exit $ac_status )
6920ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006921fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006922rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006923rm -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 -05006924fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006925
6926
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006927fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006928{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6929$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006930
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933_ACEOF
6934
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006935
6936fi
6937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938
6939
6940for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006941do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006942as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006943if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006944 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6945$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006946if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006947 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006948fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006949ac_res=`eval 'as_val=${'$as_ac_Header'}
6950 $as_echo "$as_val"'`
6951 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6952$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6956$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957cat >conftest.$ac_ext <<_ACEOF
6958/* confdefs.h. */
6959_ACEOF
6960cat confdefs.h >>conftest.$ac_ext
6961cat >>conftest.$ac_ext <<_ACEOF
6962/* end confdefs.h. */
6963$ac_includes_default
6964#include <$ac_header>
6965_ACEOF
6966rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006967if { (ac_try="$ac_compile"
6968case "(($ac_try" in
6969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6970 *) ac_try_echo=$ac_try;;
6971esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6973$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006974 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975 ac_status=$?
6976 grep -v '^ *+' conftest.er1 >conftest.err
6977 rm -f conftest.er1
6978 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006980 (exit $ac_status); } && {
6981 test -z "$ac_c_werror_flag" ||
6982 test ! -s conftest.err
6983 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984 ac_header_compiler=yes
6985else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006986 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987sed 's/^/| /' conftest.$ac_ext >&5
6988
Theodore Ts'oe1052142006-10-21 21:46:47 -04006989 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006990fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991
6992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006993{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6994$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995
6996# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006997{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6998$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999cat >conftest.$ac_ext <<_ACEOF
7000/* confdefs.h. */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
7004/* end confdefs.h. */
7005#include <$ac_header>
7006_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007007if { (ac_try="$ac_cpp conftest.$ac_ext"
7008case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7013$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007015 ac_status=$?
7016 grep -v '^ *+' conftest.er1 >conftest.err
7017 rm -f conftest.er1
7018 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007020 (exit $ac_status); } >/dev/null && {
7021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7022 test ! -s conftest.err
7023 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024 ac_header_preproc=yes
7025else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007026 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027sed 's/^/| /' conftest.$ac_ext >&5
7028
7029 ac_header_preproc=no
7030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007033{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7034$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035
7036# So? What about this header?
7037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7038 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007039 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7040$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7041 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7042$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007043 ac_header_preproc=yes
7044 ;;
7045 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7047$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7049$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7051$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7053$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7055$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7057$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007058
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059 ;;
7060esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007061{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7062$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007063if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007064 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007065else
7066 eval "$as_ac_Header=\$ac_header_preproc"
7067fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007068ac_res=`eval 'as_val=${'$as_ac_Header'}
7069 $as_echo "$as_val"'`
7070 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7071$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072
7073fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007074as_val=`eval 'as_val=${'$as_ac_Header'}
7075 $as_echo "$as_val"'`
7076 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007078#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007079_ACEOF
7080
7081fi
7082
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083done
7084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007085
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007086for ac_func in getpagesize
7087do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007088as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7089{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7090$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007091if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007092 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007094 cat >conftest.$ac_ext <<_ACEOF
7095/* confdefs.h. */
7096_ACEOF
7097cat confdefs.h >>conftest.$ac_ext
7098cat >>conftest.$ac_ext <<_ACEOF
7099/* end confdefs.h. */
7100/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7102#define $ac_func innocuous_$ac_func
7103
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007104/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105 which can conflict with char $ac_func (); below.
7106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7107 <limits.h> exists even on freestanding compilers. */
7108
7109#ifdef __STDC__
7110# include <limits.h>
7111#else
7112# include <assert.h>
7113#endif
7114
7115#undef $ac_func
7116
Theodore Ts'oe1052142006-10-21 21:46:47 -04007117/* Override any GCC internal prototype to avoid an error.
7118 Use char because int might match the return type of a GCC
7119 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120#ifdef __cplusplus
7121extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007124/* The GNU C library defines this for functions which it implements
7125 to always fail with ENOSYS. Some functions are actually named
7126 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007127#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007128choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007129#endif
7130
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007131int
7132main ()
7133{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007134return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135 ;
7136 return 0;
7137}
7138_ACEOF
7139rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007140if { (ac_try="$ac_link"
7141case "(($ac_try" in
7142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7144esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7146$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007147 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007156 } && test -s conftest$ac_exeext && {
7157 test "$cross_compiling" = yes ||
7158 $as_test_x conftest$ac_exeext
7159 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007161else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007162 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007164
Theodore Ts'oe1052142006-10-21 21:46:47 -04007165 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007166fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007167
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007168rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170 conftest$ac_exeext conftest.$ac_ext
7171fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007172ac_res=`eval 'as_val=${'$as_ac_var'}
7173 $as_echo "$as_val"'`
7174 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7175$as_echo "$ac_res" >&6; }
7176as_val=`eval 'as_val=${'$as_ac_var'}
7177 $as_echo "$as_val"'`
7178 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181_ACEOF
7182
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007183fi
7184done
7185
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007186{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7187$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007189 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190else
7191 if test "$cross_compiling" = yes; then
7192 ac_cv_func_mmap_fixed_mapped=no
7193else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF
7199/* end confdefs.h. */
7200$ac_includes_default
7201/* malloc might have been renamed as rpl_malloc. */
7202#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007203
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007204/* Thanks to Mike Haertel and Jim Avera for this test.
7205 Here is a matrix of mmap possibilities:
7206 mmap private not fixed
7207 mmap private fixed at somewhere currently unmapped
7208 mmap private fixed at somewhere already mapped
7209 mmap shared not fixed
7210 mmap shared fixed at somewhere currently unmapped
7211 mmap shared fixed at somewhere already mapped
7212 For private mappings, we should verify that changes cannot be read()
7213 back from the file, nor mmap's back from the file at a different
7214 address. (There have been systems where private was not correctly
7215 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007216 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007217 like early versions of FreeBSD and possibly contemporary NetBSD.)
7218 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007220
7221 Grep wants private fixed already mapped.
7222 The main things grep needs to know about mmap are:
7223 * does it exist and is it safe to write into the mmap'd area
7224 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007226#include <fcntl.h>
7227#include <sys/mman.h>
7228
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007229#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230char *malloc ();
7231#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007234#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007235/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007236# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007237# define HAVE_SYS_PARAM_H 1
7238# endif
7239
7240# ifdef _SC_PAGESIZE
7241# define getpagesize() sysconf(_SC_PAGESIZE)
7242# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007243# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007244# include <sys/param.h>
7245# ifdef EXEC_PAGESIZE
7246# define getpagesize() EXEC_PAGESIZE
7247# else /* no EXEC_PAGESIZE */
7248# ifdef NBPG
7249# define getpagesize() NBPG * CLSIZE
7250# ifndef CLSIZE
7251# define CLSIZE 1
7252# endif /* no CLSIZE */
7253# else /* no NBPG */
7254# ifdef NBPC
7255# define getpagesize() NBPC
7256# else /* no NBPC */
7257# ifdef PAGESIZE
7258# define getpagesize() PAGESIZE
7259# endif /* PAGESIZE */
7260# endif /* no NBPC */
7261# endif /* no NBPG */
7262# endif /* no EXEC_PAGESIZE */
7263# else /* no HAVE_SYS_PARAM_H */
7264# define getpagesize() 8192 /* punt totally */
7265# endif /* no HAVE_SYS_PARAM_H */
7266# endif /* no _SC_PAGESIZE */
7267
7268#endif /* no HAVE_GETPAGESIZE */
7269
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007270int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007272{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007273 char *data, *data2, *data3;
7274 int i, pagesize;
7275 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007277 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 /* First, make a file with some known garbage in it. */
7280 data = (char *) malloc (pagesize);
7281 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007282 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007283 for (i = 0; i < pagesize; ++i)
7284 *(data + i) = rand ();
7285 umask (0);
7286 fd = creat ("conftest.mmap", 0600);
7287 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007290 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007291 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293 /* Next, try to mmap the file at a fixed address which already has
7294 something else allocated at it. If we can, also make sure that
7295 we see the same garbage. */
7296 fd = open ("conftest.mmap", O_RDWR);
7297 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007298 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007299 data2 = (char *) malloc (2 * pagesize);
7300 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007301 return 1;
7302 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007303 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7304 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007305 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306 for (i = 0; i < pagesize; ++i)
7307 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007308 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310 /* Finally, make sure that changes to the mapped area do not
7311 percolate back to the file as seen by read(). (This is a bug on
7312 some variants of i386 svr4.0.) */
7313 for (i = 0; i < pagesize; ++i)
7314 *(data2 + i) = *(data2 + i) + 1;
7315 data3 = (char *) malloc (pagesize);
7316 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007317 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007319 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007320 for (i = 0; i < pagesize; ++i)
7321 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007322 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007324 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007325}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007326_ACEOF
7327rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007328if { (ac_try="$ac_link"
7329case "(($ac_try" in
7330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7331 *) ac_try_echo=$ac_try;;
7332esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7334$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007335 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339 { (case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007343eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7344$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007345 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007349 ac_cv_func_mmap_fixed_mapped=yes
7350else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007351 $as_echo "$as_me: program exited with status $ac_status" >&5
7352$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007353sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007355( exit $ac_status )
7356ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007357fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007358rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359rm -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 -05007360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007361
7362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007364{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7365$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007366if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367
7368cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007369#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007371
7372fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007374
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007375
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007376 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7377$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 -05007378if test "${ac_cv_gnu_library_2_1+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007379 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 cat >conftest.$ac_ext <<_ACEOF
7382/* confdefs.h. */
7383_ACEOF
7384cat confdefs.h >>conftest.$ac_ext
7385cat >>conftest.$ac_ext <<_ACEOF
7386/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007387
7388#include <features.h>
7389#ifdef __GNU_LIBRARY__
7390 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7391 Lucky GNU user
7392 #endif
7393#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007394
7395_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007396if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007397 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007398 ac_cv_gnu_library_2_1=yes
7399else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007400 ac_cv_gnu_library_2_1=no
7401fi
7402rm -f conftest*
7403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007404
7405
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007406fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007407{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7408$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007409
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007410 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007411
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007412
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007413
7414
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007415 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7416$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007418 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007419else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007421 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007423 # Guess based on the CPU.
7424 case "$host_cpu" in
7425 alpha* | i3456786 | m68k | s390*)
7426 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7427 *)
7428 gt_cv_int_divbyzero_sigfpe="guessing no";;
7429 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007431else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007432 cat >conftest.$ac_ext <<_ACEOF
7433/* confdefs.h. */
7434_ACEOF
7435cat confdefs.h >>conftest.$ac_ext
7436cat >>conftest.$ac_ext <<_ACEOF
7437/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007438
7439#include <stdlib.h>
7440#include <signal.h>
7441
7442static void
7443#ifdef __cplusplus
7444sigfpe_handler (int sig)
7445#else
7446sigfpe_handler (sig) int sig;
7447#endif
7448{
7449 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7450 exit (sig != SIGFPE);
7451}
7452
7453int x = 1;
7454int y = 0;
7455int z;
7456int nan;
7457
7458int main ()
7459{
7460 signal (SIGFPE, sigfpe_handler);
7461/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7462#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7463 signal (SIGTRAP, sigfpe_handler);
7464#endif
7465/* Linux/SPARC yields signal SIGILL. */
7466#if defined (__sparc__) && defined (__linux__)
7467 signal (SIGILL, sigfpe_handler);
7468#endif
7469
7470 z = x / y;
7471 nan = y / y;
7472 exit (1);
7473}
7474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475_ACEOF
7476rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007477if { (ac_try="$ac_link"
7478case "(($ac_try" in
7479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7480 *) ac_try_echo=$ac_try;;
7481esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007482eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7483$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007484 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007488 { (case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7493$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007494 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007498 gt_cv_int_divbyzero_sigfpe=yes
7499else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007500 $as_echo "$as_me: program exited with status $ac_status" >&5
7501$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007502sed 's/^/| /' conftest.$ac_ext >&5
7503
7504( exit $ac_status )
7505gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007506fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007507rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007508rm -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 -04007509fi
7510
Theodore Ts'oe1052142006-10-21 21:46:47 -04007511
7512
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007513fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007514{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7515$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007516 case "$gt_cv_int_divbyzero_sigfpe" in
7517 *yes) value=1;;
7518 *) value=0;;
7519 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007520
7521cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007522#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007524
7525
7526
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007527 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7528$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007529if test "${ac_cv_type_unsigned_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007530 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007531else
7532 cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h. */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h. */
7538unsigned long long ull = 1ULL; int i = 63;
7539int
7540main ()
7541{
7542unsigned long long ullmax = (unsigned long long) -1;
7543 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7544 ;
7545 return 0;
7546}
7547_ACEOF
7548rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007549if { (ac_try="$ac_link"
7550case "(($ac_try" in
7551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552 *) ac_try_echo=$ac_try;;
7553esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7555$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007556 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557 ac_status=$?
7558 grep -v '^ *+' conftest.er1 >conftest.err
7559 rm -f conftest.er1
7560 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007562 (exit $ac_status); } && {
7563 test -z "$ac_c_werror_flag" ||
7564 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007565 } && test -s conftest$ac_exeext && {
7566 test "$cross_compiling" = yes ||
7567 $as_test_x conftest$ac_exeext
7568 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007569 ac_cv_type_unsigned_long_long=yes
7570else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007571 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007572sed 's/^/| /' conftest.$ac_ext >&5
7573
Theodore Ts'oe1052142006-10-21 21:46:47 -04007574 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007576
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007577rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579 conftest$ac_exeext conftest.$ac_ext
7580fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007581{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7582$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583 if test $ac_cv_type_unsigned_long_long = yes; then
7584
7585cat >>confdefs.h <<\_ACEOF
7586#define HAVE_UNSIGNED_LONG_LONG 1
7587_ACEOF
7588
7589 fi
7590
7591
7592
7593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007594 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 -05007595
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007596 test $ac_cv_type_unsigned_long_long = yes \
7597 && ac_type='unsigned long long' \
7598 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599
7600cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007601#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602_ACEOF
7603
7604 else
7605
7606cat >>confdefs.h <<\_ACEOF
7607#define HAVE_UINTMAX_T 1
7608_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007609
7610 fi
7611
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007612
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007613 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7614$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615if test "${gt_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007616 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007617else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007618
7619 cat >conftest.$ac_ext <<_ACEOF
7620/* confdefs.h. */
7621_ACEOF
7622cat confdefs.h >>conftest.$ac_ext
7623cat >>conftest.$ac_ext <<_ACEOF
7624/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007625#include <sys/types.h>
7626#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007627int
7628main ()
7629{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631 ;
7632 return 0;
7633}
7634_ACEOF
7635rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007636if { (ac_try="$ac_compile"
7637case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007643 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007653 gt_cv_header_inttypes_h=yes
7654else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007655 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007657
Theodore Ts'oe1052142006-10-21 21:46:47 -04007658 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007660
7661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662
7663fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007664{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7665$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007666 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667
7668cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007669#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007670_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007671
7672 fi
7673
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007676 if test $gt_cv_header_inttypes_h = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007677 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7678$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679if test "${gt_cv_inttypes_pri_broken+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007680 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007681else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682
7683 cat >conftest.$ac_ext <<_ACEOF
7684/* confdefs.h. */
7685_ACEOF
7686cat confdefs.h >>conftest.$ac_ext
7687cat >>conftest.$ac_ext <<_ACEOF
7688/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007689#include <inttypes.h>
7690#ifdef PRId32
7691char *p = PRId32;
7692#endif
7693
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694int
7695main ()
7696{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007703if { (ac_try="$ac_compile"
7704case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7707esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7709$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007711 ac_status=$?
7712 grep -v '^ *+' conftest.er1 >conftest.err
7713 rm -f conftest.er1
7714 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007716 (exit $ac_status); } && {
7717 test -z "$ac_c_werror_flag" ||
7718 test ! -s conftest.err
7719 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007720 gt_cv_inttypes_pri_broken=no
7721else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007722 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007723sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007724
Theodore Ts'oe1052142006-10-21 21:46:47 -04007725 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007727
7728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007729
7730fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007731{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7732$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007733 fi
7734 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007735
7736cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007737#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007738_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007739
7740 fi
7741
7742
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007744for ac_header in stdint.h
7745do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007746as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7749$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007751 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007752fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007753ac_res=`eval 'as_val=${'$as_ac_Header'}
7754 $as_echo "$as_val"'`
7755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7756$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007757else
7758 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007759{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7760$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761cat >conftest.$ac_ext <<_ACEOF
7762/* confdefs.h. */
7763_ACEOF
7764cat confdefs.h >>conftest.$ac_ext
7765cat >>conftest.$ac_ext <<_ACEOF
7766/* end confdefs.h. */
7767$ac_includes_default
7768#include <$ac_header>
7769_ACEOF
7770rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007771if { (ac_try="$ac_compile"
7772case "(($ac_try" in
7773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7774 *) ac_try_echo=$ac_try;;
7775esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7777$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007778 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007779 ac_status=$?
7780 grep -v '^ *+' conftest.er1 >conftest.err
7781 rm -f conftest.er1
7782 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007788 ac_header_compiler=yes
7789else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007790 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007791sed 's/^/| /' conftest.$ac_ext >&5
7792
Theodore Ts'oe1052142006-10-21 21:46:47 -04007793 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007794fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007795
7796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007797{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7798$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799
7800# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007801{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7802$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007803cat >conftest.$ac_ext <<_ACEOF
7804/* confdefs.h. */
7805_ACEOF
7806cat confdefs.h >>conftest.$ac_ext
7807cat >>conftest.$ac_ext <<_ACEOF
7808/* end confdefs.h. */
7809#include <$ac_header>
7810_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007811if { (ac_try="$ac_cpp conftest.$ac_ext"
7812case "(($ac_try" in
7813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7814 *) ac_try_echo=$ac_try;;
7815esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7817$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819 ac_status=$?
7820 grep -v '^ *+' conftest.er1 >conftest.err
7821 rm -f conftest.er1
7822 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007824 (exit $ac_status); } >/dev/null && {
7825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7826 test ! -s conftest.err
7827 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007828 ac_header_preproc=yes
7829else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007830 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007831sed 's/^/| /' conftest.$ac_ext >&5
7832
7833 ac_header_preproc=no
7834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007836rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007837{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7838$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007839
7840# So? What about this header?
7841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7842 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7844$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7846$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007847 ac_header_preproc=yes
7848 ;;
7849 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7851$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7853$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7855$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7857$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7859$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7861$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863 ;;
7864esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007865{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7866$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007867if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007868 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007869else
7870 eval "$as_ac_Header=\$ac_header_preproc"
7871fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007872ac_res=`eval 'as_val=${'$as_ac_Header'}
7873 $as_echo "$as_val"'`
7874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7875$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007876
7877fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007878as_val=`eval 'as_val=${'$as_ac_Header'}
7879 $as_echo "$as_val"'`
7880 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007881 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007882#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007883_ACEOF
7884
7885fi
7886
7887done
7888
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007889 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7890$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007891 result=
7892 cat >conftest.$ac_ext <<_ACEOF
7893/* confdefs.h. */
7894_ACEOF
7895cat confdefs.h >>conftest.$ac_ext
7896cat >>conftest.$ac_ext <<_ACEOF
7897/* end confdefs.h. */
7898
7899#include <limits.h>
7900#if HAVE_STDINT_H
7901#include <stdint.h>
7902#endif
7903#ifdef SIZE_MAX
7904Found it
7905#endif
7906
7907_ACEOF
7908if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7909 $EGREP "Found it" >/dev/null 2>&1; then
7910 result=yes
7911fi
7912rm -f conftest*
7913
7914 if test -z "$result"; then
7915 if test "$cross_compiling" = yes; then
7916 # Depending upon the size, compute the lo and hi bounds.
7917cat >conftest.$ac_ext <<_ACEOF
7918/* confdefs.h. */
7919_ACEOF
7920cat confdefs.h >>conftest.$ac_ext
7921cat >>conftest.$ac_ext <<_ACEOF
7922/* end confdefs.h. */
7923#include <stddef.h>
7924int
7925main ()
7926{
7927static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7928test_array [0] = 0
7929
7930 ;
7931 return 0;
7932}
7933_ACEOF
7934rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007935if { (ac_try="$ac_compile"
7936case "(($ac_try" in
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7939esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7941$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007942 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007943 ac_status=$?
7944 grep -v '^ *+' conftest.er1 >conftest.err
7945 rm -f conftest.er1
7946 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007948 (exit $ac_status); } && {
7949 test -z "$ac_c_werror_flag" ||
7950 test ! -s conftest.err
7951 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007952 ac_lo=0 ac_mid=0
7953 while :; do
7954 cat >conftest.$ac_ext <<_ACEOF
7955/* confdefs.h. */
7956_ACEOF
7957cat confdefs.h >>conftest.$ac_ext
7958cat >>conftest.$ac_ext <<_ACEOF
7959/* end confdefs.h. */
7960#include <stddef.h>
7961int
7962main ()
7963{
7964static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7965test_array [0] = 0
7966
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007972if { (ac_try="$ac_compile"
7973case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7978$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007979 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007980 ac_status=$?
7981 grep -v '^ *+' conftest.er1 >conftest.err
7982 rm -f conftest.er1
7983 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007985 (exit $ac_status); } && {
7986 test -z "$ac_c_werror_flag" ||
7987 test ! -s conftest.err
7988 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007989 ac_hi=$ac_mid; break
7990else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007991 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007992sed 's/^/| /' conftest.$ac_ext >&5
7993
Theodore Ts'oe1052142006-10-21 21:46:47 -04007994 ac_lo=`expr $ac_mid + 1`
7995 if test $ac_lo -le $ac_mid; then
7996 ac_lo= ac_hi=
7997 break
7998 fi
7999 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008000fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008001
8002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008003 done
8004else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008005 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008006sed 's/^/| /' conftest.$ac_ext >&5
8007
Theodore Ts'oe1052142006-10-21 21:46:47 -04008008 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008009/* confdefs.h. */
8010_ACEOF
8011cat confdefs.h >>conftest.$ac_ext
8012cat >>conftest.$ac_ext <<_ACEOF
8013/* end confdefs.h. */
8014#include <stddef.h>
8015int
8016main ()
8017{
8018static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8019test_array [0] = 0
8020
8021 ;
8022 return 0;
8023}
8024_ACEOF
8025rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008026if { (ac_try="$ac_compile"
8027case "(($ac_try" in
8028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8029 *) ac_try_echo=$ac_try;;
8030esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8032$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008033 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008034 ac_status=$?
8035 grep -v '^ *+' conftest.er1 >conftest.err
8036 rm -f conftest.er1
8037 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008039 (exit $ac_status); } && {
8040 test -z "$ac_c_werror_flag" ||
8041 test ! -s conftest.err
8042 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008043 ac_hi=-1 ac_mid=-1
8044 while :; do
8045 cat >conftest.$ac_ext <<_ACEOF
8046/* confdefs.h. */
8047_ACEOF
8048cat confdefs.h >>conftest.$ac_ext
8049cat >>conftest.$ac_ext <<_ACEOF
8050/* end confdefs.h. */
8051#include <stddef.h>
8052int
8053main ()
8054{
8055static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8056test_array [0] = 0
8057
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008063if { (ac_try="$ac_compile"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008080 ac_lo=$ac_mid; break
8081else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008082 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008083sed 's/^/| /' conftest.$ac_ext >&5
8084
Theodore Ts'oe1052142006-10-21 21:46:47 -04008085 ac_hi=`expr '(' $ac_mid ')' - 1`
8086 if test $ac_mid -le $ac_hi; then
8087 ac_lo= ac_hi=
8088 break
8089 fi
8090 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008092
8093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008094 done
8095else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008096 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008097sed 's/^/| /' conftest.$ac_ext >&5
8098
Theodore Ts'oe1052142006-10-21 21:46:47 -04008099 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008101
8102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008103fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008104
8105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008106# Binary search between lo and hi bounds.
8107while test "x$ac_lo" != "x$ac_hi"; do
8108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8109 cat >conftest.$ac_ext <<_ACEOF
8110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
8115#include <stddef.h>
8116int
8117main ()
8118{
8119static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8120test_array [0] = 0
8121
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008127if { (ac_try="$ac_compile"
8128case "(($ac_try" in
8129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8130 *) ac_try_echo=$ac_try;;
8131esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008132eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8133$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008134 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008135 ac_status=$?
8136 grep -v '^ *+' conftest.er1 >conftest.err
8137 rm -f conftest.er1
8138 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008144 ac_hi=$ac_mid
8145else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008146 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008147sed 's/^/| /' conftest.$ac_ext >&5
8148
Theodore Ts'oe1052142006-10-21 21:46:47 -04008149 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008150fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008151
8152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008153done
8154case $ac_lo in
8155?*) res_hi=$ac_lo;;
8156'') result=? ;;
8157esac
8158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008159 cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
8165#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008166static long int longval () { return ~(size_t)0 / 10; }
8167static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008168#include <stdio.h>
8169#include <stdlib.h>
8170int
8171main ()
8172{
8173
8174 FILE *f = fopen ("conftest.val", "w");
8175 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008177 if ((~(size_t)0 / 10) < 0)
8178 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008179 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008180 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008181 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008182 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008183 }
8184 else
8185 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008186 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008188 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008189 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008191 /* Do not output a trailing newline, as this causes \r\n confusion
8192 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008193 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008194
8195 ;
8196 return 0;
8197}
8198_ACEOF
8199rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008200if { (ac_try="$ac_link"
8201case "(($ac_try" in
8202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8204esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8206$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008207 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008211 { (case "(($ac_try" in
8212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8214esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8216$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008217 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008218 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008220 (exit $ac_status); }; }; then
8221 res_hi=`cat conftest.val`
8222else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008223 $as_echo "$as_me: program exited with status $ac_status" >&5
8224$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008225sed 's/^/| /' conftest.$ac_ext >&5
8226
8227( exit $ac_status )
8228result=?
8229fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008230rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008231rm -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 -05008232fi
8233rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008235 if test "$cross_compiling" = yes; then
8236 # Depending upon the size, compute the lo and hi bounds.
8237cat >conftest.$ac_ext <<_ACEOF
8238/* confdefs.h. */
8239_ACEOF
8240cat confdefs.h >>conftest.$ac_ext
8241cat >>conftest.$ac_ext <<_ACEOF
8242/* end confdefs.h. */
8243#include <stddef.h>
8244int
8245main ()
8246{
8247static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8248test_array [0] = 0
8249
8250 ;
8251 return 0;
8252}
8253_ACEOF
8254rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008255if { (ac_try="$ac_compile"
8256case "(($ac_try" in
8257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258 *) ac_try_echo=$ac_try;;
8259esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8261$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008262 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263 ac_status=$?
8264 grep -v '^ *+' conftest.er1 >conftest.err
8265 rm -f conftest.er1
8266 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008272 ac_lo=0 ac_mid=0
8273 while :; do
8274 cat >conftest.$ac_ext <<_ACEOF
8275/* confdefs.h. */
8276_ACEOF
8277cat confdefs.h >>conftest.$ac_ext
8278cat >>conftest.$ac_ext <<_ACEOF
8279/* end confdefs.h. */
8280#include <stddef.h>
8281int
8282main ()
8283{
8284static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8285test_array [0] = 0
8286
8287 ;
8288 return 0;
8289}
8290_ACEOF
8291rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008292if { (ac_try="$ac_compile"
8293case "(($ac_try" in
8294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8295 *) ac_try_echo=$ac_try;;
8296esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008297eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8298$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008299 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008300 ac_status=$?
8301 grep -v '^ *+' conftest.er1 >conftest.err
8302 rm -f conftest.er1
8303 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008309 ac_hi=$ac_mid; break
8310else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008311 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008312sed 's/^/| /' conftest.$ac_ext >&5
8313
Theodore Ts'oe1052142006-10-21 21:46:47 -04008314 ac_lo=`expr $ac_mid + 1`
8315 if test $ac_lo -le $ac_mid; then
8316 ac_lo= ac_hi=
8317 break
8318 fi
8319 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008320fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008321
8322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323 done
8324else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008325 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326sed 's/^/| /' conftest.$ac_ext >&5
8327
Theodore Ts'oe1052142006-10-21 21:46:47 -04008328 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
8334#include <stddef.h>
8335int
8336main ()
8337{
8338static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8339test_array [0] = 0
8340
8341 ;
8342 return 0;
8343}
8344_ACEOF
8345rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008346if { (ac_try="$ac_compile"
8347case "(($ac_try" in
8348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8350esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008351eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8352$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008353 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008359 (exit $ac_status); } && {
8360 test -z "$ac_c_werror_flag" ||
8361 test ! -s conftest.err
8362 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008363 ac_hi=-1 ac_mid=-1
8364 while :; do
8365 cat >conftest.$ac_ext <<_ACEOF
8366/* confdefs.h. */
8367_ACEOF
8368cat confdefs.h >>conftest.$ac_ext
8369cat >>conftest.$ac_ext <<_ACEOF
8370/* end confdefs.h. */
8371#include <stddef.h>
8372int
8373main ()
8374{
8375static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8376test_array [0] = 0
8377
8378 ;
8379 return 0;
8380}
8381_ACEOF
8382rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008383if { (ac_try="$ac_compile"
8384case "(($ac_try" in
8385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386 *) ac_try_echo=$ac_try;;
8387esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8389$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008390 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391 ac_status=$?
8392 grep -v '^ *+' conftest.er1 >conftest.err
8393 rm -f conftest.er1
8394 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008396 (exit $ac_status); } && {
8397 test -z "$ac_c_werror_flag" ||
8398 test ! -s conftest.err
8399 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008400 ac_lo=$ac_mid; break
8401else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008402 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403sed 's/^/| /' conftest.$ac_ext >&5
8404
Theodore Ts'oe1052142006-10-21 21:46:47 -04008405 ac_hi=`expr '(' $ac_mid ')' - 1`
8406 if test $ac_mid -le $ac_hi; then
8407 ac_lo= ac_hi=
8408 break
8409 fi
8410 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008412
8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008414 done
8415else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008416 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008417sed 's/^/| /' conftest.$ac_ext >&5
8418
Theodore Ts'oe1052142006-10-21 21:46:47 -04008419 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008420fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008421
8422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008424
8425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008426# Binary search between lo and hi bounds.
8427while test "x$ac_lo" != "x$ac_hi"; do
8428 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8429 cat >conftest.$ac_ext <<_ACEOF
8430/* confdefs.h. */
8431_ACEOF
8432cat confdefs.h >>conftest.$ac_ext
8433cat >>conftest.$ac_ext <<_ACEOF
8434/* end confdefs.h. */
8435#include <stddef.h>
8436int
8437main ()
8438{
8439static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8440test_array [0] = 0
8441
8442 ;
8443 return 0;
8444}
8445_ACEOF
8446rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008447if { (ac_try="$ac_compile"
8448case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008454 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008464 ac_hi=$ac_mid
8465else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008466 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467sed 's/^/| /' conftest.$ac_ext >&5
8468
Theodore Ts'oe1052142006-10-21 21:46:47 -04008469 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008471
8472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008473done
8474case $ac_lo in
8475?*) res_lo=$ac_lo;;
8476'') result=? ;;
8477esac
8478else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008479 cat >conftest.$ac_ext <<_ACEOF
8480/* confdefs.h. */
8481_ACEOF
8482cat confdefs.h >>conftest.$ac_ext
8483cat >>conftest.$ac_ext <<_ACEOF
8484/* end confdefs.h. */
8485#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008486static long int longval () { return ~(size_t)0 % 10; }
8487static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008488#include <stdio.h>
8489#include <stdlib.h>
8490int
8491main ()
8492{
8493
8494 FILE *f = fopen ("conftest.val", "w");
8495 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008496 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497 if ((~(size_t)0 % 10) < 0)
8498 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008499 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008500 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008501 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008502 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008503 }
8504 else
8505 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008506 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008507 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008508 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008509 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008511 /* Do not output a trailing newline, as this causes \r\n confusion
8512 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008513 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008514
8515 ;
8516 return 0;
8517}
8518_ACEOF
8519rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008520if { (ac_try="$ac_link"
8521case "(($ac_try" in
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8524esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008527 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008531 { (case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8536$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008537 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008540 (exit $ac_status); }; }; then
8541 res_lo=`cat conftest.val`
8542else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008543 $as_echo "$as_me: program exited with status $ac_status" >&5
8544$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547( exit $ac_status )
8548result=?
8549fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008550rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008551rm -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 -05008552fi
8553rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008555 if test "$cross_compiling" = yes; then
8556 # Depending upon the size, compute the lo and hi bounds.
8557cat >conftest.$ac_ext <<_ACEOF
8558/* confdefs.h. */
8559_ACEOF
8560cat confdefs.h >>conftest.$ac_ext
8561cat >>conftest.$ac_ext <<_ACEOF
8562/* end confdefs.h. */
8563#include <stddef.h>
8564int
8565main ()
8566{
8567static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8568test_array [0] = 0
8569
8570 ;
8571 return 0;
8572}
8573_ACEOF
8574rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008575if { (ac_try="$ac_compile"
8576case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008580eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8581$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008582 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583 ac_status=$?
8584 grep -v '^ *+' conftest.er1 >conftest.err
8585 rm -f conftest.er1
8586 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008588 (exit $ac_status); } && {
8589 test -z "$ac_c_werror_flag" ||
8590 test ! -s conftest.err
8591 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592 ac_lo=0 ac_mid=0
8593 while :; do
8594 cat >conftest.$ac_ext <<_ACEOF
8595/* confdefs.h. */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h. */
8600#include <stddef.h>
8601int
8602main ()
8603{
8604static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8605test_array [0] = 0
8606
8607 ;
8608 return 0;
8609}
8610_ACEOF
8611rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008612if { (ac_try="$ac_compile"
8613case "(($ac_try" in
8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8615 *) ac_try_echo=$ac_try;;
8616esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8618$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008619 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008629 ac_hi=$ac_mid; break
8630else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008631 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008632sed 's/^/| /' conftest.$ac_ext >&5
8633
Theodore Ts'oe1052142006-10-21 21:46:47 -04008634 ac_lo=`expr $ac_mid + 1`
8635 if test $ac_lo -le $ac_mid; then
8636 ac_lo= ac_hi=
8637 break
8638 fi
8639 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008641
8642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643 done
8644else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008645 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646sed 's/^/| /' conftest.$ac_ext >&5
8647
Theodore Ts'oe1052142006-10-21 21:46:47 -04008648 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008649/* confdefs.h. */
8650_ACEOF
8651cat confdefs.h >>conftest.$ac_ext
8652cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h. */
8654#include <stddef.h>
8655int
8656main ()
8657{
8658static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8659test_array [0] = 0
8660
8661 ;
8662 return 0;
8663}
8664_ACEOF
8665rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008666if { (ac_try="$ac_compile"
8667case "(($ac_try" in
8668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8669 *) ac_try_echo=$ac_try;;
8670esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8672$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008673 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008674 ac_status=$?
8675 grep -v '^ *+' conftest.er1 >conftest.err
8676 rm -f conftest.er1
8677 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008679 (exit $ac_status); } && {
8680 test -z "$ac_c_werror_flag" ||
8681 test ! -s conftest.err
8682 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008683 ac_hi=-1 ac_mid=-1
8684 while :; do
8685 cat >conftest.$ac_ext <<_ACEOF
8686/* confdefs.h. */
8687_ACEOF
8688cat confdefs.h >>conftest.$ac_ext
8689cat >>conftest.$ac_ext <<_ACEOF
8690/* end confdefs.h. */
8691#include <stddef.h>
8692int
8693main ()
8694{
8695static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8696test_array [0] = 0
8697
8698 ;
8699 return 0;
8700}
8701_ACEOF
8702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008703if { (ac_try="$ac_compile"
8704case "(($ac_try" in
8705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8706 *) ac_try_echo=$ac_try;;
8707esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8709$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008711 ac_status=$?
8712 grep -v '^ *+' conftest.er1 >conftest.err
8713 rm -f conftest.er1
8714 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008716 (exit $ac_status); } && {
8717 test -z "$ac_c_werror_flag" ||
8718 test ! -s conftest.err
8719 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008720 ac_lo=$ac_mid; break
8721else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008722 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008723sed 's/^/| /' conftest.$ac_ext >&5
8724
Theodore Ts'oe1052142006-10-21 21:46:47 -04008725 ac_hi=`expr '(' $ac_mid ')' - 1`
8726 if test $ac_mid -le $ac_hi; then
8727 ac_lo= ac_hi=
8728 break
8729 fi
8730 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008732
8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008734 done
8735else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008736 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008737sed 's/^/| /' conftest.$ac_ext >&5
8738
Theodore Ts'oe1052142006-10-21 21:46:47 -04008739 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008741
8742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008744
8745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746# Binary search between lo and hi bounds.
8747while test "x$ac_lo" != "x$ac_hi"; do
8748 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8749 cat >conftest.$ac_ext <<_ACEOF
8750/* confdefs.h. */
8751_ACEOF
8752cat confdefs.h >>conftest.$ac_ext
8753cat >>conftest.$ac_ext <<_ACEOF
8754/* end confdefs.h. */
8755#include <stddef.h>
8756int
8757main ()
8758{
8759static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8760test_array [0] = 0
8761
8762 ;
8763 return 0;
8764}
8765_ACEOF
8766rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008767if { (ac_try="$ac_compile"
8768case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8771esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8773$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008774 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008775 ac_status=$?
8776 grep -v '^ *+' conftest.er1 >conftest.err
8777 rm -f conftest.er1
8778 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784 ac_hi=$ac_mid
8785else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008786 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787sed 's/^/| /' conftest.$ac_ext >&5
8788
Theodore Ts'oe1052142006-10-21 21:46:47 -04008789 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008790fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791
8792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008793done
8794case $ac_lo in
8795?*) fits_in_uint=$ac_lo;;
8796'') result=? ;;
8797esac
8798else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008799 cat >conftest.$ac_ext <<_ACEOF
8800/* confdefs.h. */
8801_ACEOF
8802cat confdefs.h >>conftest.$ac_ext
8803cat >>conftest.$ac_ext <<_ACEOF
8804/* end confdefs.h. */
8805#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008806static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8807static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008808#include <stdio.h>
8809#include <stdlib.h>
8810int
8811main ()
8812{
8813
8814 FILE *f = fopen ("conftest.val", "w");
8815 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008816 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8818 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008819 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008820 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008821 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008822 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008823 }
8824 else
8825 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008827 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008828 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008829 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008831 /* Do not output a trailing newline, as this causes \r\n confusion
8832 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008833 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834
8835 ;
8836 return 0;
8837}
8838_ACEOF
8839rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008840if { (ac_try="$ac_link"
8841case "(($ac_try" in
8842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8843 *) ac_try_echo=$ac_try;;
8844esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8846$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008847 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008848 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008851 { (case "(($ac_try" in
8852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8853 *) ac_try_echo=$ac_try;;
8854esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008855eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8856$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008857 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008860 (exit $ac_status); }; }; then
8861 fits_in_uint=`cat conftest.val`
8862else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008863 $as_echo "$as_me: program exited with status $ac_status" >&5
8864$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008865sed 's/^/| /' conftest.$ac_ext >&5
8866
8867( exit $ac_status )
8868result=?
8869fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008870rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008871rm -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 -05008872fi
8873rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008874
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008875 if test "$fits_in_uint" = 1; then
8876 cat >conftest.$ac_ext <<_ACEOF
8877/* confdefs.h. */
8878_ACEOF
8879cat confdefs.h >>conftest.$ac_ext
8880cat >>conftest.$ac_ext <<_ACEOF
8881/* end confdefs.h. */
8882#include <stddef.h>
8883 extern size_t foo;
8884 extern unsigned long foo;
8885
8886int
8887main ()
8888{
8889
8890 ;
8891 return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008895if { (ac_try="$ac_compile"
8896case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008902 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008912 fits_in_uint=0
8913else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008914 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008915sed 's/^/| /' conftest.$ac_ext >&5
8916
Theodore Ts'oe1052142006-10-21 21:46:47 -04008917
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008918fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008919
8920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008921 fi
8922 if test -z "$result"; then
8923 if test "$fits_in_uint" = 1; then
8924 result="$res_hi$res_lo"U
8925 else
8926 result="$res_hi$res_lo"UL
8927 fi
8928 else
8929 result='~(size_t)0'
8930 fi
8931 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008932 { $as_echo "$as_me:$LINENO: result: $result" >&5
8933$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008934 if test "$result" != yes; then
8935
8936cat >>confdefs.h <<_ACEOF
8937#define SIZE_MAX $result
8938_ACEOF
8939
8940 fi
8941
8942
8943
8944
8945for ac_header in stdint.h
8946do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008947as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8950$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008952 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008953fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008954ac_res=`eval 'as_val=${'$as_ac_Header'}
8955 $as_echo "$as_val"'`
8956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8957$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008958else
8959 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008960{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8961$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008962cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968$ac_includes_default
8969#include <$ac_header>
8970_ACEOF
8971rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008972if { (ac_try="$ac_compile"
8973case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8978$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008979 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008980 ac_status=$?
8981 grep -v '^ *+' conftest.er1 >conftest.err
8982 rm -f conftest.er1
8983 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008989 ac_header_compiler=yes
8990else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008991 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008992sed 's/^/| /' conftest.$ac_ext >&5
8993
Theodore Ts'oe1052142006-10-21 21:46:47 -04008994 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008996
8997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008998{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8999$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009000
9001# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009002{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9003$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009004cat >conftest.$ac_ext <<_ACEOF
9005/* confdefs.h. */
9006_ACEOF
9007cat confdefs.h >>conftest.$ac_ext
9008cat >>conftest.$ac_ext <<_ACEOF
9009/* end confdefs.h. */
9010#include <$ac_header>
9011_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009012if { (ac_try="$ac_cpp conftest.$ac_ext"
9013case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9018$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020 ac_status=$?
9021 grep -v '^ *+' conftest.er1 >conftest.err
9022 rm -f conftest.er1
9023 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009025 (exit $ac_status); } >/dev/null && {
9026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9027 test ! -s conftest.err
9028 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009029 ac_header_preproc=yes
9030else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009031 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009032sed 's/^/| /' conftest.$ac_ext >&5
9033
9034 ac_header_preproc=no
9035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009037rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009038{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9039$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009040
9041# So? What about this header?
9042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9043 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9045$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9047$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009048 ac_header_preproc=yes
9049 ;;
9050 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9052$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9054$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9056$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9058$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9060$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9062$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009064 ;;
9065esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009066{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9067$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009069 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070else
9071 eval "$as_ac_Header=\$ac_header_preproc"
9072fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009073ac_res=`eval 'as_val=${'$as_ac_Header'}
9074 $as_echo "$as_val"'`
9075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9076$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009077
9078fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009079as_val=`eval 'as_val=${'$as_ac_Header'}
9080 $as_echo "$as_val"'`
9081 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009082 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084_ACEOF
9085
9086fi
9087
9088done
9089
9090
9091
9092 if test "X$prefix" = "XNONE"; then
9093 acl_final_prefix="$ac_default_prefix"
9094 else
9095 acl_final_prefix="$prefix"
9096 fi
9097 if test "X$exec_prefix" = "XNONE"; then
9098 acl_final_exec_prefix='${prefix}'
9099 else
9100 acl_final_exec_prefix="$exec_prefix"
9101 fi
9102 acl_save_prefix="$prefix"
9103 prefix="$acl_final_prefix"
9104 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9105 prefix="$acl_save_prefix"
9106
9107
Theodore Ts'oe1052142006-10-21 21:46:47 -04009108# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009109if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009110 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009111else
9112 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009113fi
9114
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009115# Prepare PATH_SEPARATOR.
9116# The user is always right.
9117if test "${PATH_SEPARATOR+set}" != set; then
9118 echo "#! /bin/sh" >conf$$.sh
9119 echo "exit 0" >>conf$$.sh
9120 chmod +x conf$$.sh
9121 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9122 PATH_SEPARATOR=';'
9123 else
9124 PATH_SEPARATOR=:
9125 fi
9126 rm -f conf$$.sh
9127fi
9128ac_prog=ld
9129if test "$GCC" = yes; then
9130 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009131 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9132$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009133 case $host in
9134 *-*-mingw*)
9135 # gcc leaves a trailing carriage return which upsets mingw
9136 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9137 *)
9138 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9139 esac
9140 case $ac_prog in
9141 # Accept absolute paths.
9142 [\\/]* | [A-Za-z]:[\\/]*)
9143 re_direlt='/[^/][^/]*/\.\./'
9144 # Canonicalize the path of ld
9145 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9146 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9147 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9148 done
9149 test -z "$LD" && LD="$ac_prog"
9150 ;;
9151 "")
9152 # If it fails, then pretend we aren't using GCC.
9153 ac_prog=ld
9154 ;;
9155 *)
9156 # If it is relative, then search for the first ld in PATH.
9157 with_gnu_ld=unknown
9158 ;;
9159 esac
9160elif test "$with_gnu_ld" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009161 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9162$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009164 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9165$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166fi
9167if test "${acl_cv_path_LD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009168 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009169else
9170 if test -z "$LD"; then
9171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9172 for ac_dir in $PATH; do
9173 test -z "$ac_dir" && ac_dir=.
9174 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9175 acl_cv_path_LD="$ac_dir/$ac_prog"
9176 # Check to see if the program is GNU ld. I'd rather use --version,
9177 # but apparently some GNU ld's only accept -v.
9178 # Break only if it was the GNU/non-GNU ld that we prefer.
9179 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9180 *GNU* | *'with BFD'*)
9181 test "$with_gnu_ld" != no && break ;;
9182 *)
9183 test "$with_gnu_ld" != yes && break ;;
9184 esac
9185 fi
9186 done
9187 IFS="$ac_save_ifs"
9188else
9189 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9190fi
9191fi
9192
9193LD="$acl_cv_path_LD"
9194if test -n "$LD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009195 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9196$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009197else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009198 { $as_echo "$as_me:$LINENO: result: no" >&5
9199$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009200fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009201test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9202$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009204{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9205$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009206if test "${acl_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009207 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009208else
9209 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9210case `$LD -v 2>&1 </dev/null` in
9211*GNU* | *'with BFD'*)
9212 acl_cv_prog_gnu_ld=yes ;;
9213*)
9214 acl_cv_prog_gnu_ld=no ;;
9215esac
9216fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009217{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9218$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009219with_gnu_ld=$acl_cv_prog_gnu_ld
9220
9221
9222
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009223 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9224$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009225if test "${acl_cv_rpath+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009226 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009227else
9228
9229 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9230 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9231 . ./conftest.sh
9232 rm -f ./conftest.sh
9233 acl_cv_rpath=done
9234
9235fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009236{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9237$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009238 wl="$acl_cv_wl"
9239 libext="$acl_cv_libext"
9240 shlibext="$acl_cv_shlibext"
9241 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9242 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9243 hardcode_direct="$acl_cv_hardcode_direct"
9244 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009245 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009246if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009247 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009248else
9249 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009250fi
9251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009252
9253
9254
9255
9256
9257
9258
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 acl_save_prefix="$prefix"
9262 prefix="$acl_final_prefix"
9263 acl_save_exec_prefix="$exec_prefix"
9264 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009265
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009266 eval additional_includedir=\"$includedir\"
9267 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009268
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269 exec_prefix="$acl_save_exec_prefix"
9270 prefix="$acl_save_prefix"
9271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009272
Theodore Ts'oe1052142006-10-21 21:46:47 -04009273# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009275 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009276 if test "X$withval" = "Xno"; then
9277 use_additional=no
9278 else
9279 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 acl_save_prefix="$prefix"
9282 prefix="$acl_final_prefix"
9283 acl_save_exec_prefix="$exec_prefix"
9284 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009286 eval additional_includedir=\"$includedir\"
9287 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009289 exec_prefix="$acl_save_exec_prefix"
9290 prefix="$acl_save_prefix"
9291
9292 else
9293 additional_includedir="$withval/include"
9294 additional_libdir="$withval/lib"
9295 fi
9296 fi
9297
Theodore Ts'oe1052142006-10-21 21:46:47 -04009298fi
9299
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009300 LIBICONV=
9301 LTLIBICONV=
9302 INCICONV=
9303 rpathdirs=
9304 ltrpathdirs=
9305 names_already_handled=
9306 names_next_round='iconv '
9307 while test -n "$names_next_round"; do
9308 names_this_round="$names_next_round"
9309 names_next_round=
9310 for name in $names_this_round; do
9311 already_handled=
9312 for n in $names_already_handled; do
9313 if test "$n" = "$name"; then
9314 already_handled=yes
9315 break
9316 fi
9317 done
9318 if test -z "$already_handled"; then
9319 names_already_handled="$names_already_handled $name"
9320 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9321 eval value=\"\$HAVE_LIB$uppername\"
9322 if test -n "$value"; then
9323 if test "$value" = yes; then
9324 eval value=\"\$LIB$uppername\"
9325 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9326 eval value=\"\$LTLIB$uppername\"
9327 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9328 else
9329 :
9330 fi
9331 else
9332 found_dir=
9333 found_la=
9334 found_so=
9335 found_a=
9336 if test $use_additional = yes; then
9337 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9338 found_dir="$additional_libdir"
9339 found_so="$additional_libdir/lib$name.$shlibext"
9340 if test -f "$additional_libdir/lib$name.la"; then
9341 found_la="$additional_libdir/lib$name.la"
9342 fi
9343 else
9344 if test -f "$additional_libdir/lib$name.$libext"; then
9345 found_dir="$additional_libdir"
9346 found_a="$additional_libdir/lib$name.$libext"
9347 if test -f "$additional_libdir/lib$name.la"; then
9348 found_la="$additional_libdir/lib$name.la"
9349 fi
9350 fi
9351 fi
9352 fi
9353 if test "X$found_dir" = "X"; then
9354 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009355
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009356 acl_save_prefix="$prefix"
9357 prefix="$acl_final_prefix"
9358 acl_save_exec_prefix="$exec_prefix"
9359 exec_prefix="$acl_final_exec_prefix"
9360 eval x=\"$x\"
9361 exec_prefix="$acl_save_exec_prefix"
9362 prefix="$acl_save_prefix"
9363
9364 case "$x" in
9365 -L*)
9366 dir=`echo "X$x" | sed -e 's/^X-L//'`
9367 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9368 found_dir="$dir"
9369 found_so="$dir/lib$name.$shlibext"
9370 if test -f "$dir/lib$name.la"; then
9371 found_la="$dir/lib$name.la"
9372 fi
9373 else
9374 if test -f "$dir/lib$name.$libext"; then
9375 found_dir="$dir"
9376 found_a="$dir/lib$name.$libext"
9377 if test -f "$dir/lib$name.la"; then
9378 found_la="$dir/lib$name.la"
9379 fi
9380 fi
9381 fi
9382 ;;
9383 esac
9384 if test "X$found_dir" != "X"; then
9385 break
9386 fi
9387 done
9388 fi
9389 if test "X$found_dir" != "X"; then
9390 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9391 if test "X$found_so" != "X"; then
9392 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9393 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9394 else
9395 haveit=
9396 for x in $ltrpathdirs; do
9397 if test "X$x" = "X$found_dir"; then
9398 haveit=yes
9399 break
9400 fi
9401 done
9402 if test -z "$haveit"; then
9403 ltrpathdirs="$ltrpathdirs $found_dir"
9404 fi
9405 if test "$hardcode_direct" = yes; then
9406 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9407 else
9408 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9409 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9410 haveit=
9411 for x in $rpathdirs; do
9412 if test "X$x" = "X$found_dir"; then
9413 haveit=yes
9414 break
9415 fi
9416 done
9417 if test -z "$haveit"; then
9418 rpathdirs="$rpathdirs $found_dir"
9419 fi
9420 else
9421 haveit=
9422 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009424 acl_save_prefix="$prefix"
9425 prefix="$acl_final_prefix"
9426 acl_save_exec_prefix="$exec_prefix"
9427 exec_prefix="$acl_final_exec_prefix"
9428 eval x=\"$x\"
9429 exec_prefix="$acl_save_exec_prefix"
9430 prefix="$acl_save_prefix"
9431
9432 if test "X$x" = "X-L$found_dir"; then
9433 haveit=yes
9434 break
9435 fi
9436 done
9437 if test -z "$haveit"; then
9438 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9439 fi
9440 if test "$hardcode_minus_L" != no; then
9441 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9442 else
9443 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9444 fi
9445 fi
9446 fi
9447 fi
9448 else
9449 if test "X$found_a" != "X"; then
9450 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9451 else
9452 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9453 fi
9454 fi
9455 additional_includedir=
9456 case "$found_dir" in
9457 */lib | */lib/)
9458 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9459 additional_includedir="$basedir/include"
9460 ;;
9461 esac
9462 if test "X$additional_includedir" != "X"; then
9463 if test "X$additional_includedir" != "X/usr/include"; then
9464 haveit=
9465 if test "X$additional_includedir" = "X/usr/local/include"; then
9466 if test -n "$GCC"; then
9467 case $host_os in
9468 linux*) haveit=yes;;
9469 esac
9470 fi
9471 fi
9472 if test -z "$haveit"; then
9473 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475 acl_save_prefix="$prefix"
9476 prefix="$acl_final_prefix"
9477 acl_save_exec_prefix="$exec_prefix"
9478 exec_prefix="$acl_final_exec_prefix"
9479 eval x=\"$x\"
9480 exec_prefix="$acl_save_exec_prefix"
9481 prefix="$acl_save_prefix"
9482
9483 if test "X$x" = "X-I$additional_includedir"; then
9484 haveit=yes
9485 break
9486 fi
9487 done
9488 if test -z "$haveit"; then
9489 if test -d "$additional_includedir"; then
9490 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9491 fi
9492 fi
9493 fi
9494 fi
9495 fi
9496 if test -n "$found_la"; then
9497 save_libdir="$libdir"
9498 case "$found_la" in
9499 */* | *\\*) . "$found_la" ;;
9500 *) . "./$found_la" ;;
9501 esac
9502 libdir="$save_libdir"
9503 for dep in $dependency_libs; do
9504 case "$dep" in
9505 -L*)
9506 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9507 if test "X$additional_libdir" != "X/usr/lib"; then
9508 haveit=
9509 if test "X$additional_libdir" = "X/usr/local/lib"; then
9510 if test -n "$GCC"; then
9511 case $host_os in
9512 linux*) haveit=yes;;
9513 esac
9514 fi
9515 fi
9516 if test -z "$haveit"; then
9517 haveit=
9518 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009519
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009520 acl_save_prefix="$prefix"
9521 prefix="$acl_final_prefix"
9522 acl_save_exec_prefix="$exec_prefix"
9523 exec_prefix="$acl_final_exec_prefix"
9524 eval x=\"$x\"
9525 exec_prefix="$acl_save_exec_prefix"
9526 prefix="$acl_save_prefix"
9527
9528 if test "X$x" = "X-L$additional_libdir"; then
9529 haveit=yes
9530 break
9531 fi
9532 done
9533 if test -z "$haveit"; then
9534 if test -d "$additional_libdir"; then
9535 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9536 fi
9537 fi
9538 haveit=
9539 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009540
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009541 acl_save_prefix="$prefix"
9542 prefix="$acl_final_prefix"
9543 acl_save_exec_prefix="$exec_prefix"
9544 exec_prefix="$acl_final_exec_prefix"
9545 eval x=\"$x\"
9546 exec_prefix="$acl_save_exec_prefix"
9547 prefix="$acl_save_prefix"
9548
9549 if test "X$x" = "X-L$additional_libdir"; then
9550 haveit=yes
9551 break
9552 fi
9553 done
9554 if test -z "$haveit"; then
9555 if test -d "$additional_libdir"; then
9556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9557 fi
9558 fi
9559 fi
9560 fi
9561 ;;
9562 -R*)
9563 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9564 if test "$enable_rpath" != no; then
9565 haveit=
9566 for x in $rpathdirs; do
9567 if test "X$x" = "X$dir"; then
9568 haveit=yes
9569 break
9570 fi
9571 done
9572 if test -z "$haveit"; then
9573 rpathdirs="$rpathdirs $dir"
9574 fi
9575 haveit=
9576 for x in $ltrpathdirs; do
9577 if test "X$x" = "X$dir"; then
9578 haveit=yes
9579 break
9580 fi
9581 done
9582 if test -z "$haveit"; then
9583 ltrpathdirs="$ltrpathdirs $dir"
9584 fi
9585 fi
9586 ;;
9587 -l*)
9588 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9589 ;;
9590 *.la)
9591 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9592 ;;
9593 *)
9594 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9595 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9596 ;;
9597 esac
9598 done
9599 fi
9600 else
9601 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9602 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9603 fi
9604 fi
9605 fi
9606 done
9607 done
9608 if test "X$rpathdirs" != "X"; then
9609 if test -n "$hardcode_libdir_separator"; then
9610 alldirs=
9611 for found_dir in $rpathdirs; do
9612 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9613 done
9614 acl_save_libdir="$libdir"
9615 libdir="$alldirs"
9616 eval flag=\"$hardcode_libdir_flag_spec\"
9617 libdir="$acl_save_libdir"
9618 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9619 else
9620 for found_dir in $rpathdirs; do
9621 acl_save_libdir="$libdir"
9622 libdir="$found_dir"
9623 eval flag=\"$hardcode_libdir_flag_spec\"
9624 libdir="$acl_save_libdir"
9625 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9626 done
9627 fi
9628 fi
9629 if test "X$ltrpathdirs" != "X"; then
9630 for found_dir in $ltrpathdirs; do
9631 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9632 done
9633 fi
9634
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009635
9636
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009637
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009638
9639
9640
9641
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009642 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9643$as_echo_n "checking for ptrdiff_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009644if test "${ac_cv_type_ptrdiff_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009645 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009646else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009647 ac_cv_type_ptrdiff_t=no
9648cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649/* confdefs.h. */
9650_ACEOF
9651cat confdefs.h >>conftest.$ac_ext
9652cat >>conftest.$ac_ext <<_ACEOF
9653/* end confdefs.h. */
9654$ac_includes_default
9655int
9656main ()
9657{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009658if (sizeof (ptrdiff_t))
9659 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009660 ;
9661 return 0;
9662}
9663_ACEOF
9664rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009665if { (ac_try="$ac_compile"
9666case "(($ac_try" in
9667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9668 *) ac_try_echo=$ac_try;;
9669esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9671$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009672 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009673 ac_status=$?
9674 grep -v '^ *+' conftest.er1 >conftest.err
9675 rm -f conftest.er1
9676 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009682 cat >conftest.$ac_ext <<_ACEOF
9683/* confdefs.h. */
9684_ACEOF
9685cat confdefs.h >>conftest.$ac_ext
9686cat >>conftest.$ac_ext <<_ACEOF
9687/* end confdefs.h. */
9688$ac_includes_default
9689int
9690main ()
9691{
9692if (sizeof ((ptrdiff_t)))
9693 return 0;
9694 ;
9695 return 0;
9696}
9697_ACEOF
9698rm -f conftest.$ac_objext
9699if { (ac_try="$ac_compile"
9700case "(($ac_try" in
9701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9702 *) ac_try_echo=$ac_try;;
9703esac
9704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9705$as_echo "$ac_try_echo") >&5
9706 (eval "$ac_compile") 2>conftest.er1
9707 ac_status=$?
9708 grep -v '^ *+' conftest.er1 >conftest.err
9709 rm -f conftest.er1
9710 cat conftest.err >&5
9711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9712 (exit $ac_status); } && {
9713 test -z "$ac_c_werror_flag" ||
9714 test ! -s conftest.err
9715 } && test -s conftest.$ac_objext; then
9716 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009717else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009718 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009719sed 's/^/| /' conftest.$ac_ext >&5
9720
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009721 ac_cv_type_ptrdiff_t=yes
9722fi
9723
9724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9725else
9726 $as_echo "$as_me: failed program was:" >&5
9727sed 's/^/| /' conftest.$ac_ext >&5
9728
9729
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009730fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009731
9732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009733fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009734{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9735$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9736if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009737 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009738else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009739
9740cat >>confdefs.h <<\_ACEOF
9741#define ptrdiff_t long
9742_ACEOF
9743
9744
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009745fi
9746
9747
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009748
9749
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009750
9751
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752
9753
9754
9755
9756
9757for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009758stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009759do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009762 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9763$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009764if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009765 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009766fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009767ac_res=`eval 'as_val=${'$as_ac_Header'}
9768 $as_echo "$as_val"'`
9769 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9770$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009771else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009773{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9774$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009775cat >conftest.$ac_ext <<_ACEOF
9776/* confdefs.h. */
9777_ACEOF
9778cat confdefs.h >>conftest.$ac_ext
9779cat >>conftest.$ac_ext <<_ACEOF
9780/* end confdefs.h. */
9781$ac_includes_default
9782#include <$ac_header>
9783_ACEOF
9784rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009785if { (ac_try="$ac_compile"
9786case "(($ac_try" in
9787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9788 *) ac_try_echo=$ac_try;;
9789esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9791$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009792 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009793 ac_status=$?
9794 grep -v '^ *+' conftest.er1 >conftest.err
9795 rm -f conftest.er1
9796 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802 ac_header_compiler=yes
9803else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009804 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009805sed 's/^/| /' conftest.$ac_ext >&5
9806
Theodore Ts'oe1052142006-10-21 21:46:47 -04009807 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809
9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009811{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9812$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009813
9814# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009815{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9816$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817cat >conftest.$ac_ext <<_ACEOF
9818/* confdefs.h. */
9819_ACEOF
9820cat confdefs.h >>conftest.$ac_ext
9821cat >>conftest.$ac_ext <<_ACEOF
9822/* end confdefs.h. */
9823#include <$ac_header>
9824_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009825if { (ac_try="$ac_cpp conftest.$ac_ext"
9826case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9829esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9831$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009838 (exit $ac_status); } >/dev/null && {
9839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009842 ac_header_preproc=yes
9843else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009844 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845sed 's/^/| /' conftest.$ac_ext >&5
9846
9847 ac_header_preproc=no
9848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009850rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009851{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9852$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009853
9854# So? What about this header?
9855case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9856 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9858$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9860$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009861 ac_header_preproc=yes
9862 ;;
9863 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9865$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9867$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9869$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9871$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9873$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9875$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009876
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877 ;;
9878esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009879{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9880$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009882 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009883else
9884 eval "$as_ac_Header=\$ac_header_preproc"
9885fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009886ac_res=`eval 'as_val=${'$as_ac_Header'}
9887 $as_echo "$as_val"'`
9888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9889$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009890
9891fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009892as_val=`eval 'as_val=${'$as_ac_Header'}
9893 $as_echo "$as_val"'`
9894 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009895 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009897_ACEOF
9898
9899fi
9900
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009901done
9902
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9927mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9928strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9929__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009930do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009931as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9932{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9933$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009934if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009935 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009936else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009937 cat >conftest.$ac_ext <<_ACEOF
9938/* confdefs.h. */
9939_ACEOF
9940cat confdefs.h >>conftest.$ac_ext
9941cat >>conftest.$ac_ext <<_ACEOF
9942/* end confdefs.h. */
9943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9945#define $ac_func innocuous_$ac_func
9946
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009947/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009948 which can conflict with char $ac_func (); below.
9949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9950 <limits.h> exists even on freestanding compilers. */
9951
9952#ifdef __STDC__
9953# include <limits.h>
9954#else
9955# include <assert.h>
9956#endif
9957
9958#undef $ac_func
9959
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960/* Override any GCC internal prototype to avoid an error.
9961 Use char because int might match the return type of a GCC
9962 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009963#ifdef __cplusplus
9964extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009967/* The GNU C library defines this for functions which it implements
9968 to always fail with ENOSYS. Some functions are actually named
9969 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009970#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009971choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009972#endif
9973
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974int
9975main ()
9976{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009978 ;
9979 return 0;
9980}
9981_ACEOF
9982rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009983if { (ac_try="$ac_link"
9984case "(($ac_try" in
9985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9986 *) ac_try_echo=$ac_try;;
9987esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9989$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009990 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009991 ac_status=$?
9992 grep -v '^ *+' conftest.er1 >conftest.err
9993 rm -f conftest.er1
9994 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009996 (exit $ac_status); } && {
9997 test -z "$ac_c_werror_flag" ||
9998 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009999 } && test -s conftest$ac_exeext && {
10000 test "$cross_compiling" = yes ||
10001 $as_test_x conftest$ac_exeext
10002 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010003 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010004else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010005 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010006sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010007
Theodore Ts'oe1052142006-10-21 21:46:47 -040010008 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010010
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010011rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010013 conftest$ac_exeext conftest.$ac_ext
10014fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010015ac_res=`eval 'as_val=${'$as_ac_var'}
10016 $as_echo "$as_val"'`
10017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10018$as_echo "$ac_res" >&6; }
10019as_val=`eval 'as_val=${'$as_ac_var'}
10020 $as_echo "$as_val"'`
10021 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010022 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010023#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010024_ACEOF
10025
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010026fi
10027done
10028
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010030
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010031 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10032$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033if test "${ac_cv_have_decl__snprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010034 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010035else
10036 cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
10042#include <stdio.h>
10043int
10044main ()
10045{
10046
10047#ifndef _snprintf
10048 char *p = (char *) _snprintf;
10049#endif
10050
10051 ;
10052 return 0;
10053}
10054_ACEOF
10055rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056if { (ac_try="$ac_compile"
10057case "(($ac_try" in
10058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059 *) ac_try_echo=$ac_try;;
10060esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010063 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010064 ac_status=$?
10065 grep -v '^ *+' conftest.er1 >conftest.err
10066 rm -f conftest.er1
10067 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010069 (exit $ac_status); } && {
10070 test -z "$ac_c_werror_flag" ||
10071 test ! -s conftest.err
10072 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073 ac_cv_have_decl__snprintf=yes
10074else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010075 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010076sed 's/^/| /' conftest.$ac_ext >&5
10077
Theodore Ts'oe1052142006-10-21 21:46:47 -040010078 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010079fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010080
10081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010083{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10084$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085 if test $ac_cv_have_decl__snprintf = yes; then
10086 gt_value=1
10087 else
10088 gt_value=0
10089 fi
10090
10091cat >>confdefs.h <<_ACEOF
10092#define HAVE_DECL__SNPRINTF $gt_value
10093_ACEOF
10094
10095
10096
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010097 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10098$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099if test "${ac_cv_have_decl__snwprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010100 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101else
10102 cat >conftest.$ac_ext <<_ACEOF
10103/* confdefs.h. */
10104_ACEOF
10105cat confdefs.h >>conftest.$ac_ext
10106cat >>conftest.$ac_ext <<_ACEOF
10107/* end confdefs.h. */
10108#include <stdio.h>
10109int
10110main ()
10111{
10112
10113#ifndef _snwprintf
10114 char *p = (char *) _snwprintf;
10115#endif
10116
10117 ;
10118 return 0;
10119}
10120_ACEOF
10121rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010122if { (ac_try="$ac_compile"
10123case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10128$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010129 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010135 (exit $ac_status); } && {
10136 test -z "$ac_c_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010139 ac_cv_have_decl__snwprintf=yes
10140else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010141 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142sed 's/^/| /' conftest.$ac_ext >&5
10143
Theodore Ts'oe1052142006-10-21 21:46:47 -040010144 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010145fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010146
10147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010149{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10150$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151 if test $ac_cv_have_decl__snwprintf = yes; then
10152 gt_value=1
10153 else
10154 gt_value=0
10155 fi
10156
10157cat >>confdefs.h <<_ACEOF
10158#define HAVE_DECL__SNWPRINTF $gt_value
10159_ACEOF
10160
10161
10162
10163
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010164 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10165$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010167 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010168else
10169 cat >conftest.$ac_ext <<_ACEOF
10170/* confdefs.h. */
10171_ACEOF
10172cat confdefs.h >>conftest.$ac_ext
10173cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h. */
10175#include <stdio.h>
10176int
10177main ()
10178{
10179
10180#ifndef feof_unlocked
10181 char *p = (char *) feof_unlocked;
10182#endif
10183
10184 ;
10185 return 0;
10186}
10187_ACEOF
10188rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010189if { (ac_try="$ac_compile"
10190case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10195$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010196 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010197 ac_status=$?
10198 grep -v '^ *+' conftest.er1 >conftest.err
10199 rm -f conftest.er1
10200 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010202 (exit $ac_status); } && {
10203 test -z "$ac_c_werror_flag" ||
10204 test ! -s conftest.err
10205 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010206 ac_cv_have_decl_feof_unlocked=yes
10207else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010208 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010209sed 's/^/| /' conftest.$ac_ext >&5
10210
Theodore Ts'oe1052142006-10-21 21:46:47 -040010211 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010213
10214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010215fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010216{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10217$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010218 if test $ac_cv_have_decl_feof_unlocked = yes; then
10219 gt_value=1
10220 else
10221 gt_value=0
10222 fi
10223
10224cat >>confdefs.h <<_ACEOF
10225#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10226_ACEOF
10227
10228
10229
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010230 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10231$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010233 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010234else
10235 cat >conftest.$ac_ext <<_ACEOF
10236/* confdefs.h. */
10237_ACEOF
10238cat confdefs.h >>conftest.$ac_ext
10239cat >>conftest.$ac_ext <<_ACEOF
10240/* end confdefs.h. */
10241#include <stdio.h>
10242int
10243main ()
10244{
10245
10246#ifndef fgets_unlocked
10247 char *p = (char *) fgets_unlocked;
10248#endif
10249
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010255if { (ac_try="$ac_compile"
10256case "(($ac_try" in
10257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10258 *) ac_try_echo=$ac_try;;
10259esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010260eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10261$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010262 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272 ac_cv_have_decl_fgets_unlocked=yes
10273else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010274 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010275sed 's/^/| /' conftest.$ac_ext >&5
10276
Theodore Ts'oe1052142006-10-21 21:46:47 -040010277 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010279
10280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010281fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010282{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10283$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010284 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10285 gt_value=1
10286 else
10287 gt_value=0
10288 fi
10289
10290cat >>confdefs.h <<_ACEOF
10291#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10292_ACEOF
10293
10294
10295
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010296 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10297$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010299 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010300else
10301 cat >conftest.$ac_ext <<_ACEOF
10302/* confdefs.h. */
10303_ACEOF
10304cat confdefs.h >>conftest.$ac_ext
10305cat >>conftest.$ac_ext <<_ACEOF
10306/* end confdefs.h. */
10307#include <stdio.h>
10308int
10309main ()
10310{
10311
10312#ifndef getc_unlocked
10313 char *p = (char *) getc_unlocked;
10314#endif
10315
10316 ;
10317 return 0;
10318}
10319_ACEOF
10320rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010321if { (ac_try="$ac_compile"
10322case "(($ac_try" in
10323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10325esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10327$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010328 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010329 ac_status=$?
10330 grep -v '^ *+' conftest.er1 >conftest.err
10331 rm -f conftest.er1
10332 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010334 (exit $ac_status); } && {
10335 test -z "$ac_c_werror_flag" ||
10336 test ! -s conftest.err
10337 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010338 ac_cv_have_decl_getc_unlocked=yes
10339else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010340 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010341sed 's/^/| /' conftest.$ac_ext >&5
10342
Theodore Ts'oe1052142006-10-21 21:46:47 -040010343 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010345
10346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010347fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010348{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10349$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010350 if test $ac_cv_have_decl_getc_unlocked = yes; then
10351 gt_value=1
10352 else
10353 gt_value=0
10354 fi
10355
10356cat >>confdefs.h <<_ACEOF
10357#define HAVE_DECL_GETC_UNLOCKED $gt_value
10358_ACEOF
10359
10360
10361
10362 case $gt_cv_func_printf_posix in
10363 *yes) HAVE_POSIX_PRINTF=1 ;;
10364 *) HAVE_POSIX_PRINTF=0 ;;
10365 esac
10366
10367 if test "$ac_cv_func_asprintf" = yes; then
10368 HAVE_ASPRINTF=1
10369 else
10370 HAVE_ASPRINTF=0
10371 fi
10372
10373 if test "$ac_cv_func_snprintf" = yes; then
10374 HAVE_SNPRINTF=1
10375 else
10376 HAVE_SNPRINTF=0
10377 fi
10378
10379 if test "$ac_cv_func_wprintf" = yes; then
10380 HAVE_WPRINTF=1
10381 else
10382 HAVE_WPRINTF=0
10383 fi
10384
10385
10386
10387
10388
10389
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010390
10391 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010392
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010393 for element in $INCICONV; do
10394 haveit=
10395 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010396
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010397 acl_save_prefix="$prefix"
10398 prefix="$acl_final_prefix"
10399 acl_save_exec_prefix="$exec_prefix"
10400 exec_prefix="$acl_final_exec_prefix"
10401 eval x=\"$x\"
10402 exec_prefix="$acl_save_exec_prefix"
10403 prefix="$acl_save_prefix"
10404
10405 if test "X$x" = "X$element"; then
10406 haveit=yes
10407 break
10408 fi
10409 done
10410 if test -z "$haveit"; then
10411 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10412 fi
10413 done
10414
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010415
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010416 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10417$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010418if test "${am_cv_func_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010419 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010420else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010422 am_cv_func_iconv="no, consider installing GNU libiconv"
10423 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010424 cat >conftest.$ac_ext <<_ACEOF
10425/* confdefs.h. */
10426_ACEOF
10427cat confdefs.h >>conftest.$ac_ext
10428cat >>conftest.$ac_ext <<_ACEOF
10429/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010430#include <stdlib.h>
10431#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010432int
10433main ()
10434{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010435iconv_t cd = iconv_open("","");
10436 iconv(cd,NULL,NULL,NULL,NULL);
10437 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010438 ;
10439 return 0;
10440}
10441_ACEOF
10442rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010443if { (ac_try="$ac_link"
10444case "(($ac_try" in
10445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10446 *) ac_try_echo=$ac_try;;
10447esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10449$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010450 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010451 ac_status=$?
10452 grep -v '^ *+' conftest.er1 >conftest.err
10453 rm -f conftest.er1
10454 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010456 (exit $ac_status); } && {
10457 test -z "$ac_c_werror_flag" ||
10458 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010459 } && test -s conftest$ac_exeext && {
10460 test "$cross_compiling" = yes ||
10461 $as_test_x conftest$ac_exeext
10462 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010463 am_cv_func_iconv=yes
10464else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010465 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010466sed 's/^/| /' conftest.$ac_ext >&5
10467
Theodore Ts'oe1052142006-10-21 21:46:47 -040010468
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010469fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010470
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010471rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010472rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010474 if test "$am_cv_func_iconv" != yes; then
10475 am_save_LIBS="$LIBS"
10476 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010477 cat >conftest.$ac_ext <<_ACEOF
10478/* confdefs.h. */
10479_ACEOF
10480cat confdefs.h >>conftest.$ac_ext
10481cat >>conftest.$ac_ext <<_ACEOF
10482/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010483#include <stdlib.h>
10484#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010485int
10486main ()
10487{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010488iconv_t cd = iconv_open("","");
10489 iconv(cd,NULL,NULL,NULL,NULL);
10490 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010491 ;
10492 return 0;
10493}
10494_ACEOF
10495rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010496if { (ac_try="$ac_link"
10497case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10500esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10502$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010503 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010509 (exit $ac_status); } && {
10510 test -z "$ac_c_werror_flag" ||
10511 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010512 } && test -s conftest$ac_exeext && {
10513 test "$cross_compiling" = yes ||
10514 $as_test_x conftest$ac_exeext
10515 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010516 am_cv_lib_iconv=yes
10517 am_cv_func_iconv=yes
10518else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010519 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520sed 's/^/| /' conftest.$ac_ext >&5
10521
Theodore Ts'oe1052142006-10-21 21:46:47 -040010522
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010523fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010524
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010525rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010526rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010527 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010528 LIBS="$am_save_LIBS"
10529 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010530
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010532{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10533$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010534 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535
10536cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010537#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010538_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010539
10540 fi
10541 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010542 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10543$as_echo_n "checking how to link with libiconv... " >&6; }
10544 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10545$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010546 else
10547 CPPFLAGS="$am_save_CPPFLAGS"
10548 LIBICONV=
10549 LTLIBICONV=
10550 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010551
10552
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010553
10554 if test "$am_cv_func_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010555 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10556$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010557 if test "${am_cv_proto_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010558 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010559else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010560
10561 cat >conftest.$ac_ext <<_ACEOF
10562/* confdefs.h. */
10563_ACEOF
10564cat confdefs.h >>conftest.$ac_ext
10565cat >>conftest.$ac_ext <<_ACEOF
10566/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010567
10568#include <stdlib.h>
10569#include <iconv.h>
10570extern
10571#ifdef __cplusplus
10572"C"
10573#endif
10574#if defined(__STDC__) || defined(__cplusplus)
10575size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10576#else
10577size_t iconv();
10578#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010580int
10581main ()
10582{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010584 ;
10585 return 0;
10586}
10587_ACEOF
10588rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010589if { (ac_try="$ac_compile"
10590case "(($ac_try" in
10591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10592 *) ac_try_echo=$ac_try;;
10593esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10595$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010596 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597 ac_status=$?
10598 grep -v '^ *+' conftest.er1 >conftest.err
10599 rm -f conftest.er1
10600 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010602 (exit $ac_status); } && {
10603 test -z "$ac_c_werror_flag" ||
10604 test ! -s conftest.err
10605 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010606 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010607else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010608 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010609sed 's/^/| /' conftest.$ac_ext >&5
10610
Theodore Ts'oe1052142006-10-21 21:46:47 -040010611 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010612fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010613
10614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010615 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 +000010616fi
10617
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010618 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010619 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010620 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010621$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010622 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010623
10624cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010625#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010627
10628 fi
10629
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010630
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010631 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10632$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633if test "${am_cv_langinfo_codeset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010634 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010635else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010636 cat >conftest.$ac_ext <<_ACEOF
10637/* confdefs.h. */
10638_ACEOF
10639cat confdefs.h >>conftest.$ac_ext
10640cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010642#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010643int
10644main ()
10645{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010646char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010647 ;
10648 return 0;
10649}
10650_ACEOF
10651rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010652if { (ac_try="$ac_link"
10653case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10656esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10658$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010659 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660 ac_status=$?
10661 grep -v '^ *+' conftest.er1 >conftest.err
10662 rm -f conftest.er1
10663 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010665 (exit $ac_status); } && {
10666 test -z "$ac_c_werror_flag" ||
10667 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010668 } && test -s conftest$ac_exeext && {
10669 test "$cross_compiling" = yes ||
10670 $as_test_x conftest$ac_exeext
10671 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010672 am_cv_langinfo_codeset=yes
10673else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010674 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010675sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010676
Theodore Ts'oe1052142006-10-21 21:46:47 -040010677 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010679
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010680rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010681rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682 conftest$ac_exeext conftest.$ac_ext
10683
10684fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010685{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10686$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010687 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010688
10689cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010690#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010691_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010692
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010693 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010694
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010695 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010696
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010697 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10698$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699if test "${am_cv_val_LC_MESSAGES+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010700 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010701else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702 cat >conftest.$ac_ext <<_ACEOF
10703/* confdefs.h. */
10704_ACEOF
10705cat confdefs.h >>conftest.$ac_ext
10706cat >>conftest.$ac_ext <<_ACEOF
10707/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010708#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709int
10710main ()
10711{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010712return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713 ;
10714 return 0;
10715}
10716_ACEOF
10717rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010718if { (ac_try="$ac_link"
10719case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010723eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010725 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010734 } && test -s conftest$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest$ac_exeext
10737 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010738 am_cv_val_LC_MESSAGES=yes
10739else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010740 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010742
Theodore Ts'oe1052142006-10-21 21:46:47 -040010743 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010745
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010746rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010747rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748 conftest$ac_exeext conftest.$ac_ext
10749fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010750{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10751$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010752 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010753
10754cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010755#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010756_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010757
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010758 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010759
10760 fi
10761
10762 for ac_prog in bison
10763do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010766{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10767$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768if test "${ac_cv_prog_INTLBISON+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010769 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010770else
10771 if test -n "$INTLBISON"; then
10772 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775for as_dir in $PATH
10776do
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010780 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 -050010781 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010782 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010783 break 2
10784 fi
10785done
10786done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010787IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010788
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789fi
10790fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010791INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792if test -n "$INTLBISON"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010793 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10794$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010795else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010796 { $as_echo "$as_me:$LINENO: result: no" >&5
10797$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010798fi
10799
Theodore Ts'oe1052142006-10-21 21:46:47 -040010800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802done
10803
10804 if test -z "$INTLBISON"; then
10805 ac_verc_fail=yes
10806 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010807 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10808$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010809 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10810 case $ac_prog_version in
10811 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10812 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10813 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10814 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10815 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010816 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10817$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010818 fi
10819 if test $ac_verc_fail = yes; then
10820 INTLBISON=:
10821 fi
10822
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'o93636bd2003-07-12 02:45:05 -040010826
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010827
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828
10829
10830
10831
10832
10833
10834
10835
10836
10837
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010838 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10839$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010841if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010842 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010843else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010844 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010845fi
10846
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010847 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10848$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010849
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010850
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010851
10852
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010853 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010854 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010856 LIBINTL=
10857 LTLIBINTL=
10858 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010859
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010860 if test "$USE_NLS" = "yes"; then
10861 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010862
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010863 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10864$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010865
Theodore Ts'oe1052142006-10-21 21:46:47 -040010866# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010867if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010868 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010869else
10870 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010871fi
10872
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010873 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10874$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010875
10876 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10877 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010879
10880
10881
10882
10883
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010884 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10885$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010886if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010887 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010888else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010889 cat >conftest.$ac_ext <<_ACEOF
10890/* confdefs.h. */
10891_ACEOF
10892cat confdefs.h >>conftest.$ac_ext
10893cat >>conftest.$ac_ext <<_ACEOF
10894/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010895#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010896extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010897extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010898int
10899main ()
10900{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010901bindtextdomain ("", "");
10902return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010903 ;
10904 return 0;
10905}
10906_ACEOF
10907rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010908if { (ac_try="$ac_link"
10909case "(($ac_try" in
10910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10911 *) ac_try_echo=$ac_try;;
10912esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10914$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010915 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010916 ac_status=$?
10917 grep -v '^ *+' conftest.er1 >conftest.err
10918 rm -f conftest.er1
10919 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010921 (exit $ac_status); } && {
10922 test -z "$ac_c_werror_flag" ||
10923 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010924 } && test -s conftest$ac_exeext && {
10925 test "$cross_compiling" = yes ||
10926 $as_test_x conftest$ac_exeext
10927 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010928 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010929else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010930 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010932
Theodore Ts'oe1052142006-10-21 21:46:47 -040010933 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010934fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010935
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010936rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010938 conftest$ac_exeext conftest.$ac_ext
10939fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010940{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10941$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010942
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010943 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010944
10945
10946
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010947 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010948
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010949 acl_save_prefix="$prefix"
10950 prefix="$acl_final_prefix"
10951 acl_save_exec_prefix="$exec_prefix"
10952 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010953
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010954 eval additional_includedir=\"$includedir\"
10955 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010956
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957 exec_prefix="$acl_save_exec_prefix"
10958 prefix="$acl_save_prefix"
10959
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010960
Theodore Ts'oe1052142006-10-21 21:46:47 -040010961# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010962if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010963 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010964 if test "X$withval" = "Xno"; then
10965 use_additional=no
10966 else
10967 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010968
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010969 acl_save_prefix="$prefix"
10970 prefix="$acl_final_prefix"
10971 acl_save_exec_prefix="$exec_prefix"
10972 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010973
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010974 eval additional_includedir=\"$includedir\"
10975 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010976
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010977 exec_prefix="$acl_save_exec_prefix"
10978 prefix="$acl_save_prefix"
10979
10980 else
10981 additional_includedir="$withval/include"
10982 additional_libdir="$withval/lib"
10983 fi
10984 fi
10985
Theodore Ts'oe1052142006-10-21 21:46:47 -040010986fi
10987
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010988 LIBINTL=
10989 LTLIBINTL=
10990 INCINTL=
10991 rpathdirs=
10992 ltrpathdirs=
10993 names_already_handled=
10994 names_next_round='intl '
10995 while test -n "$names_next_round"; do
10996 names_this_round="$names_next_round"
10997 names_next_round=
10998 for name in $names_this_round; do
10999 already_handled=
11000 for n in $names_already_handled; do
11001 if test "$n" = "$name"; then
11002 already_handled=yes
11003 break
11004 fi
11005 done
11006 if test -z "$already_handled"; then
11007 names_already_handled="$names_already_handled $name"
11008 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11009 eval value=\"\$HAVE_LIB$uppername\"
11010 if test -n "$value"; then
11011 if test "$value" = yes; then
11012 eval value=\"\$LIB$uppername\"
11013 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11014 eval value=\"\$LTLIB$uppername\"
11015 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11016 else
11017 :
11018 fi
11019 else
11020 found_dir=
11021 found_la=
11022 found_so=
11023 found_a=
11024 if test $use_additional = yes; then
11025 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11026 found_dir="$additional_libdir"
11027 found_so="$additional_libdir/lib$name.$shlibext"
11028 if test -f "$additional_libdir/lib$name.la"; then
11029 found_la="$additional_libdir/lib$name.la"
11030 fi
11031 else
11032 if test -f "$additional_libdir/lib$name.$libext"; then
11033 found_dir="$additional_libdir"
11034 found_a="$additional_libdir/lib$name.$libext"
11035 if test -f "$additional_libdir/lib$name.la"; then
11036 found_la="$additional_libdir/lib$name.la"
11037 fi
11038 fi
11039 fi
11040 fi
11041 if test "X$found_dir" = "X"; then
11042 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011044 acl_save_prefix="$prefix"
11045 prefix="$acl_final_prefix"
11046 acl_save_exec_prefix="$exec_prefix"
11047 exec_prefix="$acl_final_exec_prefix"
11048 eval x=\"$x\"
11049 exec_prefix="$acl_save_exec_prefix"
11050 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011051
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011052 case "$x" in
11053 -L*)
11054 dir=`echo "X$x" | sed -e 's/^X-L//'`
11055 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11056 found_dir="$dir"
11057 found_so="$dir/lib$name.$shlibext"
11058 if test -f "$dir/lib$name.la"; then
11059 found_la="$dir/lib$name.la"
11060 fi
11061 else
11062 if test -f "$dir/lib$name.$libext"; then
11063 found_dir="$dir"
11064 found_a="$dir/lib$name.$libext"
11065 if test -f "$dir/lib$name.la"; then
11066 found_la="$dir/lib$name.la"
11067 fi
11068 fi
11069 fi
11070 ;;
11071 esac
11072 if test "X$found_dir" != "X"; then
11073 break
11074 fi
11075 done
11076 fi
11077 if test "X$found_dir" != "X"; then
11078 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11079 if test "X$found_so" != "X"; then
11080 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11081 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11082 else
11083 haveit=
11084 for x in $ltrpathdirs; do
11085 if test "X$x" = "X$found_dir"; then
11086 haveit=yes
11087 break
11088 fi
11089 done
11090 if test -z "$haveit"; then
11091 ltrpathdirs="$ltrpathdirs $found_dir"
11092 fi
11093 if test "$hardcode_direct" = yes; then
11094 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11095 else
11096 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11097 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11098 haveit=
11099 for x in $rpathdirs; do
11100 if test "X$x" = "X$found_dir"; then
11101 haveit=yes
11102 break
11103 fi
11104 done
11105 if test -z "$haveit"; then
11106 rpathdirs="$rpathdirs $found_dir"
11107 fi
11108 else
11109 haveit=
11110 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011111
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011112 acl_save_prefix="$prefix"
11113 prefix="$acl_final_prefix"
11114 acl_save_exec_prefix="$exec_prefix"
11115 exec_prefix="$acl_final_exec_prefix"
11116 eval x=\"$x\"
11117 exec_prefix="$acl_save_exec_prefix"
11118 prefix="$acl_save_prefix"
11119
11120 if test "X$x" = "X-L$found_dir"; then
11121 haveit=yes
11122 break
11123 fi
11124 done
11125 if test -z "$haveit"; then
11126 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11127 fi
11128 if test "$hardcode_minus_L" != no; then
11129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11130 else
11131 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11132 fi
11133 fi
11134 fi
11135 fi
11136 else
11137 if test "X$found_a" != "X"; then
11138 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11139 else
11140 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11141 fi
11142 fi
11143 additional_includedir=
11144 case "$found_dir" in
11145 */lib | */lib/)
11146 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11147 additional_includedir="$basedir/include"
11148 ;;
11149 esac
11150 if test "X$additional_includedir" != "X"; then
11151 if test "X$additional_includedir" != "X/usr/include"; then
11152 haveit=
11153 if test "X$additional_includedir" = "X/usr/local/include"; then
11154 if test -n "$GCC"; then
11155 case $host_os in
11156 linux*) haveit=yes;;
11157 esac
11158 fi
11159 fi
11160 if test -z "$haveit"; then
11161 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011162
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011163 acl_save_prefix="$prefix"
11164 prefix="$acl_final_prefix"
11165 acl_save_exec_prefix="$exec_prefix"
11166 exec_prefix="$acl_final_exec_prefix"
11167 eval x=\"$x\"
11168 exec_prefix="$acl_save_exec_prefix"
11169 prefix="$acl_save_prefix"
11170
11171 if test "X$x" = "X-I$additional_includedir"; then
11172 haveit=yes
11173 break
11174 fi
11175 done
11176 if test -z "$haveit"; then
11177 if test -d "$additional_includedir"; then
11178 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11179 fi
11180 fi
11181 fi
11182 fi
11183 fi
11184 if test -n "$found_la"; then
11185 save_libdir="$libdir"
11186 case "$found_la" in
11187 */* | *\\*) . "$found_la" ;;
11188 *) . "./$found_la" ;;
11189 esac
11190 libdir="$save_libdir"
11191 for dep in $dependency_libs; do
11192 case "$dep" in
11193 -L*)
11194 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11195 if test "X$additional_libdir" != "X/usr/lib"; then
11196 haveit=
11197 if test "X$additional_libdir" = "X/usr/local/lib"; then
11198 if test -n "$GCC"; then
11199 case $host_os in
11200 linux*) haveit=yes;;
11201 esac
11202 fi
11203 fi
11204 if test -z "$haveit"; then
11205 haveit=
11206 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011207
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011208 acl_save_prefix="$prefix"
11209 prefix="$acl_final_prefix"
11210 acl_save_exec_prefix="$exec_prefix"
11211 exec_prefix="$acl_final_exec_prefix"
11212 eval x=\"$x\"
11213 exec_prefix="$acl_save_exec_prefix"
11214 prefix="$acl_save_prefix"
11215
11216 if test "X$x" = "X-L$additional_libdir"; then
11217 haveit=yes
11218 break
11219 fi
11220 done
11221 if test -z "$haveit"; then
11222 if test -d "$additional_libdir"; then
11223 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11224 fi
11225 fi
11226 haveit=
11227 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011228
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011229 acl_save_prefix="$prefix"
11230 prefix="$acl_final_prefix"
11231 acl_save_exec_prefix="$exec_prefix"
11232 exec_prefix="$acl_final_exec_prefix"
11233 eval x=\"$x\"
11234 exec_prefix="$acl_save_exec_prefix"
11235 prefix="$acl_save_prefix"
11236
11237 if test "X$x" = "X-L$additional_libdir"; then
11238 haveit=yes
11239 break
11240 fi
11241 done
11242 if test -z "$haveit"; then
11243 if test -d "$additional_libdir"; then
11244 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11245 fi
11246 fi
11247 fi
11248 fi
11249 ;;
11250 -R*)
11251 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11252 if test "$enable_rpath" != no; then
11253 haveit=
11254 for x in $rpathdirs; do
11255 if test "X$x" = "X$dir"; then
11256 haveit=yes
11257 break
11258 fi
11259 done
11260 if test -z "$haveit"; then
11261 rpathdirs="$rpathdirs $dir"
11262 fi
11263 haveit=
11264 for x in $ltrpathdirs; do
11265 if test "X$x" = "X$dir"; then
11266 haveit=yes
11267 break
11268 fi
11269 done
11270 if test -z "$haveit"; then
11271 ltrpathdirs="$ltrpathdirs $dir"
11272 fi
11273 fi
11274 ;;
11275 -l*)
11276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11277 ;;
11278 *.la)
11279 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11280 ;;
11281 *)
11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11284 ;;
11285 esac
11286 done
11287 fi
11288 else
11289 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11290 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11291 fi
11292 fi
11293 fi
11294 done
11295 done
11296 if test "X$rpathdirs" != "X"; then
11297 if test -n "$hardcode_libdir_separator"; then
11298 alldirs=
11299 for found_dir in $rpathdirs; do
11300 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11301 done
11302 acl_save_libdir="$libdir"
11303 libdir="$alldirs"
11304 eval flag=\"$hardcode_libdir_flag_spec\"
11305 libdir="$acl_save_libdir"
11306 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11307 else
11308 for found_dir in $rpathdirs; do
11309 acl_save_libdir="$libdir"
11310 libdir="$found_dir"
11311 eval flag=\"$hardcode_libdir_flag_spec\"
11312 libdir="$acl_save_libdir"
11313 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11314 done
11315 fi
11316 fi
11317 if test "X$ltrpathdirs" != "X"; then
11318 for found_dir in $ltrpathdirs; do
11319 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11320 done
11321 fi
11322
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011323 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11324$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011325if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011326 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011327else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011328 gt_save_CPPFLAGS="$CPPFLAGS"
11329 CPPFLAGS="$CPPFLAGS $INCINTL"
11330 gt_save_LIBS="$LIBS"
11331 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011332 cat >conftest.$ac_ext <<_ACEOF
11333/* confdefs.h. */
11334_ACEOF
11335cat confdefs.h >>conftest.$ac_ext
11336cat >>conftest.$ac_ext <<_ACEOF
11337/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011338#include <libintl.h>
11339extern int _nl_msg_cat_cntr;
11340extern
11341#ifdef __cplusplus
11342"C"
11343#endif
11344const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345int
11346main ()
11347{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011348bindtextdomain ("", "");
11349return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011350 ;
11351 return 0;
11352}
11353_ACEOF
11354rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011355if { (ac_try="$ac_link"
11356case "(($ac_try" in
11357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11359esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11361$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011363 ac_status=$?
11364 grep -v '^ *+' conftest.er1 >conftest.err
11365 rm -f conftest.er1
11366 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011368 (exit $ac_status); } && {
11369 test -z "$ac_c_werror_flag" ||
11370 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011371 } && test -s conftest$ac_exeext && {
11372 test "$cross_compiling" = yes ||
11373 $as_test_x conftest$ac_exeext
11374 }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011375 gt_cv_func_gnugettext1_libintl=yes
11376else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011377 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378sed 's/^/| /' conftest.$ac_ext >&5
11379
Theodore Ts'oe1052142006-10-21 21:46:47 -040011380 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011381fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011382
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011383rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011384rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011386 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11387 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 cat >conftest.$ac_ext <<_ACEOF
11389/* confdefs.h. */
11390_ACEOF
11391cat confdefs.h >>conftest.$ac_ext
11392cat >>conftest.$ac_ext <<_ACEOF
11393/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011394#include <libintl.h>
11395extern int _nl_msg_cat_cntr;
11396extern
11397#ifdef __cplusplus
11398"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011399#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011401int
11402main ()
11403{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011404bindtextdomain ("", "");
11405return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406 ;
11407 return 0;
11408}
11409_ACEOF
11410rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011411if { (ac_try="$ac_link"
11412case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11415esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11417$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419 ac_status=$?
11420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011424 (exit $ac_status); } && {
11425 test -z "$ac_c_werror_flag" ||
11426 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011427 } && test -s conftest$ac_exeext && {
11428 test "$cross_compiling" = yes ||
11429 $as_test_x conftest$ac_exeext
11430 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011431 LIBINTL="$LIBINTL $LIBICONV"
11432 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11433 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011435else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011436 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011437sed 's/^/| /' conftest.$ac_ext >&5
11438
Theodore Ts'oe1052142006-10-21 21:46:47 -040011439
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011440fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011441
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011442rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011445 fi
11446 CPPFLAGS="$gt_save_CPPFLAGS"
11447 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011448fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011449{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11450$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011451 fi
11452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011453 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11454 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455 && test "$PACKAGE" != gettext-runtime \
11456 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011457 gt_use_preinstalled_gnugettext=yes
11458 else
11459 LIBINTL=
11460 LTLIBINTL=
11461 INCINTL=
11462 fi
11463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011465 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11466 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011467 fi
11468 fi
11469
11470 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011471 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011472 USE_INCLUDED_LIBINTL=yes
11473 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11474 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11475 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011476 fi
11477
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011478 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11479 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11480 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011481 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011483
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011484 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11485 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486
11487cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011488#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011490
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011491 else
11492 USE_NLS=no
11493 fi
11494 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011495
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011496 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11497$as_echo_n "checking whether to use NLS... " >&6; }
11498 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11499$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500 if test "$USE_NLS" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011501 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11502$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11504 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11505 gt_source="external libintl"
11506 else
11507 gt_source="libc"
11508 fi
11509 else
11510 gt_source="included intl directory"
11511 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011512 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11513$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011514 fi
11515
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011516 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011517
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011518 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11519 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011520 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11521$as_echo_n "checking how to link with libintl... " >&6; }
11522 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11523$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011525 for element in $INCINTL; do
11526 haveit=
11527 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011528
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011529 acl_save_prefix="$prefix"
11530 prefix="$acl_final_prefix"
11531 acl_save_exec_prefix="$exec_prefix"
11532 exec_prefix="$acl_final_exec_prefix"
11533 eval x=\"$x\"
11534 exec_prefix="$acl_save_exec_prefix"
11535 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011536
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011537 if test "X$x" = "X$element"; then
11538 haveit=yes
11539 break
11540 fi
11541 done
11542 if test -z "$haveit"; then
11543 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11544 fi
11545 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011546
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011547 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011548
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550cat >>confdefs.h <<\_ACEOF
11551#define HAVE_GETTEXT 1
11552_ACEOF
11553
11554
11555cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011556#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011557_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011558
11559 fi
11560
11561 POSUB=po
11562 fi
11563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011564
11565 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011566 BUILD_INCLUDED_LIBINTL=yes
11567 fi
11568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569
11570
11571
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011572
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011573 nls_cv_header_intl=
11574 nls_cv_header_libgt=
11575
11576 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011578
11579 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011581
11582 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583
11584
11585 if test "$USE_INCLUDED_LIBINTL" = yes; then
11586 INTLOBJS="\$(GETTOBJS)"
11587 fi
11588
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011589
11590 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591
11592
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011593
11594 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011595
11596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011597
11598
11599
11600
11601
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011602{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11603$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11604set x ${MAKE-make}
11605ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011606if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011607 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011608else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011609 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011610SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011611all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011612 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011614# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011615case `${MAKE-make} -f conftest.make 2>/dev/null` in
11616 *@@@%%%=?*=@@@%%%*)
11617 eval ac_cv_prog_make_${ac_make}_set=yes;;
11618 *)
11619 eval ac_cv_prog_make_${ac_make}_set=no;;
11620esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011622fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011623if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011624 { $as_echo "$as_me:$LINENO: result: yes" >&5
11625$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626 SET_MAKE=
11627else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011628 { $as_echo "$as_me:$LINENO: result: no" >&5
11629$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630 SET_MAKE="MAKE=${MAKE-make}"
11631fi
11632
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011633 { $as_echo "$as_me:$LINENO: checking for GNU make" >&5
11634$as_echo_n "checking for GNU make... " >&6; }
11635if test "${_cv_gnu_make_command+set}" = set; then
11636 $as_echo_n "(cached) " >&6
11637else
11638 _cv_gnu_make_command='' ;
11639 for a in "$MAKE" make gmake gnumake ; do
11640 if test -z "$a" ; then continue ; fi ;
11641 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11642 _cv_gnu_make_command=$a ;
11643 break;
11644 fi
11645 done ;
11646
11647fi
11648{ $as_echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
11649$as_echo "$_cv_gnu_make_command" >&6; } ;
11650 if test "x$_cv_gnu_make_command" != "x" ; then
11651 ifGNUmake='' ;
11652 ifNotGNUmake='#' ;
11653 else
11654 ifGNUmake='#' ;
11655 ifNotGNUmake='' ;
11656 { $as_echo "$as_me:$LINENO: result: \"Not found\"" >&5
11657$as_echo "\"Not found\"" >&6; };
11658 fi
11659
11660
11661
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011662# Extract the first word of "ln", so it can be a program name with args.
11663set dummy ln; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011664{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11665$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666if test "${ac_cv_path_LN+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011667 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011669 case $LN in
11670 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11672 ;;
11673 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675for as_dir in $PATH
11676do
11677 IFS=$as_save_IFS
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011680 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 -050011681 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011683 break 2
11684 fi
11685done
11686done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011688
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11690 ;;
11691esac
11692fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011693LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011694if test -n "$LN"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011695 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11696$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011697else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011698 { $as_echo "$as_me:$LINENO: result: no" >&5
11699$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011700fi
11701
Theodore Ts'oe1052142006-10-21 21:46:47 -040011702
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011703{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11704$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705LN_S=$as_ln_s
11706if test "$LN_S" = "ln -s"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011707 { $as_echo "$as_me:$LINENO: result: yes" >&5
11708$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011709else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011710 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11711$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011712fi
11713
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011714# Extract the first word of "mv", so it can be a program name with args.
11715set dummy mv; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11717$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011718if test "${ac_cv_path_MV+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 case $MV in
11722 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011723 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11724 ;;
11725 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727for as_dir in $PATH
11728do
11729 IFS=$as_save_IFS
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011732 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 -050011733 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011735 break 2
11736 fi
11737done
11738done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011739IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011741 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11742 ;;
11743esac
11744fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011746if test -n "$MV"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011747 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11748$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011749else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011750 { $as_echo "$as_me:$LINENO: result: no" >&5
11751$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752fi
11753
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011755# Extract the first word of "cp", so it can be a program name with args.
11756set dummy cp; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011757{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11758$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011759if test "${ac_cv_path_CP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011760 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011761else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011762 case $CP in
11763 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011764 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11765 ;;
11766 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11768for as_dir in $PATH
11769do
11770 IFS=$as_save_IFS
11771 test -z "$as_dir" && as_dir=.
11772 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011773 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 -050011774 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011775 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011776 break 2
11777 fi
11778done
11779done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011780IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011782 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11783 ;;
11784esac
11785fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011787if test -n "$CP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011788 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11789$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011790else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011791 { $as_echo "$as_me:$LINENO: result: no" >&5
11792$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011793fi
11794
Theodore Ts'oe1052142006-10-21 21:46:47 -040011795
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011796# Extract the first word of "rm", so it can be a program name with args.
11797set dummy rm; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011798{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11799$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011800if test "${ac_cv_path_RM+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011801 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011802else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011803 case $RM in
11804 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011805 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11806 ;;
11807 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11809for as_dir in $PATH
11810do
11811 IFS=$as_save_IFS
11812 test -z "$as_dir" && as_dir=.
11813 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011814 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 -050011815 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011816 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011817 break 2
11818 fi
11819done
11820done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011821IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011822
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011823 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11824 ;;
11825esac
11826fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011827RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011828if test -n "$RM"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011829 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11830$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011831else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011832 { $as_echo "$as_me:$LINENO: result: no" >&5
11833$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011834fi
11835
Theodore Ts'oe1052142006-10-21 21:46:47 -040011836
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011837# Extract the first word of "chmod", so it can be a program name with args.
11838set dummy chmod; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011839{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11840$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011841if test "${ac_cv_path_CHMOD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011842 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011843else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844 case $CHMOD in
11845 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011846 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11847 ;;
11848 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850for as_dir in $PATH
11851do
11852 IFS=$as_save_IFS
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011855 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 -050011856 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011858 break 2
11859 fi
11860done
11861done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011864 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11865 ;;
11866esac
11867fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011869if test -n "$CHMOD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11871$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011872else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011873 { $as_echo "$as_me:$LINENO: result: no" >&5
11874$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011875fi
11876
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877
Theodore Ts'o32237012005-01-17 19:13:39 -050011878for ac_prog in gawk mawk nawk awk
11879do
11880 # Extract the first word of "$ac_prog", so it can be a program name with args.
11881set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011882{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11883$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011884if test "${ac_cv_prog_AWK+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011885 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011886else
Theodore Ts'o32237012005-01-17 19:13:39 -050011887 if test -n "$AWK"; then
11888 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11889else
11890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891for as_dir in $PATH
11892do
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011896 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 -050011897 ac_cv_prog_AWK="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011898 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011899 break 2
11900 fi
11901done
11902done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011903IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011904
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011905fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011906fi
11907AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011908if test -n "$AWK"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011909 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11910$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011911else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011912 { $as_echo "$as_me:$LINENO: result: no" >&5
11913$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011914fi
11915
Theodore Ts'oe1052142006-10-21 21:46:47 -040011916
Theodore Ts'o32237012005-01-17 19:13:39 -050011917 test -n "$AWK" && break
11918done
11919
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
11921$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011923 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011924else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011925 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11926 then ac_cv_path_EGREP="$GREP -E"
11927 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011928 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011929 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011930 # Loop through the user's path and test for each of PROGNAME-LIST
11931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011932for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11933do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11939 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11940# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941 # Check for GNU $ac_path_EGREP
11942case `"$ac_path_EGREP" --version 2>&1` in
11943*GNU*)
11944 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11945*)
11946 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011947 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011948 while :
11949 do
11950 cat "conftest.in" "conftest.in" >"conftest.tmp"
11951 mv "conftest.tmp" "conftest.in"
11952 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11956 ac_count=`expr $ac_count + 1`
11957 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11958 # Best one so far, save it but keep looking for a better one
11959 ac_cv_path_EGREP="$ac_path_EGREP"
11960 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011961 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011962 # 10*(2^10) chars as input seems more than enough
11963 test $ac_count -gt 10 && break
11964 done
11965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11966esac
11967
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011968 $ac_path_EGREP_found && break 3
11969 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011970 done
11971done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011972IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011973 if test -z "$ac_cv_path_EGREP"; then
11974 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11975$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 -040011976 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011977 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978else
11979 ac_cv_path_EGREP=$EGREP
11980fi
11981
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982 fi
11983fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011984{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11985$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011986 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011987
11988
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011989# Extract the first word of "sed", so it can be a program name with args.
11990set dummy sed; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011991{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11992$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011993if test "${ac_cv_path_SED+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011994 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011995else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996 case $SED in
11997 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11999 ;;
12000 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12002for as_dir in $PATH
12003do
12004 IFS=$as_save_IFS
12005 test -z "$as_dir" && as_dir=.
12006 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012007 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 -050012008 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012009 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012010 break 2
12011 fi
12012done
12013done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012014IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012016 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
12017 ;;
12018esac
12019fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012021if test -n "$SED"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012022 { $as_echo "$as_me:$LINENO: result: $SED" >&5
12023$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012024else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012025 { $as_echo "$as_me:$LINENO: result: no" >&5
12026$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012027fi
12028
Theodore Ts'oe1052142006-10-21 21:46:47 -040012029
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012030# Extract the first word of "perl", so it can be a program name with args.
12031set dummy perl; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12033$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034if test "${ac_cv_path_PERL+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012036else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037 case $PERL in
12038 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012039 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12040 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012041 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012048 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 -050012049 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051 break 2
12052 fi
12053done
12054done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012057 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12058 ;;
12059esac
12060fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012062if test -n "$PERL"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012063 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12064$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012065else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012066 { $as_echo "$as_me:$LINENO: result: no" >&5
12067$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012068fi
12069
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012071# Extract the first word of "ldconfig", so it can be a program name with args.
12072set dummy ldconfig; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12074$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075if test "${ac_cv_path_LDCONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012076 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012077else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078 case $LDCONFIG in
12079 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012080 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12081 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012082 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12084for as_dir in $PATH
12085do
12086 IFS=$as_save_IFS
12087 test -z "$as_dir" && as_dir=.
12088 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012089 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 -050012090 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092 break 2
12093 fi
12094done
12095done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012098 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12099 ;;
12100esac
12101fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012103if test -n "$LDCONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012104 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12105$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012106else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012107 { $as_echo "$as_me:$LINENO: result: no" >&5
12108$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012109fi
12110
Theodore Ts'oe1052142006-10-21 21:46:47 -040012111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112if test -n "$ac_tool_prefix"; then
12113 # 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 +000012114set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012115{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12116$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117if test "${ac_cv_prog_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012119else
12120 if test -n "$AR"; then
12121 ac_cv_prog_AR="$AR" # Let the user override the test.
12122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12124for as_dir in $PATH
12125do
12126 IFS=$as_save_IFS
12127 test -z "$as_dir" && as_dir=.
12128 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012129 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 -050012130 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012132 break 2
12133 fi
12134done
12135done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012138fi
12139fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012141if test -n "$AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12143$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012144else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012145 { $as_echo "$as_me:$LINENO: result: no" >&5
12146$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147fi
12148
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012150fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012152 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012153 # Extract the first word of "ar", so it can be a program name with args.
12154set dummy ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012155{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12156$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012158 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012159else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 if test -n "$ac_ct_AR"; then
12161 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164for as_dir in $PATH
12165do
12166 IFS=$as_save_IFS
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012169 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 -050012170 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 break 2
12173 fi
12174done
12175done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012177
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012178fi
12179fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180ac_ct_AR=$ac_cv_prog_ac_ct_AR
12181if test -n "$ac_ct_AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12183$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012184else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012185 { $as_echo "$as_me:$LINENO: result: no" >&5
12186$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012187fi
12188
Theodore Ts'oe1052142006-10-21 21:46:47 -040012189 if test "x$ac_ct_AR" = x; then
12190 AR="ar"
12191 else
12192 case $cross_compiling:$ac_tool_warned in
12193yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012194{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12195$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196ac_tool_warned=yes ;;
12197esac
12198 AR=$ac_ct_AR
12199 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012200else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012202fi
12203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204if test -n "$ac_tool_prefix"; then
12205 # 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 +000012206set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12208$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012210 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012211else
12212 if test -n "$RANLIB"; then
12213 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216for as_dir in $PATH
12217do
12218 IFS=$as_save_IFS
12219 test -z "$as_dir" && as_dir=.
12220 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012221 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 -050012222 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012224 break 2
12225 fi
12226done
12227done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012230fi
12231fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012233if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12235$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012236else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012237 { $as_echo "$as_me:$LINENO: result: no" >&5
12238$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239fi
12240
Theodore Ts'oe1052142006-10-21 21:46:47 -040012241
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012244 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012245 # Extract the first word of "ranlib", so it can be a program name with args.
12246set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12248$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012250 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012251else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012252 if test -n "$ac_ct_RANLIB"; then
12253 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012254else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12256for as_dir in $PATH
12257do
12258 IFS=$as_save_IFS
12259 test -z "$as_dir" && as_dir=.
12260 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012261 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 -050012262 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264 break 2
12265 fi
12266done
12267done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012268IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012269
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012270fi
12271fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012272ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12273if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012274 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12275$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012276else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012277 { $as_echo "$as_me:$LINENO: result: no" >&5
12278$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012279fi
12280
Theodore Ts'oe1052142006-10-21 21:46:47 -040012281 if test "x$ac_ct_RANLIB" = x; then
12282 RANLIB=":"
12283 else
12284 case $cross_compiling:$ac_tool_warned in
12285yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012286{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288ac_tool_warned=yes ;;
12289esac
12290 RANLIB=$ac_ct_RANLIB
12291 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012292else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012293 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012294fi
12295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012296if test -n "$ac_tool_prefix"; then
12297 # 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 +000012298set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012299{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12300$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012302 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012303else
12304 if test -n "$STRIP"; then
12305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12306else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12308for as_dir in $PATH
12309do
12310 IFS=$as_save_IFS
12311 test -z "$as_dir" && as_dir=.
12312 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012313 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 -050012314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012315 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012316 break 2
12317 fi
12318done
12319done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012320IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012321
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012322fi
12323fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012324STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012325if test -n "$STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012326 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12327$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012328else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012329 { $as_echo "$as_me:$LINENO: result: no" >&5
12330$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012331fi
12332
Theodore Ts'oe1052142006-10-21 21:46:47 -040012333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012334fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012335if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012336 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012337 # Extract the first word of "strip", so it can be a program name with args.
12338set dummy strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12340$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012341if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012342 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012343else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012344 if test -n "$ac_ct_STRIP"; then
12345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12348for as_dir in $PATH
12349do
12350 IFS=$as_save_IFS
12351 test -z "$as_dir" && as_dir=.
12352 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012353 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 -050012354 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012356 break 2
12357 fi
12358done
12359done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012360IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012361
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012362fi
12363fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12365if test -n "$ac_ct_STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012366 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12367$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012368else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012369 { $as_echo "$as_me:$LINENO: result: no" >&5
12370$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012371fi
12372
Theodore Ts'oe1052142006-10-21 21:46:47 -040012373 if test "x$ac_ct_STRIP" = x; then
12374 STRIP=":"
12375 else
12376 case $cross_compiling:$ac_tool_warned in
12377yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012378{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12379$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380ac_tool_warned=yes ;;
12381esac
12382 STRIP=$ac_ct_STRIP
12383 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012384else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012385 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012386fi
12387
Manish Katiyar7321d942008-04-14 17:20:03 +053012388# Extract the first word of "makeinfo", so it can be a program name with args.
12389set dummy makeinfo; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012390{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12391$as_echo_n "checking for $ac_word... " >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012392if test "${ac_cv_prog_MAKEINFO+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012393 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012394else
12395 if test -n "$MAKEINFO"; then
12396 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12397else
12398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12399for as_dir in $PATH
12400do
12401 IFS=$as_save_IFS
12402 test -z "$as_dir" && as_dir=.
12403 for ac_exec_ext in '' $ac_executable_extensions; do
12404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12405 ac_cv_prog_MAKEINFO="makeinfo"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012407 break 2
12408 fi
12409done
12410done
12411IFS=$as_save_IFS
12412
12413fi
12414fi
12415MAKEINFO=$ac_cv_prog_MAKEINFO
12416if test -n "$MAKEINFO"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012417 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12418$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012419else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012420 { $as_echo "$as_me:$LINENO: result: no" >&5
12421$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012422fi
12423
12424
12425if test "_$MAKEINFO" = "_"; then
12426 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12427else
12428 case "$MAKEINFO" in
12429 */missing.*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012430 { $as_echo "$as_me:$LINENO: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012431*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012432$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012433*** Makeinfo is missing. Info documentation will not be built." >&2;}
12434 ;;
12435 *)
12436 ;;
12437 esac
12438fi
12439
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012440# Find a good install program. We prefer a C program (faster),
12441# so one script is as good as another. But avoid the broken or
12442# incompatible versions:
12443# SysV /etc/install, /usr/sbin/install
12444# SunOS /usr/etc/install
12445# IRIX /sbin/install
12446# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012447# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012448# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012449# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12450# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012452# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012453# Reject install programs that cannot install multiple files.
12454{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12455$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012456if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012457if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012458 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461for as_dir in $PATH
12462do
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 # Account for people who put trailing slashes in PATH elements.
12466case $as_dir/ in
12467 ./ | .// | /cC/* | \
12468 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12469 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12470 /usr/ucb/* ) ;;
12471 *)
12472 # OSF1 and SCO ODT 3.0 have their own names for install.
12473 # Don't use installbsd from OSF since it installs stuff as root
12474 # by default.
12475 for ac_prog in ginstall scoinst install; do
12476 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012477 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 +000012478 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012479 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012480 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012481 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482 elif test $ac_prog = install &&
12483 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12484 # program-specific install script used by HP pwplus--don't use.
12485 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012486 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012487 rm -rf conftest.one conftest.two conftest.dir
12488 echo one > conftest.one
12489 echo two > conftest.two
12490 mkdir conftest.dir
12491 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12492 test -s conftest.one && test -s conftest.two &&
12493 test -s conftest.dir/conftest.one &&
12494 test -s conftest.dir/conftest.two
12495 then
12496 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12497 break 3
12498 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012499 fi
12500 fi
12501 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012502 done
12503 ;;
12504esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012506done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012507IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012508
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012509rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012510
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012511fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012512 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012514 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515 # As a last resort, use the slow shell script. Don't cache a
12516 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012517 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012518 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012520 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012521fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012522{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12523$as_echo "$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012524
12525# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12526# It thinks the first close brace ends the variable substitution.
12527test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12528
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012529test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012530
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012531test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12532
Theodore Ts'o6c133521999-07-03 20:37:03 +000012533# See if we need a separate native compiler.
12534if test $cross_compiling = no; then
12535 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012536
Theodore Ts'o6c133521999-07-03 20:37:03 +000012537else
12538 for ac_prog in gcc cc
12539do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012541set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012542{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12543$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544if test "${ac_cv_prog_BUILD_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012545 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012546else
12547 if test -n "$BUILD_CC"; then
12548 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12549else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12551for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012552do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553 IFS=$as_save_IFS
12554 test -z "$as_dir" && as_dir=.
12555 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012556 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 -050012557 ac_cv_prog_BUILD_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012558 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559 break 2
12560 fi
12561done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012562done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012563IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565fi
12566fi
12567BUILD_CC=$ac_cv_prog_BUILD_CC
12568if test -n "$BUILD_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012569 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12570$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012571else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012572 { $as_echo "$as_me:$LINENO: result: no" >&5
12573$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574fi
12575
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577 test -n "$BUILD_CC" && break
12578done
12579
12580fi
12581
Theodore Ts'o740837d2007-12-16 17:21:38 -050012582
12583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584
12585
12586
12587
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012612
Theodore Ts'o106ad962007-04-04 21:26:37 -040012613
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010012614
12615
Theodore Ts'o3d058022008-07-12 22:06:30 -040012616
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040012617
Theodore Ts'od7f45af2008-09-12 10:15:26 -040012618
12619for 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 -050012620do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012621as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12624$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012625if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012626 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012627fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012628ac_res=`eval 'as_val=${'$as_ac_Header'}
12629 $as_echo "$as_val"'`
12630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12631$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012632else
12633 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012634{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12635$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012636cat >conftest.$ac_ext <<_ACEOF
12637/* confdefs.h. */
12638_ACEOF
12639cat confdefs.h >>conftest.$ac_ext
12640cat >>conftest.$ac_ext <<_ACEOF
12641/* end confdefs.h. */
12642$ac_includes_default
12643#include <$ac_header>
12644_ACEOF
12645rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012646if { (ac_try="$ac_compile"
12647case "(($ac_try" in
12648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12650esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12652$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012653 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654 ac_status=$?
12655 grep -v '^ *+' conftest.er1 >conftest.err
12656 rm -f conftest.er1
12657 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012659 (exit $ac_status); } && {
12660 test -z "$ac_c_werror_flag" ||
12661 test ! -s conftest.err
12662 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012663 ac_header_compiler=yes
12664else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666sed 's/^/| /' conftest.$ac_ext >&5
12667
Theodore Ts'oe1052142006-10-21 21:46:47 -040012668 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012670
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012672{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12673$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012674
12675# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012676{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12677$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678cat >conftest.$ac_ext <<_ACEOF
12679/* confdefs.h. */
12680_ACEOF
12681cat confdefs.h >>conftest.$ac_ext
12682cat >>conftest.$ac_ext <<_ACEOF
12683/* end confdefs.h. */
12684#include <$ac_header>
12685_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012686if { (ac_try="$ac_cpp conftest.$ac_ext"
12687case "(($ac_try" in
12688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12689 *) ac_try_echo=$ac_try;;
12690esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12692$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694 ac_status=$?
12695 grep -v '^ *+' conftest.er1 >conftest.err
12696 rm -f conftest.er1
12697 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012699 (exit $ac_status); } >/dev/null && {
12700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12701 test ! -s conftest.err
12702 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703 ac_header_preproc=yes
12704else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012705 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012706sed 's/^/| /' conftest.$ac_ext >&5
12707
12708 ac_header_preproc=no
12709fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012712{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12713$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012714
12715# So? What about this header?
12716case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12717 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12719$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12721$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012722 ac_header_preproc=yes
12723 ;;
12724 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12726$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12728$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12730$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12732$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12734$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12736$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012738 ;;
12739esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012740{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12741$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012743 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744else
12745 eval "$as_ac_Header=\$ac_header_preproc"
12746fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012747ac_res=`eval 'as_val=${'$as_ac_Header'}
12748 $as_echo "$as_val"'`
12749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12750$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751
12752fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012753as_val=`eval 'as_val=${'$as_ac_Header'}
12754 $as_echo "$as_val"'`
12755 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012757#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758_ACEOF
12759
12760fi
12761
12762done
12763
12764
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012765
12766for ac_header in sys/disk.h sys/mount.h
12767do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012768as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12770$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012771if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012773else
12774 cat >conftest.$ac_ext <<_ACEOF
12775/* confdefs.h. */
12776_ACEOF
12777cat confdefs.h >>conftest.$ac_ext
12778cat >>conftest.$ac_ext <<_ACEOF
12779/* end confdefs.h. */
12780
12781#if HAVE_SYS_QUEUE_H
12782#include <sys/queue.h>
12783#endif
12784
12785
12786#include <$ac_header>
12787_ACEOF
12788rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012789if { (ac_try="$ac_compile"
12790case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12793esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12795$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012796 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012797 ac_status=$?
12798 grep -v '^ *+' conftest.er1 >conftest.err
12799 rm -f conftest.er1
12800 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012802 (exit $ac_status); } && {
12803 test -z "$ac_c_werror_flag" ||
12804 test ! -s conftest.err
12805 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012806 eval "$as_ac_Header=yes"
12807else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012808 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012809sed 's/^/| /' conftest.$ac_ext >&5
12810
Theodore Ts'oe1052142006-10-21 21:46:47 -040012811 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012812fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012813
12814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012815fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012816ac_res=`eval 'as_val=${'$as_ac_Header'}
12817 $as_echo "$as_val"'`
12818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12819$as_echo "$ac_res" >&6; }
12820as_val=`eval 'as_val=${'$as_ac_Header'}
12821 $as_echo "$as_val"'`
12822 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012823 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012824#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012825_ACEOF
12826
12827fi
12828
12829done
12830
12831
12832for ac_header in net/if.h
12833do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012834as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12835{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12836$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012837if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012838 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012839else
12840 cat >conftest.$ac_ext <<_ACEOF
12841/* confdefs.h. */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
12845/* end confdefs.h. */
12846
12847#if HAVE_SYS_TYPES_H
12848#include <sys/types.h>
12849#endif
12850#if HAVE_SYS_SOCKET
12851#include <sys/socket.h>
12852#endif
12853
12854
12855#include <$ac_header>
12856_ACEOF
12857rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858if { (ac_try="$ac_compile"
12859case "(($ac_try" in
12860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12861 *) ac_try_echo=$ac_try;;
12862esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12864$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012865 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012866 ac_status=$?
12867 grep -v '^ *+' conftest.er1 >conftest.err
12868 rm -f conftest.er1
12869 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012871 (exit $ac_status); } && {
12872 test -z "$ac_c_werror_flag" ||
12873 test ! -s conftest.err
12874 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012875 eval "$as_ac_Header=yes"
12876else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012877 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012878sed 's/^/| /' conftest.$ac_ext >&5
12879
Theodore Ts'oe1052142006-10-21 21:46:47 -040012880 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012882
12883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012884fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012885ac_res=`eval 'as_val=${'$as_ac_Header'}
12886 $as_echo "$as_val"'`
12887 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12888$as_echo "$ac_res" >&6; }
12889as_val=`eval 'as_val=${'$as_ac_Header'}
12890 $as_echo "$as_val"'`
12891 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012892 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012893#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012894_ACEOF
12895
12896fi
12897
12898done
12899
12900
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901for ac_func in vprintf
12902do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012903as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12904{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12905$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012906if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012907 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012908else
12909 cat >conftest.$ac_ext <<_ACEOF
12910/* confdefs.h. */
12911_ACEOF
12912cat confdefs.h >>conftest.$ac_ext
12913cat >>conftest.$ac_ext <<_ACEOF
12914/* end confdefs.h. */
12915/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12916 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12917#define $ac_func innocuous_$ac_func
12918
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012919/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920 which can conflict with char $ac_func (); below.
12921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12922 <limits.h> exists even on freestanding compilers. */
12923
12924#ifdef __STDC__
12925# include <limits.h>
12926#else
12927# include <assert.h>
12928#endif
12929
12930#undef $ac_func
12931
Theodore Ts'oe1052142006-10-21 21:46:47 -040012932/* Override any GCC internal prototype to avoid an error.
12933 Use char because int might match the return type of a GCC
12934 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012935#ifdef __cplusplus
12936extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012938char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012939/* The GNU C library defines this for functions which it implements
12940 to always fail with ENOSYS. Some functions are actually named
12941 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012942#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012943choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012944#endif
12945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012946int
12947main ()
12948{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012949return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950 ;
12951 return 0;
12952}
12953_ACEOF
12954rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012955if { (ac_try="$ac_link"
12956case "(($ac_try" in
12957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12958 *) ac_try_echo=$ac_try;;
12959esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012960eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12961$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012962 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012963 ac_status=$?
12964 grep -v '^ *+' conftest.er1 >conftest.err
12965 rm -f conftest.er1
12966 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012968 (exit $ac_status); } && {
12969 test -z "$ac_c_werror_flag" ||
12970 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012971 } && test -s conftest$ac_exeext && {
12972 test "$cross_compiling" = yes ||
12973 $as_test_x conftest$ac_exeext
12974 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012976else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012977 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012979
Theodore Ts'oe1052142006-10-21 21:46:47 -040012980 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012982
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012983rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012984rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012985 conftest$ac_exeext conftest.$ac_ext
12986fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012987ac_res=`eval 'as_val=${'$as_ac_var'}
12988 $as_echo "$as_val"'`
12989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12990$as_echo "$ac_res" >&6; }
12991as_val=`eval 'as_val=${'$as_ac_var'}
12992 $as_echo "$as_val"'`
12993 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012995#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012996_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012997
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012998{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12999$as_echo_n "checking for _doprnt... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013000if test "${ac_cv_func__doprnt+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013001 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013002else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013003 cat >conftest.$ac_ext <<_ACEOF
13004/* confdefs.h. */
13005_ACEOF
13006cat confdefs.h >>conftest.$ac_ext
13007cat >>conftest.$ac_ext <<_ACEOF
13008/* end confdefs.h. */
13009/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
13010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13011#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013012
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013013/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013014 which can conflict with char _doprnt (); below.
13015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13016 <limits.h> exists even on freestanding compilers. */
13017
13018#ifdef __STDC__
13019# include <limits.h>
13020#else
13021# include <assert.h>
13022#endif
13023
13024#undef _doprnt
13025
Theodore Ts'oe1052142006-10-21 21:46:47 -040013026/* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013029#ifdef __cplusplus
13030extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013033/* The GNU C library defines this for functions which it implements
13034 to always fail with ENOSYS. Some functions are actually named
13035 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013036#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013037choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013038#endif
13039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040int
13041main ()
13042{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013043return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013049if { (ac_try="$ac_link"
13050case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13055$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013056 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057 ac_status=$?
13058 grep -v '^ *+' conftest.er1 >conftest.err
13059 rm -f conftest.er1
13060 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013062 (exit $ac_status); } && {
13063 test -z "$ac_c_werror_flag" ||
13064 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013065 } && test -s conftest$ac_exeext && {
13066 test "$cross_compiling" = yes ||
13067 $as_test_x conftest$ac_exeext
13068 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013069 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013070else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013071 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013072sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013073
Theodore Ts'oe1052142006-10-21 21:46:47 -040013074 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013075fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013076
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013077rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013078rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079 conftest$ac_exeext conftest.$ac_ext
13080fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013081{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13082$as_echo "$ac_cv_func__doprnt" >&6; }
13083if test "x$ac_cv_func__doprnt" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013084
13085cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013086#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013087_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013088
13089fi
13090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091fi
13092done
13093
13094
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013095{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13096$as_echo_n "checking for struct dirent.d_reclen... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013097if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013098 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013100 cat >conftest.$ac_ext <<_ACEOF
13101/* confdefs.h. */
13102_ACEOF
13103cat confdefs.h >>conftest.$ac_ext
13104cat >>conftest.$ac_ext <<_ACEOF
13105/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013106#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108int
13109main ()
13110{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013111static struct dirent ac_aggr;
13112if (ac_aggr.d_reclen)
13113return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013114 ;
13115 return 0;
13116}
13117_ACEOF
13118rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013119if { (ac_try="$ac_compile"
13120case "(($ac_try" in
13121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13122 *) ac_try_echo=$ac_try;;
13123esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13125$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013126 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013127 ac_status=$?
13128 grep -v '^ *+' conftest.er1 >conftest.err
13129 rm -f conftest.er1
13130 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013132 (exit $ac_status); } && {
13133 test -z "$ac_c_werror_flag" ||
13134 test ! -s conftest.err
13135 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013136 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013137else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013138 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139sed 's/^/| /' conftest.$ac_ext >&5
13140
Theodore Ts'oe1052142006-10-21 21:46:47 -040013141 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147#include <dirent.h>
13148
13149int
13150main ()
13151{
13152static struct dirent ac_aggr;
13153if (sizeof ac_aggr.d_reclen)
13154return 0;
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013160if { (ac_try="$ac_compile"
13161case "(($ac_try" in
13162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13163 *) ac_try_echo=$ac_try;;
13164esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013165eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13166$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013167 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013168 ac_status=$?
13169 grep -v '^ *+' conftest.er1 >conftest.err
13170 rm -f conftest.er1
13171 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013173 (exit $ac_status); } && {
13174 test -z "$ac_c_werror_flag" ||
13175 test ! -s conftest.err
13176 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013177 ac_cv_member_struct_dirent_d_reclen=yes
13178else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013179 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013180sed 's/^/| /' conftest.$ac_ext >&5
13181
Theodore Ts'oe1052142006-10-21 21:46:47 -040013182 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013183fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013184
13185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013187
13188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013189fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013190{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13191$as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13192if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013193 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013194#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013195_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013196
13197fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013198
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013199{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13200$as_echo_n "checking for ssize_t... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013201if test "${ac_cv_type_ssize_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013202 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013203else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013204 ac_cv_type_ssize_t=no
13205cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013206/* confdefs.h. */
13207_ACEOF
13208cat confdefs.h >>conftest.$ac_ext
13209cat >>conftest.$ac_ext <<_ACEOF
13210/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013211#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013213int
13214main ()
13215{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013216if (sizeof (ssize_t))
13217 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013218 ;
13219 return 0;
13220}
13221_ACEOF
13222rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013223if { (ac_try="$ac_compile"
13224case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13227esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13229$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013230 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013231 ac_status=$?
13232 grep -v '^ *+' conftest.er1 >conftest.err
13233 rm -f conftest.er1
13234 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013240 cat >conftest.$ac_ext <<_ACEOF
13241/* confdefs.h. */
13242_ACEOF
13243cat confdefs.h >>conftest.$ac_ext
13244cat >>conftest.$ac_ext <<_ACEOF
13245/* end confdefs.h. */
13246#include <sys/types.h>
13247
13248int
13249main ()
13250{
13251if (sizeof ((ssize_t)))
13252 return 0;
13253 ;
13254 return 0;
13255}
13256_ACEOF
13257rm -f conftest.$ac_objext
13258if { (ac_try="$ac_compile"
13259case "(($ac_try" in
13260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13261 *) ac_try_echo=$ac_try;;
13262esac
13263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13264$as_echo "$ac_try_echo") >&5
13265 (eval "$ac_compile") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest.$ac_objext; then
13275 :
Theodore Ts'offf45482003-04-13 00:44:19 -040013276else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013277 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278sed 's/^/| /' conftest.$ac_ext >&5
13279
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013280 ac_cv_type_ssize_t=yes
13281fi
13282
13283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284else
13285 $as_echo "$as_me: failed program was:" >&5
13286sed 's/^/| /' conftest.$ac_ext >&5
13287
13288
Theodore Ts'offf45482003-04-13 00:44:19 -040013289fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013290
13291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013292fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013293{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13294$as_echo "$ac_cv_type_ssize_t" >&6; }
13295if test "x$ac_cv_type_ssize_t" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013296 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013297#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013298_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013299
13300fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013301
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013302{ $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13303$as_echo_n "checking whether llseek is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013304if test "${ac_cv_have_decl_llseek+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013305 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013306else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013307 cat >conftest.$ac_ext <<_ACEOF
13308/* confdefs.h. */
13309_ACEOF
13310cat confdefs.h >>conftest.$ac_ext
13311cat >>conftest.$ac_ext <<_ACEOF
13312/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013313#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315int
13316main ()
13317{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013318#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013319 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013320#endif
13321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013322 ;
13323 return 0;
13324}
13325_ACEOF
13326rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013327if { (ac_try="$ac_compile"
13328case "(($ac_try" in
13329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330 *) ac_try_echo=$ac_try;;
13331esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13333$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013334 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335 ac_status=$?
13336 grep -v '^ *+' conftest.er1 >conftest.err
13337 rm -f conftest.er1
13338 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013344 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013345else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013346 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013347sed 's/^/| /' conftest.$ac_ext >&5
13348
Theodore Ts'oe1052142006-10-21 21:46:47 -040013349 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013351
13352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013353fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013354{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13355$as_echo "$ac_cv_have_decl_llseek" >&6; }
13356if test "x$ac_cv_have_decl_llseek" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013357 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013358#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013359_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013360
13361fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013362
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013363{ $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13364$as_echo_n "checking whether lseek64 is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013365if test "${ac_cv_have_decl_lseek64+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013366 $as_echo_n "(cached) " >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013368 cat >conftest.$ac_ext <<_ACEOF
13369/* confdefs.h. */
13370_ACEOF
13371cat confdefs.h >>conftest.$ac_ext
13372cat >>conftest.$ac_ext <<_ACEOF
13373/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013374#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013375 #define _LARGEFILE64_SOURCE
13376 #include <unistd.h>
13377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013378int
13379main ()
13380{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013381#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013382 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013383#endif
13384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013390if { (ac_try="$ac_compile"
13391case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13396$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013397 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013398 ac_status=$?
13399 grep -v '^ *+' conftest.er1 >conftest.err
13400 rm -f conftest.er1
13401 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013403 (exit $ac_status); } && {
13404 test -z "$ac_c_werror_flag" ||
13405 test ! -s conftest.err
13406 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013407 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013408else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013409 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013410sed 's/^/| /' conftest.$ac_ext >&5
13411
Theodore Ts'oe1052142006-10-21 21:46:47 -040013412 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013413fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013414
13415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013416fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013417{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13418$as_echo "$ac_cv_have_decl_lseek64" >&6; }
13419if test "x$ac_cv_have_decl_lseek64" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013420 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013421#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013422_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013423
13424fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013425
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013426# The cast to long int works around a bug in the HP C Compiler
13427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13429# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013430{ $as_echo "$as_me:$LINENO: checking size of short" >&5
13431$as_echo_n "checking size of short... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013432if test "${ac_cv_sizeof_short+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013433 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013434else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013435 if test "$cross_compiling" = yes; then
13436 # Depending upon the size, compute the lo and hi bounds.
13437cat >conftest.$ac_ext <<_ACEOF
13438/* confdefs.h. */
13439_ACEOF
13440cat confdefs.h >>conftest.$ac_ext
13441cat >>conftest.$ac_ext <<_ACEOF
13442/* end confdefs.h. */
13443$ac_includes_default
13444int
13445main ()
13446{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013447static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013448test_array [0] = 0
13449
13450 ;
13451 return 0;
13452}
13453_ACEOF
13454rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013455if { (ac_try="$ac_compile"
13456case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13459esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13461$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013462 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013472 ac_lo=0 ac_mid=0
13473 while :; do
13474 cat >conftest.$ac_ext <<_ACEOF
13475/* confdefs.h. */
13476_ACEOF
13477cat confdefs.h >>conftest.$ac_ext
13478cat >>conftest.$ac_ext <<_ACEOF
13479/* end confdefs.h. */
13480$ac_includes_default
13481int
13482main ()
13483{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013484static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013485test_array [0] = 0
13486
13487 ;
13488 return 0;
13489}
13490_ACEOF
13491rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013492if { (ac_try="$ac_compile"
13493case "(($ac_try" in
13494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495 *) ac_try_echo=$ac_try;;
13496esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013497eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13498$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013499 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500 ac_status=$?
13501 grep -v '^ *+' conftest.er1 >conftest.err
13502 rm -f conftest.er1
13503 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013505 (exit $ac_status); } && {
13506 test -z "$ac_c_werror_flag" ||
13507 test ! -s conftest.err
13508 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013509 ac_hi=$ac_mid; break
13510else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013511 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013512sed 's/^/| /' conftest.$ac_ext >&5
13513
Theodore Ts'oe1052142006-10-21 21:46:47 -040013514 ac_lo=`expr $ac_mid + 1`
13515 if test $ac_lo -le $ac_mid; then
13516 ac_lo= ac_hi=
13517 break
13518 fi
13519 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013520fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521
13522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013523 done
13524else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013525 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526sed 's/^/| /' conftest.$ac_ext >&5
13527
Theodore Ts'oe1052142006-10-21 21:46:47 -040013528 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
13533/* end confdefs.h. */
13534$ac_includes_default
13535int
13536main ()
13537{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013538static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013539test_array [0] = 0
13540
13541 ;
13542 return 0;
13543}
13544_ACEOF
13545rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013546if { (ac_try="$ac_compile"
13547case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013553 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563 ac_hi=-1 ac_mid=-1
13564 while :; do
13565 cat >conftest.$ac_ext <<_ACEOF
13566/* confdefs.h. */
13567_ACEOF
13568cat confdefs.h >>conftest.$ac_ext
13569cat >>conftest.$ac_ext <<_ACEOF
13570/* end confdefs.h. */
13571$ac_includes_default
13572int
13573main ()
13574{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013575static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013576test_array [0] = 0
13577
13578 ;
13579 return 0;
13580}
13581_ACEOF
13582rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013583if { (ac_try="$ac_compile"
13584case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13589$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013590 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013596 (exit $ac_status); } && {
13597 test -z "$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600 ac_lo=$ac_mid; break
13601else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013602 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013603sed 's/^/| /' conftest.$ac_ext >&5
13604
Theodore Ts'oe1052142006-10-21 21:46:47 -040013605 ac_hi=`expr '(' $ac_mid ')' - 1`
13606 if test $ac_mid -le $ac_hi; then
13607 ac_lo= ac_hi=
13608 break
13609 fi
13610 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013612
13613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013614 done
13615else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013616 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013617sed 's/^/| /' conftest.$ac_ext >&5
13618
Theodore Ts'oe1052142006-10-21 21:46:47 -040013619 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013621
13622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013623fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013624
13625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013626# Binary search between lo and hi bounds.
13627while test "x$ac_lo" != "x$ac_hi"; do
13628 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13629 cat >conftest.$ac_ext <<_ACEOF
13630/* confdefs.h. */
13631_ACEOF
13632cat confdefs.h >>conftest.$ac_ext
13633cat >>conftest.$ac_ext <<_ACEOF
13634/* end confdefs.h. */
13635$ac_includes_default
13636int
13637main ()
13638{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013639static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013640test_array [0] = 0
13641
13642 ;
13643 return 0;
13644}
13645_ACEOF
13646rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013647if { (ac_try="$ac_compile"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13653$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013654 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013655 ac_status=$?
13656 grep -v '^ *+' conftest.er1 >conftest.err
13657 rm -f conftest.er1
13658 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013660 (exit $ac_status); } && {
13661 test -z "$ac_c_werror_flag" ||
13662 test ! -s conftest.err
13663 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013664 ac_hi=$ac_mid
13665else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013666 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013667sed 's/^/| /' conftest.$ac_ext >&5
13668
Theodore Ts'oe1052142006-10-21 21:46:47 -040013669 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013671
13672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013673done
13674case $ac_lo in
13675?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013676'') if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013677 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13678$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13679{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013680See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013681$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013682See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013683 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013684 else
13685 ac_cv_sizeof_short=0
13686 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013687esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013688else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013689 cat >conftest.$ac_ext <<_ACEOF
13690/* confdefs.h. */
13691_ACEOF
13692cat confdefs.h >>conftest.$ac_ext
13693cat >>conftest.$ac_ext <<_ACEOF
13694/* end confdefs.h. */
13695$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013696static long int longval () { return (long int) (sizeof (short)); }
13697static unsigned long int ulongval () { return (long int) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013698#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013699#include <stdlib.h>
13700int
13701main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013702{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013703
13704 FILE *f = fopen ("conftest.val", "w");
13705 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013706 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013707 if (((long int) (sizeof (short))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013708 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013709 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013710 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013711 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013712 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013713 }
13714 else
13715 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013716 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013717 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013718 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013719 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013721 /* Do not output a trailing newline, as this causes \r\n confusion
13722 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013723 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013724
13725 ;
13726 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013727}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013728_ACEOF
13729rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013730if { (ac_try="$ac_link"
13731case "(($ac_try" in
13732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13734esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13736$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013737 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013738 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013741 { (case "(($ac_try" in
13742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13743 *) ac_try_echo=$ac_try;;
13744esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13746$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013747 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013748 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013750 (exit $ac_status); }; }; then
13751 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013752else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013753 $as_echo "$as_me: program exited with status $ac_status" >&5
13754$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013755sed 's/^/| /' conftest.$ac_ext >&5
13756
13757( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013758if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013759 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13761{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013763$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013764See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013765 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013766 else
13767 ac_cv_sizeof_short=0
13768 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013769fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013770rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040013771rm -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 -050013772fi
13773rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013774fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013775{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13776$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013777
13778
13779
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013780cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013781#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013782_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013783
13784
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013785# The cast to long int works around a bug in the HP C Compiler
13786# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13787# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13788# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013789{ $as_echo "$as_me:$LINENO: checking size of int" >&5
13790$as_echo_n "checking size of int... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013791if test "${ac_cv_sizeof_int+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013792 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013794 if test "$cross_compiling" = yes; then
13795 # Depending upon the size, compute the lo and hi bounds.
13796cat >conftest.$ac_ext <<_ACEOF
13797/* confdefs.h. */
13798_ACEOF
13799cat confdefs.h >>conftest.$ac_ext
13800cat >>conftest.$ac_ext <<_ACEOF
13801/* end confdefs.h. */
13802$ac_includes_default
13803int
13804main ()
13805{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013806static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013807test_array [0] = 0
13808
13809 ;
13810 return 0;
13811}
13812_ACEOF
13813rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013814if { (ac_try="$ac_compile"
13815case "(($ac_try" in
13816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13817 *) ac_try_echo=$ac_try;;
13818esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13820$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822 ac_status=$?
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013827 (exit $ac_status); } && {
13828 test -z "$ac_c_werror_flag" ||
13829 test ! -s conftest.err
13830 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831 ac_lo=0 ac_mid=0
13832 while :; do
13833 cat >conftest.$ac_ext <<_ACEOF
13834/* confdefs.h. */
13835_ACEOF
13836cat confdefs.h >>conftest.$ac_ext
13837cat >>conftest.$ac_ext <<_ACEOF
13838/* end confdefs.h. */
13839$ac_includes_default
13840int
13841main ()
13842{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013843static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013844test_array [0] = 0
13845
13846 ;
13847 return 0;
13848}
13849_ACEOF
13850rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851if { (ac_try="$ac_compile"
13852case "(($ac_try" in
13853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13854 *) ac_try_echo=$ac_try;;
13855esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13857$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013858 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013859 ac_status=$?
13860 grep -v '^ *+' conftest.er1 >conftest.err
13861 rm -f conftest.er1
13862 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013864 (exit $ac_status); } && {
13865 test -z "$ac_c_werror_flag" ||
13866 test ! -s conftest.err
13867 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013868 ac_hi=$ac_mid; break
13869else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013870 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013871sed 's/^/| /' conftest.$ac_ext >&5
13872
Theodore Ts'oe1052142006-10-21 21:46:47 -040013873 ac_lo=`expr $ac_mid + 1`
13874 if test $ac_lo -le $ac_mid; then
13875 ac_lo= ac_hi=
13876 break
13877 fi
13878 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013880
13881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882 done
13883else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013884 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885sed 's/^/| /' conftest.$ac_ext >&5
13886
Theodore Ts'oe1052142006-10-21 21:46:47 -040013887 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013888/* confdefs.h. */
13889_ACEOF
13890cat confdefs.h >>conftest.$ac_ext
13891cat >>conftest.$ac_ext <<_ACEOF
13892/* end confdefs.h. */
13893$ac_includes_default
13894int
13895main ()
13896{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013897static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898test_array [0] = 0
13899
13900 ;
13901 return 0;
13902}
13903_ACEOF
13904rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013905if { (ac_try="$ac_compile"
13906case "(($ac_try" in
13907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13908 *) ac_try_echo=$ac_try;;
13909esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13911$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013912 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913 ac_status=$?
13914 grep -v '^ *+' conftest.er1 >conftest.err
13915 rm -f conftest.er1
13916 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922 ac_hi=-1 ac_mid=-1
13923 while :; do
13924 cat >conftest.$ac_ext <<_ACEOF
13925/* confdefs.h. */
13926_ACEOF
13927cat confdefs.h >>conftest.$ac_ext
13928cat >>conftest.$ac_ext <<_ACEOF
13929/* end confdefs.h. */
13930$ac_includes_default
13931int
13932main ()
13933{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013934static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935test_array [0] = 0
13936
13937 ;
13938 return 0;
13939}
13940_ACEOF
13941rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013942if { (ac_try="$ac_compile"
13943case "(($ac_try" in
13944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13945 *) ac_try_echo=$ac_try;;
13946esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13948$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013950 ac_status=$?
13951 grep -v '^ *+' conftest.er1 >conftest.err
13952 rm -f conftest.er1
13953 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959 ac_lo=$ac_mid; break
13960else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013961 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962sed 's/^/| /' conftest.$ac_ext >&5
13963
Theodore Ts'oe1052142006-10-21 21:46:47 -040013964 ac_hi=`expr '(' $ac_mid ')' - 1`
13965 if test $ac_mid -le $ac_hi; then
13966 ac_lo= ac_hi=
13967 break
13968 fi
13969 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013971
13972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973 done
13974else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013975 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976sed 's/^/| /' conftest.$ac_ext >&5
13977
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013979fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013980
13981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013982fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013983
13984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985# Binary search between lo and hi bounds.
13986while test "x$ac_lo" != "x$ac_hi"; do
13987 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13988 cat >conftest.$ac_ext <<_ACEOF
13989/* confdefs.h. */
13990_ACEOF
13991cat confdefs.h >>conftest.$ac_ext
13992cat >>conftest.$ac_ext <<_ACEOF
13993/* end confdefs.h. */
13994$ac_includes_default
13995int
13996main ()
13997{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013998static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013999test_array [0] = 0
14000
14001 ;
14002 return 0;
14003}
14004_ACEOF
14005rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014006if { (ac_try="$ac_compile"
14007case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14012$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014014 ac_status=$?
14015 grep -v '^ *+' conftest.er1 >conftest.err
14016 rm -f conftest.er1
14017 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014019 (exit $ac_status); } && {
14020 test -z "$ac_c_werror_flag" ||
14021 test ! -s conftest.err
14022 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023 ac_hi=$ac_mid
14024else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014025 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014026sed 's/^/| /' conftest.$ac_ext >&5
14027
Theodore Ts'oe1052142006-10-21 21:46:47 -040014028 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014030
14031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032done
14033case $ac_lo in
14034?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014035'') if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014036 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14037$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14038{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014039See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014040$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014042 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014043 else
14044 ac_cv_sizeof_int=0
14045 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014046esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014048 cat >conftest.$ac_ext <<_ACEOF
14049/* confdefs.h. */
14050_ACEOF
14051cat confdefs.h >>conftest.$ac_ext
14052cat >>conftest.$ac_ext <<_ACEOF
14053/* end confdefs.h. */
14054$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014055static long int longval () { return (long int) (sizeof (int)); }
14056static unsigned long int ulongval () { return (long int) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014057#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058#include <stdlib.h>
14059int
14060main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014061{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014062
14063 FILE *f = fopen ("conftest.val", "w");
14064 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014065 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014066 if (((long int) (sizeof (int))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014067 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014068 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014069 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014070 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014071 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014072 }
14073 else
14074 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014075 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014076 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014077 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014078 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014080 /* Do not output a trailing newline, as this causes \r\n confusion
14081 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014082 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083
14084 ;
14085 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014086}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014087_ACEOF
14088rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014089if { (ac_try="$ac_link"
14090case "(($ac_try" in
14091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14092 *) ac_try_echo=$ac_try;;
14093esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14095$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014096 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014099 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014100 { (case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14105$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014106 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014107 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109 (exit $ac_status); }; }; then
14110 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014111else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014112 $as_echo "$as_me: program exited with status $ac_status" >&5
14113$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014114sed 's/^/| /' conftest.$ac_ext >&5
14115
14116( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014117if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014118 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14120{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014122$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014124 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014125 else
14126 ac_cv_sizeof_int=0
14127 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014128fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014129rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014130rm -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 -050014131fi
14132rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014133fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014134{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14135$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014136
14137
14138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014139cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014140#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014141_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014142
14143
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014144# The cast to long int works around a bug in the HP C Compiler
14145# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14146# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14147# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014148{ $as_echo "$as_me:$LINENO: checking size of long" >&5
14149$as_echo_n "checking size of long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014150if test "${ac_cv_sizeof_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014151 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014153 if test "$cross_compiling" = yes; then
14154 # Depending upon the size, compute the lo and hi bounds.
14155cat >conftest.$ac_ext <<_ACEOF
14156/* confdefs.h. */
14157_ACEOF
14158cat confdefs.h >>conftest.$ac_ext
14159cat >>conftest.$ac_ext <<_ACEOF
14160/* end confdefs.h. */
14161$ac_includes_default
14162int
14163main ()
14164{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014165static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014166test_array [0] = 0
14167
14168 ;
14169 return 0;
14170}
14171_ACEOF
14172rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014173if { (ac_try="$ac_compile"
14174case "(($ac_try" in
14175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14177esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014180 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014181 ac_status=$?
14182 grep -v '^ *+' conftest.er1 >conftest.err
14183 rm -f conftest.er1
14184 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014186 (exit $ac_status); } && {
14187 test -z "$ac_c_werror_flag" ||
14188 test ! -s conftest.err
14189 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014190 ac_lo=0 ac_mid=0
14191 while :; do
14192 cat >conftest.$ac_ext <<_ACEOF
14193/* confdefs.h. */
14194_ACEOF
14195cat confdefs.h >>conftest.$ac_ext
14196cat >>conftest.$ac_ext <<_ACEOF
14197/* end confdefs.h. */
14198$ac_includes_default
14199int
14200main ()
14201{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014202static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014203test_array [0] = 0
14204
14205 ;
14206 return 0;
14207}
14208_ACEOF
14209rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014210if { (ac_try="$ac_compile"
14211case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14216$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014217 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014218 ac_status=$?
14219 grep -v '^ *+' conftest.er1 >conftest.err
14220 rm -f conftest.er1
14221 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014223 (exit $ac_status); } && {
14224 test -z "$ac_c_werror_flag" ||
14225 test ! -s conftest.err
14226 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014227 ac_hi=$ac_mid; break
14228else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014229 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014230sed 's/^/| /' conftest.$ac_ext >&5
14231
Theodore Ts'oe1052142006-10-21 21:46:47 -040014232 ac_lo=`expr $ac_mid + 1`
14233 if test $ac_lo -le $ac_mid; then
14234 ac_lo= ac_hi=
14235 break
14236 fi
14237 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014238fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014239
14240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014241 done
14242else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014243 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014244sed 's/^/| /' conftest.$ac_ext >&5
14245
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014247/* confdefs.h. */
14248_ACEOF
14249cat confdefs.h >>conftest.$ac_ext
14250cat >>conftest.$ac_ext <<_ACEOF
14251/* end confdefs.h. */
14252$ac_includes_default
14253int
14254main ()
14255{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014256static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014257test_array [0] = 0
14258
14259 ;
14260 return 0;
14261}
14262_ACEOF
14263rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014264if { (ac_try="$ac_compile"
14265case "(($ac_try" in
14266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14267 *) ac_try_echo=$ac_try;;
14268esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014269eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14270$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272 ac_status=$?
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014277 (exit $ac_status); } && {
14278 test -z "$ac_c_werror_flag" ||
14279 test ! -s conftest.err
14280 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014281 ac_hi=-1 ac_mid=-1
14282 while :; do
14283 cat >conftest.$ac_ext <<_ACEOF
14284/* confdefs.h. */
14285_ACEOF
14286cat confdefs.h >>conftest.$ac_ext
14287cat >>conftest.$ac_ext <<_ACEOF
14288/* end confdefs.h. */
14289$ac_includes_default
14290int
14291main ()
14292{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014293static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014294test_array [0] = 0
14295
14296 ;
14297 return 0;
14298}
14299_ACEOF
14300rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301if { (ac_try="$ac_compile"
14302case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14305esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14307$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014308 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309 ac_status=$?
14310 grep -v '^ *+' conftest.er1 >conftest.err
14311 rm -f conftest.er1
14312 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014314 (exit $ac_status); } && {
14315 test -z "$ac_c_werror_flag" ||
14316 test ! -s conftest.err
14317 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014318 ac_lo=$ac_mid; break
14319else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014320 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321sed 's/^/| /' conftest.$ac_ext >&5
14322
Theodore Ts'oe1052142006-10-21 21:46:47 -040014323 ac_hi=`expr '(' $ac_mid ')' - 1`
14324 if test $ac_mid -le $ac_hi; then
14325 ac_lo= ac_hi=
14326 break
14327 fi
14328 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014329fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014330
14331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014332 done
14333else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014334 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014335sed 's/^/| /' conftest.$ac_ext >&5
14336
Theodore Ts'oe1052142006-10-21 21:46:47 -040014337 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339
14340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014342
14343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014344# Binary search between lo and hi bounds.
14345while test "x$ac_lo" != "x$ac_hi"; do
14346 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14347 cat >conftest.$ac_ext <<_ACEOF
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
14353$ac_includes_default
14354int
14355main ()
14356{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014357static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014358test_array [0] = 0
14359
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014365if { (ac_try="$ac_compile"
14366case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14371$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014372 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014373 ac_status=$?
14374 grep -v '^ *+' conftest.er1 >conftest.err
14375 rm -f conftest.er1
14376 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 ac_hi=$ac_mid
14383else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014384 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385sed 's/^/| /' conftest.$ac_ext >&5
14386
Theodore Ts'oe1052142006-10-21 21:46:47 -040014387 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014388fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014389
14390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391done
14392case $ac_lo in
14393?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014394'') if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014395 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14397{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014399$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014401 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014402 else
14403 ac_cv_sizeof_long=0
14404 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014405esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014406else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014407 cat >conftest.$ac_ext <<_ACEOF
14408/* confdefs.h. */
14409_ACEOF
14410cat confdefs.h >>conftest.$ac_ext
14411cat >>conftest.$ac_ext <<_ACEOF
14412/* end confdefs.h. */
14413$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014414static long int longval () { return (long int) (sizeof (long)); }
14415static unsigned long int ulongval () { return (long int) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014416#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014417#include <stdlib.h>
14418int
14419main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014420{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014421
14422 FILE *f = fopen ("conftest.val", "w");
14423 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014424 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014425 if (((long int) (sizeof (long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014427 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014428 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014430 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014431 }
14432 else
14433 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014434 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014435 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014437 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014439 /* Do not output a trailing newline, as this causes \r\n confusion
14440 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014441 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014442
14443 ;
14444 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014445}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446_ACEOF
14447rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014448if { (ac_try="$ac_link"
14449case "(($ac_try" in
14450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14451 *) ac_try_echo=$ac_try;;
14452esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14454$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014459 { (case "(($ac_try" in
14460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14461 *) ac_try_echo=$ac_try;;
14462esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14464$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014465 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 (exit $ac_status); }; }; then
14469 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014470else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014471 $as_echo "$as_me: program exited with status $ac_status" >&5
14472$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473sed 's/^/| /' conftest.$ac_ext >&5
14474
14475( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014476if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014477 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14479{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014481$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014482See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014483 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014484 else
14485 ac_cv_sizeof_long=0
14486 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014488rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489rm -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 -050014490fi
14491rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014492fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014493{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14494$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014495
14496
14497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014498cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014499#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014501
14502
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014503# The cast to long int works around a bug in the HP C Compiler
14504# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14505# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14506# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014507{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
14508$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014509if test "${ac_cv_sizeof_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014510 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014511else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014512 if test "$cross_compiling" = yes; then
14513 # Depending upon the size, compute the lo and hi bounds.
14514cat >conftest.$ac_ext <<_ACEOF
14515/* confdefs.h. */
14516_ACEOF
14517cat confdefs.h >>conftest.$ac_ext
14518cat >>conftest.$ac_ext <<_ACEOF
14519/* end confdefs.h. */
14520$ac_includes_default
14521int
14522main ()
14523{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014524static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014525test_array [0] = 0
14526
14527 ;
14528 return 0;
14529}
14530_ACEOF
14531rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014532if { (ac_try="$ac_compile"
14533case "(($ac_try" in
14534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14536esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14538$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014539 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540 ac_status=$?
14541 grep -v '^ *+' conftest.er1 >conftest.err
14542 rm -f conftest.er1
14543 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014545 (exit $ac_status); } && {
14546 test -z "$ac_c_werror_flag" ||
14547 test ! -s conftest.err
14548 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014549 ac_lo=0 ac_mid=0
14550 while :; do
14551 cat >conftest.$ac_ext <<_ACEOF
14552/* confdefs.h. */
14553_ACEOF
14554cat confdefs.h >>conftest.$ac_ext
14555cat >>conftest.$ac_ext <<_ACEOF
14556/* end confdefs.h. */
14557$ac_includes_default
14558int
14559main ()
14560{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014561static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562test_array [0] = 0
14563
14564 ;
14565 return 0;
14566}
14567_ACEOF
14568rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014569if { (ac_try="$ac_compile"
14570case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14573esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14575$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014576 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577 ac_status=$?
14578 grep -v '^ *+' conftest.er1 >conftest.err
14579 rm -f conftest.er1
14580 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586 ac_hi=$ac_mid; break
14587else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014588 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014589sed 's/^/| /' conftest.$ac_ext >&5
14590
Theodore Ts'oe1052142006-10-21 21:46:47 -040014591 ac_lo=`expr $ac_mid + 1`
14592 if test $ac_lo -le $ac_mid; then
14593 ac_lo= ac_hi=
14594 break
14595 fi
14596 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014597fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598
14599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014600 done
14601else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014602 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014603sed 's/^/| /' conftest.$ac_ext >&5
14604
Theodore Ts'oe1052142006-10-21 21:46:47 -040014605 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606/* confdefs.h. */
14607_ACEOF
14608cat confdefs.h >>conftest.$ac_ext
14609cat >>conftest.$ac_ext <<_ACEOF
14610/* end confdefs.h. */
14611$ac_includes_default
14612int
14613main ()
14614{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014615static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014616test_array [0] = 0
14617
14618 ;
14619 return 0;
14620}
14621_ACEOF
14622rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014623if { (ac_try="$ac_compile"
14624case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14629$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014630 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631 ac_status=$?
14632 grep -v '^ *+' conftest.er1 >conftest.err
14633 rm -f conftest.er1
14634 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014636 (exit $ac_status); } && {
14637 test -z "$ac_c_werror_flag" ||
14638 test ! -s conftest.err
14639 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014640 ac_hi=-1 ac_mid=-1
14641 while :; do
14642 cat >conftest.$ac_ext <<_ACEOF
14643/* confdefs.h. */
14644_ACEOF
14645cat confdefs.h >>conftest.$ac_ext
14646cat >>conftest.$ac_ext <<_ACEOF
14647/* end confdefs.h. */
14648$ac_includes_default
14649int
14650main ()
14651{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014652static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014653test_array [0] = 0
14654
14655 ;
14656 return 0;
14657}
14658_ACEOF
14659rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660if { (ac_try="$ac_compile"
14661case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14666$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014667 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014668 ac_status=$?
14669 grep -v '^ *+' conftest.er1 >conftest.err
14670 rm -f conftest.er1
14671 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014677 ac_lo=$ac_mid; break
14678else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014679 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014680sed 's/^/| /' conftest.$ac_ext >&5
14681
Theodore Ts'oe1052142006-10-21 21:46:47 -040014682 ac_hi=`expr '(' $ac_mid ')' - 1`
14683 if test $ac_mid -le $ac_hi; then
14684 ac_lo= ac_hi=
14685 break
14686 fi
14687 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014689
14690rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014691 done
14692else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014693 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014694sed 's/^/| /' conftest.$ac_ext >&5
14695
Theodore Ts'oe1052142006-10-21 21:46:47 -040014696 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014698
14699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014701
14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014703# Binary search between lo and hi bounds.
14704while test "x$ac_lo" != "x$ac_hi"; do
14705 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14706 cat >conftest.$ac_ext <<_ACEOF
14707/* confdefs.h. */
14708_ACEOF
14709cat confdefs.h >>conftest.$ac_ext
14710cat >>conftest.$ac_ext <<_ACEOF
14711/* end confdefs.h. */
14712$ac_includes_default
14713int
14714main ()
14715{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014716static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014717test_array [0] = 0
14718
14719 ;
14720 return 0;
14721}
14722_ACEOF
14723rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014724if { (ac_try="$ac_compile"
14725case "(($ac_try" in
14726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14727 *) ac_try_echo=$ac_try;;
14728esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14730$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014731 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732 ac_status=$?
14733 grep -v '^ *+' conftest.er1 >conftest.err
14734 rm -f conftest.er1
14735 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014737 (exit $ac_status); } && {
14738 test -z "$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14740 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014741 ac_hi=$ac_mid
14742else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014743 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014744sed 's/^/| /' conftest.$ac_ext >&5
14745
Theodore Ts'oe1052142006-10-21 21:46:47 -040014746 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014748
14749rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014750done
14751case $ac_lo in
14752?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014753'') if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014754 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14756{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014758$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014759See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014760 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014761 else
14762 ac_cv_sizeof_long_long=0
14763 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014764esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014766 cat >conftest.$ac_ext <<_ACEOF
14767/* confdefs.h. */
14768_ACEOF
14769cat confdefs.h >>conftest.$ac_ext
14770cat >>conftest.$ac_ext <<_ACEOF
14771/* end confdefs.h. */
14772$ac_includes_default
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014773static long int longval () { return (long int) (sizeof (long long)); }
14774static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014775#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776#include <stdlib.h>
14777int
14778main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014779{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014780
14781 FILE *f = fopen ("conftest.val", "w");
14782 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014783 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014784 if (((long int) (sizeof (long long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014785 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014786 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014787 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014788 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014789 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014790 }
14791 else
14792 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014793 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014794 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014795 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014796 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014798 /* Do not output a trailing newline, as this causes \r\n confusion
14799 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014800 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014801
14802 ;
14803 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014804}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014805_ACEOF
14806rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014807if { (ac_try="$ac_link"
14808case "(($ac_try" in
14809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14811esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14813$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014814 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014815 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014818 { (case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14821esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14823$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014824 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014825 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014827 (exit $ac_status); }; }; then
14828 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014829else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014830 $as_echo "$as_me: program exited with status $ac_status" >&5
14831$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014832sed 's/^/| /' conftest.$ac_ext >&5
14833
14834( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014835if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014836 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14838{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014839See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014840$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014841See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014842 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014843 else
14844 ac_cv_sizeof_long_long=0
14845 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014847rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014848rm -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 -050014849fi
14850rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014851fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014852{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14853$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014854
14855
14856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014857cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014858#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014859_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014860
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014861
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014862SIZEOF_SHORT=$ac_cv_sizeof_short
14863SIZEOF_INT=$ac_cv_sizeof_int
14864SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014865SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14866
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014867
14868
14869
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014870
14871 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14872$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014873if test "${ac_cv_c_bigendian+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014874 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014875else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014876 ac_cv_c_bigendian=unknown
14877 # See if we're dealing with a universal compiler.
14878 cat >conftest.$ac_ext <<_ACEOF
14879/* confdefs.h. */
14880_ACEOF
14881cat confdefs.h >>conftest.$ac_ext
14882cat >>conftest.$ac_ext <<_ACEOF
14883/* end confdefs.h. */
14884#ifndef __APPLE_CC__
14885 not a universal capable compiler
14886 #endif
14887 typedef int dummy;
14888
14889_ACEOF
14890rm -f conftest.$ac_objext
14891if { (ac_try="$ac_compile"
14892case "(($ac_try" in
14893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14894 *) ac_try_echo=$ac_try;;
14895esac
14896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14897$as_echo "$ac_try_echo") >&5
14898 (eval "$ac_compile") 2>conftest.er1
14899 ac_status=$?
14900 grep -v '^ *+' conftest.er1 >conftest.err
14901 rm -f conftest.er1
14902 cat conftest.err >&5
14903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && {
14905 test -z "$ac_c_werror_flag" ||
14906 test ! -s conftest.err
14907 } && test -s conftest.$ac_objext; then
14908
14909 # Check for potential -arch flags. It is not universal unless
14910 # there are some -arch flags. Note that *ppc* also matches
14911 # ppc64. This check is also rather less than ideal.
14912 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14913 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14914 esac
14915else
14916 $as_echo "$as_me: failed program was:" >&5
14917sed 's/^/| /' conftest.$ac_ext >&5
14918
14919
14920fi
14921
14922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14923 if test $ac_cv_c_bigendian = unknown; then
14924 # See if sys/param.h defines the BYTE_ORDER macro.
14925 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014926/* confdefs.h. */
14927_ACEOF
14928cat confdefs.h >>conftest.$ac_ext
14929cat >>conftest.$ac_ext <<_ACEOF
14930/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014931#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014932 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014934int
14935main ()
14936{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014937#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14938 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14939 && LITTLE_ENDIAN)
14940 bogus endian macros
14941 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942
14943 ;
14944 return 0;
14945}
14946_ACEOF
14947rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014948if { (ac_try="$ac_compile"
14949case "(($ac_try" in
14950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14952esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014955 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014961 (exit $ac_status); } && {
14962 test -z "$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014965 # It does; now see whether it defined to BIG_ENDIAN or not.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014966 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014967/* confdefs.h. */
14968_ACEOF
14969cat confdefs.h >>conftest.$ac_ext
14970cat >>conftest.$ac_ext <<_ACEOF
14971/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014972#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014973 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014975int
14976main ()
14977{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014978#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014979 not big endian
14980 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014981
14982 ;
14983 return 0;
14984}
14985_ACEOF
14986rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014987if { (ac_try="$ac_compile"
14988case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14993$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014994 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015004 ac_cv_c_bigendian=yes
15005else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015006 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015007sed 's/^/| /' conftest.$ac_ext >&5
15008
Theodore Ts'oe1052142006-10-21 21:46:47 -040015009 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015010fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015011
15012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015013else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015014 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015015sed 's/^/| /' conftest.$ac_ext >&5
15016
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015017
15018fi
15019
15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021 fi
15022 if test $ac_cv_c_bigendian = unknown; then
15023 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15024 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015025/* confdefs.h. */
15026_ACEOF
15027cat confdefs.h >>conftest.$ac_ext
15028cat >>conftest.$ac_ext <<_ACEOF
15029/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015030#include <limits.h>
15031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032int
15033main ()
15034{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015035#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15036 bogus endian macros
15037 #endif
15038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015039 ;
15040 return 0;
15041}
15042_ACEOF
15043rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015044if { (ac_try="$ac_compile"
15045case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15050$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015051 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015061 # It does; now see whether it defined to _BIG_ENDIAN or not.
15062 cat >conftest.$ac_ext <<_ACEOF
15063/* confdefs.h. */
15064_ACEOF
15065cat confdefs.h >>conftest.$ac_ext
15066cat >>conftest.$ac_ext <<_ACEOF
15067/* end confdefs.h. */
15068#include <limits.h>
15069
15070int
15071main ()
15072{
15073#ifndef _BIG_ENDIAN
15074 not big endian
15075 #endif
15076
15077 ;
15078 return 0;
15079}
15080_ACEOF
15081rm -f conftest.$ac_objext
15082if { (ac_try="$ac_compile"
15083case "(($ac_try" in
15084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15085 *) ac_try_echo=$ac_try;;
15086esac
15087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15088$as_echo "$ac_try_echo") >&5
15089 (eval "$ac_compile") 2>conftest.er1
15090 ac_status=$?
15091 grep -v '^ *+' conftest.er1 >conftest.err
15092 rm -f conftest.er1
15093 cat conftest.err >&5
15094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } && {
15096 test -z "$ac_c_werror_flag" ||
15097 test ! -s conftest.err
15098 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015099 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015100else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015101 $as_echo "$as_me: failed program was:" >&5
15102sed 's/^/| /' conftest.$ac_ext >&5
15103
15104 ac_cv_c_bigendian=no
15105fi
15106
15107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108else
15109 $as_echo "$as_me: failed program was:" >&5
15110sed 's/^/| /' conftest.$ac_ext >&5
15111
15112
15113fi
15114
15115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15116 fi
15117 if test $ac_cv_c_bigendian = unknown; then
15118 # Compile a test program.
15119 if test "$cross_compiling" = yes; then
15120 # Try to guess by grepping values from an object file.
15121 cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127short int ascii_mm[] =
15128 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15129 short int ascii_ii[] =
15130 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15131 int use_ascii (int i) {
15132 return ascii_mm[i] + ascii_ii[i];
15133 }
15134 short int ebcdic_ii[] =
15135 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15136 short int ebcdic_mm[] =
15137 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15138 int use_ebcdic (int i) {
15139 return ebcdic_mm[i] + ebcdic_ii[i];
15140 }
15141 extern int foo;
15142
15143int
15144main ()
15145{
15146return use_ascii (foo) == use_ebcdic (foo);
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext
15152if { (ac_try="$ac_compile"
15153case "(($ac_try" in
15154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15155 *) ac_try_echo=$ac_try;;
15156esac
15157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15158$as_echo "$ac_try_echo") >&5
15159 (eval "$ac_compile") 2>conftest.er1
15160 ac_status=$?
15161 grep -v '^ *+' conftest.er1 >conftest.err
15162 rm -f conftest.er1
15163 cat conftest.err >&5
15164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); } && {
15166 test -z "$ac_c_werror_flag" ||
15167 test ! -s conftest.err
15168 } && test -s conftest.$ac_objext; then
15169 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15170 ac_cv_c_bigendian=yes
15171 fi
15172 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15173 if test "$ac_cv_c_bigendian" = unknown; then
15174 ac_cv_c_bigendian=no
15175 else
15176 # finding both strings is unlikely to happen, but who knows?
15177 ac_cv_c_bigendian=unknown
15178 fi
15179 fi
15180else
15181 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015182sed 's/^/| /' conftest.$ac_ext >&5
15183
Theodore Ts'oe1052142006-10-21 21:46:47 -040015184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015185fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015186
15187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015188else
15189 cat >conftest.$ac_ext <<_ACEOF
15190/* confdefs.h. */
15191_ACEOF
15192cat confdefs.h >>conftest.$ac_ext
15193cat >>conftest.$ac_ext <<_ACEOF
15194/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015195$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015196int
15197main ()
15198{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015199
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015200 /* Are we little or big endian? From Harbison&Steele. */
15201 union
15202 {
15203 long int l;
15204 char c[sizeof (long int)];
15205 } u;
15206 u.l = 1;
15207 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015208
15209 ;
15210 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015211}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212_ACEOF
15213rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015214if { (ac_try="$ac_link"
15215case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015221 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015222 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015224 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15228esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15230$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015231 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015232 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015234 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015235 ac_cv_c_bigendian=no
15236else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015237 $as_echo "$as_me: program exited with status $ac_status" >&5
15238$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015239sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015241( exit $ac_status )
15242ac_cv_c_bigendian=yes
15243fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015244rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040015245rm -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 -040015246fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015247
15248
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015249 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015250fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015251{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15252$as_echo "$ac_cv_c_bigendian" >&6; }
15253 case $ac_cv_c_bigendian in #(
15254 yes)
15255 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015256#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015257_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015258;; #(
15259 no)
15260 ;; #(
15261 universal)
15262
15263cat >>confdefs.h <<\_ACEOF
15264#define AC_APPLE_UNIVERSAL_BUILD 1
15265_ACEOF
15266
15267 ;; #(
15268 *)
15269 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15270 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15271$as_echo "$as_me: error: unknown endianness
15272 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015273 { (exit 1); exit 1; }; } ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015274 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015275
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015276BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015277ASM_TYPES_HEADER=./asm_types.h
15278
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015279echo "/* These defines are needed for the public ext2fs.h header file */" \
15280 > public_config.h
15281if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15282 uniq tmp_config.$$ >> public_config.h
15283else
15284 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15285fi
15286if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15287 uniq tmp_config.$$ >> public_config.h
15288else
15289 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15290fi
15291rm -f tmp_config.$$
15292PUBLIC_CONFIG_HEADER=./public_config.h
15293
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015295for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015296do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015297as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015299 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15300$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015301if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015302 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015303fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015304ac_res=`eval 'as_val=${'$as_ac_Header'}
15305 $as_echo "$as_val"'`
15306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15307$as_echo "$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015309 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015310{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15311$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015312cat >conftest.$ac_ext <<_ACEOF
15313/* confdefs.h. */
15314_ACEOF
15315cat confdefs.h >>conftest.$ac_ext
15316cat >>conftest.$ac_ext <<_ACEOF
15317/* end confdefs.h. */
15318$ac_includes_default
15319#include <$ac_header>
15320_ACEOF
15321rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015322if { (ac_try="$ac_compile"
15323case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15326esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15328$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015329 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015330 ac_status=$?
15331 grep -v '^ *+' conftest.er1 >conftest.err
15332 rm -f conftest.er1
15333 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015339 ac_header_compiler=yes
15340else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015341 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015342sed 's/^/| /' conftest.$ac_ext >&5
15343
Theodore Ts'oe1052142006-10-21 21:46:47 -040015344 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015346
15347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015348{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15349$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015350
15351# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015352{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15353$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354cat >conftest.$ac_ext <<_ACEOF
15355/* confdefs.h. */
15356_ACEOF
15357cat confdefs.h >>conftest.$ac_ext
15358cat >>conftest.$ac_ext <<_ACEOF
15359/* end confdefs.h. */
15360#include <$ac_header>
15361_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015362if { (ac_try="$ac_cpp conftest.$ac_ext"
15363case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015375 (exit $ac_status); } >/dev/null && {
15376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015379 ac_header_preproc=yes
15380else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015381 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015382sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_header_preproc=no
15385fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015388{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15389$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015390
15391# So? What about this header?
15392case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15393 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15395$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15397$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398 ac_header_preproc=yes
15399 ;;
15400 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15402$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15404$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15406$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15408$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15410$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15411 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15412$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015413
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015414 ;;
15415esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015416{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15417$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015418if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015419 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015420else
15421 eval "$as_ac_Header=\$ac_header_preproc"
15422fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015423ac_res=`eval 'as_val=${'$as_ac_Header'}
15424 $as_echo "$as_val"'`
15425 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15426$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015427
15428fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015429as_val=`eval 'as_val=${'$as_ac_Header'}
15430 $as_echo "$as_val"'`
15431 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015432 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015434_ACEOF
15435
15436fi
15437
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015438done
15439
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015440{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15441$as_echo_n "checking for intptr_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015442if test "${ac_cv_type_intptr_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015443 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015444else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015445 ac_cv_type_intptr_t=no
15446cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
15451/* end confdefs.h. */
15452$ac_includes_default
15453int
15454main ()
15455{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015456if (sizeof (intptr_t))
15457 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015458 ;
15459 return 0;
15460}
15461_ACEOF
15462rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015463if { (ac_try="$ac_compile"
15464case "(($ac_try" in
15465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15466 *) ac_try_echo=$ac_try;;
15467esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15469$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015470 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015476 (exit $ac_status); } && {
15477 test -z "$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015480 cat >conftest.$ac_ext <<_ACEOF
15481/* confdefs.h. */
15482_ACEOF
15483cat confdefs.h >>conftest.$ac_ext
15484cat >>conftest.$ac_ext <<_ACEOF
15485/* end confdefs.h. */
15486$ac_includes_default
15487int
15488main ()
15489{
15490if (sizeof ((intptr_t)))
15491 return 0;
15492 ;
15493 return 0;
15494}
15495_ACEOF
15496rm -f conftest.$ac_objext
15497if { (ac_try="$ac_compile"
15498case "(($ac_try" in
15499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15500 *) ac_try_echo=$ac_try;;
15501esac
15502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15503$as_echo "$ac_try_echo") >&5
15504 (eval "$ac_compile") 2>conftest.er1
15505 ac_status=$?
15506 grep -v '^ *+' conftest.er1 >conftest.err
15507 rm -f conftest.er1
15508 cat conftest.err >&5
15509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510 (exit $ac_status); } && {
15511 test -z "$ac_c_werror_flag" ||
15512 test ! -s conftest.err
15513 } && test -s conftest.$ac_objext; then
15514 :
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015515else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015516 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015517sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015518
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015519 ac_cv_type_intptr_t=yes
15520fi
15521
15522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15523else
15524 $as_echo "$as_me: failed program was:" >&5
15525sed 's/^/| /' conftest.$ac_ext >&5
15526
15527
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015529
15530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015531fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015532{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15533$as_echo "$ac_cv_type_intptr_t" >&6; }
15534if test "x$ac_cv_type_intptr_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015535
15536cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015537#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015538_ACEOF
15539
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015541fi
15542
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015543{ $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15544$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015545if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015546 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015547else
15548 cat >conftest.$ac_ext <<_ACEOF
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015554#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015555int
15556main ()
15557{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015558struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015559 ;
15560 return 0;
15561}
15562_ACEOF
15563rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015564if { (ac_try="$ac_compile"
15565case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15568esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15570$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015571 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015572 ac_status=$?
15573 grep -v '^ *+' conftest.er1 >conftest.err
15574 rm -f conftest.er1
15575 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015577 (exit $ac_status); } && {
15578 test -z "$ac_c_werror_flag" ||
15579 test ! -s conftest.err
15580 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015581 e2fsprogs_cv_struct_st_flags=yes
15582else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015583 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015584sed 's/^/| /' conftest.$ac_ext >&5
15585
Theodore Ts'oe1052142006-10-21 21:46:47 -040015586 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015587fi
15588
Theodore Ts'oe1052142006-10-21 21:46:47 -040015589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15590fi
15591
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015592{ $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15593$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015594if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015595 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15596$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015597 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015598 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015599else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015600 cat >conftest.$ac_ext <<_ACEOF
15601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015606#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015607int
15608main ()
15609{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015610struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015611 ;
15612 return 0;
15613}
15614_ACEOF
15615rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015616if { (ac_try="$ac_compile"
15617case "(($ac_try" in
15618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619 *) ac_try_echo=$ac_try;;
15620esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15622$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015623 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015624 ac_status=$?
15625 grep -v '^ *+' conftest.er1 >conftest.err
15626 rm -f conftest.er1
15627 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015633 e2fsprogs_cv_struct_st_flags_immut=yes
15634else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015635 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015636sed 's/^/| /' conftest.$ac_ext >&5
15637
Theodore Ts'oe1052142006-10-21 21:46:47 -040015638 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015639fi
15640
Theodore Ts'oe1052142006-10-21 21:46:47 -040015641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15642fi
15643
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015644 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15645$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015646 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015647 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015648#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015649_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015650
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015651 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015652fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015653{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15654$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015655if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015656 $as_echo_n "(cached) " >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015657else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015658 cat >conftest.$ac_ext <<_ACEOF
15659/* confdefs.h. */
15660_ACEOF
15661cat confdefs.h >>conftest.$ac_ext
15662cat >>conftest.$ac_ext <<_ACEOF
15663/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015664#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015665 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015667int
15668main ()
15669{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015670static struct sockaddr ac_aggr;
15671if (ac_aggr.sa_len)
15672return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015673 ;
15674 return 0;
15675}
15676_ACEOF
15677rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015678if { (ac_try="$ac_compile"
15679case "(($ac_try" in
15680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15681 *) ac_try_echo=$ac_try;;
15682esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15684$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015685 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015686 ac_status=$?
15687 grep -v '^ *+' conftest.er1 >conftest.err
15688 rm -f conftest.er1
15689 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015691 (exit $ac_status); } && {
15692 test -z "$ac_c_werror_flag" ||
15693 test ! -s conftest.err
15694 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015695 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015696else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015697 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015698sed 's/^/| /' conftest.$ac_ext >&5
15699
Theodore Ts'oe1052142006-10-21 21:46:47 -040015700 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015701/* confdefs.h. */
15702_ACEOF
15703cat confdefs.h >>conftest.$ac_ext
15704cat >>conftest.$ac_ext <<_ACEOF
15705/* end confdefs.h. */
15706#include <sys/types.h>
15707 #include <sys/socket.h>
15708
15709int
15710main ()
15711{
15712static struct sockaddr ac_aggr;
15713if (sizeof ac_aggr.sa_len)
15714return 0;
15715 ;
15716 return 0;
15717}
15718_ACEOF
15719rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015720if { (ac_try="$ac_compile"
15721case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15724esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15726$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015727 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015728 ac_status=$?
15729 grep -v '^ *+' conftest.er1 >conftest.err
15730 rm -f conftest.er1
15731 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015733 (exit $ac_status); } && {
15734 test -z "$ac_c_werror_flag" ||
15735 test ! -s conftest.err
15736 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015737 ac_cv_member_struct_sockaddr_sa_len=yes
15738else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015739 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015740sed 's/^/| /' conftest.$ac_ext >&5
15741
Theodore Ts'oe1052142006-10-21 21:46:47 -040015742 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015744
15745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015746fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015747
15748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015749fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015750{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15751$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15752if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015753
15754cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015755#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015756_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015757
15758fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015778
Theodore Ts'o762c7c62005-04-06 14:44:16 -040015779
15780
Andreas Dilger9b7d8112005-07-09 22:06:59 -050015781
Theodore Ts'oae2868a2006-10-22 00:18:49 -040015782
Theodore Ts'o106ad962007-04-04 21:26:37 -040015783
15784
15785
Theodore Ts'o740837d2007-12-16 17:21:38 -050015786
15787
Theodore Ts'o261cd392008-01-21 13:45:00 -050015788
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040015789
15790
Theodore Ts'o1207e362009-04-15 13:05:09 -040015791
15792
15793for 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 +000015794do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015795as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15796{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15797$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015798if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015799 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015801 cat >conftest.$ac_ext <<_ACEOF
15802/* confdefs.h. */
15803_ACEOF
15804cat confdefs.h >>conftest.$ac_ext
15805cat >>conftest.$ac_ext <<_ACEOF
15806/* end confdefs.h. */
15807/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15809#define $ac_func innocuous_$ac_func
15810
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015811/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015812 which can conflict with char $ac_func (); below.
15813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15814 <limits.h> exists even on freestanding compilers. */
15815
15816#ifdef __STDC__
15817# include <limits.h>
15818#else
15819# include <assert.h>
15820#endif
15821
15822#undef $ac_func
15823
Theodore Ts'oe1052142006-10-21 21:46:47 -040015824/* Override any GCC internal prototype to avoid an error.
15825 Use char because int might match the return type of a GCC
15826 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015827#ifdef __cplusplus
15828extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015829#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015830char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015831/* The GNU C library defines this for functions which it implements
15832 to always fail with ENOSYS. Some functions are actually named
15833 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015834#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015835choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015836#endif
15837
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015838int
15839main ()
15840{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015841return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015842 ;
15843 return 0;
15844}
15845_ACEOF
15846rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015847if { (ac_try="$ac_link"
15848case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15851esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015852eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15853$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015854 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015855 ac_status=$?
15856 grep -v '^ *+' conftest.er1 >conftest.err
15857 rm -f conftest.er1
15858 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015863 } && test -s conftest$ac_exeext && {
15864 test "$cross_compiling" = yes ||
15865 $as_test_x conftest$ac_exeext
15866 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015867 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015868else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015869 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015870sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015871
Theodore Ts'oe1052142006-10-21 21:46:47 -040015872 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015873fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015874
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015875rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015877 conftest$ac_exeext conftest.$ac_ext
15878fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015879ac_res=`eval 'as_val=${'$as_ac_var'}
15880 $as_echo "$as_val"'`
15881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15882$as_echo "$ac_res" >&6; }
15883as_val=`eval 'as_val=${'$as_ac_var'}
15884 $as_echo "$as_val"'`
15885 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015886 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015887#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015888_ACEOF
15889
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015890fi
15891done
15892
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015893SOCKET_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015894{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15895$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015896if test "${ac_cv_lib_socket_socket+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015897 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015898else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015899 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015900LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015901cat >conftest.$ac_ext <<_ACEOF
15902/* confdefs.h. */
15903_ACEOF
15904cat confdefs.h >>conftest.$ac_ext
15905cat >>conftest.$ac_ext <<_ACEOF
15906/* end confdefs.h. */
15907
Theodore Ts'oe1052142006-10-21 21:46:47 -040015908/* Override any GCC internal prototype to avoid an error.
15909 Use char because int might match the return type of a GCC
15910 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015911#ifdef __cplusplus
15912extern "C"
15913#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015914char socket ();
15915int
15916main ()
15917{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015918return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015919 ;
15920 return 0;
15921}
15922_ACEOF
15923rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015924if { (ac_try="$ac_link"
15925case "(($ac_try" in
15926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15927 *) ac_try_echo=$ac_try;;
15928esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15930$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015931 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015932 ac_status=$?
15933 grep -v '^ *+' conftest.er1 >conftest.err
15934 rm -f conftest.er1
15935 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015937 (exit $ac_status); } && {
15938 test -z "$ac_c_werror_flag" ||
15939 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015940 } && test -s conftest$ac_exeext && {
15941 test "$cross_compiling" = yes ||
15942 $as_test_x conftest$ac_exeext
15943 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015944 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015945else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015946 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015947sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015948
Theodore Ts'oe1052142006-10-21 21:46:47 -040015949 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015951
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015952rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015954 conftest$ac_exeext conftest.$ac_ext
15955LIBS=$ac_check_lib_save_LIBS
15956fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15958$as_echo "$ac_cv_lib_socket_socket" >&6; }
15959if test "x$ac_cv_lib_socket_socket" = x""yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015960 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015961fi
15962
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015963
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015964DLOPEN_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015965{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15966$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015967if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015968 $as_echo_n "(cached) " >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015970 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015971LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972cat >conftest.$ac_ext <<_ACEOF
15973/* confdefs.h. */
15974_ACEOF
15975cat confdefs.h >>conftest.$ac_ext
15976cat >>conftest.$ac_ext <<_ACEOF
15977/* end confdefs.h. */
15978
Theodore Ts'oe1052142006-10-21 21:46:47 -040015979/* Override any GCC internal prototype to avoid an error.
15980 Use char because int might match the return type of a GCC
15981 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015982#ifdef __cplusplus
15983extern "C"
15984#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015985char dlopen ();
15986int
15987main ()
15988{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015989return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015990 ;
15991 return 0;
15992}
15993_ACEOF
15994rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015995if { (ac_try="$ac_link"
15996case "(($ac_try" in
15997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15998 *) ac_try_echo=$ac_try;;
15999esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16001$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016002 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016003 ac_status=$?
16004 grep -v '^ *+' conftest.er1 >conftest.err
16005 rm -f conftest.er1
16006 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016008 (exit $ac_status); } && {
16009 test -z "$ac_c_werror_flag" ||
16010 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016011 } && test -s conftest$ac_exeext && {
16012 test "$cross_compiling" = yes ||
16013 $as_test_x conftest$ac_exeext
16014 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016015 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016016else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016017 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016018sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016019
Theodore Ts'oe1052142006-10-21 21:46:47 -040016020 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016022
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016023rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016024rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016025 conftest$ac_exeext conftest.$ac_ext
16026LIBS=$ac_check_lib_save_LIBS
16027fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016028{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16029$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16030if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016031 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016032cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016033#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016034_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016035
Theodore Ts'obbac86b2003-03-16 06:27:22 -050016036fi
16037
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016038
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016039{ $as_echo "$as_me:$LINENO: checking for optreset" >&5
16040$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016041if test "${ac_cv_have_optreset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016042 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016043else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016044 cat >conftest.$ac_ext <<_ACEOF
16045/* confdefs.h. */
16046_ACEOF
16047cat confdefs.h >>conftest.$ac_ext
16048cat >>conftest.$ac_ext <<_ACEOF
16049/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016050#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016051
16052_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016053if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016054 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016055 ac_cv_have_optreset=yes
16056else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016057 ac_cv_have_optreset=no
16058fi
16059rm -f conftest*
16060
16061fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016062{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16063$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016064if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016065 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016066#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016067_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016068
16069fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016070SEM_INIT_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016071{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16072$as_echo_n "checking for sem_init... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016073if test "${ac_cv_func_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016074 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016075else
16076 cat >conftest.$ac_ext <<_ACEOF
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16084#define sem_init innocuous_sem_init
16085
16086/* System header to define __stub macros and hopefully few prototypes,
16087 which can conflict with char sem_init (); below.
16088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089 <limits.h> exists even on freestanding compilers. */
16090
16091#ifdef __STDC__
16092# include <limits.h>
16093#else
16094# include <assert.h>
16095#endif
16096
16097#undef sem_init
16098
16099/* Override any GCC internal prototype to avoid an error.
16100 Use char because int might match the return type of a GCC
16101 builtin and then its argument prototype would still apply. */
16102#ifdef __cplusplus
16103extern "C"
16104#endif
16105char sem_init ();
16106/* The GNU C library defines this for functions which it implements
16107 to always fail with ENOSYS. Some functions are actually named
16108 something starting with __ and the normal name is an alias. */
16109#if defined __stub_sem_init || defined __stub___sem_init
16110choke me
16111#endif
16112
16113int
16114main ()
16115{
16116return sem_init ();
16117 ;
16118 return 0;
16119}
16120_ACEOF
16121rm -f conftest.$ac_objext conftest$ac_exeext
16122if { (ac_try="$ac_link"
16123case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16126esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16128$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016129 (eval "$ac_link") 2>conftest.er1
16130 ac_status=$?
16131 grep -v '^ *+' conftest.er1 >conftest.err
16132 rm -f conftest.er1
16133 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016135 (exit $ac_status); } && {
16136 test -z "$ac_c_werror_flag" ||
16137 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016138 } && test -s conftest$ac_exeext && {
16139 test "$cross_compiling" = yes ||
16140 $as_test_x conftest$ac_exeext
16141 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016142 ac_cv_func_sem_init=yes
16143else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016144 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016145sed 's/^/| /' conftest.$ac_ext >&5
16146
16147 ac_cv_func_sem_init=no
16148fi
16149
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016150rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016151rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16152 conftest$ac_exeext conftest.$ac_ext
16153fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016154{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16155$as_echo "$ac_cv_func_sem_init" >&6; }
16156if test "x$ac_cv_func_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016157 :
16158else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016159 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16160$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016161if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016162 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016163else
16164 ac_check_lib_save_LIBS=$LIBS
16165LIBS="-lpthread $LIBS"
16166cat >conftest.$ac_ext <<_ACEOF
16167/* confdefs.h. */
16168_ACEOF
16169cat confdefs.h >>conftest.$ac_ext
16170cat >>conftest.$ac_ext <<_ACEOF
16171/* end confdefs.h. */
16172
16173/* Override any GCC internal prototype to avoid an error.
16174 Use char because int might match the return type of a GCC
16175 builtin and then its argument prototype would still apply. */
16176#ifdef __cplusplus
16177extern "C"
16178#endif
16179char sem_init ();
16180int
16181main ()
16182{
16183return sem_init ();
16184 ;
16185 return 0;
16186}
16187_ACEOF
16188rm -f conftest.$ac_objext conftest$ac_exeext
16189if { (ac_try="$ac_link"
16190case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16193esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16195$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016196 (eval "$ac_link") 2>conftest.er1
16197 ac_status=$?
16198 grep -v '^ *+' conftest.er1 >conftest.err
16199 rm -f conftest.er1
16200 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016202 (exit $ac_status); } && {
16203 test -z "$ac_c_werror_flag" ||
16204 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016205 } && test -s conftest$ac_exeext && {
16206 test "$cross_compiling" = yes ||
16207 $as_test_x conftest$ac_exeext
16208 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016209 ac_cv_lib_pthread_sem_init=yes
16210else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016211 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016212sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_cv_lib_pthread_sem_init=no
16215fi
16216
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016217rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16219 conftest$ac_exeext conftest.$ac_ext
16220LIBS=$ac_check_lib_save_LIBS
16221fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016222{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16223$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16224if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016225 cat >>confdefs.h <<\_ACEOF
16226#define HAVE_SEM_INIT 1
16227_ACEOF
16228
16229 SEM_INIT_LIB=-lpthread
16230else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016231 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16232$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016233if test "${ac_cv_lib_rt_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016234 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016235else
16236 ac_check_lib_save_LIBS=$LIBS
16237LIBS="-lrt $LIBS"
16238cat >conftest.$ac_ext <<_ACEOF
16239/* confdefs.h. */
16240_ACEOF
16241cat confdefs.h >>conftest.$ac_ext
16242cat >>conftest.$ac_ext <<_ACEOF
16243/* end confdefs.h. */
16244
16245/* Override any GCC internal prototype to avoid an error.
16246 Use char because int might match the return type of a GCC
16247 builtin and then its argument prototype would still apply. */
16248#ifdef __cplusplus
16249extern "C"
16250#endif
16251char sem_init ();
16252int
16253main ()
16254{
16255return sem_init ();
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260rm -f conftest.$ac_objext conftest$ac_exeext
16261if { (ac_try="$ac_link"
16262case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016268 (eval "$ac_link") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016277 } && test -s conftest$ac_exeext && {
16278 test "$cross_compiling" = yes ||
16279 $as_test_x conftest$ac_exeext
16280 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016281 ac_cv_lib_rt_sem_init=yes
16282else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016283 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 ac_cv_lib_rt_sem_init=no
16287fi
16288
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016289rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
16292LIBS=$ac_check_lib_save_LIBS
16293fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016294{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16295$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16296if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016297 cat >>confdefs.h <<\_ACEOF
16298#define HAVE_SEM_INIT 1
16299_ACEOF
16300
16301 SEM_INIT_LIB=-lrt
16302else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016303 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16304$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016305if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016306 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016307else
16308 ac_check_lib_save_LIBS=$LIBS
16309LIBS="-lposix4 $LIBS"
16310cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
16315/* end confdefs.h. */
16316
16317/* Override any GCC internal prototype to avoid an error.
16318 Use char because int might match the return type of a GCC
16319 builtin and then its argument prototype would still apply. */
16320#ifdef __cplusplus
16321extern "C"
16322#endif
16323char sem_init ();
16324int
16325main ()
16326{
16327return sem_init ();
16328 ;
16329 return 0;
16330}
16331_ACEOF
16332rm -f conftest.$ac_objext conftest$ac_exeext
16333if { (ac_try="$ac_link"
16334case "(($ac_try" in
16335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16336 *) ac_try_echo=$ac_try;;
16337esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16339$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016340 (eval "$ac_link") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016349 } && test -s conftest$ac_exeext && {
16350 test "$cross_compiling" = yes ||
16351 $as_test_x conftest$ac_exeext
16352 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016353 ac_cv_lib_posix4_sem_init=yes
16354else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016355 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016356sed 's/^/| /' conftest.$ac_ext >&5
16357
16358 ac_cv_lib_posix4_sem_init=no
16359fi
16360
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016361rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16363 conftest$ac_exeext conftest.$ac_ext
16364LIBS=$ac_check_lib_save_LIBS
16365fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016366{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16367$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16368if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016369 cat >>confdefs.h <<\_ACEOF
16370#define HAVE_SEM_INIT 1
16371_ACEOF
16372
16373 SEM_INIT_LIB=-lposix4
16374fi
16375
16376fi
16377
16378fi
16379
16380fi
16381
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016382{ $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16383$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040016384if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016385 UNI_DIFF_OPTS=-u
16386else
16387 UNI_DIFF_OPTS=-c
16388fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016389{ $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16390$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016391
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016392case "$host_os" in
16393linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016394 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016395#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016396_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016397
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016398 ;;
16399esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016400LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016401CYGWIN_CMT="#"
16402UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016403case "$host_os" in
16404linux*)
16405 LINUX_CMT=
16406 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016407cygwin)
16408 CYGWIN_CMT=
16409 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016410 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016411esac
16412
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016413
16414
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016415case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016416linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016417 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16418 root_prefix="";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016419 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16420$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016421 fi
16422 ;;
16423esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016424case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016425linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016426 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016427 prefix="/usr";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016428 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16429$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016430 if test "$mandir" = '${prefix}/man' ; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016431 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16432$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016433 mandir=/usr/share/man
16434 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016435 fi
16436;;
16437esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016438if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016439 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016440 root_prefix="$ac_default_prefix"
16441 else
16442 root_prefix="$prefix"
16443 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016444 root_bindir=$bindir
16445 root_sbindir=$sbindir
16446 root_libdir=$libdir
16447 root_sysconfdir=$sysconfdir
16448else
16449 root_bindir='${root_prefix}/bin'
16450 root_sbindir='${root_prefix}/sbin'
16451 root_libdir='${root_prefix}/lib'
16452 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016453fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016454if test "$bindir" != '${exec_prefix}/bin'; then
16455 root_bindir=$bindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016456 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16457$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016458fi
16459if test "$sbindir" != '${exec_prefix}/sbin'; then
16460 root_sbindir=$sbindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016461 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16462$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016463fi
16464if test "$libdir" != '${exec_prefix}/lib'; then
16465 root_libdir=$libdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016466 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16467$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016468fi
16469if test "$sysconfdir" != '${prefix}/etc'; then
16470 root_sysconfdir=$sysconfdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016471 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16472$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016473fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016474
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016475
16476
16477
16478
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016479{ $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16480$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016481if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016482 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016483else
16484 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016485cat >conftest.$ac_ext <<_ACEOF
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016491#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016492int
16493main ()
16494{
Theodore Ts'oae851481997-04-29 18:13:24 +000016495fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016496 ;
16497 return 0;
16498}
16499_ACEOF
16500rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016501if { (ac_try="$ac_link"
16502case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16507$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016508 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016517 } && test -s conftest$ac_exeext && {
16518 test "$cross_compiling" = yes ||
16519 $as_test_x conftest$ac_exeext
16520 }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016521 ac_cv_e2fsprogs_use_static=yes
16522else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016523 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016524sed 's/^/| /' conftest.$ac_ext >&5
16525
Theodore Ts'oe1052142006-10-21 21:46:47 -040016526 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016528
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016529rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016531 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016532LDFLAGS=$SAVE_LDFLAGS
16533fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016534
Theodore Ts'odefde781999-01-04 07:39:19 +000016535case "$host_os" in
16536solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016537 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016538;;
16539esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016540{ $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16541$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016542LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016543if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016544 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016545fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016546
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016547case "$host_os" in
16548darwin*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016549 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16550$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016551 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016552#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016553_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016554
16555 ;;
16556esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016557SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16558ET_DIR=`cd ${srcdir}/lib/et; pwd`
16559
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016560
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016561if test "$cross_compiling" = yes ; then
16562 DO_TEST_SUITE=
16563else
16564 DO_TEST_SUITE=check
16565fi
16566
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016567INTL_FLAGS=
16568if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16569 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16570fi
16571
Theodore Ts'odd947da2005-11-09 18:37:07 -040016572if test $cross_compiling = no; then
16573 BUILD_CFLAGS="$CFLAGS"
16574 BUILD_LDFLAGS="$LDFLAGS"
16575else
16576 BUILD_CFLAGS=
16577 BUILD_LDFLAGS=
16578fi
16579
16580
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016581test -d lib || mkdir lib
16582test -d include || mkdir include
16583test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016584test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016585for i in MCONFIG Makefile e2fsprogs.spec \
16586 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016587 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16588 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016589 lib/uuid/Makefile lib/uuid/uuid_types.h \
16590 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016591 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16592 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016593 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016594 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020016595 resize/Makefile doc/Makefile intl/Makefile \
16596 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016597 if test -d `dirname ${srcdir}/$i` ; then
16598 outlist="$outlist $i"
16599 fi
16600done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016601ac_config_files="$ac_config_files $outlist"
16602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016603cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016604# This file is a shell script that caches the results of configure
16605# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016606# scripts and configure runs, see configure's option --config-cache.
16607# It is not useful on other systems. If it contains results you don't
16608# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016609#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016610# config.status only pays attention to the cache file if you give it
16611# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016612#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016613# `ac_cv_env_foo' variables (set or unset) will be overridden when
16614# loading this file, other *unset* `ac_cv_foo' will be assigned the
16615# following values.
16616
16617_ACEOF
16618
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016619# The following way of writing the cache mishandles newlines in values,
16620# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016621# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016622# Ultrix sh set writes to stderr and can't be redirected directly,
16623# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016624(
16625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16626 eval ac_val=\$$ac_var
16627 case $ac_val in #(
16628 *${as_nl}*)
16629 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016630 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16631$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016632 esac
16633 case $ac_var in #(
16634 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -040016636 *) $as_unset $ac_var ;;
16637 esac ;;
16638 esac
16639 done
16640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016641 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16643 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016644 # `set' does not quote correctly, so add quotes (double-quote
16645 # substitution turns \\\\ into \\, and sed turns \\ into \).
16646 sed -n \
16647 "s/'/'\\\\''/g;
16648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016649 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016650 *)
16651 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016653 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016654 esac |
16655 sort
16656) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016657 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016658 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016659 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016660 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16662 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16664 :end' >>confcache
16665if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16666 if test -w "$cache_file"; then
16667 test "x$cache_file" != "x/dev/null" &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016668 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16669$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016670 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016671 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016672 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16673$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016674 fi
16675fi
16676rm -f confcache
16677
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016678test "x$prefix" = xNONE && prefix=$ac_default_prefix
16679# Let make expand exec_prefix.
16680test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16681
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016682# Transform confdefs.h into DEFS.
16683# Protect against shell expansion while executing Makefile rules.
16684# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016685#
16686# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016687# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016688# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016689ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016690:mline
16691/\\$/{
16692 N
16693 s,\\\n,,
16694 b mline
16695}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016696t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016697:clear
16698s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016699t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016700s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016701t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016702b any
16703:quote
16704s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16705s/\[/\\&/g
16706s/\]/\\&/g
16707s/\$/$$/g
16708H
16709:any
16710${
16711 g
16712 s/^\n//
16713 s/\n/ /g
16714 p
16715}
16716'
16717DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016718
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016720ac_libobjs=
16721ac_ltlibobjs=
16722for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16723 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016725 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16727 # will be set to the directory where LIBOBJS objects are built.
16728 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16729 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016730done
16731LIBOBJS=$ac_libobjs
16732
16733LTLIBOBJS=$ac_ltlibobjs
16734
16735
16736
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016737
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016738: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016739ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016740ac_clean_files_save=$ac_clean_files
16741ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016742{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16743$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16744cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016745#! $SHELL
16746# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016747# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016748# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016749# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016751debug=false
16752ac_cs_recheck=false
16753ac_cs_silent=false
16754SHELL=\${CONFIG_SHELL-$SHELL}
16755_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016756
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016757cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016758## --------------------- ##
16759## M4sh Initialization. ##
16760## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016761
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016762# Be more Bourne compatible
16763DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016764if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16765 emulate sh
16766 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016767 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016768 # is contrary to our usage. Disable this feature.
16769 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016770 setopt NO_GLOB_SUBST
16771else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016772 case `(set -o) 2>/dev/null` in
16773 *posix*) set -o posix ;;
16774esac
16775
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016776fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016777
16778
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016779
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016780
Theodore Ts'oe1052142006-10-21 21:46:47 -040016781# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016782# Avoid depending upon Character Ranges.
16783as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16784as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16785as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16786as_cr_digits='0123456789'
16787as_cr_alnum=$as_cr_Letters$as_cr_digits
16788
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016789as_nl='
16790'
16791export as_nl
16792# Printing a long string crashes Solaris 7 /usr/bin/printf.
16793as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16794as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16795as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16796if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16797 as_echo='printf %s\n'
16798 as_echo_n='printf %s'
16799else
16800 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16801 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16802 as_echo_n='/usr/ucb/echo -n'
16803 else
16804 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16805 as_echo_n_body='eval
16806 arg=$1;
16807 case $arg in
16808 *"$as_nl"*)
16809 expr "X$arg" : "X\\(.*\\)$as_nl";
16810 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16811 esac;
16812 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16813 '
16814 export as_echo_n_body
16815 as_echo_n='sh -c $as_echo_n_body as_echo'
16816 fi
16817 export as_echo_body
16818 as_echo='sh -c $as_echo_body as_echo'
16819fi
16820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016821# The user is always right.
16822if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016823 PATH_SEPARATOR=:
16824 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16825 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16826 PATH_SEPARATOR=';'
16827 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016828fi
16829
Theodore Ts'oe1052142006-10-21 21:46:47 -040016830# Support unset when possible.
16831if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16832 as_unset=unset
16833else
16834 as_unset=false
16835fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016836
Theodore Ts'oe1052142006-10-21 21:46:47 -040016837
16838# IFS
16839# We need space, tab and new line, in precisely that order. Quoting is
16840# there to prevent editors from complaining about space-tab.
16841# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16842# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040016843IFS=" "" $as_nl"
16844
16845# Find who we are. Look in the path if we contain no directory separator.
16846case $0 in
16847 *[\\/]* ) as_myself=$0 ;;
16848 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016849for as_dir in $PATH
16850do
16851 IFS=$as_save_IFS
16852 test -z "$as_dir" && as_dir=.
16853 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16854done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016855IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016856
Theodore Ts'oe1052142006-10-21 21:46:47 -040016857 ;;
16858esac
16859# We did not find ourselves, most probably we were run as `sh COMMAND'
16860# in which case we are not to be found in the path.
16861if test "x$as_myself" = x; then
16862 as_myself=$0
16863fi
16864if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016865 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -040016866 { (exit 1); exit 1; }
16867fi
16868
16869# Work around bugs in pre-3.0 UWIN ksh.
16870for as_var in ENV MAIL MAILPATH
16871do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16872done
16873PS1='$ '
16874PS2='> '
16875PS4='+ '
16876
16877# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016878LC_ALL=C
16879export LC_ALL
16880LANGUAGE=C
16881export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040016882
16883# Required to use basename.
16884if expr a : '\(a\)' >/dev/null 2>&1 &&
16885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16886 as_expr=expr
16887else
16888 as_expr=false
16889fi
16890
16891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16892 as_basename=basename
16893else
16894 as_basename=false
16895fi
16896
16897
16898# Name of the executable.
16899as_me=`$as_basename -- "$0" ||
16900$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16901 X"$0" : 'X\(//\)$' \| \
16902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016903$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016904 sed '/^.*\/\([^/][^/]*\)\/*$/{
16905 s//\1/
16906 q
16907 }
16908 /^X\/\(\/\/\)$/{
16909 s//\1/
16910 q
16911 }
16912 /^X\/\(\/\).*/{
16913 s//\1/
16914 q
16915 }
16916 s/.*/./; q'`
16917
16918# CDPATH.
16919$as_unset CDPATH
16920
16921
16922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016923 as_lineno_1=$LINENO
16924 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016925 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016927
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16929 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040016930 # line-number line after each line using $LINENO; the second 'sed'
16931 # does the real work. The second script uses 'N' to pair each
16932 # line-number line with the line containing $LINENO, and appends
16933 # trailing '-' during substitution so that $LINENO is not a special
16934 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016936 # scripts with optimization help from Paolo Bonzini. Blame Lee
16937 # E. McMahon (1931-1989) for sed's syntax. :-)
16938 sed -n '
16939 p
16940 /[$]LINENO/=
16941 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016942 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016943 s/[$]LINENO.*/&-/
16944 t lineno
16945 b
16946 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016947 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040016948 :loop
16949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016950 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040016951 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016952 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016953 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016954 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016955 { (exit 1); exit 1; }; }
16956
16957 # Don't try to exec as it changes $[0], causing all sort of problems
16958 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016959 # original and so on. Autoconf is especially sensitive to this).
16960 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016961 # Exit status is that of the last command.
16962 exit
16963}
16964
16965
Theodore Ts'oe1052142006-10-21 21:46:47 -040016966if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16967 as_dirname=dirname
16968else
16969 as_dirname=false
16970fi
16971
16972ECHO_C= ECHO_N= ECHO_T=
16973case `echo -n x` in
16974-n*)
16975 case `echo 'x\c'` in
16976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16977 *) ECHO_C='\c';;
16978 esac;;
16979*)
16980 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016981esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016982if expr a : '\(a\)' >/dev/null 2>&1 &&
16983 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016984 as_expr=expr
16985else
16986 as_expr=false
16987fi
16988
16989rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040016990if test -d conf$$.dir; then
16991 rm -f conf$$.dir/conf$$.file
16992else
16993 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016994 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040016995fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016996if (echo >conf$$.file) 2>/dev/null; then
16997 if ln -s conf$$.file conf$$ 2>/dev/null; then
16998 as_ln_s='ln -s'
16999 # ... but there are two gotchas:
17000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17002 # In both cases, we have to default to `cp -p'.
17003 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17004 as_ln_s='cp -p'
17005 elif ln conf$$.file conf$$ 2>/dev/null; then
17006 as_ln_s=ln
17007 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017008 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017009 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017010else
17011 as_ln_s='cp -p'
17012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017013rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17014rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017015
17016if mkdir -p . 2>/dev/null; then
17017 as_mkdir_p=:
17018else
17019 test -d ./-p && rmdir ./-p
17020 as_mkdir_p=false
17021fi
17022
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017023if test -x / >/dev/null 2>&1; then
17024 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017025else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017026 if ls -dL / >/dev/null 2>&1; then
17027 as_ls_L_option=L
17028 else
17029 as_ls_L_option=
17030 fi
17031 as_test_x='
17032 eval sh -c '\''
17033 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017034 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017035 else
17036 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017037 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017038 esac;
17039 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17040 ???[sx]*):;;*)false;;esac;fi
17041 '\'' sh
17042 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040017043fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017044as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017045
17046# Sed expression to map a string onto a valid CPP name.
17047as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17048
17049# Sed expression to map a string onto a valid variable name.
17050as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17051
17052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017053exec 6>&1
17054
Theodore Ts'oe1052142006-10-21 21:46:47 -040017055# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017056# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040017057# values after options handling.
17058ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017059This file was extended by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017060generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017061
17062 CONFIG_FILES = $CONFIG_FILES
17063 CONFIG_HEADERS = $CONFIG_HEADERS
17064 CONFIG_LINKS = $CONFIG_LINKS
17065 CONFIG_COMMANDS = $CONFIG_COMMANDS
17066 $ $0 $@
17067
Theodore Ts'oe1052142006-10-21 21:46:47 -040017068on `(hostname || uname -n) 2>/dev/null | sed 1q`
17069"
17070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017071_ACEOF
17072
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017073case $ac_config_files in *"
17074"*) set x $ac_config_files; shift; ac_config_files=$*;;
17075esac
17076
17077
17078
17079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017080# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017081config_files="$ac_config_files"
17082config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017083
Theodore Ts'oe1052142006-10-21 21:46:47 -040017084_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017085
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017086cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017087ac_cs_usage="\
17088\`$as_me' instantiates files from templates according to the
17089current configuration.
17090
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017091Usage: $0 [OPTION]... [FILE]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017092
17093 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017094 -V, --version print version number and configuration settings, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017095 -q, --quiet, --silent
17096 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017097 -d, --debug don't remove temporary files
17098 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017099 --file=FILE[:TEMPLATE]
17100 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017101
17102Configuration files:
17103$config_files
17104
17105Configuration commands:
17106$config_commands
17107
17108Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017109
Theodore Ts'oe1052142006-10-21 21:46:47 -040017110_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017112ac_cs_version="\\
17113config.status
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017114configured by $0, generated by GNU Autoconf 2.63,
17115 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017116
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017117Copyright (C) 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017118This config.status script is free software; the Free Software Foundation
17119gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017120
17121ac_pwd='$ac_pwd'
17122srcdir='$srcdir'
17123INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017124AWK='$AWK'
17125test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017126_ACEOF
17127
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17129# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017130ac_need_defaults=:
17131while test $# != 0
17132do
17133 case $1 in
17134 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017137 ac_shift=:
17138 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017139 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017140 ac_option=$1
17141 ac_optarg=$2
17142 ac_shift=shift
17143 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017144 esac
17145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017146 case $ac_option in
17147 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17149 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017151 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017152 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017153 debug=: ;;
17154 --file | --fil | --fi | --f )
17155 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017156 case $ac_optarg in
17157 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17158 esac
17159 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017160 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017161 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017162 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17164 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17165 ac_cs_silent=: ;;
17166
17167 # This is an error.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017168 -*) { $as_echo "$as_me: error: unrecognized option: $1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017169Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017170 { (exit 1); exit 1; }; } ;;
17171
Theodore Ts'oe1052142006-10-21 21:46:47 -040017172 *) ac_config_targets="$ac_config_targets $1"
17173 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017174
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017175 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017176 shift
17177done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017179ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017181if $ac_cs_silent; then
17182 exec 6>/dev/null
17183 ac_configure_extra_args="$ac_configure_extra_args --silent"
17184fi
17185
17186_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017187cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017188if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017189 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17190 shift
17191 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17192 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017193 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017194 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017195fi
17196
17197_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017199exec 5>>config.log
17200{
17201 echo
17202 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17203## Running $as_me. ##
17204_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017205 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017206} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017207
Theodore Ts'oe1052142006-10-21 21:46:47 -040017208_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017209cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017210#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017211# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017212#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017213# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017214 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017215 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017216 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017217 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17218 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017219
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017221_ACEOF
17222
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017224
17225# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017226for ac_config_target in $ac_config_targets
17227do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017228 case $ac_config_target in
17229 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17230 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17231
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017232 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17233$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017234 { (exit 1); exit 1; }; };;
17235 esac
17236done
17237
Theodore Ts'oe1052142006-10-21 21:46:47 -040017238
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017239# If the user did not use the arguments to specify the items to instantiate,
17240# then the envvar interface is used. Set only those that are not.
17241# We use the long form for the default assignment because of an extremely
17242# bizarre bug on SunOS 4.1.3.
17243if $ac_need_defaults; then
17244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17245 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17246fi
17247
17248# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017249# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017250# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017251# Hook for its removal unless debugging.
17252# Note that there is a small window in which the directory will not be cleaned:
17253# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017254$debug ||
17255{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017256 tmp=
17257 trap 'exit_status=$?
17258 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17259' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017260 trap '{ (exit 1); exit 1; }' 1 2 13 15
17261}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017262# Create a (secure) tmp directory for tmp files.
17263
17264{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017265 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017266 test -n "$tmp" && test -d "$tmp"
17267} ||
17268{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017269 tmp=./conf$$-$RANDOM
17270 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017271} ||
17272{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017273 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017274 { (exit 1); exit 1; }
17275}
17276
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017277# Set up the scripts for CONFIG_FILES section.
17278# No need to generate them if there are no CONFIG_FILES.
17279# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017280if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017281
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017282if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17283 ac_cs_awk_getline=:
17284 ac_cs_awk_pipe_init=
17285 ac_cs_awk_read_file='
17286 while ((getline aline < (F[key])) > 0)
17287 print(aline)
17288 close(F[key])'
17289 ac_cs_awk_pipe_fini=
17290else
17291 ac_cs_awk_getline=false
17292 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17293 ac_cs_awk_read_file='
17294 print "|#_!!_#|"
17295 print "cat " F[key] " &&"
17296 '$ac_cs_awk_pipe_init
17297 # The final `:' finishes the AND list.
17298 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17299fi
17300ac_cr=' '
17301ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17302if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17303 ac_cs_awk_cr='\\r'
17304else
17305 ac_cs_awk_cr=$ac_cr
17306fi
17307
17308echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017309_ACEOF
17310
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017311# Create commands to substitute file output variables.
17312{
17313 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17314 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17315 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17316 echo "_ACAWK" &&
17317 echo "_ACEOF"
17318} >conf$$files.sh &&
17319. ./conf$$files.sh ||
17320 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17321$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17322 { (exit 1); exit 1; }; }
17323rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017324
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017325{
17326 echo "cat >conf$$subs.awk <<_ACEOF" &&
17327 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17328 echo "_ACEOF"
17329} >conf$$subs.sh ||
17330 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17331$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17332 { (exit 1); exit 1; }; }
17333ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017334ac_delim='%!_!# '
17335for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017336 . ./conf$$subs.sh ||
17337 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17338$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17339 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017340
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017341 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17342 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017343 break
17344 elif $ac_last_try; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017345 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17346$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017347 { (exit 1); exit 1; }; }
17348 else
17349 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017350 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017351done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017352rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017353
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17355cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017356_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017357sed -n '
17358h
17359s/^/S["/; s/!.*/"]=/
17360p
17361g
17362s/^[^!]*!//
17363:repl
17364t repl
17365s/'"$ac_delim"'$//
17366t delim
17367:nl
17368h
17369s/\(.\{148\}\).*/\1/
17370t more1
17371s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17372p
17373n
17374b repl
17375:more1
17376s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17377p
17378g
17379s/.\{148\}//
17380t nl
17381:delim
17382h
17383s/\(.\{148\}\).*/\1/
17384t more2
17385s/["\\]/\\&/g; s/^/"/; s/$/"/
17386p
17387b
17388:more2
17389s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17390p
17391g
17392s/.\{148\}//
17393t delim
17394' <conf$$subs.awk | sed '
17395/^[^""]/{
17396 N
17397 s/\n//
17398}
17399' >>$CONFIG_STATUS || ac_write_fail=1
17400rm -f conf$$subs.awk
17401cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17402_ACAWK
17403cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17404 for (key in S) S_is_set[key] = 1
17405 FS = ""
17406 \$ac_cs_awk_pipe_init
17407}
17408{
17409 line = $ 0
17410 nfields = split(line, field, "@")
17411 substed = 0
17412 len = length(field[1])
17413 for (i = 2; i < nfields; i++) {
17414 key = field[i]
17415 keylen = length(key)
17416 if (S_is_set[key]) {
17417 value = S[key]
17418 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17419 len += length(value) + length(field[++i])
17420 substed = 1
17421 } else
17422 len += 1 + keylen
17423 }
17424 if (nfields == 3 && !substed) {
17425 key = field[2]
17426 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17427 \$ac_cs_awk_read_file
17428 next
17429 }
17430 }
17431 print line
17432}
17433\$ac_cs_awk_pipe_fini
17434_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040017435_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017436cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17437if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17438 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17439else
17440 cat
17441fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17442 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17443$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017444 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017445_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017446
17447# VPATH may cause trouble with some makes, so we remove $(srcdir),
17448# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17449# trailing colons and then remove the whole line if VPATH becomes empty
17450# (actually we leave an empty line to preserve line numbers).
17451if test "x$srcdir" = x.; then
17452 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17453s/:*\$(srcdir):*/:/
17454s/:*\${srcdir}:*/:/
17455s/:*@srcdir@:*/:/
17456s/^\([^=]*=[ ]*\):*/\1/
17457s/:*$//
17458s/^[^=]*=[ ]*$//
17459}'
17460fi
17461
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017463fi # test -n "$CONFIG_FILES"
17464
Theodore Ts'oe1052142006-10-21 21:46:47 -040017465
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017466eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17467shift
17468for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040017469do
17470 case $ac_tag in
17471 :[FHLC]) ac_mode=$ac_tag; continue;;
17472 esac
17473 case $ac_mode$ac_tag in
17474 :[FHL]*:*);;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017475 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17476$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017477 { (exit 1); exit 1; }; };;
17478 :[FH]-) ac_tag=-:-;;
17479 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17480 esac
17481 ac_save_IFS=$IFS
17482 IFS=:
17483 set x $ac_tag
17484 IFS=$ac_save_IFS
17485 shift
17486 ac_file=$1
17487 shift
17488
17489 case $ac_mode in
17490 :L) ac_source=$1;;
17491 :[FH])
17492 ac_file_inputs=
17493 for ac_f
17494 do
17495 case $ac_f in
17496 -) ac_f="$tmp/stdin";;
17497 *) # Look for the file first in the build tree, then in the source tree
17498 # (if the path is not absolute). The absolute path cannot be DOS-style,
17499 # because $ac_f cannot contain `:'.
17500 test -f "$ac_f" ||
17501 case $ac_f in
17502 [\\/$]*) false;;
17503 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17504 esac ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017505 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17506$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017507 { (exit 1); exit 1; }; };;
17508 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017509 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17510 ac_file_inputs="$ac_file_inputs '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017511 done
17512
17513 # Let's still pretend it is `configure' which instantiates (i.e., don't
17514 # use $as_me), people would be surprised to read:
17515 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017516 configure_input='Generated from '`
17517 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17518 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017519 if test x"$ac_file" != x-; then
17520 configure_input="$ac_file. $configure_input"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017521 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17522$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017523 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017524 # Neutralize special characters interpreted by sed in replacement strings.
17525 case $configure_input in #(
17526 *\&* | *\|* | *\\* )
17527 ac_sed_conf_input=`$as_echo "$configure_input" |
17528 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17529 *) ac_sed_conf_input=$configure_input;;
17530 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017531
17532 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017533 *:-:* | *:-) cat >"$tmp/stdin" \
17534 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17535$as_echo "$as_me: error: could not create $ac_file" >&2;}
17536 { (exit 1); exit 1; }; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017537 esac
17538 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017539 esac
17540
Theodore Ts'oe1052142006-10-21 21:46:47 -040017541 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017542$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17543 X"$ac_file" : 'X\(//\)[^/]' \| \
17544 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017545 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017546$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017547 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17548 s//\1/
17549 q
17550 }
17551 /^X\(\/\/\)[^/].*/{
17552 s//\1/
17553 q
17554 }
17555 /^X\(\/\/\)$/{
17556 s//\1/
17557 q
17558 }
17559 /^X\(\/\).*/{
17560 s//\1/
17561 q
17562 }
17563 s/.*/./; q'`
17564 { as_dir="$ac_dir"
17565 case $as_dir in #(
17566 -*) as_dir=./$as_dir;;
17567 esac
17568 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017569 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017570 while :; do
17571 case $as_dir in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017572 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Theodore Ts'oe1052142006-10-21 21:46:47 -040017573 *) as_qdir=$as_dir;;
17574 esac
17575 as_dirs="'$as_qdir' $as_dirs"
17576 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017577$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17578 X"$as_dir" : 'X\(//\)[^/]' \| \
17579 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017580 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017581$as_echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17583 s//\1/
17584 q
17585 }
17586 /^X\(\/\/\)[^/].*/{
17587 s//\1/
17588 q
17589 }
17590 /^X\(\/\/\)$/{
17591 s//\1/
17592 q
17593 }
17594 /^X\(\/\).*/{
17595 s//\1/
17596 q
17597 }
17598 s/.*/./; q'`
17599 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017600 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017601 test -z "$as_dirs" || eval "mkdir $as_dirs"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017602 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17603$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017604 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017605 ac_builddir=.
17606
Theodore Ts'oe1052142006-10-21 21:46:47 -040017607case "$ac_dir" in
17608.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17609*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017611 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017613 case $ac_top_builddir_sub in
17614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17616 esac ;;
17617esac
17618ac_abs_top_builddir=$ac_pwd
17619ac_abs_builddir=$ac_pwd$ac_dir_suffix
17620# for backward compatibility:
17621ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017622
17623case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017624 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017625 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017626 ac_top_srcdir=$ac_top_builddir_sub
17627 ac_abs_top_srcdir=$ac_pwd ;;
17628 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017629 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017630 ac_top_srcdir=$srcdir
17631 ac_abs_top_srcdir=$srcdir ;;
17632 *) # Relative name.
17633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17634 ac_top_srcdir=$ac_top_build_prefix$srcdir
17635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017636esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017637ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017638
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017639
Theodore Ts'oe1052142006-10-21 21:46:47 -040017640 case $ac_mode in
17641 :F)
17642 #
17643 # CONFIG_FILE
17644 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017645
17646 case $INSTALL in
17647 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017648 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017649 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017650_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017651
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017653# If the template does not know about datarootdir, expand it.
17654# FIXME: This hack should be removed a few years after 2.60.
17655ac_datarootdir_hack=; ac_datarootdir_seen=
17656
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017657ac_sed_dataroot='
17658/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040017659 p
17660 q
17661}
17662/@datadir@/p
17663/@docdir@/p
17664/@infodir@/p
17665/@localedir@/p
17666/@mandir@/p
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017667'
17668case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017669*datarootdir*) ac_datarootdir_seen=yes;;
17670*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017671 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17672$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017673_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017675 ac_datarootdir_hack='
17676 s&@datadir@&$datadir&g
17677 s&@docdir@&$docdir&g
17678 s&@infodir@&$infodir&g
17679 s&@localedir@&$localedir&g
17680 s&@mandir@&$mandir&g
17681 s&\\\${datarootdir}&$datarootdir&g' ;;
17682esac
17683_ACEOF
17684
17685# Neutralize VPATH when `$srcdir' = `.'.
17686# Shell code in configure.ac might set extrasub.
17687# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017688cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17689ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017690$extrasub
17691_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017692cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017693:t
17694/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017695s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017696s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017697s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017698s&@srcdir@&$ac_srcdir&;t t
17699s&@abs_srcdir@&$ac_abs_srcdir&;t t
17700s&@top_srcdir@&$ac_top_srcdir&;t t
17701s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17702s&@builddir@&$ac_builddir&;t t
17703s&@abs_builddir@&$ac_abs_builddir&;t t
17704s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17705s&@INSTALL@&$ac_INSTALL&;t t
17706$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017707"
17708eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17709if $ac_cs_awk_getline; then
17710 $AWK -f "$tmp/subs.awk"
17711else
17712 $AWK -f "$tmp/subs.awk" | $SHELL
17713fi >$tmp/out \
17714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17715$as_echo "$as_me: error: could not create $ac_file" >&2;}
17716 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017717
Theodore Ts'oe1052142006-10-21 21:46:47 -040017718test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17719 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017721 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017722which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017723$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017724which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017725
Theodore Ts'oe1052142006-10-21 21:46:47 -040017726 rm -f "$tmp/stdin"
17727 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017728 -) cat "$tmp/out" && rm -f "$tmp/out";;
17729 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17730 esac \
17731 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17732$as_echo "$as_me: error: could not create $ac_file" >&2;}
17733 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017734 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017735
17736
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017737 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17738$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017739 ;;
17740 esac
17741
17742
17743 case $ac_file$ac_mode in
17744 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017745 for ac_file in $CONFIG_FILES; do
17746 # Support "outfile[:infile[:infile...]]"
17747 case "$ac_file" in
17748 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000017749 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017750 # PO directories have a Makefile.in generated from Makefile.in.in.
17751 case "$ac_file" in */Makefile.in)
17752 # Adjust a relative srcdir.
17753 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17754 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17755 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17756 # In autoconf-2.13 it is called $ac_given_srcdir.
17757 # In autoconf-2.50 it is called $srcdir.
17758 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17759 case "$ac_given_srcdir" in
17760 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17761 /*) top_srcdir="$ac_given_srcdir" ;;
17762 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17763 esac
17764 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17765 rm -f "$ac_dir/POTFILES"
17766 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17767 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 -050017768 POMAKEFILEDEPS="POTFILES.in"
17769 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017770 # on $ac_dir but don't depend on user-specified configuration
17771 # parameters.
17772 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17773 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017774 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017775 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17776 fi
17777 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17778 # Hide the ALL_LINGUAS assigment from automake.
17779 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017780 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17781 else
17782 # The set of available languages was given in configure.in.
17783 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017784 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017785 # Compute POFILES
17786 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17787 # Compute UPDATEPOFILES
17788 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17789 # Compute DUMMYPOFILES
17790 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17791 # Compute GMOFILES
17792 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017793 case "$ac_given_srcdir" in
17794 .) srcdirpre= ;;
17795 *) srcdirpre='$(srcdir)/' ;;
17796 esac
17797 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017798 UPDATEPOFILES=
17799 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017800 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017801 for lang in $ALL_LINGUAS; do
17802 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017803 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17804 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017805 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017806 done
17807 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17808 # environment variable.
17809 INST_LINGUAS=
17810 if test -n "$ALL_LINGUAS"; then
17811 for presentlang in $ALL_LINGUAS; do
17812 useit=no
17813 if test "%UNSET%" != "$LINGUAS"; then
17814 desiredlanguages="$LINGUAS"
17815 else
17816 desiredlanguages="$ALL_LINGUAS"
17817 fi
17818 for desiredlang in $desiredlanguages; do
17819 # Use the presentlang catalog if desiredlang is
17820 # a. equal to presentlang, or
17821 # b. a variant of presentlang (because in this case,
17822 # presentlang can be used as a fallback for messages
17823 # which are not translated in the desiredlang catalog).
17824 case "$desiredlang" in
17825 "$presentlang"*) useit=yes;;
17826 esac
17827 done
17828 if test $useit = yes; then
17829 INST_LINGUAS="$INST_LINGUAS $presentlang"
17830 fi
17831 done
17832 fi
17833 CATALOGS=
17834 if test -n "$INST_LINGUAS"; then
17835 for lang in $INST_LINGUAS; do
17836 CATALOGS="$CATALOGS $lang.gmo"
17837 done
17838 fi
17839 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017840 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 -040017841 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17842 if test -f "$f"; then
17843 case "$f" in
17844 *.orig | *.bak | *~) ;;
17845 *) cat "$f" >> "$ac_dir/Makefile" ;;
17846 esac
17847 fi
17848 done
17849 fi
17850 ;;
17851 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017852 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017853
Theodore Ts'oe1052142006-10-21 21:46:47 -040017854 esac
17855done # for ac_tag
17856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017857
17858{ (exit 0); exit 0; }
17859_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017860chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017861ac_clean_files=$ac_clean_files_save
17862
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017863test $ac_write_fail = 0 ||
17864 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17865$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17866 { (exit 1); exit 1; }; }
17867
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017868
17869# configure is writing to config.log, and then calls config.status.
17870# config.status does its own redirection, appending to config.log.
17871# Unfortunately, on DOS this fails, as config.log is still kept open
17872# by configure, so config.status won't be able to write to it; its
17873# output is simply discarded. So we exec the FD to /dev/null,
17874# effectively closing config.log, so it can be properly (re)opened and
17875# appended to by config.status. When coming back to configure, we
17876# need to make the FD available again.
17877if test "$no_create" != yes; then
17878 ac_cs_success=:
17879 ac_config_status_args=
17880 test "$silent" = yes &&
17881 ac_config_status_args="$ac_config_status_args --quiet"
17882 exec 5>/dev/null
17883 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17884 exec 5>>config.log
17885 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17886 # would make configure fail if this is the last instruction.
17887 $ac_cs_success || { (exit 1); exit 1; }
17888fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017889if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17890 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17891$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17892fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017893
Theodore Ts'oee683a12005-02-05 15:53:56 -050017894if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi