blob: 01dd14faea117b7c014662613ae9bcb3bbf49ef5 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003# Generated by GNU Autoconf 2.63.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010018 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050019 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
Scott James Remnant39fd3d42009-05-14 13:03:25 +010040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050087
Theodore Ts'oe1052142006-10-21 21:46:47 -040088
89# IFS
90# We need space, tab and new line, in precisely that order. Quoting is
91# there to prevent editors from complaining about space-tab.
92# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040094IFS=" "" $as_nl"
95
96# Find who we are. Look in the path if we contain no directory separator.
97case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500100for as_dir in $PATH
101do
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400106IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500107
Theodore Ts'oe1052142006-10-21 21:46:47 -0400108 ;;
109esac
110# We did not find ourselves, most probably we were run as `sh COMMAND'
111# in which case we are not to be found in the path.
112if test "x$as_myself" = x; then
113 as_myself=$0
114fi
115if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -0400117 { (exit 1); exit 1; }
118fi
119
120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100154$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
169# CDPATH.
170$as_unset CDPATH
171
172
173if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176else
177 as_have_required=no
178fi
179
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100180 if test $as_have_required = yes && (eval ":
Theodore Ts'oe1052142006-10-21 21:46:47 -0400181(as_func_return () {
182 (exit \$1)
183}
184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500242do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400245 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500246 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251done
252IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
270
Theodore Ts'oe1052142006-10-21 21:46:47 -0400271fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'oe1052142006-10-21 21:46:47 -0400284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
Theodore Ts'oe1052142006-10-21 21:46:47 -0400292fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400293
Theodore Ts'oe1052142006-10-21 21:46:47 -0400294
295:
296(as_func_return () {
297 (exit $1)
298}
299as_func_success () {
300 as_func_return 0
301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
311
312exitcode=0
313if as_func_success; then
314 :
315else
316 exitcode=1
317 echo as_func_success failed.
318fi
319
320if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323fi
324
325if as_func_ret_success; then
326 :
327else
328 exitcode=1
329 echo as_func_ret_success failed.
330fi
331
332if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335fi
336
337if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339else
340 exitcode=1
341 echo positional parameters were not saved.
342fi
343
344test $exitcode = 0) || { (exit 1); exit 1; }
345
346(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500349 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352_ASEOF
353}; then
354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
Theodore Ts'oe1052142006-10-21 21:46:47 -0400367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
404else
405 exitcode=1
406 echo as_func_success failed.
407fi
408
409if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
416else
417 exitcode=1
418 echo as_func_ret_success failed.
419fi
420
421if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428else
429 exitcode=1
430 echo positional parameters were not saved.
431fi
432
433test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439}
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
459 p
460 /[$]LINENO/=
461 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500462 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463 s/[$]LINENO.*/&-/
464 t lineno
465 b
466 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500467 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500470 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400471 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500472 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400473 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500475 { (exit 1); exit 1; }; }
476
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481 # Exit status is that of the last command.
482 exit
483}
484
485
Theodore Ts'oe1052142006-10-21 21:46:47 -0400486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
492ECHO_C= ECHO_N= ECHO_T=
493case `echo -n x` in
494-n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
499*)
500 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500501esac
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500504 as_expr=expr
505else
506 as_expr=false
507fi
508
509rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400510if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512else
513 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100514 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400515fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100516if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500528 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500530else
531 as_ln_s='cp -p'
532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400533rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500535
536if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
541fi
542
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400543if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400545else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
550 fi
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100554 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400555 else
556 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100557 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
562 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565
566# Sed expression to map a string onto a valid CPP name.
567as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569# Sed expression to map a string onto a valid variable name.
570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500573
Theodore Ts'oe1052142006-10-21 21:46:47 -0400574exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500575
576# Name of the host.
577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578# so uname gets run too.
579ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500581#
582# Initializations.
583#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000584ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400585ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500586ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400587LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500588cross_compiling=no
589subdirs=
590MFLAGS=
591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# Identity of this package.
595PACKAGE_NAME=
596PACKAGE_TARNAME=
597PACKAGE_VERSION=
598PACKAGE_STRING=
599PACKAGE_BUGREPORT=
600
601ac_unique_file="version.h"
602# Factoring default headers for most tests.
603ac_includes_default="\
604#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400605#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500606# include <sys/types.h>
607#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400608#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500609# include <sys/stat.h>
610#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400611#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500612# include <stdlib.h>
613# include <stddef.h>
614#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500616# include <stdlib.h>
617# endif
618#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400619#ifdef HAVE_STRING_H
620# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500621# include <memory.h>
622# endif
623# include <string.h>
624#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400625#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500626# include <strings.h>
627#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400628#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500629# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400630#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400631#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400632# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500633#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400634#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500635# include <unistd.h>
636#endif"
637
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100638ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400639LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100640BUILD_LDFLAGS
641BUILD_CFLAGS
642INTL_FLAGS
643DO_TEST_SUITE
644ET_DIR
645SS_DIR
646LDFLAG_STATIC
647root_sysconfdir
648root_libdir
649root_sbindir
650root_bindir
651root_prefix
652UNIX_CMT
653CYGWIN_CMT
654LINUX_CMT
655UNI_DIFF_OPTS
656SEM_INIT_LIB
657DLOPEN_LIB
658SOCKET_LIB
659SIZEOF_LONG_LONG
660SIZEOF_LONG
661SIZEOF_INT
662SIZEOF_SHORT
663BUILD_CC
664MAKEINFO
665STRIP
666AR
667LDCONFIG
668PERL
669SED
670AWK
671CHMOD
672RM
673CP
674MV
675LN_S
676LN
677BINARY_TYPE
678POSUB
679LTLIBINTL
680LIBINTL
681INTLLIBS
682INTL_LIBTOOL_SUFFIX_PREFIX
683INTLOBJS
684GENCAT
685INSTOBJEXT
686DATADIRNAME
687CATOBJEXT
688USE_INCLUDED_LIBINTL
689BUILD_INCLUDED_LIBINTL
690INTLBISON
691LTLIBICONV
692LIBICONV
693HAVE_WPRINTF
694HAVE_SNPRINTF
695HAVE_ASPRINTF
696HAVE_POSIX_PRINTF
697GLIBC21
698ALLOCA
699RANLIB
700MSGMERGE
701XGETTEXT
702GMSGFMT
703MSGFMT
704USE_NLS
705MKINSTALLDIRS
706INSTALL_DATA
707INSTALL_SCRIPT
708INSTALL_PROGRAM
709SET_MAKE
710VERSION
711PACKAGE
712GETTEXT_PACKAGE
713UUIDD_CMT
714E2INITRD_MAN
715E2INITRD_PROG
716FSCK_MAN
717FSCK_PROG
718RESIZER_CMT
719IMAGER_CMT
720DEBUGFS_CMT
721BLKID_CMT
722DEPPROFILED_LIBBLKID
723PROFILED_LIBBLKID
724DEPSTATIC_LIBBLKID
725STATIC_LIBBLKID
726DEPLIBBLKID
727LIBBLKID
728UUID_CMT
729DEPPROFILED_LIBUUID
730PROFILED_LIBUUID
731DEPSTATIC_LIBUUID
732STATIC_LIBUUID
733DEPLIBUUID
734LIBUUID
735PKG_CONFIG
736TEST_IO_CMT
737PRIVATE_LIBS_CMT
738LDFLAG_DYNAMIC
739PROFILED_LIB_EXT
740STATIC_LIB_EXT
741LIB_EXT
742CHECKER_CMT
743PROFILE_CMT
744BSDLIB_CMT
745ELF_CMT
746HTREE_CMT
747MAINTAINER_CMT
748LINUX_INCLUDE
749EGREP
750GREP
751LD
752CPP
753OBJEXT
754EXEEXT
755ac_ct_CC
756CPPFLAGS
757LDFLAGS
758CFLAGS
759CC
760host_os
761host_vendor
762host_cpu
763host
764build_os
765build_vendor
766build_cpu
767build
768E2FSPROGS_PKGVER
769E2FSPROGS_VERSION
770E2FSPROGS_DAY
771E2FSPROGS_MONTH
772E2FSPROGS_YEAR
773target_alias
774host_alias
775build_alias
776LIBS
777ECHO_T
778ECHO_N
779ECHO_C
780DEFS
781mandir
782localedir
783libdir
784psdir
785pdfdir
786dvidir
787htmldir
788infodir
789docdir
790oldincludedir
791includedir
792localstatedir
793sharedstatedir
794sysconfdir
795datadir
796datarootdir
797libexecdir
798sbindir
799bindir
800program_transform_name
801prefix
802exec_prefix
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400810ac_subst_files='MCONFIG
811MAKEFILE_ELF
812MAKEFILE_BSDLIB
813MAKEFILE_PROFILE
814MAKEFILE_CHECKER
815MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400816ASM_TYPES_HEADER
817PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100818ac_user_opts='
819enable_option_checking
820with_diet_libc
821with_cc
822with_linker
823with_ccopts
824with_ldopts
825with_root_prefix
826enable_maintainer_mode
827enable_compression
828enable_htree
829enable_elf_shlibs
830enable_bsd_shlibs
831enable_profile
832enable_checker
833enable_jbd_debug
834enable_blkid_debug
835enable_testio_debug
836enable_libuuid
837enable_libblkid
838enable_debugfs
839enable_imager
840enable_resizer
841enable_fsck
842enable_e2initrd_helper
843enable_tls
844enable_uuidd
845enable_nls
846with_gnu_ld
847enable_rpath
848with_libiconv_prefix
849with_included_gettext
850with_libintl_prefix
851'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 ac_precious_vars='build_alias
853host_alias
854target_alias
855CC
856CFLAGS
857LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400858LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400859CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400860CPP
861PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000863
864# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500865ac_init_help=
866ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867ac_unrecognized_opts=
868ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000869# The variables have the same names as the options, with
870# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000872exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000873no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000874no_recursion=
875prefix=NONE
876program_prefix=NONE
877program_suffix=NONE
878program_transform_name=s,x,x,
879silent=
880site=
881srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000882verbose=
883x_includes=NONE
884x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500885
886# Installation directory options.
887# These are left unexpanded so users can "make install exec_prefix=/foo"
888# and all the variables that are supposed to be based on exec_prefix
889# by default will actually change.
890# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400891# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000892bindir='${exec_prefix}/bin'
893sbindir='${exec_prefix}/sbin'
894libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895datarootdir='${prefix}/share'
896datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000897sysconfdir='${prefix}/etc'
898sharedstatedir='${prefix}/com'
899localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000900includedir='${prefix}/include'
901oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902docdir='${datarootdir}/doc/${PACKAGE}'
903infodir='${datarootdir}/info'
904htmldir='${docdir}'
905dvidir='${docdir}'
906pdfdir='${docdir}'
907psdir='${docdir}'
908libdir='${exec_prefix}/lib'
909localedir='${datarootdir}/locale'
910mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400913ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914for ac_option
915do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916 # If the previous option needs an argument, assign it.
917 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400918 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919 ac_prev=
920 continue
921 fi
922
Theodore Ts'oe1052142006-10-21 21:46:47 -0400923 case $ac_option in
924 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
925 *) ac_optarg=yes ;;
926 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927
928 # Accept the important Cygnus configure options, so we can diagnose typos.
929
Theodore Ts'oe1052142006-10-21 21:46:47 -0400930 case $ac_dashdash$ac_option in
931 --)
932 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000933
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934 -bindir | --bindir | --bindi | --bind | --bin | --bi)
935 ac_prev=bindir ;;
936 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500937 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000938
939 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500940 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000941 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500942 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943
944 -cache-file | --cache-file | --cache-fil | --cache-fi \
945 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
946 ac_prev=cache_file ;;
947 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
948 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500949 cache_file=$ac_optarg ;;
950
951 --config-cache | -C)
952 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000953
Theodore Ts'oe1052142006-10-21 21:46:47 -0400954 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000955 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400956 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500957 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000958
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
960 | --dataroo | --dataro | --datar)
961 ac_prev=datarootdir ;;
962 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
963 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
964 datarootdir=$ac_optarg ;;
965
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000966 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100967 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000968 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500971 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400982
983 -docdir | --docdir | --docdi | --doc | --do)
984 ac_prev=docdir ;;
985 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
986 docdir=$ac_optarg ;;
987
988 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
989 ac_prev=dvidir ;;
990 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
991 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100994 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100999 ac_useropt_orig=$ac_useropt
1000 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1001 case $ac_user_opts in
1002 *"
1003"enable_$ac_useropt"
1004"*) ;;
1005 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1006 ac_unrecognized_sep=', ';;
1007 esac
1008 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001009
1010 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1011 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1012 | --exec | --exe | --ex)
1013 ac_prev=exec_prefix ;;
1014 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1015 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1016 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001017 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001018
1019 -gas | --gas | --ga | --g)
1020 # Obsolete; use --with-gas.
1021 with_gas=yes ;;
1022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001023 -help | --help | --hel | --he | -h)
1024 ac_init_help=long ;;
1025 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1026 ac_init_help=recursive ;;
1027 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1028 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001029
1030 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001031 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001032 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001034
Theodore Ts'oe1052142006-10-21 21:46:47 -04001035 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 ac_prev=htmldir ;;
1037 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 | --ht=*)
1039 htmldir=$ac_optarg ;;
1040
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001041 -includedir | --includedir | --includedi | --included | --include \
1042 | --includ | --inclu | --incl | --inc)
1043 ac_prev=includedir ;;
1044 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1045 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001046 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001047
1048 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 ac_prev=infodir ;;
1050 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001051 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001052
1053 -libdir | --libdir | --libdi | --libd)
1054 ac_prev=libdir ;;
1055 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001056 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001057
1058 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1059 | --libexe | --libex | --libe)
1060 ac_prev=libexecdir ;;
1061 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1062 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001064
Theodore Ts'oe1052142006-10-21 21:46:47 -04001065 -localedir | --localedir | --localedi | --localed | --locale)
1066 ac_prev=localedir ;;
1067 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1068 localedir=$ac_optarg ;;
1069
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001070 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001071 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001072 ac_prev=localstatedir ;;
1073 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001074 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001076
1077 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 ac_prev=mandir ;;
1079 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001081
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001082 -nfp | --nfp | --nf)
1083 # Obsolete; use --without-fp.
1084 with_fp=no ;;
1085
1086 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001088 no_create=yes ;;
1089
1090 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1091 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1092 no_recursion=yes ;;
1093
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1095 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1096 | --oldin | --oldi | --old | --ol | --o)
1097 ac_prev=oldincludedir ;;
1098 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1099 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1100 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001102
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 ac_prev=prefix ;;
1105 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001106 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001107
1108 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1109 | --program-pre | --program-pr | --program-p)
1110 ac_prev=program_prefix ;;
1111 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1112 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001113 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114
1115 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1116 | --program-suf | --program-su | --program-s)
1117 ac_prev=program_suffix ;;
1118 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1119 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121
1122 -program-transform-name | --program-transform-name \
1123 | --program-transform-nam | --program-transform-na \
1124 | --program-transform-n | --program-transform- \
1125 | --program-transform | --program-transfor \
1126 | --program-transfo | --program-transf \
1127 | --program-trans | --program-tran \
1128 | --progr-tra | --program-tr | --program-t)
1129 ac_prev=program_transform_name ;;
1130 -program-transform-name=* | --program-transform-name=* \
1131 | --program-transform-nam=* | --program-transform-na=* \
1132 | --program-transform-n=* | --program-transform-=* \
1133 | --program-transform=* | --program-transfor=* \
1134 | --program-transfo=* | --program-transf=* \
1135 | --program-trans=* | --program-tran=* \
1136 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001137 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001138
Theodore Ts'oe1052142006-10-21 21:46:47 -04001139 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 ac_prev=pdfdir ;;
1141 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1142 pdfdir=$ac_optarg ;;
1143
1144 -psdir | --psdir | --psdi | --psd | --ps)
1145 ac_prev=psdir ;;
1146 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1147 psdir=$ac_optarg ;;
1148
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1150 | -silent | --silent | --silen | --sile | --sil)
1151 silent=yes ;;
1152
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001153 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 ac_prev=sbindir ;;
1155 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001157 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001158
1159 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1160 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1161 | --sharedst | --shareds | --shared | --share | --shar \
1162 | --sha | --sh)
1163 ac_prev=sharedstatedir ;;
1164 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1165 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1166 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001168 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001169
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001170 -site | --site | --sit)
1171 ac_prev=site ;;
1172 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001173 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174
1175 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 ac_prev=srcdir ;;
1177 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001179
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001180 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1181 | --syscon | --sysco | --sysc | --sys | --sy)
1182 ac_prev=sysconfdir ;;
1183 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1184 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001185 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001186
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001188 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001190 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191
1192 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1193 verbose=yes ;;
1194
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001195 -version | --version | --versio | --versi | --vers | -V)
1196 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001197
1198 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001199 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001200 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001201 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1202 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001203 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1207 *"
1208"with_$ac_useropt"
1209"*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214
1215 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1224 *"
1225"with_$ac_useropt"
1226"*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001248 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001250 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253 ;;
1254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001260 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262 export $ac_envvar ;;
1263
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001264 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001270 ;;
1271
1272 esac
1273done
1274
1275if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001277 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001278 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001279fi
1280
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001281if test -n "$ac_unrecognized_opts"; then
1282 case $enable_option_checking in
1283 no) ;;
1284 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1285 { (exit 1); exit 1; }; } ;;
1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1287 esac
1288fi
1289
1290# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001296 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001297 # Remove trailing slashes.
1298 case $ac_val in
1299 */ )
1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1301 eval $ac_var=\$ac_val;;
1302 esac
1303 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001304 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001305 [\\/$]* | ?:[\\/]* ) continue;;
1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001307 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001308 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001309 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001310done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001312# There might be people who depend on the old broken behavior: `$host'
1313# used to hold the argument of --host etc.
1314# FIXME: To remove some day.
1315build=$build_alias
1316host=$host_alias
1317target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001319# FIXME: To remove some day.
1320if test "x$host_alias" != x; then
1321 if test "x$build_alias" = x; then
1322 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001323 $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 -05001324 If a cross compiler is detected then cross compile mode will be used." >&2
1325 elif test "x$build_alias" != "x$host_alias"; then
1326 cross_compiling=yes
1327 fi
1328fi
1329
1330ac_tool_prefix=
1331test -n "$host_alias" && ac_tool_prefix=$host_alias-
1332
1333test "$silent" = yes && exec 6>/dev/null
1334
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001335
Theodore Ts'oe1052142006-10-21 21:46:47 -04001336ac_pwd=`pwd` && test -n "$ac_pwd" &&
1337ac_ls_di=`ls -di .` &&
1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001339 { $as_echo "$as_me: error: working directory cannot be determined" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001340 { (exit 1); exit 1; }; }
1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001342 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343 { (exit 1); exit 1; }; }
1344
1345
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346# Find the source files, if location was not specified.
1347if test -z "$srcdir"; then
1348 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001349 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001350 ac_confdir=`$as_dirname -- "$as_myself" ||
1351$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1352 X"$as_myself" : 'X\(//\)[^/]' \| \
1353 X"$as_myself" : 'X\(//\)$' \| \
1354 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1355$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)[^/].*/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\/\)$/{
1365 s//\1/
1366 q
1367 }
1368 /^X\(\/\).*/{
1369 s//\1/
1370 q
1371 }
1372 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001373 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001374 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001375 srcdir=..
1376 fi
1377else
1378 ac_srcdir_defaulted=no
1379fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380if test ! -r "$srcdir/$ac_unique_file"; then
1381 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001382 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001383 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386ac_abs_confdir=`(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001387 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001388 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001389 pwd)`
1390# When building in place, set srcdir=.
1391if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393fi
1394# Remove unnecessary trailing slashes from srcdir.
1395# Double slashes in file names in object file debugging info
1396# mess up M-x gdb in Emacs.
1397case $srcdir in
1398*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399esac
1400for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001407#
1408# Report the --help message.
1409#
1410if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414\`configure' configures this package to adapt to many kinds of systems.
1415
1416Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421Defaults for the options are specified in brackets.
1422
1423Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001434Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001436 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001438 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439
1440By default, \`make install' will install all the files in
1441\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443for instance \`--prefix=\$HOME'.
1444
1445For better control, use the options below.
1446
1447Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001467_ACEOF
1468
1469 cat <<\_ACEOF
1470
1471System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474_ACEOF
1475fi
1476
1477if test -n "$ac_init_help"; then
1478
1479 cat <<\_ACEOF
1480
1481Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001482 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001485 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001486 --enable-compression enable EXPERIMENTAL compression support
1487 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488 --enable-elf-shlibs select ELF shared libraries
1489 --enable-bsd-shlibs select BSD shared libraries
1490 --enable-profile build profiling libraries
1491 --enable-checker build checker libraries
1492 --enable-jbd-debug enable journal debugging
1493 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001494 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001495 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001496 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497 --disable-debugfs disable support of debugfs program
1498 --disable-imager disable support of e2image program
1499 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001500 --enable-fsck build fsck wrapper program
1501 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001502 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001503 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001504 --disable-nls do not use Native Language Support
1505 --disable-rpath do not hardcode runtime library paths
1506
1507Optional Packages:
1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001510 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511 --with-cc=COMPILER select compiler to use
1512 --with-linker=LINKER select linker to use
1513 --with-ccopts=CCOPTS select compiler command line options
1514 --with-ldopts=LDOPTS select linker command line options
1515 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1516 --with-gnu-ld assume the C compiler uses GNU ld default=no
1517 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1518 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1519 --with-included-gettext use the GNU gettext library included here
1520 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1521 --without-libintl-prefix don't search for libintl in includedir and libdir
1522
1523Some influential environment variables:
1524 CC C compiler command
1525 CFLAGS C compiler flags
1526 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1527 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001528 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001529 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1530 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001532 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
1537_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001538ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001544 test -d "$ac_dir" ||
1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 ac_builddir=.
1548
Theodore Ts'oe1052142006-10-21 21:46:47 -04001549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001553 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001555 case $ac_top_builddir_sub in
1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558 esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564
1565case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001566 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001568 ac_top_srcdir=$ac_top_builddir_sub
1569 ac_abs_top_srcdir=$ac_pwd ;;
1570 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001571 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001572 ac_top_srcdir=$srcdir
1573 ac_abs_top_srcdir=$srcdir ;;
1574 *) # Relative name.
1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576 ac_top_srcdir=$ac_top_build_prefix$srcdir
1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001580
Theodore Ts'oe1052142006-10-21 21:46:47 -04001581 cd "$ac_dir" || { ac_status=$?; continue; }
1582 # Check for guested configure.
1583 if test -f "$ac_srcdir/configure.gnu"; then
1584 echo &&
1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586 elif test -f "$ac_srcdir/configure"; then
1587 echo &&
1588 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001589 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001591 fi || ac_status=$?
1592 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593 done
1594fi
1595
Theodore Ts'oe1052142006-10-21 21:46:47 -04001596test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597if $ac_init_version; then
1598 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599configure
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001600generated by GNU Autoconf 2.63
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001601
Theodore Ts'oe1052142006-10-21 21:46:47 -04001602Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016032002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604This configure script is free software; the Free Software Foundation
1605gives unlimited permission to copy, distribute and modify it.
1606_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001607 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001609cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001610This file contains any messages produced by compilers while
1611running configure, to aid debugging if configure makes a mistake.
1612
1613It was created by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001614generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615
1616 $ $0 $@
1617
1618_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001620{
1621cat <<_ASUNAME
1622## --------- ##
1623## Platform. ##
1624## --------- ##
1625
1626hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1627uname -m = `(uname -m) 2>/dev/null || echo unknown`
1628uname -r = `(uname -r) 2>/dev/null || echo unknown`
1629uname -s = `(uname -s) 2>/dev/null || echo unknown`
1630uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631
1632/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1633/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634
1635/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1636/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1637/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001639/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1640/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1641/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1642
1643_ASUNAME
1644
1645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1646for as_dir in $PATH
1647do
1648 IFS=$as_save_IFS
1649 test -z "$as_dir" && as_dir=.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001650 $as_echo "PATH: $as_dir"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001651done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001653
1654} >&5
1655
1656cat >&5 <<_ACEOF
1657
1658
1659## ----------- ##
1660## Core tests. ##
1661## ----------- ##
1662
1663_ACEOF
1664
1665
1666# Keep a trace of the command line.
1667# Strip out --no-create and --no-recursion so they do not pile up.
1668# Strip out --silent because we don't want to record it for future runs.
1669# Also quote any args containing shell meta-characters.
1670# Make two passes to allow for proper duplicate-argument suppression.
1671ac_configure_args=
1672ac_configure_args0=
1673ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001674ac_must_keep_next=false
1675for ac_pass in 1 2
1676do
1677 for ac_arg
1678 do
1679 case $ac_arg in
1680 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1682 | -silent | --silent | --silen | --sile | --sil)
1683 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001684 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001685 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001686 esac
1687 case $ac_pass in
1688 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 2)
1690 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1691 if test $ac_must_keep_next = true; then
1692 ac_must_keep_next=false # Got value, back to normal.
1693 else
1694 case $ac_arg in
1695 *=* | --config-cache | -C | -disable-* | --disable-* \
1696 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1697 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1698 | -with-* | --with-* | -without-* | --without-* | --x)
1699 case "$ac_configure_args0 " in
1700 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1701 esac
1702 ;;
1703 -* ) ac_must_keep_next=true ;;
1704 esac
1705 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001706 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001707 ;;
1708 esac
1709 done
1710done
1711$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1712$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713
1714# When interrupted or exit'd, cleanup temporary files, and complete
1715# config.log. We remove comments because anyway the quotes in there
1716# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001717# WARNING: Use '\'' to represent an apostrophe within the trap.
1718# 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 -05001719trap 'exit_status=$?
1720 # Save into config.log some information that might help in debugging.
1721 {
1722 echo
1723
1724 cat <<\_ASBOX
1725## ---------------- ##
1726## Cache variables. ##
1727## ---------------- ##
1728_ASBOX
1729 echo
1730 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001731(
1732 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1733 eval ac_val=\$$ac_var
1734 case $ac_val in #(
1735 *${as_nl}*)
1736 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001737 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1738$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001739 esac
1740 case $ac_var in #(
1741 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001742 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -04001743 *) $as_unset $ac_var ;;
1744 esac ;;
1745 esac
1746 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001747 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001750 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001751 "s/'\''/'\''\\\\'\'''\''/g;
1752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001754 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001756 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001757 esac |
1758 sort
1759)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001760 echo
1761
1762 cat <<\_ASBOX
1763## ----------------- ##
1764## Output variables. ##
1765## ----------------- ##
1766_ASBOX
1767 echo
1768 for ac_var in $ac_subst_vars
1769 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001770 eval ac_val=\$$ac_var
1771 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001772 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001773 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001774 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001775 done | sort
1776 echo
1777
1778 if test -n "$ac_subst_files"; then
1779 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001780## ------------------- ##
1781## File substitutions. ##
1782## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001783_ASBOX
1784 echo
1785 for ac_var in $ac_subst_files
1786 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001787 eval ac_val=\$$ac_var
1788 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001789 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001790 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001791 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001792 done | sort
1793 echo
1794 fi
1795
1796 if test -s confdefs.h; then
1797 cat <<\_ASBOX
1798## ----------- ##
1799## confdefs.h. ##
1800## ----------- ##
1801_ASBOX
1802 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001803 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001804 echo
1805 fi
1806 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001807 $as_echo "$as_me: caught signal $ac_signal"
1808 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001809 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001810 rm -f core *.core core.conftest.* &&
1811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001812 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001813' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001814for ac_signal in 1 2 13 15; do
1815 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1816done
1817ac_signal=0
1818
1819# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001820rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001821
1822# Predefined preprocessor variables.
1823
1824cat >>confdefs.h <<_ACEOF
1825#define PACKAGE_NAME "$PACKAGE_NAME"
1826_ACEOF
1827
1828
1829cat >>confdefs.h <<_ACEOF
1830#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1831_ACEOF
1832
1833
1834cat >>confdefs.h <<_ACEOF
1835#define PACKAGE_VERSION "$PACKAGE_VERSION"
1836_ACEOF
1837
1838
1839cat >>confdefs.h <<_ACEOF
1840#define PACKAGE_STRING "$PACKAGE_STRING"
1841_ACEOF
1842
1843
1844cat >>confdefs.h <<_ACEOF
1845#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1846_ACEOF
1847
1848
1849# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001850# Prefer an explicitly selected file to automatically selected ones.
1851ac_site_file1=NONE
1852ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001853if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001854 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04001855elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001856 ac_site_file1=$prefix/share/config.site
1857 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04001858else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001859 ac_site_file1=$ac_default_prefix/share/config.site
1860 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001861fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001862for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001863do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001864 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001865 if test -r "$ac_site_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001866 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1867$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001868 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001869 . "$ac_site_file"
1870 fi
1871done
1872
1873if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001874 # Some versions of bash will fail to source /dev/null (special
1875 # files actually), so we avoid doing that.
1876 if test -f "$cache_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001877 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1878$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001879 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001880 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1881 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001882 esac
1883 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001884else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001885 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1886$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001887 >$cache_file
1888fi
1889
1890# Check that the precious variables saved in the cache have kept the same
1891# value.
1892ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001893for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001894 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1895 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001896 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1897 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001898 case $ac_old_set,$ac_new_set in
1899 set,)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001900 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1901$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 -05001902 ac_cache_corrupted=: ;;
1903 ,set)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001904 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1905$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001906 ac_cache_corrupted=: ;;
1907 ,);;
1908 *)
1909 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001910 # differences in whitespace do not lead to failure.
1911 ac_old_val_w=`echo x $ac_old_val`
1912 ac_new_val_w=`echo x $ac_new_val`
1913 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1914 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1915$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1916 ac_cache_corrupted=:
1917 else
1918 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1919$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1920 eval $ac_var=\$ac_old_val
1921 fi
1922 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1923$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1924 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1925$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001926 fi;;
1927 esac
1928 # Pass precious variables to config.status.
1929 if test "$ac_new_set" = set; then
1930 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001932 *) ac_arg=$ac_var=$ac_new_val ;;
1933 esac
1934 case " $ac_configure_args " in
1935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1936 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1937 esac
1938 fi
1939done
1940if $ac_cache_corrupted; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001941 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1943 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1944$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1945 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1946$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 -05001947 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001948fi
1949
Theodore Ts'oe1052142006-10-21 21:46:47 -04001950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001966ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001967ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001972
1973
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001974ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001975for ac_dir in config "$srcdir"/config; do
1976 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001977 ac_aux_dir=$ac_dir
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1979 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001980 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001981 ac_aux_dir=$ac_dir
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1983 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001984 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001985 ac_aux_dir=$ac_dir
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1987 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001988 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001989done
1990if test -z "$ac_aux_dir"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001991 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1992$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 -05001993 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001994fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001995
1996# These three variables are undocumented and unsupported,
1997# and are intended to be withdrawn in a future Autoconf release.
1998# They can cause serious problems if a builder's source tree is in a directory
1999# whose full name contains unusual characters.
2000ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2003
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002004
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002005MCONFIG=./MCONFIG
2006
Theodore Ts'o74becf31997-04-26 14:37:06 +00002007BINARY_TYPE=bin
2008E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2009 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2010DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2011 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002012E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002013MONTH=`echo $DATE | awk -F- '{print $2}'`
2014YEAR=`echo $DATE | awk -F- '{print $3}'`
2015
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002016if expr $YEAR ">" 1900 > /dev/null ; then
2017 E2FSPROGS_YEAR=$YEAR
2018elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002019 E2FSPROGS_YEAR=19$YEAR
2020else
2021 E2FSPROGS_YEAR=20$YEAR
2022fi
2023
2024case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002025Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2026Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2027Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2028Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2029May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2030Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2031Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2032Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2033Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2034Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2035Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2036Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002037*) { $as_echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
2038$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002039esac
2040
Andreas Dilger927566a2006-11-12 19:41:25 -05002041base_ver=`echo $E2FSPROGS_VERSION | \
2042 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002043
2044date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2045
2046case $E2FSPROGS_VERSION in
2047*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002048 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002049 ;;
2050*)
2051 E2FSPROGS_PKGVER="$base_ver"
2052 ;;
2053esac
2054
2055unset DATE MONTH YEAR base_ver pre_vers date_spec
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002056{ $as_echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2057$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2058{ $as_echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2059$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002060
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002061
2062
2063
Andreas Dilger927566a2006-11-12 19:41:25 -05002064
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002065# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002066$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002067 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2068$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002069 { (exit 1); exit 1; }; }
2070
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002071{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2072$as_echo_n "checking build system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002073if test "${ac_cv_build+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002074 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002075else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002076 ac_build_alias=$build_alias
2077test "x$ac_build_alias" = x &&
2078 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2079test "x$ac_build_alias" = x &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002080 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2081$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002082 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002083ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002084 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2085$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086 { (exit 1); exit 1; }; }
2087
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002088fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002089{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2090$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002091case $ac_cv_build in
2092*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002093*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2094$as_echo "$as_me: error: invalid value of canonical build" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002095 { (exit 1); exit 1; }; };;
2096esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002097build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098ac_save_IFS=$IFS; IFS='-'
2099set x $ac_cv_build
2100shift
2101build_cpu=$1
2102build_vendor=$2
2103shift; shift
2104# Remember, the first character of IFS is used to create $*,
2105# except with old shells:
2106build_os=$*
2107IFS=$ac_save_IFS
2108case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002109
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002110
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002111{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2112$as_echo_n "checking host system type... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002113if test "${ac_cv_host+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002114 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002115else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002116 if test "x$host_alias" = x; then
2117 ac_cv_host=$ac_cv_build
2118else
2119 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002120 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2121$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002122 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002123fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002124
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002125fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002126{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2127$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128case $ac_cv_host in
2129*-*-*) ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002130*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2131$as_echo "$as_me: error: invalid value of canonical host" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002132 { (exit 1); exit 1; }; };;
2133esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002134host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002135ac_save_IFS=$IFS; IFS='-'
2136set x $ac_cv_host
2137shift
2138host_cpu=$1
2139host_vendor=$2
2140shift; shift
2141# Remember, the first character of IFS is used to create $*,
2142# except with old shells:
2143host_os=$*
2144IFS=$ac_save_IFS
2145case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002146
2147
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002148WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002149
Theodore Ts'oe1052142006-10-21 21:46:47 -04002150# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002151if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002152 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002153WITH_DIET_LIBC=yes
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002154{ $as_echo "$as_me:$LINENO: result: CC=$CC" >&5
2155$as_echo "CC=$CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002156fi
2157
2158# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002159if test "${with_cc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002160 withval=$with_cc; { $as_echo "$as_me:$LINENO: result: CC=$withval" >&5
2161$as_echo "CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002162CC=$withval
2163else
2164 if test -z "$CC" ; then CC=cc; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002165{ $as_echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2166$as_echo "CC defaults to $CC" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002167fi
2168export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002169
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170ac_ext=c
2171ac_cpp='$CPP $CPPFLAGS'
2172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2174ac_compiler_gnu=$ac_cv_c_compiler_gnu
2175if test -n "$ac_tool_prefix"; then
2176 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2177set dummy ${ac_tool_prefix}gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002178{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002180if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002181 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002182else
2183 if test -n "$CC"; then
2184 ac_cv_prog_CC="$CC" # Let the user override the test.
2185else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187for as_dir in $PATH
2188do
2189 IFS=$as_save_IFS
2190 test -z "$as_dir" && as_dir=.
2191 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002192 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 -05002193 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002194 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002195 break 2
2196 fi
2197done
2198done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002199IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002201fi
2202fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002203CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002204if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002205 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002207else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002208 { $as_echo "$as_me:$LINENO: result: no" >&5
2209$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210fi
2211
Theodore Ts'oe1052142006-10-21 21:46:47 -04002212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002213fi
2214if test -z "$ac_cv_prog_CC"; then
2215 ac_ct_CC=$CC
2216 # Extract the first word of "gcc", so it can be a program name with args.
2217set dummy gcc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002220if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002221 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002222else
2223 if test -n "$ac_ct_CC"; then
2224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2225else
2226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2227for as_dir in $PATH
2228do
2229 IFS=$as_save_IFS
2230 test -z "$as_dir" && as_dir=.
2231 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002232 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 -05002233 ac_cv_prog_ac_ct_CC="gcc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002234 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235 break 2
2236 fi
2237done
2238done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002239IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002240
2241fi
2242fi
2243ac_ct_CC=$ac_cv_prog_ac_ct_CC
2244if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002245 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2246$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002247else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002248 { $as_echo "$as_me:$LINENO: result: no" >&5
2249$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002250fi
2251
Theodore Ts'oe1052142006-10-21 21:46:47 -04002252 if test "x$ac_ct_CC" = x; then
2253 CC=""
2254 else
2255 case $cross_compiling:$ac_tool_warned in
2256yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002257{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259ac_tool_warned=yes ;;
2260esac
2261 CC=$ac_ct_CC
2262 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263else
2264 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002265fi
2266
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002267if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002268 if test -n "$ac_tool_prefix"; then
2269 # 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 -05002270set dummy ${ac_tool_prefix}cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002271{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2272$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002274 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002275else
2276 if test -n "$CC"; then
2277 ac_cv_prog_CC="$CC" # Let the user override the test.
2278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002285 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 -05002286 ac_cv_prog_CC="${ac_tool_prefix}cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002287 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002288 break 2
2289 fi
2290done
2291done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293
2294fi
2295fi
2296CC=$ac_cv_prog_CC
2297if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002298 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2299$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002300else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002301 { $as_echo "$as_me:$LINENO: result: no" >&5
2302$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002303fi
2304
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307fi
2308if test -z "$CC"; then
2309 # Extract the first word of "cc", so it can be a program name with args.
2310set dummy cc; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002313if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002314 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002315else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002319 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321for as_dir in $PATH
2322do
2323 IFS=$as_save_IFS
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002326 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 -05002327 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2328 ac_prog_rejected=yes
2329 continue
2330 fi
2331 ac_cv_prog_CC="cc"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002333 break 2
2334 fi
2335done
2336done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002337IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002338
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002339if test $ac_prog_rejected = yes; then
2340 # We found a bogon in the path, so make sure we never use it.
2341 set dummy $ac_cv_prog_CC
2342 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002344 # We chose a different compiler from the bogus one.
2345 # However, it has the same basename, so the bogon will be chosen
2346 # first if we set CC to just the basename; use the full file name.
2347 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002348 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002349 fi
2350fi
2351fi
2352fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002353CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002354if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002355 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2356$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002357else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002358 { $as_echo "$as_me:$LINENO: result: no" >&5
2359$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002360fi
2361
Theodore Ts'oe1052142006-10-21 21:46:47 -04002362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002363fi
2364if test -z "$CC"; then
2365 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002366 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367 do
2368 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2369set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002370{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2371$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372if test "${ac_cv_prog_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002373 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002374else
2375 if test -n "$CC"; then
2376 ac_cv_prog_CC="$CC" # Let the user override the test.
2377else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2379for as_dir in $PATH
2380do
2381 IFS=$as_save_IFS
2382 test -z "$as_dir" && as_dir=.
2383 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002384 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 -05002385 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002386 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002387 break 2
2388 fi
2389done
2390done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002391IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002392
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002393fi
2394fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002396if test -n "$CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002397 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2398$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002399else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002400 { $as_echo "$as_me:$LINENO: result: no" >&5
2401$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002402fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002403
Theodore Ts'oe1052142006-10-21 21:46:47 -04002404
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002405 test -n "$CC" && break
2406 done
2407fi
2408if test -z "$CC"; then
2409 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002410 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002411do
2412 # Extract the first word of "$ac_prog", so it can be a program name with args.
2413set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002414{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2415$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002416if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002417 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418else
2419 if test -n "$ac_ct_CC"; then
2420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2421else
2422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423for as_dir in $PATH
2424do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002428 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 -05002429 ac_cv_prog_ac_ct_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002432 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433done
2434done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002436
2437fi
2438fi
2439ac_ct_CC=$ac_cv_prog_ac_ct_CC
2440if test -n "$ac_ct_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002441 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2442$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002444 { $as_echo "$as_me:$LINENO: result: no" >&5
2445$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002446fi
2447
Theodore Ts'oe1052142006-10-21 21:46:47 -04002448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 test -n "$ac_ct_CC" && break
2450done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002451
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452 if test "x$ac_ct_CC" = x; then
2453 CC=""
2454 else
2455 case $cross_compiling:$ac_tool_warned in
2456yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002457{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002459ac_tool_warned=yes ;;
2460esac
2461 CC=$ac_ct_CC
2462 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002466
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002467
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002468test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2469$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2470{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002472$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002474 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475
2476# Provide some information about the compiler.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002477$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2478set X $ac_compile
2479ac_compiler=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480{ (ac_try="$ac_compiler --version >&5"
2481case "(($ac_try" in
2482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2483 *) ac_try_echo=$ac_try;;
2484esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2486$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002488 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002491{ (ac_try="$ac_compiler -v >&5"
2492case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2497$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002498 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002499 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502{ (ac_try="$ac_compiler -V >&5"
2503case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2506esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2508$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512 (exit $ac_status); }
2513
2514cat >conftest.$ac_ext <<_ACEOF
2515/* confdefs.h. */
2516_ACEOF
2517cat confdefs.h >>conftest.$ac_ext
2518cat >>conftest.$ac_ext <<_ACEOF
2519/* end confdefs.h. */
2520
2521int
2522main ()
2523{
2524
2525 ;
2526 return 0;
2527}
2528_ACEOF
2529ac_clean_files_save=$ac_clean_files
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002530ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531# Try to create an executable without -o first, disregard a.out.
2532# It will help us diagnose broken compilers, and finding out an intuition
2533# of exeext.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002534{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2535$as_echo_n "checking for C compiler default output file name... " >&6; }
2536ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2537
2538# The possible output files:
2539ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2540
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541ac_rmfiles=
2542for ac_file in $ac_files
2543do
2544 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002546 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2547 esac
2548done
2549rm -f $ac_rmfiles
2550
2551if { (ac_try="$ac_link_default"
2552case "(($ac_try" in
2553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2554 *) ac_try_echo=$ac_try;;
2555esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2557$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2563# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2564# in a Makefile. We should not override ac_cv_exeext if it was cached,
2565# so that the user can short-circuit this test for compilers unknown to
2566# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002567for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568do
2569 test -f "$ac_file" || continue
2570 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572 ;;
2573 [ab].out )
2574 # We found the default executable, but exeext='' is most
2575 # certainly right.
2576 break;;
2577 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002578 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2579 then :; else
2580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2581 fi
2582 # We set ac_cv_exeext here because the later test for it is not
2583 # safe: cross compilers may not add the suffix if given an `-o'
2584 # argument, so we may need to know it at that point already.
2585 # Even if this section looks crufty: it has the advantage of
2586 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 break;;
2588 * )
2589 break;;
2590 esac
2591done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002592test "$ac_cv_exeext" = no && ac_cv_exeext=
2593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002595 ac_file=''
2596fi
2597
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002598{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2599$as_echo "$ac_file" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002600if test -z "$ac_file"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002602sed 's/^/| /' conftest.$ac_ext >&5
2603
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002604{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002607See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002608$as_echo "$as_me: error: C compiler cannot create executables
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002609See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002610 { (exit 77); exit 77; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002611fi
2612
2613ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002617{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2618$as_echo_n "checking whether the C compiler works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002619# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2620# If not cross compiling, check that we can run a simple program.
2621if test "$cross_compiling" != yes; then
2622 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002623 { (case "(($ac_try" in
2624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2625 *) ac_try_echo=$ac_try;;
2626esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2628$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002629 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002630 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002632 (exit $ac_status); }; }; then
2633 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002634 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002635 if test "$cross_compiling" = maybe; then
2636 cross_compiling=yes
2637 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002638 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2640{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641If you meant to cross compile, use \`--host'.
2642See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002643$as_echo "$as_me: error: cannot run C compiled programs.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644If you meant to cross compile, use \`--host'.
2645See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002646 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002648 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002649fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002650{ $as_echo "$as_me:$LINENO: result: yes" >&5
2651$as_echo "yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002652
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002653rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002655# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002656# the compiler is broken, or we cross compile.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002657{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2658$as_echo_n "checking whether we are cross compiling... " >&6; }
2659{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2660$as_echo "$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002661
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002662{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2663$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664if { (ac_try="$ac_link"
2665case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2670$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002671 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002674 (exit $ac_status); }; then
2675 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2676# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2677# work properly (i.e., refer to `conftest.exe'), while it won't with
2678# `rm'.
2679for ac_file in conftest.exe conftest conftest.*; do
2680 test -f "$ac_file" || continue
2681 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002682 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002683 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002684 break;;
2685 * ) break;;
2686 esac
2687done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002688else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002689 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2691{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002692See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002693$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002694See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002695 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002696fi
2697
2698rm -f conftest$ac_cv_exeext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002699{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2700$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002701
2702rm -f conftest.$ac_ext
2703EXEEXT=$ac_cv_exeext
2704ac_exeext=$EXEEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002705{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2706$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707if test "${ac_cv_objext+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002708 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002709else
2710 cat >conftest.$ac_ext <<_ACEOF
2711/* confdefs.h. */
2712_ACEOF
2713cat confdefs.h >>conftest.$ac_ext
2714cat >>conftest.$ac_ext <<_ACEOF
2715/* end confdefs.h. */
2716
2717int
2718main ()
2719{
2720
2721 ;
2722 return 0;
2723}
2724_ACEOF
2725rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002726if { (ac_try="$ac_compile"
2727case "(($ac_try" in
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2730esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2732$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002733 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002734 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002736 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002737 for ac_file in conftest.o conftest.obj conftest.*; do
2738 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2742 break;;
2743 esac
2744done
2745else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002746 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002747sed 's/^/| /' conftest.$ac_ext >&5
2748
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002749{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2750$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2751{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002752See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002753$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002754See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002755 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002756fi
2757
2758rm -f conftest.$ac_cv_objext conftest.$ac_ext
2759fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002760{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2761$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002762OBJEXT=$ac_cv_objext
2763ac_objext=$OBJEXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002764{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2765$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002766if test "${ac_cv_c_compiler_gnu+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002767 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002768else
2769 cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775
2776int
2777main ()
2778{
2779#ifndef __GNUC__
2780 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002781#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002783 ;
2784 return 0;
2785}
2786_ACEOF
2787rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002788if { (ac_try="$ac_compile"
2789case "(($ac_try" in
2790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2791 *) ac_try_echo=$ac_try;;
2792esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2794$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002795 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002796 ac_status=$?
2797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002801 (exit $ac_status); } && {
2802 test -z "$ac_c_werror_flag" ||
2803 test ! -s conftest.err
2804 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002806else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002807 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002808sed 's/^/| /' conftest.$ac_ext >&5
2809
Theodore Ts'oe1052142006-10-21 21:46:47 -04002810 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002812
2813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002814ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002816fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002817{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2818$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2819if test $ac_compiler_gnu = yes; then
2820 GCC=yes
2821else
2822 GCC=
2823fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824ac_test_CFLAGS=${CFLAGS+set}
2825ac_save_CFLAGS=$CFLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002826{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2827$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828if test "${ac_cv_prog_cc_g+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002829 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002830else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831 ac_save_c_werror_flag=$ac_c_werror_flag
2832 ac_c_werror_flag=yes
2833 ac_cv_prog_cc_g=no
2834 CFLAGS="-g"
2835 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836/* confdefs.h. */
2837_ACEOF
2838cat confdefs.h >>conftest.$ac_ext
2839cat >>conftest.$ac_ext <<_ACEOF
2840/* end confdefs.h. */
2841
2842int
2843main ()
2844{
2845
2846 ;
2847 return 0;
2848}
2849_ACEOF
2850rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002851if { (ac_try="$ac_compile"
2852case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002858 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002859 ac_status=$?
2860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002864 (exit $ac_status); } && {
2865 test -z "$ac_c_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002868 ac_cv_prog_cc_g=yes
2869else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002870 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002872
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873 CFLAGS=""
2874 cat >conftest.$ac_ext <<_ACEOF
2875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
2880
2881int
2882main ()
2883{
2884
2885 ;
2886 return 0;
2887}
2888_ACEOF
2889rm -f conftest.$ac_objext
2890if { (ac_try="$ac_compile"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2896$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002897 (eval "$ac_compile") 2>conftest.er1
2898 ac_status=$?
2899 grep -v '^ *+' conftest.er1 >conftest.err
2900 rm -f conftest.er1
2901 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002903 (exit $ac_status); } && {
2904 test -z "$ac_c_werror_flag" ||
2905 test ! -s conftest.err
2906 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907 :
2908else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002909 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 ac_c_werror_flag=$ac_save_c_werror_flag
2913 CFLAGS="-g"
2914 cat >conftest.$ac_ext <<_ACEOF
2915/* confdefs.h. */
2916_ACEOF
2917cat confdefs.h >>conftest.$ac_ext
2918cat >>conftest.$ac_ext <<_ACEOF
2919/* end confdefs.h. */
2920
2921int
2922main ()
2923{
2924
2925 ;
2926 return 0;
2927}
2928_ACEOF
2929rm -f conftest.$ac_objext
2930if { (ac_try="$ac_compile"
2931case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2936$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002937 (eval "$ac_compile") 2>conftest.er1
2938 ac_status=$?
2939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002943 (exit $ac_status); } && {
2944 test -z "$ac_c_werror_flag" ||
2945 test ! -s conftest.err
2946 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947 ac_cv_prog_cc_g=yes
2948else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002949 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002953fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002954
2955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002956fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002957
2958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2959fi
2960
2961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2962 ac_c_werror_flag=$ac_save_c_werror_flag
2963fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002964{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2965$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002966if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002968elif test $ac_cv_prog_cc_g = yes; then
2969 if test "$GCC" = yes; then
2970 CFLAGS="-g -O2"
2971 else
2972 CFLAGS="-g"
2973 fi
2974else
2975 if test "$GCC" = yes; then
2976 CFLAGS="-O2"
2977 else
2978 CFLAGS=
2979 fi
2980fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002981{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002983if test "${ac_cv_prog_cc_c89+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002984 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002986 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002987ac_save_CC=$CC
2988cat >conftest.$ac_ext <<_ACEOF
2989/* confdefs.h. */
2990_ACEOF
2991cat confdefs.h >>conftest.$ac_ext
2992cat >>conftest.$ac_ext <<_ACEOF
2993/* end confdefs.h. */
2994#include <stdarg.h>
2995#include <stdio.h>
2996#include <sys/types.h>
2997#include <sys/stat.h>
2998/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2999struct buf { int x; };
3000FILE * (*rcsopen) (struct buf *, struct stat *, int);
3001static char *e (p, i)
3002 char **p;
3003 int i;
3004{
3005 return p[i];
3006}
3007static char *f (char * (*g) (char **, int), char **p, ...)
3008{
3009 char *s;
3010 va_list v;
3011 va_start (v,p);
3012 s = g (p, va_arg (v,int));
3013 va_end (v);
3014 return s;
3015}
3016
3017/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3018 function prototypes and stuff, but not '\xHH' hex character constants.
3019 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3022 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3025
Theodore Ts'oe1052142006-10-21 21:46:47 -04003026/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3027 inside strings and character constants. */
3028#define FOO(x) 'x'
3029int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031int test (int i, double x);
3032struct s1 {int (*f) (int a);};
3033struct s2 {int (*f) (double a);};
3034int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3035int argc;
3036char **argv;
3037int
3038main ()
3039{
3040return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3041 ;
3042 return 0;
3043}
3044_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003045for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3046 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047do
3048 CC="$ac_save_CC $ac_arg"
3049 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003050if { (ac_try="$ac_compile"
3051case "(($ac_try" in
3052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3053 *) ac_try_echo=$ac_try;;
3054esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3056$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003057 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003058 ac_status=$?
3059 grep -v '^ *+' conftest.er1 >conftest.err
3060 rm -f conftest.er1
3061 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003063 (exit $ac_status); } && {
3064 test -z "$ac_c_werror_flag" ||
3065 test ! -s conftest.err
3066 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003069 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070sed 's/^/| /' conftest.$ac_ext >&5
3071
Theodore Ts'oe1052142006-10-21 21:46:47 -04003072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003073fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003074
3075rm -f core conftest.err conftest.$ac_objext
3076 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003078rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003079CC=$ac_save_CC
3080
3081fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003082# AC_CACHE_VAL
3083case "x$ac_cv_prog_cc_c89" in
3084 x)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003085 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3086$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003087 xno)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003088 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3089$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003090 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003091 CC="$CC $ac_cv_prog_cc_c89"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094esac
3095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097ac_ext=c
3098ac_cpp='$CPP $CPPFLAGS'
3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3101ac_compiler_gnu=$ac_cv_c_compiler_gnu
3102
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
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003108{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3109$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003110# On Suns, sometimes $CPP names a directory.
3111if test -n "$CPP" && test -d "$CPP"; then
3112 CPP=
3113fi
3114if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115 if test "${ac_cv_prog_CPP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003116 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 # Double quotes because CPP needs to be expanded
3119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3120 do
3121 ac_preproc_ok=false
3122for ac_c_preproc_warn_flag in '' yes
3123do
3124 # Use a header file that comes with gcc, so configuring glibc
3125 # with a fresh cross-compiler works.
3126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3127 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003128 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129 # not just through cpp. "Syntax error" is here to catch this case.
3130 cat >conftest.$ac_ext <<_ACEOF
3131/* confdefs.h. */
3132_ACEOF
3133cat confdefs.h >>conftest.$ac_ext
3134cat >>conftest.$ac_ext <<_ACEOF
3135/* end confdefs.h. */
3136#ifdef __STDC__
3137# include <limits.h>
3138#else
3139# include <assert.h>
3140#endif
3141 Syntax error
3142_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003143if { (ac_try="$ac_cpp conftest.$ac_ext"
3144case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3149$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151 ac_status=$?
3152 grep -v '^ *+' conftest.er1 >conftest.err
3153 rm -f conftest.er1
3154 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003156 (exit $ac_status); } >/dev/null && {
3157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3158 test ! -s conftest.err
3159 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003160 :
3161else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003162 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165 # Broken: fails on valid input.
3166continue
3167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169rm -f conftest.err conftest.$ac_ext
3170
Theodore Ts'oe1052142006-10-21 21:46:47 -04003171 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003172 # can be detected and how.
3173 cat >conftest.$ac_ext <<_ACEOF
3174/* confdefs.h. */
3175_ACEOF
3176cat confdefs.h >>conftest.$ac_ext
3177cat >>conftest.$ac_ext <<_ACEOF
3178/* end confdefs.h. */
3179#include <ac_nonexistent.h>
3180_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181if { (ac_try="$ac_cpp conftest.$ac_ext"
3182case "(($ac_try" in
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3185esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3187$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003189 ac_status=$?
3190 grep -v '^ *+' conftest.er1 >conftest.err
3191 rm -f conftest.er1
3192 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003194 (exit $ac_status); } >/dev/null && {
3195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3196 test ! -s conftest.err
3197 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198 # Broken: success on invalid input.
3199continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003200else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003201 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204 # Passes both tests.
3205ac_preproc_ok=:
3206break
3207fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003208
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003209rm -f conftest.err conftest.$ac_ext
3210
3211done
3212# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3213rm -f conftest.err conftest.$ac_ext
3214if $ac_preproc_ok; then
3215 break
3216fi
3217
3218 done
3219 ac_cv_prog_CPP=$CPP
3220
3221fi
3222 CPP=$ac_cv_prog_CPP
3223else
3224 ac_cv_prog_CPP=$CPP
3225fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003226{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3227$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228ac_preproc_ok=false
3229for ac_c_preproc_warn_flag in '' yes
3230do
3231 # Use a header file that comes with gcc, so configuring glibc
3232 # with a fresh cross-compiler works.
3233 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3234 # <limits.h> exists even on freestanding compilers.
3235 # On the NeXT, cc -E runs the code through the compiler's parser,
3236 # not just through cpp. "Syntax error" is here to catch this case.
3237 cat >conftest.$ac_ext <<_ACEOF
3238/* confdefs.h. */
3239_ACEOF
3240cat confdefs.h >>conftest.$ac_ext
3241cat >>conftest.$ac_ext <<_ACEOF
3242/* end confdefs.h. */
3243#ifdef __STDC__
3244# include <limits.h>
3245#else
3246# include <assert.h>
3247#endif
3248 Syntax error
3249_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003250if { (ac_try="$ac_cpp conftest.$ac_ext"
3251case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3256$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003257 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003263 (exit $ac_status); } >/dev/null && {
3264 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 :
3268else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003269 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003270sed 's/^/| /' conftest.$ac_ext >&5
3271
3272 # Broken: fails on valid input.
3273continue
3274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276rm -f conftest.err conftest.$ac_ext
3277
Theodore Ts'oe1052142006-10-21 21:46:47 -04003278 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003279 # can be detected and how.
3280 cat >conftest.$ac_ext <<_ACEOF
3281/* confdefs.h. */
3282_ACEOF
3283cat confdefs.h >>conftest.$ac_ext
3284cat >>conftest.$ac_ext <<_ACEOF
3285/* end confdefs.h. */
3286#include <ac_nonexistent.h>
3287_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003288if { (ac_try="$ac_cpp conftest.$ac_ext"
3289case "(($ac_try" in
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3292esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3294$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003296 ac_status=$?
3297 grep -v '^ *+' conftest.er1 >conftest.err
3298 rm -f conftest.er1
3299 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003301 (exit $ac_status); } >/dev/null && {
3302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3303 test ! -s conftest.err
3304 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003305 # Broken: success on invalid input.
3306continue
3307else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003308 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309sed 's/^/| /' conftest.$ac_ext >&5
3310
3311 # Passes both tests.
3312ac_preproc_ok=:
3313break
3314fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316rm -f conftest.err conftest.$ac_ext
3317
3318done
3319# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3320rm -f conftest.err conftest.$ac_ext
3321if $ac_preproc_ok; then
3322 :
3323else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003324 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003328$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003330 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331fi
3332
3333ac_ext=c
3334ac_cpp='$CPP $CPPFLAGS'
3335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337ac_compiler_gnu=$ac_cv_c_compiler_gnu
3338
3339
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003340# Check whether --with-linker was given.
3341if test "${with_linker+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003342 withval=$with_linker; { $as_echo "$as_me:$LINENO: result: LD=$withval" >&5
3343$as_echo "LD=$withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003344LD=$withval
3345else
3346 if test -z "$LD" ; then LD=$CC; fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003347{ $as_echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3348$as_echo "LD defaults to $LD" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003349fi
3350export LD
3351
3352
3353# Check whether --with-ccopts was given.
3354if test "${with_ccopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355 withval=$with_ccopts; { $as_echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3356$as_echo "CCOPTS is $withval" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003357CFLAGS=$withval
3358fi
3359
3360
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003361{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3362$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003363if test "${ac_cv_path_GREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003364 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003365else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003366 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003367 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003368 # Loop through the user's path and test for each of PROGNAME-LIST
3369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003370for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3371do
3372 IFS=$as_save_IFS
3373 test -z "$as_dir" && as_dir=.
3374 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3377 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3378# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379 # Check for GNU $ac_path_GREP
3380case `"$ac_path_GREP" --version 2>&1` in
3381*GNU*)
3382 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3383*)
3384 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003385 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003386 while :
3387 do
3388 cat "conftest.in" "conftest.in" >"conftest.tmp"
3389 mv "conftest.tmp" "conftest.in"
3390 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003391 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003392 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3394 ac_count=`expr $ac_count + 1`
3395 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3396 # Best one so far, save it but keep looking for a better one
3397 ac_cv_path_GREP="$ac_path_GREP"
3398 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003399 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003400 # 10*(2^10) chars as input seems more than enough
3401 test $ac_count -gt 10 && break
3402 done
3403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3404esac
3405
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003406 $ac_path_GREP_found && break 3
3407 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003408 done
3409done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003411 if test -z "$ac_cv_path_GREP"; then
3412 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3413$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 -04003414 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003415 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003416else
3417 ac_cv_path_GREP=$GREP
3418fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003419
Theodore Ts'oe1052142006-10-21 21:46:47 -04003420fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003421{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3422$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003423 GREP="$ac_cv_path_GREP"
3424
3425
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003426{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3427$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003428if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003429 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430else
3431 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3432 then ac_cv_path_EGREP="$GREP -E"
3433 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003434 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003435 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003436 # Loop through the user's path and test for each of PROGNAME-LIST
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04003438for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3439do
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3445 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3446# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447 # Check for GNU $ac_path_EGREP
3448case `"$ac_path_EGREP" --version 2>&1` in
3449*GNU*)
3450 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3451*)
3452 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003453 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 while :
3455 do
3456 cat "conftest.in" "conftest.in" >"conftest.tmp"
3457 mv "conftest.tmp" "conftest.in"
3458 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003459 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003460 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3461 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3462 ac_count=`expr $ac_count + 1`
3463 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3464 # Best one so far, save it but keep looking for a better one
3465 ac_cv_path_EGREP="$ac_path_EGREP"
3466 ac_path_EGREP_max=$ac_count
3467 fi
3468 # 10*(2^10) chars as input seems more than enough
3469 test $ac_count -gt 10 && break
3470 done
3471 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3472esac
3473
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003474 $ac_path_EGREP_found && break 3
3475 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003476 done
3477done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003478IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003479 if test -z "$ac_cv_path_EGREP"; then
3480 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3481$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 -04003482 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003483 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003484else
3485 ac_cv_path_EGREP=$EGREP
3486fi
3487
Theodore Ts'oe1052142006-10-21 21:46:47 -04003488 fi
3489fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003490{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3491$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003492 EGREP="$ac_cv_path_EGREP"
3493
3494
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003495{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3496$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497if test "${ac_cv_header_stdc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003499else
3500 cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */
3506#include <stdlib.h>
3507#include <stdarg.h>
3508#include <string.h>
3509#include <float.h>
3510
3511int
3512main ()
3513{
3514
3515 ;
3516 return 0;
3517}
3518_ACEOF
3519rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520if { (ac_try="$ac_compile"
3521case "(($ac_try" in
3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3523 *) ac_try_echo=$ac_try;;
3524esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3526$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003527 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528 ac_status=$?
3529 grep -v '^ *+' conftest.er1 >conftest.err
3530 rm -f conftest.er1
3531 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003533 (exit $ac_status); } && {
3534 test -z "$ac_c_werror_flag" ||
3535 test ! -s conftest.err
3536 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537 ac_cv_header_stdc=yes
3538else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003539 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540sed 's/^/| /' conftest.$ac_ext >&5
3541
Theodore Ts'oe1052142006-10-21 21:46:47 -04003542 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544
3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546
3547if test $ac_cv_header_stdc = yes; then
3548 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555#include <string.h>
3556
3557_ACEOF
3558if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559 $EGREP "memchr" >/dev/null 2>&1; then
3560 :
3561else
3562 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003563fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003564rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003565
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003566fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003567
3568if test $ac_cv_header_stdc = yes; then
3569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3570 cat >conftest.$ac_ext <<_ACEOF
3571/* confdefs.h. */
3572_ACEOF
3573cat confdefs.h >>conftest.$ac_ext
3574cat >>conftest.$ac_ext <<_ACEOF
3575/* end confdefs.h. */
3576#include <stdlib.h>
3577
3578_ACEOF
3579if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3580 $EGREP "free" >/dev/null 2>&1; then
3581 :
3582else
3583 ac_cv_header_stdc=no
3584fi
3585rm -f conftest*
3586
3587fi
3588
3589if test $ac_cv_header_stdc = yes; then
3590 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3591 if test "$cross_compiling" = yes; then
3592 :
3593else
3594 cat >conftest.$ac_ext <<_ACEOF
3595/* confdefs.h. */
3596_ACEOF
3597cat confdefs.h >>conftest.$ac_ext
3598cat >>conftest.$ac_ext <<_ACEOF
3599/* end confdefs.h. */
3600#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602#if ((' ' & 0x0FF) == 0x020)
3603# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3604# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3605#else
3606# define ISLOWER(c) \
3607 (('a' <= (c) && (c) <= 'i') \
3608 || ('j' <= (c) && (c) <= 'r') \
3609 || ('s' <= (c) && (c) <= 'z'))
3610# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3611#endif
3612
3613#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3614int
3615main ()
3616{
3617 int i;
3618 for (i = 0; i < 256; i++)
3619 if (XOR (islower (i), ISLOWER (i))
3620 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621 return 2;
3622 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003623}
3624_ACEOF
3625rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003626if { (ac_try="$ac_link"
3627case "(($ac_try" in
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3630esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003633 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003637 { (case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003643 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003644 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003646 (exit $ac_status); }; }; then
3647 :
3648else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003649 $as_echo "$as_me: program exited with status $ac_status" >&5
3650$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003651sed 's/^/| /' conftest.$ac_ext >&5
3652
3653( exit $ac_status )
3654ac_cv_header_stdc=no
3655fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003656rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3658fi
3659
3660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661fi
3662fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003663{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3664$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665if test $ac_cv_header_stdc = yes; then
3666
3667cat >>confdefs.h <<\_ACEOF
3668#define STDC_HEADERS 1
3669_ACEOF
3670
3671fi
3672
3673# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3684 inttypes.h stdint.h unistd.h
3685do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003686as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3687{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3688$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04003689if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003690 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003691else
3692 cat >conftest.$ac_ext <<_ACEOF
3693/* confdefs.h. */
3694_ACEOF
3695cat confdefs.h >>conftest.$ac_ext
3696cat >>conftest.$ac_ext <<_ACEOF
3697/* end confdefs.h. */
3698$ac_includes_default
3699
3700#include <$ac_header>
3701_ACEOF
3702rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003703if { (ac_try="$ac_compile"
3704case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003720 eval "$as_ac_Header=yes"
3721else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003722 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003723sed 's/^/| /' conftest.$ac_ext >&5
3724
Theodore Ts'oe1052142006-10-21 21:46:47 -04003725 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003727
3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003729fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003730ac_res=`eval 'as_val=${'$as_ac_Header'}
3731 $as_echo "$as_val"'`
3732 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3733$as_echo "$ac_res" >&6; }
3734as_val=`eval 'as_val=${'$as_ac_Header'}
3735 $as_echo "$as_val"'`
3736 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003737 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003739_ACEOF
3740
3741fi
3742
3743done
3744
3745
3746if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003747 { $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3748$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003749if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003750 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003751fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003752{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3753$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003754else
3755 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003756{ $as_echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3757$as_echo_n "checking linux/fs.h usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003758cat >conftest.$ac_ext <<_ACEOF
3759/* confdefs.h. */
3760_ACEOF
3761cat confdefs.h >>conftest.$ac_ext
3762cat >>conftest.$ac_ext <<_ACEOF
3763/* end confdefs.h. */
3764$ac_includes_default
3765#include <linux/fs.h>
3766_ACEOF
3767rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003768if { (ac_try="$ac_compile"
3769case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003775 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003776 ac_status=$?
3777 grep -v '^ *+' conftest.er1 >conftest.err
3778 rm -f conftest.er1
3779 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003785 ac_header_compiler=yes
3786else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003787 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003788sed 's/^/| /' conftest.$ac_ext >&5
3789
Theodore Ts'oe1052142006-10-21 21:46:47 -04003790 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003791fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003792
3793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003794{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3795$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003796
3797# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003798{ $as_echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3799$as_echo_n "checking linux/fs.h presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003800cat >conftest.$ac_ext <<_ACEOF
3801/* confdefs.h. */
3802_ACEOF
3803cat confdefs.h >>conftest.$ac_ext
3804cat >>conftest.$ac_ext <<_ACEOF
3805/* end confdefs.h. */
3806#include <linux/fs.h>
3807_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003808if { (ac_try="$ac_cpp conftest.$ac_ext"
3809case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003821 (exit $ac_status); } >/dev/null && {
3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3824 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003825 ac_header_preproc=yes
3826else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003827 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003828sed 's/^/| /' conftest.$ac_ext >&5
3829
3830 ac_header_preproc=no
3831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003832
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003833rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003834{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3835$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003836
3837# So? What about this header?
3838case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3839 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003840 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3841$as_echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3842 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3843$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003844 ac_header_preproc=yes
3845 ;;
3846 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003847 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3848$as_echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3849 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3850$as_echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3851 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3852$as_echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3853 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3854$as_echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3855 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3856$as_echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3857 { $as_echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3858$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 -04003859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003860 ;;
3861esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003862{ $as_echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3863$as_echo_n "checking for linux/fs.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003864if test "${ac_cv_header_linux_fs_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003865 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003866else
3867 ac_cv_header_linux_fs_h=$ac_header_preproc
3868fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003869{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3870$as_echo "$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003871
3872fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003873if test "x$ac_cv_header_linux_fs_h" = x""yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003874 linux_headers=yes
3875else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003876 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003877fi
3878
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003879
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003880if test "$linux_headers" != yes; then
3881 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003882fi
3883
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003884{ $as_echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3885$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003886if test "$GCC" = yes
3887then
3888 case "$host_cpu" in
3889 alpha) addcflags="-mieee" ;;
3890 esac
3891fi
3892if test "x$addcflags" != x
3893then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003894 { $as_echo "$as_me:$LINENO: result: $addcflags" >&5
3895$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003896 CFLAGS="$addcflags $CFLAGS"
3897else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003898 { $as_echo "$as_me:$LINENO: result: (none)" >&5
3899$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003900fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003901LIB_EXT=.a
3902STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04003903PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003904
Theodore Ts'oe1052142006-10-21 21:46:47 -04003905# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003906if test "${with_ldopts+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003907 withval=$with_ldopts; { $as_echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3908$as_echo "LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003909LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003910fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003911
Theodore Ts'oe1052142006-10-21 21:46:47 -04003912
3913# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003914if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003915 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003916else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003917 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003918fi
3919# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003920if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003921 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003922then
3923 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003924 { $as_echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3925$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003926else
3927 MAINTAINER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003928 { $as_echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3929$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003930fi
3931
3932else
3933 MAINTAINER_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003934{ $as_echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3935$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003936
Theodore Ts'oe1052142006-10-21 21:46:47 -04003937fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003938
Theodore Ts'oe1052142006-10-21 21:46:47 -04003939
3940# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003941if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003942 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003943then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003944 { $as_echo "$as_me:$LINENO: result: Disabling compression support" >&5
3945$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003947 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003948#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003949_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003950
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003951 { $as_echo "$as_me:$LINENO: result: Enabling compression support" >&5
3952$as_echo "Enabling compression support" >&6; }
3953 { $as_echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3954$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003955fi
3956
3957else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003958 { $as_echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3959$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003960
Theodore Ts'oe1052142006-10-21 21:46:47 -04003961fi
3962
3963# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003964if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003965 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003966then
3967 HTREE_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003968 { $as_echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3969$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003970else
3971 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003972 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003973#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003974_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003975
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003976 { $as_echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3977$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003978fi
3979
3980else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003981 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003982cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003983#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003984_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003985
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003986{ $as_echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3987$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003988
Theodore Ts'oe1052142006-10-21 21:46:47 -04003989fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003990
Theodore Ts'oe1052142006-10-21 21:46:47 -04003991
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003992E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04003993LDFLAG_DYNAMIC=
3994PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04003995# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003996if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003997 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003998then
3999 ELF_CMT=#
4000 MAKEFILE_ELF=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004001 { $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
4002$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004003else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004004 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004005 ELF_CMT=
4006 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004007 case "$host_os" in
4008 solaris2.*)
4009 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4010 ;;
4011 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004012 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004013 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004014 PRIVATE_LIBS_CMT=#
4015 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004016 { $as_echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
4017$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004018fi
4019
4020else
4021 MAKEFILE_ELF=/dev/null
4022ELF_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004023{ $as_echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
4024$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004025
Theodore Ts'oe1052142006-10-21 21:46:47 -04004026fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004027
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004028
Theodore Ts'oe1052142006-10-21 21:46:47 -04004029
4030# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00004031if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004032 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004033then
4034 BSDLIB_CMT=#
4035 MAKEFILE_BSDLIB=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004036 { $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
4037$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004038else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004039 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004040 BSDLIB_CMT=
4041 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004042 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004043 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004044 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004045 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4046 LIB_EXT=.dylib
4047 ;;
4048 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004049 { $as_echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
4050$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004051fi
4052
4053else
4054 MAKEFILE_BSDLIB=/dev/null
4055BSDLIB_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004056{ $as_echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
4057$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004058
Theodore Ts'oe1052142006-10-21 21:46:47 -04004059fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004060
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004061
Theodore Ts'oe1052142006-10-21 21:46:47 -04004062
4063# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004065 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004066then
4067 PROFILE_CMT=#
4068 MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004069 { $as_echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
4070$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004071else
4072 PROFILE_CMT=
4073 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4074 PROFILED_LIB_EXT=_p.a
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004075 { $as_echo "$as_me:$LINENO: result: Building profiling libraries" >&5
4076$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004077fi
4078
4079else
4080 PROFILE_CMT=#
4081MAKEFILE_PROFILE=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004082{ $as_echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
4083$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004084
Theodore Ts'oe1052142006-10-21 21:46:47 -04004085fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004086
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004087
Theodore Ts'oe1052142006-10-21 21:46:47 -04004088
4089# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004090if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004091 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004092then
4093 CHECKER_CMT=#
4094 MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004095 { $as_echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
4096$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097else
4098 CHECKER_CMT=
4099 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004100 { $as_echo "$as_me:$LINENO: result: Building checker libraries" >&5
4101$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004102fi
4103
4104else
4105 CHECKER_CMT=#
4106MAKEFILE_CHECKER=/dev/null
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004107{ $as_echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
4108$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004109
Theodore Ts'oe1052142006-10-21 21:46:47 -04004110fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004111
4112
4113
4114
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004115
Theodore Ts'oe1052142006-10-21 21:46:47 -04004116
Theodore Ts'o55da9872008-09-02 23:12:38 -04004117
4118
Theodore Ts'oe1052142006-10-21 21:46:47 -04004119# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05004120if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004121 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004122then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004123 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
4124$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004125else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004126 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05004127#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004128_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004129
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004130 { $as_echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
4131$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004132fi
4133
4134else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004135 { $as_echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
4136$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004137
Theodore Ts'oe1052142006-10-21 21:46:47 -04004138fi
4139
4140# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004141if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004142 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004143then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004144 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
4145$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004146else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004147 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004148#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004149_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004150
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004151 { $as_echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
4152$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004153fi
4154
4155else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004156 { $as_echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4157$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004158
Theodore Ts'oe1052142006-10-21 21:46:47 -04004159fi
4160
4161# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004162if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004163 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004164then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004165 { $as_echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4166$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004167 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004168else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004169 TEST_IO_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004170 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004171#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004172_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004173
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004174 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4175$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004176fi
4177
4178else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004179 { $as_echo "$as_me:$LINENO: result: Enabling testio debugging by default" >&5
4180$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004181cat >>confdefs.h <<\_ACEOF
4182#define CONFIG_TESTIO_DEBUG 1
4183_ACEOF
4184
4185TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004186
Theodore Ts'oe1052142006-10-21 21:46:47 -04004187fi
4188
Theodore Ts'oaf773652008-09-01 11:27:27 -04004189
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004190
4191
4192if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4193 if test -n "$ac_tool_prefix"; then
4194 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4195set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004196{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4197$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004198if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004199 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004200else
4201 case $PKG_CONFIG in
4202 [\\/]* | ?:[\\/]*)
4203 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4204 ;;
4205 *)
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4207for as_dir in $PATH
4208do
4209 IFS=$as_save_IFS
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004214 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004215 break 2
4216 fi
4217done
4218done
4219IFS=$as_save_IFS
4220
4221 ;;
4222esac
4223fi
4224PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4225if test -n "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004226 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4227$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004228else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004229 { $as_echo "$as_me:$LINENO: result: no" >&5
4230$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004231fi
4232
4233
4234fi
4235if test -z "$ac_cv_path_PKG_CONFIG"; then
4236 ac_pt_PKG_CONFIG=$PKG_CONFIG
4237 # Extract the first word of "pkg-config", so it can be a program name with args.
4238set dummy pkg-config; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4240$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004241if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004242 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004243else
4244 case $ac_pt_PKG_CONFIG in
4245 [\\/]* | ?:[\\/]*)
4246 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4247 ;;
4248 *)
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004258 break 2
4259 fi
4260done
4261done
4262IFS=$as_save_IFS
4263
4264 ;;
4265esac
4266fi
4267ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4268if test -n "$ac_pt_PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004269 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4270$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004271else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004272 { $as_echo "$as_me:$LINENO: result: no" >&5
4273$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004274fi
4275
4276 if test "x$ac_pt_PKG_CONFIG" = x; then
4277 PKG_CONFIG=""
4278 else
4279 case $cross_compiling:$ac_tool_warned in
4280yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004281{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004283ac_tool_warned=yes ;;
4284esac
4285 PKG_CONFIG=$ac_pt_PKG_CONFIG
4286 fi
4287else
4288 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4289fi
4290
4291fi
4292if test -n "$PKG_CONFIG"; then
4293 _pkg_min_version=0.9.0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004294 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4295$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004296 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004297 { $as_echo "$as_me:$LINENO: result: yes" >&5
4298$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004299 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300 { $as_echo "$as_me:$LINENO: result: no" >&5
4301$as_echo "no" >&6; }
4302 PKG_CONFIG=""
4303 fi
4304
4305fi
4306LIBUUID=
4307DEPLIBUUID=
4308STATIC_LIBUUID=
4309DEPSTATIC_LIBUUID=
4310PROFILED_LIBUUID=
4311DEPPROFILED_LIBUUID=
4312UUID_CMT=
4313# Check whether --enable-libuuid was given.
4314if test "${enable_libuuid+set}" = set; then
4315 enableval=$enable_libuuid; if test "$enableval" = "no"
4316then
4317 if test -z "$PKG_CONFIG"; then
4318 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4319$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
4320 { (exit 1); exit 1; }; }
4321 fi
4322
4323 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
4324$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
4325if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
4326 $as_echo_n "(cached) " >&6
4327else
4328 ac_check_lib_save_LIBS=$LIBS
4329LIBS="-luuid $LIBUUID $LIBS"
4330cat >conftest.$ac_ext <<_ACEOF
4331/* confdefs.h. */
4332_ACEOF
4333cat confdefs.h >>conftest.$ac_ext
4334cat >>conftest.$ac_ext <<_ACEOF
4335/* end confdefs.h. */
4336
4337/* Override any GCC internal prototype to avoid an error.
4338 Use char because int might match the return type of a GCC
4339 builtin and then its argument prototype would still apply. */
4340#ifdef __cplusplus
4341extern "C"
4342#endif
4343char uuid_generate ();
4344int
4345main ()
4346{
4347return uuid_generate ();
4348 ;
4349 return 0;
4350}
4351_ACEOF
4352rm -f conftest.$ac_objext conftest$ac_exeext
4353if { (ac_try="$ac_link"
4354case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357esac
4358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4359$as_echo "$ac_try_echo") >&5
4360 (eval "$ac_link") 2>conftest.er1
4361 ac_status=$?
4362 grep -v '^ *+' conftest.er1 >conftest.err
4363 rm -f conftest.er1
4364 cat conftest.err >&5
4365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); } && {
4367 test -z "$ac_c_werror_flag" ||
4368 test ! -s conftest.err
4369 } && test -s conftest$ac_exeext && {
4370 test "$cross_compiling" = yes ||
4371 $as_test_x conftest$ac_exeext
4372 }; then
4373 ac_cv_lib_uuid_uuid_generate=yes
4374else
4375 $as_echo "$as_me: failed program was:" >&5
4376sed 's/^/| /' conftest.$ac_ext >&5
4377
4378 ac_cv_lib_uuid_uuid_generate=no
4379fi
4380
4381rm -rf conftest.dSYM
4382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4383 conftest$ac_exeext conftest.$ac_ext
4384LIBS=$ac_check_lib_save_LIBS
4385fi
4386{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
4387$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
4388if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
4389 LIBUUID=`$PKG_CONFIG --libs uuid`;
4390 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4391else
4392 { { $as_echo "$as_me:$LINENO: error: external uuid library not found" >&5
4393$as_echo "$as_me: error: external uuid library not found" >&2;}
4394 { (exit 1); exit 1; }; }
4395fi
4396
4397 UUID_CMT=#
4398 { $as_echo "$as_me:$LINENO: result: Disabling private uuid library" >&5
4399$as_echo "Disabling private uuid library" >&6; }
4400else
4401 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4402 DEPLIBUUID=$LIBUUID
4403 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4404 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4405 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4406 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4407 { $as_echo "$as_me:$LINENO: result: Enabling private uuid library" >&5
4408$as_echo "Enabling private uuid library" >&6; }
4409fi
4410
4411else
4412 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4413DEPLIBUUID=$LIBUUID
4414STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4415DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4416PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4417DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
4418{ $as_echo "$as_me:$LINENO: result: Enabling private uuid library by default" >&5
4419$as_echo "Enabling private uuid library by default" >&6; }
4420
4421fi
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4433 if test -n "$ac_tool_prefix"; then
4434 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4435set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4436{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4437$as_echo_n "checking for $ac_word... " >&6; }
4438if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4439 $as_echo_n "(cached) " >&6
4440else
4441 case $PKG_CONFIG in
4442 [\\/]* | ?:[\\/]*)
4443 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4444 ;;
4445 *)
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4453 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4454 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 break 2
4456 fi
4457done
4458done
4459IFS=$as_save_IFS
4460
4461 ;;
4462esac
4463fi
4464PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4465if test -n "$PKG_CONFIG"; then
4466 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4467$as_echo "$PKG_CONFIG" >&6; }
4468else
4469 { $as_echo "$as_me:$LINENO: result: no" >&5
4470$as_echo "no" >&6; }
4471fi
4472
4473
4474fi
4475if test -z "$ac_cv_path_PKG_CONFIG"; then
4476 ac_pt_PKG_CONFIG=$PKG_CONFIG
4477 # Extract the first word of "pkg-config", so it can be a program name with args.
4478set dummy pkg-config; ac_word=$2
4479{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4480$as_echo_n "checking for $ac_word... " >&6; }
4481if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4482 $as_echo_n "(cached) " >&6
4483else
4484 case $ac_pt_PKG_CONFIG in
4485 [\\/]* | ?:[\\/]*)
4486 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4487 ;;
4488 *)
4489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490for as_dir in $PATH
4491do
4492 IFS=$as_save_IFS
4493 test -z "$as_dir" && as_dir=.
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4496 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 break 2
4499 fi
4500done
4501done
4502IFS=$as_save_IFS
4503
4504 ;;
4505esac
4506fi
4507ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4508if test -n "$ac_pt_PKG_CONFIG"; then
4509 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4510$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4511else
4512 { $as_echo "$as_me:$LINENO: result: no" >&5
4513$as_echo "no" >&6; }
4514fi
4515
4516 if test "x$ac_pt_PKG_CONFIG" = x; then
4517 PKG_CONFIG=""
4518 else
4519 case $cross_compiling:$ac_tool_warned in
4520yes:)
4521{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4522$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4523ac_tool_warned=yes ;;
4524esac
4525 PKG_CONFIG=$ac_pt_PKG_CONFIG
4526 fi
4527else
4528 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4529fi
4530
4531fi
4532if test -n "$PKG_CONFIG"; then
4533 _pkg_min_version=0.9.0
4534 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4535$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4536 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4537 { $as_echo "$as_me:$LINENO: result: yes" >&5
4538$as_echo "yes" >&6; }
4539 else
4540 { $as_echo "$as_me:$LINENO: result: no" >&5
4541$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004542 PKG_CONFIG=""
4543 fi
4544
4545fi
4546LIBBLKID=
4547DEPLIBBLKID=
4548STATIC_LIBBLKID=
4549DEPSTATIC_LIBBLKID=
4550PROFILED_LIBBLKID=
4551DEPPROFILED_LIBBLKID=
4552BLKID_CMT=
4553# Check whether --enable-libblkid was given.
4554if test "${enable_libblkid+set}" = set; then
4555 enableval=$enable_libblkid; if test "$enableval" = "no"
4556then
4557 if test -z "$PKG_CONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004558 { { $as_echo "$as_me:$LINENO: error: pkg-config not installed; please install it." >&5
4559$as_echo "$as_me: error: pkg-config not installed; please install it." >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004560 { (exit 1); exit 1; }; }
4561 fi
4562
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004563 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
4564$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004565if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004566 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004567else
4568 ac_check_lib_save_LIBS=$LIBS
4569LIBS="-lblkid $LIBBLKID $LIBS"
4570cat >conftest.$ac_ext <<_ACEOF
4571/* confdefs.h. */
4572_ACEOF
4573cat confdefs.h >>conftest.$ac_ext
4574cat >>conftest.$ac_ext <<_ACEOF
4575/* end confdefs.h. */
4576
4577/* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4580#ifdef __cplusplus
4581extern "C"
4582#endif
4583char blkid_get_cache ();
4584int
4585main ()
4586{
4587return blkid_get_cache ();
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592rm -f conftest.$ac_objext conftest$ac_exeext
4593if { (ac_try="$ac_link"
4594case "(($ac_try" in
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4597esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4599$as_echo "$ac_try_echo") >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004600 (eval "$ac_link") 2>conftest.er1
4601 ac_status=$?
4602 grep -v '^ *+' conftest.er1 >conftest.err
4603 rm -f conftest.er1
4604 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004609 } && test -s conftest$ac_exeext && {
4610 test "$cross_compiling" = yes ||
4611 $as_test_x conftest$ac_exeext
4612 }; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004613 ac_cv_lib_blkid_blkid_get_cache=yes
4614else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004615 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004616sed 's/^/| /' conftest.$ac_ext >&5
4617
4618 ac_cv_lib_blkid_blkid_get_cache=no
4619fi
4620
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004621rm -rf conftest.dSYM
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004622rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4623 conftest$ac_exeext conftest.$ac_ext
4624LIBS=$ac_check_lib_save_LIBS
4625fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004626{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
4627$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
4628if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004629 LIBBLKID=`$PKG_CONFIG --libs blkid`;
4630 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
4631else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004632 { { $as_echo "$as_me:$LINENO: error: external blkid library not found" >&5
4633$as_echo "$as_me: error: external blkid library not found" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004634 { (exit 1); exit 1; }; }
4635fi
4636
4637 BLKID_CMT=#
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004638 { $as_echo "$as_me:$LINENO: result: Disabling private blkid library" >&5
4639$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004640else
4641 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4642 DEPLIBBLKID=$LIBBLKID
4643 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4644 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4645 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4646 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4647 cat >>confdefs.h <<\_ACEOF
4648#define CONFIG_BUILD_FINDFS 1
4649_ACEOF
4650
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004651 { $as_echo "$as_me:$LINENO: result: Enabling private blkid library" >&5
4652$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004653fi
4654
4655else
4656 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
4657DEPLIBBLKID=$LIBBLKID
4658STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
4659DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
4660PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
4661DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
4662cat >>confdefs.h <<\_ACEOF
4663#define CONFIG_BUILD_FINDFS 1
4664_ACEOF
4665
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004666{ $as_echo "$as_me:$LINENO: result: Enabling private blkid library by default" >&5
4667$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004668
4669fi
4670
4671
4672
4673
4674
4675
4676
4677
Theodore Ts'oe1052142006-10-21 21:46:47 -04004678# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004679if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004680 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004681then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004682 { $as_echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4683$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004684 DEBUGFS_CMT="#"
4685else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004686 DEBUGFS_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004687 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4688$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004689fi
4690
4691else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004692 { $as_echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4693$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004694DEBUGFS_CMT=
4695
Theodore Ts'oe1052142006-10-21 21:46:47 -04004696fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004697
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698
4699# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004700if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004701 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004702then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004703 { $as_echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4704$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004705 IMAGER_CMT="#"
4706else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004707 IMAGER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004708 { $as_echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4709$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004710fi
4711
4712else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004713 { $as_echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4714$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004715IMAGER_CMT=
4716
Theodore Ts'oe1052142006-10-21 21:46:47 -04004717fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004718
Theodore Ts'oe1052142006-10-21 21:46:47 -04004719
4720# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004721if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004722 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004723then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004724 { $as_echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4725$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004726 RESIZER_CMT="#"
4727else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004728 RESIZER_CMT=
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004729 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4730$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004731fi
4732
4733else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004734 { $as_echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4735$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004736RESIZER_CMT=
4737
Theodore Ts'oe1052142006-10-21 21:46:47 -04004738fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004739
Theodore Ts'oe1052142006-10-21 21:46:47 -04004740
Theodore Ts'oe1052142006-10-21 21:46:47 -04004741# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004742if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004743 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004744then
4745 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004746 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4747$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004748else
4749 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004750 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4751$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004752fi
4753
4754else
4755 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004756 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004757 FSCK_PROG='' FSCK_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004758 { $as_echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4759$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004760 ;;
4761 *)
4762 FSCK_PROG=fsck FSCK_MAN=fsck.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004763 { $as_echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4764$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004765esac
4766
Theodore Ts'oe1052142006-10-21 21:46:47 -04004767fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004768
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004769
Theodore Ts'oe1052142006-10-21 21:46:47 -04004770
4771# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004772if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004774then
4775 E2INITRD_PROG='' E2INITRD_MAN=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776 { $as_echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4777$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004778else
4779 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004780 { $as_echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4781$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004782fi
4783
4784else
4785 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004786{ $as_echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4787$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004788
Theodore Ts'oe1052142006-10-21 21:46:47 -04004789fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004790
4791
Theodore Ts'oe1052142006-10-21 21:46:47 -04004792
Theodore Ts'o32493942007-12-31 10:45:01 -05004793# Check whether --enable-tls was given.
4794if test "${enable_tls+set}" = set; then
4795 enableval=$enable_tls; if test "$enableval" = "no"
4796then
4797 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004798 { $as_echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4799$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004800else
4801 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004802 { $as_echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4803$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004804fi
4805
4806else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004807 if test -n "$WITH_DIET_LIBC"
4808then
4809 try_tls=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004810 { $as_echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4811$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004812else
4813 try_tls="yes"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004814 { $as_echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4815$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004816fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004817
4818fi
4819
4820if test "$try_tls" = "yes"
4821then
4822
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004823 { $as_echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4824$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004825 if test "${ac_cv_tls+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004826 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05004827else
4828
4829 ax_tls_keywords="__thread __declspec(thread) none"
4830 for ax_tls_keyword in $ax_tls_keywords; do
4831 case $ax_tls_keyword in
4832 none) ac_cv_tls=none ; break ;;
4833 *)
4834 cat >conftest.$ac_ext <<_ACEOF
4835/* confdefs.h. */
4836_ACEOF
4837cat confdefs.h >>conftest.$ac_ext
4838cat >>conftest.$ac_ext <<_ACEOF
4839/* end confdefs.h. */
4840#include <stdlib.h>
4841 static void
4842 foo(void) {
4843 static $ax_tls_keyword int bar;
4844 exit(1);
4845 }
4846int
4847main ()
4848{
4849
4850 ;
4851 return 0;
4852}
4853_ACEOF
4854rm -f conftest.$ac_objext
4855if { (ac_try="$ac_compile"
4856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861$as_echo "$ac_try_echo") >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4872 ac_cv_tls=$ax_tls_keyword ; break
4873else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004874 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o32493942007-12-31 10:45:01 -05004875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_tls=none
4878
4879fi
4880
4881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4882 esac
4883 done
4884
4885fi
4886
4887
4888 if test "$ac_cv_tls" != "none"; then
4889
4890cat >>confdefs.h <<_ACEOF
4891#define TLS $ac_cv_tls
4892_ACEOF
4893
4894 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004895 { $as_echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4896$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004897
4898fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004899# Check whether --enable-uuidd was given.
4900if test "${enable_uuidd+set}" = set; then
4901 enableval=$enable_uuidd; if test "$enableval" = "no"
4902then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004903 { $as_echo "$as_me:$LINENO: result: Not building uuidd" >&5
4904$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004905 UUIDD_CMT="#"
4906else
4907 cat >>confdefs.h <<\_ACEOF
4908#define USE_UUIDD 1
4909_ACEOF
4910
4911 UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004912 { $as_echo "$as_me:$LINENO: result: Building uuidd" >&5
4913$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004914fi
4915
4916else
4917 cat >>confdefs.h <<\_ACEOF
4918#define USE_UUIDD 1
4919_ACEOF
4920
4921UUIDD_CMT=""
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922{ $as_echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4923$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004924
4925fi
4926
4927
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004928MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4929
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004930GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004931PACKAGE=e2fsprogs
4932VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004933VERSION=0.14.1
4934cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004935#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004936_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004938cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004939#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004940_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004941
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004942
4943
4944
4945
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004946{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4947$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4948set x ${MAKE-make}
4949ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004951 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004952else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004953 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004955all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004956 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004957_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004958# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004959case `${MAKE-make} -f conftest.make 2>/dev/null` in
4960 *@@@%%%=?*=@@@%%%*)
4961 eval ac_cv_prog_make_${ac_make}_set=yes;;
4962 *)
4963 eval ac_cv_prog_make_${ac_make}_set=no;;
4964esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004965rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004966fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004968 { $as_echo "$as_me:$LINENO: result: yes" >&5
4969$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004970 SET_MAKE=
4971else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004972 { $as_echo "$as_me:$LINENO: result: no" >&5
4973$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004974 SET_MAKE="MAKE=${MAKE-make}"
4975fi
4976
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004977# Find a good install program. We prefer a C program (faster),
4978# so one script is as good as another. But avoid the broken or
4979# incompatible versions:
4980# SysV /etc/install, /usr/sbin/install
4981# SunOS /usr/etc/install
4982# IRIX /sbin/install
4983# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004984# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004985# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4986# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4987# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004988# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004989# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990# Reject install programs that cannot install multiple files.
4991{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4992$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004993if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004994if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004995 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004996else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 # Account for people who put trailing slashes in PATH elements.
5003case $as_dir/ in
5004 ./ | .// | /cC/* | \
5005 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5006 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5007 /usr/ucb/* ) ;;
5008 *)
5009 # OSF1 and SCO ODT 3.0 have their own names for install.
5010 # Don't use installbsd from OSF since it installs stuff as root
5011 # by default.
5012 for ac_prog in ginstall scoinst install; do
5013 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005014 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 -04005015 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005016 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005017 # AIX install. It has an incompatible calling convention.
5018 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005019 elif test $ac_prog = install &&
5020 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5021 # program-specific install script used by HP pwplus--don't use.
5022 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005023 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005024 rm -rf conftest.one conftest.two conftest.dir
5025 echo one > conftest.one
5026 echo two > conftest.two
5027 mkdir conftest.dir
5028 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5029 test -s conftest.one && test -s conftest.two &&
5030 test -s conftest.dir/conftest.one &&
5031 test -s conftest.dir/conftest.two
5032 then
5033 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5034 break 3
5035 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005036 fi
5037 fi
5038 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005039 done
5040 ;;
5041esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005043done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005044IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005045
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005046rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005047
5048fi
5049 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005050 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005051 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052 # As a last resort, use the slow shell script. Don't cache a
5053 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005054 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005055 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005056 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005057 fi
5058fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005059{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5060$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005061
5062# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5063# It thinks the first close brace ends the variable substitution.
5064test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005066test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005067
5068test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5069
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005070
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005071 MKINSTALLDIRS=
5072 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005073 case "$ac_aux_dir" in
5074 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5075 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5076 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005077 fi
5078 if test -z "$MKINSTALLDIRS"; then
5079 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5080 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005081
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005082
5083
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5085$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005089else
5090 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005091fi
5092
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005093 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
5094$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005095
5096
5097
5098
5099
5100
5101# Prepare PATH_SEPARATOR.
5102# The user is always right.
5103if test "${PATH_SEPARATOR+set}" != set; then
5104 echo "#! /bin/sh" >conf$$.sh
5105 echo "exit 0" >>conf$$.sh
5106 chmod +x conf$$.sh
5107 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5108 PATH_SEPARATOR=';'
5109 else
5110 PATH_SEPARATOR=:
5111 fi
5112 rm -f conf$$.sh
5113fi
5114
5115# Find out how to test for executable files. Don't use a zero-byte file,
5116# as systems may use methods other than mode bits to determine executability.
5117cat >conf$$.file <<_ASEOF
5118#! /bin/sh
5119exit 0
5120_ASEOF
5121chmod +x conf$$.file
5122if test -x conf$$.file >/dev/null 2>&1; then
5123 ac_executable_p="test -x"
5124else
5125 ac_executable_p="test -f"
5126fi
5127rm -f conf$$.file
5128
5129# Extract the first word of "msgfmt", so it can be a program name with args.
5130set dummy msgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5132$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005133if test "${ac_cv_path_MSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005134 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005135else
5136 case "$MSGFMT" in
5137 [\\/]* | ?:[\\/]*)
5138 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5139 ;;
5140 *)
5141 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5142 for ac_dir in $PATH; do
5143 IFS="$ac_save_IFS"
5144 test -z "$ac_dir" && ac_dir=.
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5147 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5148 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5149 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5150 break 2
5151 fi
5152 fi
5153 done
5154 done
5155 IFS="$ac_save_IFS"
5156 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5157 ;;
5158esac
5159fi
5160MSGFMT="$ac_cv_path_MSGFMT"
5161if test "$MSGFMT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162 { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
5163$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005164else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165 { $as_echo "$as_me:$LINENO: result: no" >&5
5166$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005167fi
5168
5169 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5170set dummy gmsgfmt; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5172$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005173if test "${ac_cv_path_GMSGFMT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005174 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005175else
5176 case $GMSGFMT in
5177 [\\/]* | ?:[\\/]*)
5178 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5179 ;;
5180 *)
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
5186 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005187 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 -05005188 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005189 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005190 break 2
5191 fi
5192done
5193done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005194IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005195
5196 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5197 ;;
5198esac
5199fi
5200GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005201if test -n "$GMSGFMT"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005202 { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5203$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005205 { $as_echo "$as_me:$LINENO: result: no" >&5
5206$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005207fi
5208
5209
5210
Theodore Ts'oe1052142006-10-21 21:46:47 -04005211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005212# Prepare PATH_SEPARATOR.
5213# The user is always right.
5214if test "${PATH_SEPARATOR+set}" != set; then
5215 echo "#! /bin/sh" >conf$$.sh
5216 echo "exit 0" >>conf$$.sh
5217 chmod +x conf$$.sh
5218 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5219 PATH_SEPARATOR=';'
5220 else
5221 PATH_SEPARATOR=:
5222 fi
5223 rm -f conf$$.sh
5224fi
5225
5226# Find out how to test for executable files. Don't use a zero-byte file,
5227# as systems may use methods other than mode bits to determine executability.
5228cat >conf$$.file <<_ASEOF
5229#! /bin/sh
5230exit 0
5231_ASEOF
5232chmod +x conf$$.file
5233if test -x conf$$.file >/dev/null 2>&1; then
5234 ac_executable_p="test -x"
5235else
5236 ac_executable_p="test -f"
5237fi
5238rm -f conf$$.file
5239
5240# Extract the first word of "xgettext", so it can be a program name with args.
5241set dummy xgettext; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005242{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005244if test "${ac_cv_path_XGETTEXT+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005245 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005246else
5247 case "$XGETTEXT" in
5248 [\\/]* | ?:[\\/]*)
5249 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5250 ;;
5251 *)
5252 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5253 for ac_dir in $PATH; do
5254 IFS="$ac_save_IFS"
5255 test -z "$ac_dir" && ac_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5258 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5259 (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
5260 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5261 break 2
5262 fi
5263 fi
5264 done
5265 done
5266 IFS="$ac_save_IFS"
5267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5268 ;;
5269esac
5270fi
5271XGETTEXT="$ac_cv_path_XGETTEXT"
5272if test "$XGETTEXT" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005273 { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5274$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005276 { $as_echo "$as_me:$LINENO: result: no" >&5
5277$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005278fi
5279
5280 rm -f messages.po
5281
5282
5283# Prepare PATH_SEPARATOR.
5284# The user is always right.
5285if test "${PATH_SEPARATOR+set}" != set; then
5286 echo "#! /bin/sh" >conf$$.sh
5287 echo "exit 0" >>conf$$.sh
5288 chmod +x conf$$.sh
5289 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5290 PATH_SEPARATOR=';'
5291 else
5292 PATH_SEPARATOR=:
5293 fi
5294 rm -f conf$$.sh
5295fi
5296
5297# Find out how to test for executable files. Don't use a zero-byte file,
5298# as systems may use methods other than mode bits to determine executability.
5299cat >conf$$.file <<_ASEOF
5300#! /bin/sh
5301exit 0
5302_ASEOF
5303chmod +x conf$$.file
5304if test -x conf$$.file >/dev/null 2>&1; then
5305 ac_executable_p="test -x"
5306else
5307 ac_executable_p="test -f"
5308fi
5309rm -f conf$$.file
5310
5311# Extract the first word of "msgmerge", so it can be a program name with args.
5312set dummy msgmerge; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005313{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5314$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005315if test "${ac_cv_path_MSGMERGE+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005316 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005317else
5318 case "$MSGMERGE" in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5321 ;;
5322 *)
5323 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5324 for ac_dir in $PATH; do
5325 IFS="$ac_save_IFS"
5326 test -z "$ac_dir" && ac_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5329 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5330 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5331 break 2
5332 fi
5333 fi
5334 done
5335 done
5336 IFS="$ac_save_IFS"
5337 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5338 ;;
5339esac
5340fi
5341MSGMERGE="$ac_cv_path_MSGMERGE"
5342if test "$MSGMERGE" != ":"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005343 { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5344$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005345else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005346 { $as_echo "$as_me:$LINENO: result: no" >&5
5347$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005348fi
5349
5350
5351 if test "$GMSGFMT" != ":"; then
5352 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5353 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5354 : ;
5355 else
5356 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005357 { $as_echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5358$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005359 GMSGFMT=":"
5360 fi
5361 fi
5362
5363 if test "$XGETTEXT" != ":"; then
5364 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5365 (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
5366 : ;
5367 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005368 { $as_echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5369$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005370 XGETTEXT=":"
5371 fi
5372 rm -f messages.po
5373 fi
5374
Theodore Ts'oe1052142006-10-21 21:46:47 -04005375 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005376
5377
5378if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5380set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5382$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005383if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005384 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005385else
5386 if test -n "$RANLIB"; then
5387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5388else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390for as_dir in $PATH
5391do
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005395 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 -05005396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005398 break 2
5399 fi
5400done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005401done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005402IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005403
5404fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005405fi
5406RANLIB=$ac_cv_prog_RANLIB
5407if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5409$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005410else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005411 { $as_echo "$as_me:$LINENO: result: no" >&5
5412$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005413fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005414
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005416fi
5417if test -z "$ac_cv_prog_RANLIB"; then
5418 ac_ct_RANLIB=$RANLIB
5419 # Extract the first word of "ranlib", so it can be a program name with args.
5420set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5422$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005423if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005424 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005425else
5426 if test -n "$ac_ct_RANLIB"; then
5427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5428else
5429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430for as_dir in $PATH
5431do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005435 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 -05005436 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005438 break 2
5439 fi
5440done
5441done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005442IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005444fi
5445fi
5446ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5447if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005448 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5449$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005450else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451 { $as_echo "$as_me:$LINENO: result: no" >&5
5452$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005453fi
5454
Theodore Ts'oe1052142006-10-21 21:46:47 -04005455 if test "x$ac_ct_RANLIB" = x; then
5456 RANLIB=":"
5457 else
5458 case $cross_compiling:$ac_tool_warned in
5459yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005460{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04005462ac_tool_warned=yes ;;
5463esac
5464 RANLIB=$ac_ct_RANLIB
5465 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005466else
5467 RANLIB="$ac_cv_prog_RANLIB"
5468fi
5469
5470
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005471 { $as_echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5472$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473if test "${ac_cv_lib_cposix_strerror+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005475else
5476 ac_check_lib_save_LIBS=$LIBS
5477LIBS="-lcposix $LIBS"
5478cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484
Theodore Ts'oe1052142006-10-21 21:46:47 -04005485/* Override any GCC internal prototype to avoid an error.
5486 Use char because int might match the return type of a GCC
5487 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005488#ifdef __cplusplus
5489extern "C"
5490#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005491char strerror ();
5492int
5493main ()
5494{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005495return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005496 ;
5497 return 0;
5498}
5499_ACEOF
5500rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005501if { (ac_try="$ac_link"
5502case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5507$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005508 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005509 ac_status=$?
5510 grep -v '^ *+' conftest.er1 >conftest.err
5511 rm -f conftest.er1
5512 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005514 (exit $ac_status); } && {
5515 test -z "$ac_c_werror_flag" ||
5516 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517 } && test -s conftest$ac_exeext && {
5518 test "$cross_compiling" = yes ||
5519 $as_test_x conftest$ac_exeext
5520 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005521 ac_cv_lib_cposix_strerror=yes
5522else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005523 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005524sed 's/^/| /' conftest.$ac_ext >&5
5525
Theodore Ts'oe1052142006-10-21 21:46:47 -04005526 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005527fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005528
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005529rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005531 conftest$ac_exeext conftest.$ac_ext
5532LIBS=$ac_check_lib_save_LIBS
5533fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005534{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5535$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
5536if test "x$ac_cv_lib_cposix_strerror" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005537 LIBS="$LIBS -lcposix"
5538fi
5539
5540
5541
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005542{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5543$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005544if test "${ac_cv_c_const+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005545 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005546else
5547 cat >conftest.$ac_ext <<_ACEOF
5548/* confdefs.h. */
5549_ACEOF
5550cat confdefs.h >>conftest.$ac_ext
5551cat >>conftest.$ac_ext <<_ACEOF
5552/* end confdefs.h. */
5553
5554int
5555main ()
5556{
5557/* FIXME: Include the comments suggested by Paul. */
5558#ifndef __cplusplus
5559 /* Ultrix mips cc rejects this. */
5560 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005561 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005563 char const *const *pcpcc;
5564 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005565 /* NEC SVR4.0.2 mips cc rejects this. */
5566 struct point {int x, y;};
5567 static struct point const zero = {0,0};
5568 /* AIX XL C 1.02.0.0 rejects this.
5569 It does not let you subtract one const X* pointer from another in
5570 an arm of an if-expression whose if-part is not a constant
5571 expression */
5572 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005573 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005574 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005575 ++pcpcc;
5576 ppc = (char**) pcpcc;
5577 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005578 { /* SCO 3.2v4 cc rejects this. */
5579 char *t;
5580 char const *s = 0 ? (char *) 0 : (char const *) 0;
5581
5582 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005583 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005584 }
5585 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5586 int x[] = {25, 17};
5587 const int *foo = &x[0];
5588 ++foo;
5589 }
5590 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5591 typedef const int *iptr;
5592 iptr p = 0;
5593 ++p;
5594 }
5595 { /* AIX XL C 1.02.0.0 rejects this saying
5596 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5597 struct s { int j; const int *ap[3]; };
5598 struct s *b; b->j = 5;
5599 }
5600 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5601 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005603 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005604 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605#endif
5606
5607 ;
5608 return 0;
5609}
5610_ACEOF
5611rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005612if { (ac_try="$ac_compile"
5613case "(($ac_try" in
5614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615 *) ac_try_echo=$ac_try;;
5616esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5618$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005619 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005620 ac_status=$?
5621 grep -v '^ *+' conftest.er1 >conftest.err
5622 rm -f conftest.er1
5623 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005625 (exit $ac_status); } && {
5626 test -z "$ac_c_werror_flag" ||
5627 test ! -s conftest.err
5628 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629 ac_cv_c_const=yes
5630else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005631 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005632sed 's/^/| /' conftest.$ac_ext >&5
5633
Theodore Ts'oe1052142006-10-21 21:46:47 -04005634 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005635fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005636
5637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005639{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5640$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641if test $ac_cv_c_const = no; then
5642
5643cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005644#define const /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005645_ACEOF
5646
5647fi
5648
5649
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005650 { $as_echo "$as_me:$LINENO: checking for signed" >&5
5651$as_echo_n "checking for signed... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652if test "${bh_cv_c_signed+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005653 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005654else
5655 cat >conftest.$ac_ext <<_ACEOF
5656/* confdefs.h. */
5657_ACEOF
5658cat confdefs.h >>conftest.$ac_ext
5659cat >>conftest.$ac_ext <<_ACEOF
5660/* end confdefs.h. */
5661
5662int
5663main ()
5664{
5665signed char x;
5666 ;
5667 return 0;
5668}
5669_ACEOF
5670rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005671if { (ac_try="$ac_compile"
5672case "(($ac_try" in
5673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5674 *) ac_try_echo=$ac_try;;
5675esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5677$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005678 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005679 ac_status=$?
5680 grep -v '^ *+' conftest.er1 >conftest.err
5681 rm -f conftest.er1
5682 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005684 (exit $ac_status); } && {
5685 test -z "$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005688 bh_cv_c_signed=yes
5689else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005690 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005691sed 's/^/| /' conftest.$ac_ext >&5
5692
Theodore Ts'oe1052142006-10-21 21:46:47 -04005693 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005694fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005695
5696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005697fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698{ $as_echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5699$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005700 if test $bh_cv_c_signed = no; then
5701
5702cat >>confdefs.h <<\_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005703#define signed /**/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704_ACEOF
5705
5706 fi
5707
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005708{ $as_echo "$as_me:$LINENO: checking for inline" >&5
5709$as_echo_n "checking for inline... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005710if test "${ac_cv_c_inline+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005711 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005712else
5713 ac_cv_c_inline=no
5714for ac_kw in inline __inline__ __inline; do
5715 cat >conftest.$ac_ext <<_ACEOF
5716/* confdefs.h. */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h. */
5721#ifndef __cplusplus
5722typedef int foo_t;
5723static $ac_kw foo_t static_foo () {return 0; }
5724$ac_kw foo_t foo () {return 0; }
5725#endif
5726
5727_ACEOF
5728rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005729if { (ac_try="$ac_compile"
5730case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5735$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005736 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005737 ac_status=$?
5738 grep -v '^ *+' conftest.er1 >conftest.err
5739 rm -f conftest.er1
5740 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005742 (exit $ac_status); } && {
5743 test -z "$ac_c_werror_flag" ||
5744 test ! -s conftest.err
5745 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005746 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005747else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005748 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005749sed 's/^/| /' conftest.$ac_ext >&5
5750
Theodore Ts'oe1052142006-10-21 21:46:47 -04005751
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005752fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005753
5754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5755 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756done
5757
5758fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005759{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5760$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761
5762
5763case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005764 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005765 *)
5766 case $ac_cv_c_inline in
5767 no) ac_val=;;
5768 *) ac_val=$ac_cv_c_inline;;
5769 esac
5770 cat >>confdefs.h <<_ACEOF
5771#ifndef __cplusplus
5772#define inline $ac_val
5773#endif
5774_ACEOF
5775 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005776esac
5777
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005778{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
5779$as_echo_n "checking for off_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005780if test "${ac_cv_type_off_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005781 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005782else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005783 ac_cv_type_off_t=no
5784cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005785/* confdefs.h. */
5786_ACEOF
5787cat confdefs.h >>conftest.$ac_ext
5788cat >>conftest.$ac_ext <<_ACEOF
5789/* end confdefs.h. */
5790$ac_includes_default
5791int
5792main ()
5793{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794if (sizeof (off_t))
5795 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005796 ;
5797 return 0;
5798}
5799_ACEOF
5800rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801if { (ac_try="$ac_compile"
5802case "(($ac_try" in
5803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5805esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5807$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005808 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809 ac_status=$?
5810 grep -v '^ *+' conftest.er1 >conftest.err
5811 rm -f conftest.er1
5812 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005814 (exit $ac_status); } && {
5815 test -z "$ac_c_werror_flag" ||
5816 test ! -s conftest.err
5817 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005818 cat >conftest.$ac_ext <<_ACEOF
5819/* confdefs.h. */
5820_ACEOF
5821cat confdefs.h >>conftest.$ac_ext
5822cat >>conftest.$ac_ext <<_ACEOF
5823/* end confdefs.h. */
5824$ac_includes_default
5825int
5826main ()
5827{
5828if (sizeof ((off_t)))
5829 return 0;
5830 ;
5831 return 0;
5832}
5833_ACEOF
5834rm -f conftest.$ac_objext
5835if { (ac_try="$ac_compile"
5836case "(($ac_try" in
5837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5838 *) ac_try_echo=$ac_try;;
5839esac
5840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5841$as_echo "$ac_try_echo") >&5
5842 (eval "$ac_compile") 2>conftest.er1
5843 ac_status=$?
5844 grep -v '^ *+' conftest.er1 >conftest.err
5845 rm -f conftest.er1
5846 cat conftest.err >&5
5847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); } && {
5849 test -z "$ac_c_werror_flag" ||
5850 test ! -s conftest.err
5851 } && test -s conftest.$ac_objext; then
5852 :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005853else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005854 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005855sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005856
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005857 ac_cv_type_off_t=yes
5858fi
5859
5860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861else
5862 $as_echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005866fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005867
5868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005869fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005870{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5871$as_echo "$ac_cv_type_off_t" >&6; }
5872if test "x$ac_cv_type_off_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005873 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005874else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005875
5876cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005877#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005878_ACEOF
5879
5880fi
5881
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005882{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
5883$as_echo_n "checking for size_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005884if test "${ac_cv_type_size_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005885 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005886else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005887 ac_cv_type_size_t=no
5888cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005889/* confdefs.h. */
5890_ACEOF
5891cat confdefs.h >>conftest.$ac_ext
5892cat >>conftest.$ac_ext <<_ACEOF
5893/* end confdefs.h. */
5894$ac_includes_default
5895int
5896main ()
5897{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005898if (sizeof (size_t))
5899 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900 ;
5901 return 0;
5902}
5903_ACEOF
5904rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005905if { (ac_try="$ac_compile"
5906case "(($ac_try" in
5907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5909esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5911$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04005912 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005913 ac_status=$?
5914 grep -v '^ *+' conftest.er1 >conftest.err
5915 rm -f conftest.er1
5916 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005918 (exit $ac_status); } && {
5919 test -z "$ac_c_werror_flag" ||
5920 test ! -s conftest.err
5921 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005922 cat >conftest.$ac_ext <<_ACEOF
5923/* confdefs.h. */
5924_ACEOF
5925cat confdefs.h >>conftest.$ac_ext
5926cat >>conftest.$ac_ext <<_ACEOF
5927/* end confdefs.h. */
5928$ac_includes_default
5929int
5930main ()
5931{
5932if (sizeof ((size_t)))
5933 return 0;
5934 ;
5935 return 0;
5936}
5937_ACEOF
5938rm -f conftest.$ac_objext
5939if { (ac_try="$ac_compile"
5940case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943esac
5944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945$as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005957else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005958 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005959sed 's/^/| /' conftest.$ac_ext >&5
5960
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005961 ac_cv_type_size_t=yes
5962fi
5963
5964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965else
5966 $as_echo "$as_me: failed program was:" >&5
5967sed 's/^/| /' conftest.$ac_ext >&5
5968
5969
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005971
5972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005973fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005974{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5975$as_echo "$ac_cv_type_size_t" >&6; }
5976if test "x$ac_cv_type_size_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005977 :
5978else
5979
5980cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005981#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005982_ACEOF
5983
5984fi
5985
5986
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005987 { $as_echo "$as_me:$LINENO: checking for long long" >&5
5988$as_echo_n "checking for long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005989if test "${ac_cv_type_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005990 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991else
5992 cat >conftest.$ac_ext <<_ACEOF
5993/* confdefs.h. */
5994_ACEOF
5995cat confdefs.h >>conftest.$ac_ext
5996cat >>conftest.$ac_ext <<_ACEOF
5997/* end confdefs.h. */
5998long long ll = 1LL; int i = 63;
5999int
6000main ()
6001{
6002long long llmax = (long long) -1;
6003 return ll << i | ll >> i | llmax / ll | llmax % ll;
6004 ;
6005 return 0;
6006}
6007_ACEOF
6008rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006009if { (ac_try="$ac_link"
6010case "(($ac_try" in
6011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012 *) ac_try_echo=$ac_try;;
6013esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006014eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6015$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006016 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 ac_status=$?
6018 grep -v '^ *+' conftest.er1 >conftest.err
6019 rm -f conftest.er1
6020 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006021 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006022 (exit $ac_status); } && {
6023 test -z "$ac_c_werror_flag" ||
6024 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006025 } && test -s conftest$ac_exeext && {
6026 test "$cross_compiling" = yes ||
6027 $as_test_x conftest$ac_exeext
6028 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 ac_cv_type_long_long=yes
6030else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006031 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032sed 's/^/| /' conftest.$ac_ext >&5
6033
Theodore Ts'oe1052142006-10-21 21:46:47 -04006034 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006036
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006037rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006038rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039 conftest$ac_exeext conftest.$ac_ext
6040fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006041{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6042$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043 if test $ac_cv_type_long_long = yes; then
6044
6045cat >>confdefs.h <<\_ACEOF
6046#define HAVE_LONG_LONG 1
6047_ACEOF
6048
6049 fi
6050
6051
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006052 { $as_echo "$as_me:$LINENO: checking for long double" >&5
6053$as_echo_n "checking for long double... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054if test "${gt_cv_c_long_double+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006055 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006056else
6057 if test "$GCC" = yes; then
6058 gt_cv_c_long_double=yes
6059 else
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6068 long double foo = 0.0;
6069 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6070 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6071
6072int
6073main ()
6074{
6075
6076 ;
6077 return 0;
6078}
6079_ACEOF
6080rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081if { (ac_try="$ac_compile"
6082case "(($ac_try" in
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6085esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6087$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006088 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 ac_status=$?
6090 grep -v '^ *+' conftest.er1 >conftest.err
6091 rm -f conftest.er1
6092 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006094 (exit $ac_status); } && {
6095 test -z "$ac_c_werror_flag" ||
6096 test ! -s conftest.err
6097 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098 gt_cv_c_long_double=yes
6099else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006100 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101sed 's/^/| /' conftest.$ac_ext >&5
6102
Theodore Ts'oe1052142006-10-21 21:46:47 -04006103 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006105
6106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107 fi
6108fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006109{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6110$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111 if test $gt_cv_c_long_double = yes; then
6112
6113cat >>confdefs.h <<\_ACEOF
6114#define HAVE_LONG_DOUBLE 1
6115_ACEOF
6116
6117 fi
6118
6119
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006120 { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
6121$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122if test "${gt_cv_c_wchar_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006123 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006124else
6125 cat >conftest.$ac_ext <<_ACEOF
6126/* confdefs.h. */
6127_ACEOF
6128cat confdefs.h >>conftest.$ac_ext
6129cat >>conftest.$ac_ext <<_ACEOF
6130/* end confdefs.h. */
6131#include <stddef.h>
6132 wchar_t foo = (wchar_t)'\0';
6133int
6134main ()
6135{
6136
6137 ;
6138 return 0;
6139}
6140_ACEOF
6141rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006142if { (ac_try="$ac_compile"
6143case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6148$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006149 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150 ac_status=$?
6151 grep -v '^ *+' conftest.er1 >conftest.err
6152 rm -f conftest.er1
6153 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006155 (exit $ac_status); } && {
6156 test -z "$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6158 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006159 gt_cv_c_wchar_t=yes
6160else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006161 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162sed 's/^/| /' conftest.$ac_ext >&5
6163
Theodore Ts'oe1052142006-10-21 21:46:47 -04006164 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006165fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006166
6167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006168fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006169{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6170$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006171 if test $gt_cv_c_wchar_t = yes; then
6172
6173cat >>confdefs.h <<\_ACEOF
6174#define HAVE_WCHAR_T 1
6175_ACEOF
6176
6177 fi
6178
6179
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006180 { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
6181$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182if test "${gt_cv_c_wint_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006183 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006184else
6185 cat >conftest.$ac_ext <<_ACEOF
6186/* confdefs.h. */
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */
6191#include <wchar.h>
6192 wint_t foo = (wchar_t)'\0';
6193int
6194main ()
6195{
6196
6197 ;
6198 return 0;
6199}
6200_ACEOF
6201rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006202if { (ac_try="$ac_compile"
6203case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6208$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006210 ac_status=$?
6211 grep -v '^ *+' conftest.er1 >conftest.err
6212 rm -f conftest.er1
6213 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219 gt_cv_c_wint_t=yes
6220else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006221 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006222sed 's/^/| /' conftest.$ac_ext >&5
6223
Theodore Ts'oe1052142006-10-21 21:46:47 -04006224 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006226
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006228fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006229{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6230$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006231 if test $gt_cv_c_wint_t = yes; then
6232
6233cat >>confdefs.h <<\_ACEOF
6234#define HAVE_WINT_T 1
6235_ACEOF
6236
6237 fi
6238
6239
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006240 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
6241$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006242if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006243 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006244else
6245 cat >conftest.$ac_ext <<_ACEOF
6246/* confdefs.h. */
6247_ACEOF
6248cat confdefs.h >>conftest.$ac_ext
6249cat >>conftest.$ac_ext <<_ACEOF
6250/* end confdefs.h. */
6251#include <sys/types.h>
6252#include <inttypes.h>
6253int
6254main ()
6255{
6256uintmax_t i = (uintmax_t) -1;
6257 ;
6258 return 0;
6259}
6260_ACEOF
6261rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006262if { (ac_try="$ac_compile"
6263case "(($ac_try" in
6264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6265 *) ac_try_echo=$ac_try;;
6266esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6268$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006269 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006279 jm_ac_cv_header_inttypes_h=yes
6280else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006281 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282sed 's/^/| /' conftest.$ac_ext >&5
6283
Theodore Ts'oe1052142006-10-21 21:46:47 -04006284 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006286
6287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006289{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6290$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006291 if test $jm_ac_cv_header_inttypes_h = yes; then
6292
6293cat >>confdefs.h <<_ACEOF
6294#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6295_ACEOF
6296
6297 fi
6298
6299
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006300 { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
6301$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006302if test "${jm_ac_cv_header_stdint_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006303 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304else
6305 cat >conftest.$ac_ext <<_ACEOF
6306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
6311#include <sys/types.h>
6312#include <stdint.h>
6313int
6314main ()
6315{
6316uintmax_t i = (uintmax_t) -1;
6317 ;
6318 return 0;
6319}
6320_ACEOF
6321rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006322if { (ac_try="$ac_compile"
6323case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6328$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006329 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330 ac_status=$?
6331 grep -v '^ *+' conftest.er1 >conftest.err
6332 rm -f conftest.er1
6333 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006335 (exit $ac_status); } && {
6336 test -z "$ac_c_werror_flag" ||
6337 test ! -s conftest.err
6338 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006339 jm_ac_cv_header_stdint_h=yes
6340else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006341 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006342sed 's/^/| /' conftest.$ac_ext >&5
6343
Theodore Ts'oe1052142006-10-21 21:46:47 -04006344 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006346
6347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006348fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006349{ $as_echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6350$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006351 if test $jm_ac_cv_header_stdint_h = yes; then
6352
6353cat >>confdefs.h <<_ACEOF
6354#define HAVE_STDINT_H_WITH_UINTMAX 1
6355_ACEOF
6356
6357 fi
6358
6359
6360
6361
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006362 { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
6363$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364if test "${gt_cv_c_intmax_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006365 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366else
6367 cat >conftest.$ac_ext <<_ACEOF
6368/* confdefs.h. */
6369_ACEOF
6370cat confdefs.h >>conftest.$ac_ext
6371cat >>conftest.$ac_ext <<_ACEOF
6372/* end confdefs.h. */
6373
6374#include <stddef.h>
6375#include <stdlib.h>
6376#if HAVE_STDINT_H_WITH_UINTMAX
6377#include <stdint.h>
6378#endif
6379#if HAVE_INTTYPES_H_WITH_UINTMAX
6380#include <inttypes.h>
6381#endif
6382
6383int
6384main ()
6385{
6386intmax_t x = -1;
6387 ;
6388 return 0;
6389}
6390_ACEOF
6391rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006392if { (ac_try="$ac_compile"
6393case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6398$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006399 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006405 (exit $ac_status); } && {
6406 test -z "$ac_c_werror_flag" ||
6407 test ! -s conftest.err
6408 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006409 gt_cv_c_intmax_t=yes
6410else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006411 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006412sed 's/^/| /' conftest.$ac_ext >&5
6413
Theodore Ts'oe1052142006-10-21 21:46:47 -04006414 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006415fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006416
6417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006418fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419{ $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
6420$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421 if test $gt_cv_c_intmax_t = yes; then
6422
6423cat >>confdefs.h <<\_ACEOF
6424#define HAVE_INTMAX_T 1
6425_ACEOF
6426
6427 fi
6428
6429
6430
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006431 { $as_echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
6432$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433if test "${gt_cv_func_printf_posix+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006434 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435else
6436
6437 if test "$cross_compiling" = yes; then
6438
6439 cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445
6446#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6447 notposix
6448#endif
6449
6450_ACEOF
6451if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6452 $EGREP "notposix" >/dev/null 2>&1; then
6453 gt_cv_func_printf_posix="guessing no"
6454else
6455 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006456fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006457rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006459
6460else
6461 cat >conftest.$ac_ext <<_ACEOF
6462/* confdefs.h. */
6463_ACEOF
6464cat confdefs.h >>conftest.$ac_ext
6465cat >>conftest.$ac_ext <<_ACEOF
6466/* end confdefs.h. */
6467
6468#include <stdio.h>
6469#include <string.h>
6470/* The string "%2$d %1$d", with dollar characters protected from the shell's
6471 dollar expansion (possibly an autoconf bug). */
6472static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6473static char buf[100];
6474int main ()
6475{
6476 sprintf (buf, format, 33, 55);
6477 return (strcmp (buf, "55 33") != 0);
6478}
6479_ACEOF
6480rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006481if { (ac_try="$ac_link"
6482case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006486eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6487$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006488 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006489 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006491 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006492 { (case "(($ac_try" in
6493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6494 *) ac_try_echo=$ac_try;;
6495esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6497$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006498 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006499 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501 (exit $ac_status); }; }; then
6502 gt_cv_func_printf_posix=yes
6503else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006504 $as_echo "$as_me: program exited with status $ac_status" >&5
6505$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506sed 's/^/| /' conftest.$ac_ext >&5
6507
6508( exit $ac_status )
6509gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006510fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006511rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006512rm -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 -05006513fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006514
Theodore Ts'oe1052142006-10-21 21:46:47 -04006515
6516
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006517fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006518{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
6519$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006520 case $gt_cv_func_printf_posix in
6521 *yes)
6522
6523cat >>confdefs.h <<\_ACEOF
6524#define HAVE_POSIX_PRINTF 1
6525_ACEOF
6526
6527 ;;
6528 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006529
6530# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6531# for constant arguments. Useless!
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006532{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
6533$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534if test "${ac_cv_working_alloca_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006535 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006536else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537 cat >conftest.$ac_ext <<_ACEOF
6538/* confdefs.h. */
6539_ACEOF
6540cat confdefs.h >>conftest.$ac_ext
6541cat >>conftest.$ac_ext <<_ACEOF
6542/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006543#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544int
6545main ()
6546{
6547char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006548 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549 ;
6550 return 0;
6551}
6552_ACEOF
6553rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006554if { (ac_try="$ac_link"
6555case "(($ac_try" in
6556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6557 *) ac_try_echo=$ac_try;;
6558esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006559eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6560$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006561 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006570 } && test -s conftest$ac_exeext && {
6571 test "$cross_compiling" = yes ||
6572 $as_test_x conftest$ac_exeext
6573 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006575else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006578
Theodore Ts'oe1052142006-10-21 21:46:47 -04006579 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006581
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006582rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006583rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584 conftest$ac_exeext conftest.$ac_ext
6585fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006586{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
6587$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588if test $ac_cv_working_alloca_h = yes; then
6589
6590cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006591#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006593
6594fi
6595
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006596{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
6597$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598if test "${ac_cv_func_alloca_works+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006599 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006600else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006607#ifdef __GNUC__
6608# define alloca __builtin_alloca
6609#else
6610# ifdef _MSC_VER
6611# include <malloc.h>
6612# define alloca _alloca
6613# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006614# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006615# include <alloca.h>
6616# else
6617# ifdef _AIX
6618 #pragma alloca
6619# else
6620# ifndef alloca /* predefined by HP cc +Olibcalls */
6621char *alloca ();
6622# endif
6623# endif
6624# endif
6625# endif
6626#endif
6627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628int
6629main ()
6630{
6631char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633 ;
6634 return 0;
6635}
6636_ACEOF
6637rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006638if { (ac_try="$ac_link"
6639case "(($ac_try" in
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6642esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6644$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006645 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646 ac_status=$?
6647 grep -v '^ *+' conftest.er1 >conftest.err
6648 rm -f conftest.er1
6649 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006651 (exit $ac_status); } && {
6652 test -z "$ac_c_werror_flag" ||
6653 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006654 } && test -s conftest$ac_exeext && {
6655 test "$cross_compiling" = yes ||
6656 $as_test_x conftest$ac_exeext
6657 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006658 ac_cv_func_alloca_works=yes
6659else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006660 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006662
Theodore Ts'oe1052142006-10-21 21:46:47 -04006663 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006665
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006666rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668 conftest$ac_exeext conftest.$ac_ext
6669fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
6671$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006673if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674
6675cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006676#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006678
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006679else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6681# that cause trouble. Some versions do not even contain alloca or
6682# contain a buggy version. If you still want to use their alloca,
6683# use ar to extract alloca.o from them instead of compiling alloca.c.
6684
Theodore Ts'oe1052142006-10-21 21:46:47 -04006685ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686
6687cat >>confdefs.h <<\_ACEOF
6688#define C_ALLOCA 1
6689_ACEOF
6690
6691
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006692{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
6693$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694if test "${ac_cv_os_cray+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006695 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696else
6697 cat >conftest.$ac_ext <<_ACEOF
6698/* confdefs.h. */
6699_ACEOF
6700cat confdefs.h >>conftest.$ac_ext
6701cat >>conftest.$ac_ext <<_ACEOF
6702/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006703#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006704webecray
6705#else
6706wenotbecray
6707#endif
6708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006710if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006711 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006712 ac_cv_os_cray=yes
6713else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006714 ac_cv_os_cray=no
6715fi
6716rm -f conftest*
6717
6718fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006719{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
6720$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006721if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006722 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6724{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6725$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006726if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006727 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006728else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729 cat >conftest.$ac_ext <<_ACEOF
6730/* confdefs.h. */
6731_ACEOF
6732cat confdefs.h >>conftest.$ac_ext
6733cat >>conftest.$ac_ext <<_ACEOF
6734/* end confdefs.h. */
6735/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6736 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6737#define $ac_func innocuous_$ac_func
6738
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006739/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 which can conflict with char $ac_func (); below.
6741 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6742 <limits.h> exists even on freestanding compilers. */
6743
6744#ifdef __STDC__
6745# include <limits.h>
6746#else
6747# include <assert.h>
6748#endif
6749
6750#undef $ac_func
6751
Theodore Ts'oe1052142006-10-21 21:46:47 -04006752/* Override any GCC internal prototype to avoid an error.
6753 Use char because int might match the return type of a GCC
6754 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755#ifdef __cplusplus
6756extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006757#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006759/* The GNU C library defines this for functions which it implements
6760 to always fail with ENOSYS. Some functions are actually named
6761 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006762#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006763choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006764#endif
6765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766int
6767main ()
6768{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006769return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770 ;
6771 return 0;
6772}
6773_ACEOF
6774rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006775if { (ac_try="$ac_link"
6776case "(($ac_try" in
6777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6778 *) ac_try_echo=$ac_try;;
6779esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6781$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006782 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783 ac_status=$?
6784 grep -v '^ *+' conftest.er1 >conftest.err
6785 rm -f conftest.er1
6786 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006788 (exit $ac_status); } && {
6789 test -z "$ac_c_werror_flag" ||
6790 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006791 } && test -s conftest$ac_exeext && {
6792 test "$cross_compiling" = yes ||
6793 $as_test_x conftest$ac_exeext
6794 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006796else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006797 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006799
Theodore Ts'oe1052142006-10-21 21:46:47 -04006800 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006802
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006803rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006804rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805 conftest$ac_exeext conftest.$ac_ext
6806fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006807ac_res=`eval 'as_val=${'$as_ac_var'}
6808 $as_echo "$as_val"'`
6809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6810$as_echo "$ac_res" >&6; }
6811as_val=`eval 'as_val=${'$as_ac_var'}
6812 $as_echo "$as_val"'`
6813 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814
6815cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006816#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006820fi
6821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006823fi
6824
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006825{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6826$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827if test "${ac_cv_c_stack_direction+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006828 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006829else
6830 if test "$cross_compiling" = yes; then
6831 ac_cv_c_stack_direction=0
6832else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833 cat >conftest.$ac_ext <<_ACEOF
6834/* confdefs.h. */
6835_ACEOF
6836cat confdefs.h >>conftest.$ac_ext
6837cat >>conftest.$ac_ext <<_ACEOF
6838/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006839$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006841find_stack_direction ()
6842{
6843 static char *addr = 0;
6844 auto char dummy;
6845 if (addr == 0)
6846 {
6847 addr = &dummy;
6848 return find_stack_direction ();
6849 }
6850 else
6851 return (&dummy > addr) ? 1 : -1;
6852}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853
6854int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006855main ()
6856{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006857 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006858}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859_ACEOF
6860rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861if { (ac_try="$ac_link"
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6867$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006872 { (case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006878 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006882 ac_cv_c_stack_direction=1
6883else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006884 $as_echo "$as_me: program exited with status $ac_status" >&5
6885$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006887
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888( exit $ac_status )
6889ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006890fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006891rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04006892rm -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 -05006893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006894
6895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006897{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6898$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006901#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902_ACEOF
6903
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006904
6905fi
6906
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907
6908
6909for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006910do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006911as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006913 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6914$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006915if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006916 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006917fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006918ac_res=`eval 'as_val=${'$as_ac_Header'}
6919 $as_echo "$as_val"'`
6920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6921$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006922else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006923 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006924{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6925$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926cat >conftest.$ac_ext <<_ACEOF
6927/* confdefs.h. */
6928_ACEOF
6929cat confdefs.h >>conftest.$ac_ext
6930cat >>conftest.$ac_ext <<_ACEOF
6931/* end confdefs.h. */
6932$ac_includes_default
6933#include <$ac_header>
6934_ACEOF
6935rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006936if { (ac_try="$ac_compile"
6937case "(($ac_try" in
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6940esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006943 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953 ac_header_compiler=yes
6954else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956sed 's/^/| /' conftest.$ac_ext >&5
6957
Theodore Ts'oe1052142006-10-21 21:46:47 -04006958 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006960
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006962{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6963$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964
6965# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006966{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6967$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968cat >conftest.$ac_ext <<_ACEOF
6969/* confdefs.h. */
6970_ACEOF
6971cat confdefs.h >>conftest.$ac_ext
6972cat >>conftest.$ac_ext <<_ACEOF
6973/* end confdefs.h. */
6974#include <$ac_header>
6975_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006976if { (ac_try="$ac_cpp conftest.$ac_ext"
6977case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6982$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04006983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006989 (exit $ac_status); } >/dev/null && {
6990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006993 ac_header_preproc=yes
6994else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006995 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 ac_header_preproc=no
6999fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007002{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7003$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004
7005# So? What about this header?
7006case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7007 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7009$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7011$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012 ac_header_preproc=yes
7013 ;;
7014 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7016$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7018$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7020$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7022$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7024$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7026$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028 ;;
7029esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007030{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7031$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007033 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034else
7035 eval "$as_ac_Header=\$ac_header_preproc"
7036fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007037ac_res=`eval 'as_val=${'$as_ac_Header'}
7038 $as_echo "$as_val"'`
7039 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7040$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041
7042fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007043as_val=`eval 'as_val=${'$as_ac_Header'}
7044 $as_echo "$as_val"'`
7045 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007047#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048_ACEOF
7049
7050fi
7051
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007052done
7053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055for ac_func in getpagesize
7056do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007057as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7058{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7059$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007060if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007061 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007063 cat >conftest.$ac_ext <<_ACEOF
7064/* confdefs.h. */
7065_ACEOF
7066cat confdefs.h >>conftest.$ac_ext
7067cat >>conftest.$ac_ext <<_ACEOF
7068/* end confdefs.h. */
7069/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7071#define $ac_func innocuous_$ac_func
7072
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007073/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007074 which can conflict with char $ac_func (); below.
7075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 <limits.h> exists even on freestanding compilers. */
7077
7078#ifdef __STDC__
7079# include <limits.h>
7080#else
7081# include <assert.h>
7082#endif
7083
7084#undef $ac_func
7085
Theodore Ts'oe1052142006-10-21 21:46:47 -04007086/* Override any GCC internal prototype to avoid an error.
7087 Use char because int might match the return type of a GCC
7088 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089#ifdef __cplusplus
7090extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093/* The GNU C library defines this for functions which it implements
7094 to always fail with ENOSYS. Some functions are actually named
7095 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007096#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007097choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007098#endif
7099
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007100int
7101main ()
7102{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007103return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104 ;
7105 return 0;
7106}
7107_ACEOF
7108rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007109if { (ac_try="$ac_link"
7110case "(($ac_try" in
7111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7113esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7115$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007116 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007125 } && test -s conftest$ac_exeext && {
7126 test "$cross_compiling" = yes ||
7127 $as_test_x conftest$ac_exeext
7128 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007130else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007131 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007132sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007133
Theodore Ts'oe1052142006-10-21 21:46:47 -04007134 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007136
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007137rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139 conftest$ac_exeext conftest.$ac_ext
7140fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007141ac_res=`eval 'as_val=${'$as_ac_var'}
7142 $as_echo "$as_val"'`
7143 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7144$as_echo "$ac_res" >&6; }
7145as_val=`eval 'as_val=${'$as_ac_var'}
7146 $as_echo "$as_val"'`
7147 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007149#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007150_ACEOF
7151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152fi
7153done
7154
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007155{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7156$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007158 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007159else
7160 if test "$cross_compiling" = yes; then
7161 ac_cv_func_mmap_fixed_mapped=no
7162else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 cat >conftest.$ac_ext <<_ACEOF
7164/* confdefs.h. */
7165_ACEOF
7166cat confdefs.h >>conftest.$ac_ext
7167cat >>conftest.$ac_ext <<_ACEOF
7168/* end confdefs.h. */
7169$ac_includes_default
7170/* malloc might have been renamed as rpl_malloc. */
7171#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007172
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173/* Thanks to Mike Haertel and Jim Avera for this test.
7174 Here is a matrix of mmap possibilities:
7175 mmap private not fixed
7176 mmap private fixed at somewhere currently unmapped
7177 mmap private fixed at somewhere already mapped
7178 mmap shared not fixed
7179 mmap shared fixed at somewhere currently unmapped
7180 mmap shared fixed at somewhere already mapped
7181 For private mappings, we should verify that changes cannot be read()
7182 back from the file, nor mmap's back from the file at a different
7183 address. (There have been systems where private was not correctly
7184 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007185 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007186 like early versions of FreeBSD and possibly contemporary NetBSD.)
7187 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007188 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189
7190 Grep wants private fixed already mapped.
7191 The main things grep needs to know about mmap are:
7192 * does it exist and is it safe to write into the mmap'd area
7193 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007195#include <fcntl.h>
7196#include <sys/mman.h>
7197
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007198#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199char *malloc ();
7200#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007202/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007203#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007204/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007205# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007206# define HAVE_SYS_PARAM_H 1
7207# endif
7208
7209# ifdef _SC_PAGESIZE
7210# define getpagesize() sysconf(_SC_PAGESIZE)
7211# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007212# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007213# include <sys/param.h>
7214# ifdef EXEC_PAGESIZE
7215# define getpagesize() EXEC_PAGESIZE
7216# else /* no EXEC_PAGESIZE */
7217# ifdef NBPG
7218# define getpagesize() NBPG * CLSIZE
7219# ifndef CLSIZE
7220# define CLSIZE 1
7221# endif /* no CLSIZE */
7222# else /* no NBPG */
7223# ifdef NBPC
7224# define getpagesize() NBPC
7225# else /* no NBPC */
7226# ifdef PAGESIZE
7227# define getpagesize() PAGESIZE
7228# endif /* PAGESIZE */
7229# endif /* no NBPC */
7230# endif /* no NBPG */
7231# endif /* no EXEC_PAGESIZE */
7232# else /* no HAVE_SYS_PARAM_H */
7233# define getpagesize() 8192 /* punt totally */
7234# endif /* no HAVE_SYS_PARAM_H */
7235# endif /* no _SC_PAGESIZE */
7236
7237#endif /* no HAVE_GETPAGESIZE */
7238
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007239int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007241{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242 char *data, *data2, *data3;
7243 int i, pagesize;
7244 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007247
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248 /* First, make a file with some known garbage in it. */
7249 data = (char *) malloc (pagesize);
7250 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 for (i = 0; i < pagesize; ++i)
7253 *(data + i) = rand ();
7254 umask (0);
7255 fd = creat ("conftest.mmap", 0600);
7256 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007257 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007259 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262 /* Next, try to mmap the file at a fixed address which already has
7263 something else allocated at it. If we can, also make sure that
7264 we see the same garbage. */
7265 fd = open ("conftest.mmap", O_RDWR);
7266 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007267 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268 data2 = (char *) malloc (2 * pagesize);
7269 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270 return 1;
7271 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007272 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7273 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007274 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275 for (i = 0; i < pagesize; ++i)
7276 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007277 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007279 /* Finally, make sure that changes to the mapped area do not
7280 percolate back to the file as seen by read(). (This is a bug on
7281 some variants of i386 svr4.0.) */
7282 for (i = 0; i < pagesize; ++i)
7283 *(data2 + i) = *(data2 + i) + 1;
7284 data3 = (char *) malloc (pagesize);
7285 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007286 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007288 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289 for (i = 0; i < pagesize; ++i)
7290 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007291 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007293 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007294}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295_ACEOF
7296rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007297if { (ac_try="$ac_link"
7298case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007304 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007307 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007308 { (case "(($ac_try" in
7309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7310 *) ac_try_echo=$ac_try;;
7311esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7313$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007314 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007315 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007317 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007318 ac_cv_func_mmap_fixed_mapped=yes
7319else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007320 $as_echo "$as_me: program exited with status $ac_status" >&5
7321$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007322sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007323
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007324( exit $ac_status )
7325ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007326fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007327rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007328rm -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 -05007329fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007330
7331
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007332fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007333{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7334$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007335if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336
7337cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007338#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007339_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007340
7341fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007342rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007343
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007344
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007345 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7346$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 -05007347if test "${ac_cv_gnu_library_2_1+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007348 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007350 cat >conftest.$ac_ext <<_ACEOF
7351/* confdefs.h. */
7352_ACEOF
7353cat confdefs.h >>conftest.$ac_ext
7354cat >>conftest.$ac_ext <<_ACEOF
7355/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356
7357#include <features.h>
7358#ifdef __GNU_LIBRARY__
7359 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7360 Lucky GNU user
7361 #endif
7362#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007363
7364_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007365if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007367 ac_cv_gnu_library_2_1=yes
7368else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369 ac_cv_gnu_library_2_1=no
7370fi
7371rm -f conftest*
7372
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373
7374
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007375fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007376{ $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7377$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007378
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007379 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007382
7383
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007384 { $as_echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7385$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007386if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007387 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007388else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007390 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007391
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007392 # Guess based on the CPU.
7393 case "$host_cpu" in
7394 alpha* | i3456786 | m68k | s390*)
7395 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7396 *)
7397 gt_cv_int_divbyzero_sigfpe="guessing no";;
7398 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007399
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007400else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007401 cat >conftest.$ac_ext <<_ACEOF
7402/* confdefs.h. */
7403_ACEOF
7404cat confdefs.h >>conftest.$ac_ext
7405cat >>conftest.$ac_ext <<_ACEOF
7406/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007407
7408#include <stdlib.h>
7409#include <signal.h>
7410
7411static void
7412#ifdef __cplusplus
7413sigfpe_handler (int sig)
7414#else
7415sigfpe_handler (sig) int sig;
7416#endif
7417{
7418 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7419 exit (sig != SIGFPE);
7420}
7421
7422int x = 1;
7423int y = 0;
7424int z;
7425int nan;
7426
7427int main ()
7428{
7429 signal (SIGFPE, sigfpe_handler);
7430/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7431#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7432 signal (SIGTRAP, sigfpe_handler);
7433#endif
7434/* Linux/SPARC yields signal SIGILL. */
7435#if defined (__sparc__) && defined (__linux__)
7436 signal (SIGILL, sigfpe_handler);
7437#endif
7438
7439 z = x / y;
7440 nan = y / y;
7441 exit (1);
7442}
7443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444_ACEOF
7445rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007446if { (ac_try="$ac_link"
7447case "(($ac_try" in
7448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7449 *) ac_try_echo=$ac_try;;
7450esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7452$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007453 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007457 { (case "(($ac_try" in
7458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459 *) ac_try_echo=$ac_try;;
7460esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007461eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7462$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007463 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007466 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007467 gt_cv_int_divbyzero_sigfpe=yes
7468else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007469 $as_echo "$as_me: program exited with status $ac_status" >&5
7470$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471sed 's/^/| /' conftest.$ac_ext >&5
7472
7473( exit $ac_status )
7474gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007475fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007476rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04007477rm -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 -04007478fi
7479
Theodore Ts'oe1052142006-10-21 21:46:47 -04007480
7481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007482fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007483{ $as_echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
7484$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007485 case "$gt_cv_int_divbyzero_sigfpe" in
7486 *yes) value=1;;
7487 *) value=0;;
7488 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489
7490cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007491#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007492_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007493
7494
7495
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007496 { $as_echo "$as_me:$LINENO: checking for unsigned long long" >&5
7497$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498if test "${ac_cv_type_unsigned_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007499 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500else
7501 cat >conftest.$ac_ext <<_ACEOF
7502/* confdefs.h. */
7503_ACEOF
7504cat confdefs.h >>conftest.$ac_ext
7505cat >>conftest.$ac_ext <<_ACEOF
7506/* end confdefs.h. */
7507unsigned long long ull = 1ULL; int i = 63;
7508int
7509main ()
7510{
7511unsigned long long ullmax = (unsigned long long) -1;
7512 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7513 ;
7514 return 0;
7515}
7516_ACEOF
7517rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007518if { (ac_try="$ac_link"
7519case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7524$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007525 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526 ac_status=$?
7527 grep -v '^ *+' conftest.er1 >conftest.err
7528 rm -f conftest.er1
7529 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007531 (exit $ac_status); } && {
7532 test -z "$ac_c_werror_flag" ||
7533 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007534 } && test -s conftest$ac_exeext && {
7535 test "$cross_compiling" = yes ||
7536 $as_test_x conftest$ac_exeext
7537 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538 ac_cv_type_unsigned_long_long=yes
7539else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007540 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541sed 's/^/| /' conftest.$ac_ext >&5
7542
Theodore Ts'oe1052142006-10-21 21:46:47 -04007543 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007545
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007546rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548 conftest$ac_exeext conftest.$ac_ext
7549fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007550{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7551$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007552 if test $ac_cv_type_unsigned_long_long = yes; then
7553
7554cat >>confdefs.h <<\_ACEOF
7555#define HAVE_UNSIGNED_LONG_LONG 1
7556_ACEOF
7557
7558 fi
7559
7560
7561
7562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007563 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 -05007564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007565 test $ac_cv_type_unsigned_long_long = yes \
7566 && ac_type='unsigned long long' \
7567 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568
7569cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007570#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571_ACEOF
7572
7573 else
7574
7575cat >>confdefs.h <<\_ACEOF
7576#define HAVE_UINTMAX_T 1
7577_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007578
7579 fi
7580
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007581
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007582 { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
7583$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584if test "${gt_cv_header_inttypes_h+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007585 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587
7588 cat >conftest.$ac_ext <<_ACEOF
7589/* confdefs.h. */
7590_ACEOF
7591cat confdefs.h >>conftest.$ac_ext
7592cat >>conftest.$ac_ext <<_ACEOF
7593/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007594#include <sys/types.h>
7595#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596int
7597main ()
7598{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600 ;
7601 return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007605if { (ac_try="$ac_compile"
7606case "(($ac_try" in
7607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7608 *) ac_try_echo=$ac_try;;
7609esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7611$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007612 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613 ac_status=$?
7614 grep -v '^ *+' conftest.er1 >conftest.err
7615 rm -f conftest.er1
7616 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007618 (exit $ac_status); } && {
7619 test -z "$ac_c_werror_flag" ||
7620 test ! -s conftest.err
7621 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007622 gt_cv_header_inttypes_h=yes
7623else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007624 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007625sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007626
Theodore Ts'oe1052142006-10-21 21:46:47 -04007627 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007629
7630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631
7632fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007633{ $as_echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
7634$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007635 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636
7637cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007638#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007640
7641 fi
7642
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007643
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007644
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007645 if test $gt_cv_header_inttypes_h = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007646 { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
7647$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648if test "${gt_cv_inttypes_pri_broken+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007649 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007650else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651
7652 cat >conftest.$ac_ext <<_ACEOF
7653/* confdefs.h. */
7654_ACEOF
7655cat confdefs.h >>conftest.$ac_ext
7656cat >>conftest.$ac_ext <<_ACEOF
7657/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007658#include <inttypes.h>
7659#ifdef PRId32
7660char *p = PRId32;
7661#endif
7662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663int
7664main ()
7665{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667 ;
7668 return 0;
7669}
7670_ACEOF
7671rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007672if { (ac_try="$ac_compile"
7673case "(($ac_try" in
7674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7675 *) ac_try_echo=$ac_try;;
7676esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7678$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007679 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 ac_status=$?
7681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007685 (exit $ac_status); } && {
7686 test -z "$ac_c_werror_flag" ||
7687 test ! -s conftest.err
7688 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007689 gt_cv_inttypes_pri_broken=no
7690else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007691 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007692sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007693
Theodore Ts'oe1052142006-10-21 21:46:47 -04007694 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007695fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007696
7697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698
7699fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007700{ $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
7701$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007702 fi
7703 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007704
7705cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007706#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007708
7709 fi
7710
7711
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007712
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007713for ac_header in stdint.h
7714do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04007716if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007717 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7718$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007719if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007720 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007722ac_res=`eval 'as_val=${'$as_ac_Header'}
7723 $as_echo "$as_val"'`
7724 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7725$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007726else
7727 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007728{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7729$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730cat >conftest.$ac_ext <<_ACEOF
7731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
7736$ac_includes_default
7737#include <$ac_header>
7738_ACEOF
7739rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740if { (ac_try="$ac_compile"
7741case "(($ac_try" in
7742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7743 *) ac_try_echo=$ac_try;;
7744esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7746$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007748 ac_status=$?
7749 grep -v '^ *+' conftest.er1 >conftest.err
7750 rm -f conftest.er1
7751 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007753 (exit $ac_status); } && {
7754 test -z "$ac_c_werror_flag" ||
7755 test ! -s conftest.err
7756 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007757 ac_header_compiler=yes
7758else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007759 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007760sed 's/^/| /' conftest.$ac_ext >&5
7761
Theodore Ts'oe1052142006-10-21 21:46:47 -04007762 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007763fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007764
7765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007766{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7767$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768
7769# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007770{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7771$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007772cat >conftest.$ac_ext <<_ACEOF
7773/* confdefs.h. */
7774_ACEOF
7775cat confdefs.h >>conftest.$ac_ext
7776cat >>conftest.$ac_ext <<_ACEOF
7777/* end confdefs.h. */
7778#include <$ac_header>
7779_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04007780if { (ac_try="$ac_cpp conftest.$ac_ext"
7781case "(($ac_try" in
7782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7783 *) ac_try_echo=$ac_try;;
7784esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7786$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007788 ac_status=$?
7789 grep -v '^ *+' conftest.er1 >conftest.err
7790 rm -f conftest.er1
7791 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007793 (exit $ac_status); } >/dev/null && {
7794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7795 test ! -s conftest.err
7796 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797 ac_header_preproc=yes
7798else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007799 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007800sed 's/^/| /' conftest.$ac_ext >&5
7801
7802 ac_header_preproc=no
7803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007805rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007806{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7807$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007808
7809# So? What about this header?
7810case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7811 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7813$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7815$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007816 ac_header_preproc=yes
7817 ;;
7818 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007819 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7820$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7821 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7822$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7824$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7826$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7827 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7828$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7830$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832 ;;
7833esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007834{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7835$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007837 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007838else
7839 eval "$as_ac_Header=\$ac_header_preproc"
7840fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007841ac_res=`eval 'as_val=${'$as_ac_Header'}
7842 $as_echo "$as_val"'`
7843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7844$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007845
7846fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007847as_val=`eval 'as_val=${'$as_ac_Header'}
7848 $as_echo "$as_val"'`
7849 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007850 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852_ACEOF
7853
7854fi
7855
7856done
7857
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007858 { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7859$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007860 result=
7861 cat >conftest.$ac_ext <<_ACEOF
7862/* confdefs.h. */
7863_ACEOF
7864cat confdefs.h >>conftest.$ac_ext
7865cat >>conftest.$ac_ext <<_ACEOF
7866/* end confdefs.h. */
7867
7868#include <limits.h>
7869#if HAVE_STDINT_H
7870#include <stdint.h>
7871#endif
7872#ifdef SIZE_MAX
7873Found it
7874#endif
7875
7876_ACEOF
7877if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "Found it" >/dev/null 2>&1; then
7879 result=yes
7880fi
7881rm -f conftest*
7882
7883 if test -z "$result"; then
7884 if test "$cross_compiling" = yes; then
7885 # Depending upon the size, compute the lo and hi bounds.
7886cat >conftest.$ac_ext <<_ACEOF
7887/* confdefs.h. */
7888_ACEOF
7889cat confdefs.h >>conftest.$ac_ext
7890cat >>conftest.$ac_ext <<_ACEOF
7891/* end confdefs.h. */
7892#include <stddef.h>
7893int
7894main ()
7895{
7896static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7897test_array [0] = 0
7898
7899 ;
7900 return 0;
7901}
7902_ACEOF
7903rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007904if { (ac_try="$ac_compile"
7905case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7910$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007911 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007912 ac_status=$?
7913 grep -v '^ *+' conftest.er1 >conftest.err
7914 rm -f conftest.er1
7915 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007917 (exit $ac_status); } && {
7918 test -z "$ac_c_werror_flag" ||
7919 test ! -s conftest.err
7920 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007921 ac_lo=0 ac_mid=0
7922 while :; do
7923 cat >conftest.$ac_ext <<_ACEOF
7924/* confdefs.h. */
7925_ACEOF
7926cat confdefs.h >>conftest.$ac_ext
7927cat >>conftest.$ac_ext <<_ACEOF
7928/* end confdefs.h. */
7929#include <stddef.h>
7930int
7931main ()
7932{
7933static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7934test_array [0] = 0
7935
7936 ;
7937 return 0;
7938}
7939_ACEOF
7940rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007941if { (ac_try="$ac_compile"
7942case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7947$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04007948 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007958 ac_hi=$ac_mid; break
7959else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007960 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007961sed 's/^/| /' conftest.$ac_ext >&5
7962
Theodore Ts'oe1052142006-10-21 21:46:47 -04007963 ac_lo=`expr $ac_mid + 1`
7964 if test $ac_lo -le $ac_mid; then
7965 ac_lo= ac_hi=
7966 break
7967 fi
7968 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007970
7971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007972 done
7973else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007974 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007975sed 's/^/| /' conftest.$ac_ext >&5
7976
Theodore Ts'oe1052142006-10-21 21:46:47 -04007977 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007978/* confdefs.h. */
7979_ACEOF
7980cat confdefs.h >>conftest.$ac_ext
7981cat >>conftest.$ac_ext <<_ACEOF
7982/* end confdefs.h. */
7983#include <stddef.h>
7984int
7985main ()
7986{
7987static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7988test_array [0] = 0
7989
7990 ;
7991 return 0;
7992}
7993_ACEOF
7994rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007995if { (ac_try="$ac_compile"
7996case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8001$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008002 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008003 ac_status=$?
8004 grep -v '^ *+' conftest.er1 >conftest.err
8005 rm -f conftest.er1
8006 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008008 (exit $ac_status); } && {
8009 test -z "$ac_c_werror_flag" ||
8010 test ! -s conftest.err
8011 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008012 ac_hi=-1 ac_mid=-1
8013 while :; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#include <stddef.h>
8021int
8022main ()
8023{
8024static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8025test_array [0] = 0
8026
8027 ;
8028 return 0;
8029}
8030_ACEOF
8031rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008032if { (ac_try="$ac_compile"
8033case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008037eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8038$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008039 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008040 ac_status=$?
8041 grep -v '^ *+' conftest.er1 >conftest.err
8042 rm -f conftest.er1
8043 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008045 (exit $ac_status); } && {
8046 test -z "$ac_c_werror_flag" ||
8047 test ! -s conftest.err
8048 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008049 ac_lo=$ac_mid; break
8050else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008051 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008052sed 's/^/| /' conftest.$ac_ext >&5
8053
Theodore Ts'oe1052142006-10-21 21:46:47 -04008054 ac_hi=`expr '(' $ac_mid ')' - 1`
8055 if test $ac_mid -le $ac_hi; then
8056 ac_lo= ac_hi=
8057 break
8058 fi
8059 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008060fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008061
8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008063 done
8064else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008065 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066sed 's/^/| /' conftest.$ac_ext >&5
8067
Theodore Ts'oe1052142006-10-21 21:46:47 -04008068 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070
8071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008072fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008073
8074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008075# Binary search between lo and hi bounds.
8076while test "x$ac_lo" != "x$ac_hi"; do
8077 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8078 cat >conftest.$ac_ext <<_ACEOF
8079/* confdefs.h. */
8080_ACEOF
8081cat confdefs.h >>conftest.$ac_ext
8082cat >>conftest.$ac_ext <<_ACEOF
8083/* end confdefs.h. */
8084#include <stddef.h>
8085int
8086main ()
8087{
8088static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8089test_array [0] = 0
8090
8091 ;
8092 return 0;
8093}
8094_ACEOF
8095rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008096if { (ac_try="$ac_compile"
8097case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8102$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008103 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008104 ac_status=$?
8105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008109 (exit $ac_status); } && {
8110 test -z "$ac_c_werror_flag" ||
8111 test ! -s conftest.err
8112 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008113 ac_hi=$ac_mid
8114else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008115 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116sed 's/^/| /' conftest.$ac_ext >&5
8117
Theodore Ts'oe1052142006-10-21 21:46:47 -04008118 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008119fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008120
8121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008122done
8123case $ac_lo in
8124?*) res_hi=$ac_lo;;
8125'') result=? ;;
8126esac
8127else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008128 cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
8134#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135static long int longval () { return ~(size_t)0 / 10; }
8136static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008137#include <stdio.h>
8138#include <stdlib.h>
8139int
8140main ()
8141{
8142
8143 FILE *f = fopen ("conftest.val", "w");
8144 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008145 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008146 if ((~(size_t)0 / 10) < 0)
8147 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008148 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008150 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008151 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152 }
8153 else
8154 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008155 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008156 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008157 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008158 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008159 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008160 /* Do not output a trailing newline, as this causes \r\n confusion
8161 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008162 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008163
8164 ;
8165 return 0;
8166}
8167_ACEOF
8168rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008169if { (ac_try="$ac_link"
8170case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008176 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008177 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008180 { (case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008186 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008189 (exit $ac_status); }; }; then
8190 res_hi=`cat conftest.val`
8191else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008192 $as_echo "$as_me: program exited with status $ac_status" >&5
8193$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196( exit $ac_status )
8197result=?
8198fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008199rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008200rm -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 -05008201fi
8202rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008203
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008204 if test "$cross_compiling" = yes; then
8205 # Depending upon the size, compute the lo and hi bounds.
8206cat >conftest.$ac_ext <<_ACEOF
8207/* confdefs.h. */
8208_ACEOF
8209cat confdefs.h >>conftest.$ac_ext
8210cat >>conftest.$ac_ext <<_ACEOF
8211/* end confdefs.h. */
8212#include <stddef.h>
8213int
8214main ()
8215{
8216static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8217test_array [0] = 0
8218
8219 ;
8220 return 0;
8221}
8222_ACEOF
8223rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008224if { (ac_try="$ac_compile"
8225case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8230$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008231 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008232 ac_status=$?
8233 grep -v '^ *+' conftest.er1 >conftest.err
8234 rm -f conftest.er1
8235 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008237 (exit $ac_status); } && {
8238 test -z "$ac_c_werror_flag" ||
8239 test ! -s conftest.err
8240 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008241 ac_lo=0 ac_mid=0
8242 while :; do
8243 cat >conftest.$ac_ext <<_ACEOF
8244/* confdefs.h. */
8245_ACEOF
8246cat confdefs.h >>conftest.$ac_ext
8247cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h. */
8249#include <stddef.h>
8250int
8251main ()
8252{
8253static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8254test_array [0] = 0
8255
8256 ;
8257 return 0;
8258}
8259_ACEOF
8260rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008261if { (ac_try="$ac_compile"
8262case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8267$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008268 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008278 ac_hi=$ac_mid; break
8279else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008280 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281sed 's/^/| /' conftest.$ac_ext >&5
8282
Theodore Ts'oe1052142006-10-21 21:46:47 -04008283 ac_lo=`expr $ac_mid + 1`
8284 if test $ac_lo -le $ac_mid; then
8285 ac_lo= ac_hi=
8286 break
8287 fi
8288 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008289fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008290
8291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008292 done
8293else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008294 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008295sed 's/^/| /' conftest.$ac_ext >&5
8296
Theodore Ts'oe1052142006-10-21 21:46:47 -04008297 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303#include <stddef.h>
8304int
8305main ()
8306{
8307static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8308test_array [0] = 0
8309
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008315if { (ac_try="$ac_compile"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8321$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008322 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008332 ac_hi=-1 ac_mid=-1
8333 while :; do
8334 cat >conftest.$ac_ext <<_ACEOF
8335/* confdefs.h. */
8336_ACEOF
8337cat confdefs.h >>conftest.$ac_ext
8338cat >>conftest.$ac_ext <<_ACEOF
8339/* end confdefs.h. */
8340#include <stddef.h>
8341int
8342main ()
8343{
8344static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8345test_array [0] = 0
8346
8347 ;
8348 return 0;
8349}
8350_ACEOF
8351rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008352if { (ac_try="$ac_compile"
8353case "(($ac_try" in
8354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8355 *) ac_try_echo=$ac_try;;
8356esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8358$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008359 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360 ac_status=$?
8361 grep -v '^ *+' conftest.er1 >conftest.err
8362 rm -f conftest.er1
8363 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008365 (exit $ac_status); } && {
8366 test -z "$ac_c_werror_flag" ||
8367 test ! -s conftest.err
8368 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369 ac_lo=$ac_mid; break
8370else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008371 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008372sed 's/^/| /' conftest.$ac_ext >&5
8373
Theodore Ts'oe1052142006-10-21 21:46:47 -04008374 ac_hi=`expr '(' $ac_mid ')' - 1`
8375 if test $ac_mid -le $ac_hi; then
8376 ac_lo= ac_hi=
8377 break
8378 fi
8379 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381
8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008383 done
8384else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008385 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008386sed 's/^/| /' conftest.$ac_ext >&5
8387
Theodore Ts'oe1052142006-10-21 21:46:47 -04008388 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008390
8391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008393
8394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008395# Binary search between lo and hi bounds.
8396while test "x$ac_lo" != "x$ac_hi"; do
8397 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8398 cat >conftest.$ac_ext <<_ACEOF
8399/* confdefs.h. */
8400_ACEOF
8401cat confdefs.h >>conftest.$ac_ext
8402cat >>conftest.$ac_ext <<_ACEOF
8403/* end confdefs.h. */
8404#include <stddef.h>
8405int
8406main ()
8407{
8408static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8409test_array [0] = 0
8410
8411 ;
8412 return 0;
8413}
8414_ACEOF
8415rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008416if { (ac_try="$ac_compile"
8417case "(($ac_try" in
8418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8419 *) ac_try_echo=$ac_try;;
8420esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8422$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008423 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008433 ac_hi=$ac_mid
8434else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008435 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008436sed 's/^/| /' conftest.$ac_ext >&5
8437
Theodore Ts'oe1052142006-10-21 21:46:47 -04008438 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008439fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008440
8441rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008442done
8443case $ac_lo in
8444?*) res_lo=$ac_lo;;
8445'') result=? ;;
8446esac
8447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448 cat >conftest.$ac_ext <<_ACEOF
8449/* confdefs.h. */
8450_ACEOF
8451cat confdefs.h >>conftest.$ac_ext
8452cat >>conftest.$ac_ext <<_ACEOF
8453/* end confdefs.h. */
8454#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008455static long int longval () { return ~(size_t)0 % 10; }
8456static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008457#include <stdio.h>
8458#include <stdlib.h>
8459int
8460main ()
8461{
8462
8463 FILE *f = fopen ("conftest.val", "w");
8464 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008465 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008466 if ((~(size_t)0 % 10) < 0)
8467 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008468 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008469 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008470 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008471 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008472 }
8473 else
8474 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008475 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008476 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008477 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008478 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008479 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008480 /* Do not output a trailing newline, as this causes \r\n confusion
8481 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008482 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008483
8484 ;
8485 return 0;
8486}
8487_ACEOF
8488rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008489if { (ac_try="$ac_link"
8490case "(($ac_try" in
8491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8493esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8495$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008496 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008499 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008500 { (case "(($ac_try" in
8501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8502 *) ac_try_echo=$ac_try;;
8503esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8505$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008506 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008507 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008509 (exit $ac_status); }; }; then
8510 res_lo=`cat conftest.val`
8511else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008512 $as_echo "$as_me: program exited with status $ac_status" >&5
8513$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008514sed 's/^/| /' conftest.$ac_ext >&5
8515
8516( exit $ac_status )
8517result=?
8518fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008519rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008520rm -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 -05008521fi
8522rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008524 if test "$cross_compiling" = yes; then
8525 # Depending upon the size, compute the lo and hi bounds.
8526cat >conftest.$ac_ext <<_ACEOF
8527/* confdefs.h. */
8528_ACEOF
8529cat confdefs.h >>conftest.$ac_ext
8530cat >>conftest.$ac_ext <<_ACEOF
8531/* end confdefs.h. */
8532#include <stddef.h>
8533int
8534main ()
8535{
8536static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
8537test_array [0] = 0
8538
8539 ;
8540 return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008544if { (ac_try="$ac_compile"
8545case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008551 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008561 ac_lo=0 ac_mid=0
8562 while :; do
8563 cat >conftest.$ac_ext <<_ACEOF
8564/* confdefs.h. */
8565_ACEOF
8566cat confdefs.h >>conftest.$ac_ext
8567cat >>conftest.$ac_ext <<_ACEOF
8568/* end confdefs.h. */
8569#include <stddef.h>
8570int
8571main ()
8572{
8573static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8574test_array [0] = 0
8575
8576 ;
8577 return 0;
8578}
8579_ACEOF
8580rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008581if { (ac_try="$ac_compile"
8582case "(($ac_try" in
8583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8584 *) ac_try_echo=$ac_try;;
8585esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008586eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8587$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008588 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008589 ac_status=$?
8590 grep -v '^ *+' conftest.er1 >conftest.err
8591 rm -f conftest.er1
8592 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008594 (exit $ac_status); } && {
8595 test -z "$ac_c_werror_flag" ||
8596 test ! -s conftest.err
8597 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008598 ac_hi=$ac_mid; break
8599else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008600 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008601sed 's/^/| /' conftest.$ac_ext >&5
8602
Theodore Ts'oe1052142006-10-21 21:46:47 -04008603 ac_lo=`expr $ac_mid + 1`
8604 if test $ac_lo -le $ac_mid; then
8605 ac_lo= ac_hi=
8606 break
8607 fi
8608 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008610
8611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612 done
8613else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008614 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008615sed 's/^/| /' conftest.$ac_ext >&5
8616
Theodore Ts'oe1052142006-10-21 21:46:47 -04008617 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618/* confdefs.h. */
8619_ACEOF
8620cat confdefs.h >>conftest.$ac_ext
8621cat >>conftest.$ac_ext <<_ACEOF
8622/* end confdefs.h. */
8623#include <stddef.h>
8624int
8625main ()
8626{
8627static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
8628test_array [0] = 0
8629
8630 ;
8631 return 0;
8632}
8633_ACEOF
8634rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008635if { (ac_try="$ac_compile"
8636case "(($ac_try" in
8637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8638 *) ac_try_echo=$ac_try;;
8639esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8641$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008642 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643 ac_status=$?
8644 grep -v '^ *+' conftest.er1 >conftest.err
8645 rm -f conftest.er1
8646 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008652 ac_hi=-1 ac_mid=-1
8653 while :; do
8654 cat >conftest.$ac_ext <<_ACEOF
8655/* confdefs.h. */
8656_ACEOF
8657cat confdefs.h >>conftest.$ac_ext
8658cat >>conftest.$ac_ext <<_ACEOF
8659/* end confdefs.h. */
8660#include <stddef.h>
8661int
8662main ()
8663{
8664static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
8665test_array [0] = 0
8666
8667 ;
8668 return 0;
8669}
8670_ACEOF
8671rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008672if { (ac_try="$ac_compile"
8673case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008677eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008679 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008684 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008689 ac_lo=$ac_mid; break
8690else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008691 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008692sed 's/^/| /' conftest.$ac_ext >&5
8693
Theodore Ts'oe1052142006-10-21 21:46:47 -04008694 ac_hi=`expr '(' $ac_mid ')' - 1`
8695 if test $ac_mid -le $ac_hi; then
8696 ac_lo= ac_hi=
8697 break
8698 fi
8699 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008701
8702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008703 done
8704else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008705 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008706sed 's/^/| /' conftest.$ac_ext >&5
8707
Theodore Ts'oe1052142006-10-21 21:46:47 -04008708 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008709fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008710
8711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008712fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008713
8714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008715# Binary search between lo and hi bounds.
8716while test "x$ac_lo" != "x$ac_hi"; do
8717 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8718 cat >conftest.$ac_ext <<_ACEOF
8719/* confdefs.h. */
8720_ACEOF
8721cat confdefs.h >>conftest.$ac_ext
8722cat >>conftest.$ac_ext <<_ACEOF
8723/* end confdefs.h. */
8724#include <stddef.h>
8725int
8726main ()
8727{
8728static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
8729test_array [0] = 0
8730
8731 ;
8732 return 0;
8733}
8734_ACEOF
8735rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008736if { (ac_try="$ac_compile"
8737case "(($ac_try" in
8738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8740esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008741eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8742$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008743 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008744 ac_status=$?
8745 grep -v '^ *+' conftest.er1 >conftest.err
8746 rm -f conftest.er1
8747 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008749 (exit $ac_status); } && {
8750 test -z "$ac_c_werror_flag" ||
8751 test ! -s conftest.err
8752 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008753 ac_hi=$ac_mid
8754else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008755 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008756sed 's/^/| /' conftest.$ac_ext >&5
8757
Theodore Ts'oe1052142006-10-21 21:46:47 -04008758 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008759fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008760
8761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008762done
8763case $ac_lo in
8764?*) fits_in_uint=$ac_lo;;
8765'') result=? ;;
8766esac
8767else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008768 cat >conftest.$ac_ext <<_ACEOF
8769/* confdefs.h. */
8770_ACEOF
8771cat confdefs.h >>conftest.$ac_ext
8772cat >>conftest.$ac_ext <<_ACEOF
8773/* end confdefs.h. */
8774#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04008775static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
8776static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008777#include <stdio.h>
8778#include <stdlib.h>
8779int
8780main ()
8781{
8782
8783 FILE *f = fopen ("conftest.val", "w");
8784 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04008785 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008786 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
8787 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008788 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008789 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008790 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008791 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792 }
8793 else
8794 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04008797 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008798 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008799 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008800 /* Do not output a trailing newline, as this causes \r\n confusion
8801 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04008802 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008803
8804 ;
8805 return 0;
8806}
8807_ACEOF
8808rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008809if { (ac_try="$ac_link"
8810case "(($ac_try" in
8811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8812 *) ac_try_echo=$ac_try;;
8813esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8815$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008816 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04008820 { (case "(($ac_try" in
8821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8822 *) ac_try_echo=$ac_try;;
8823esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8825$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008826 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008827 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008829 (exit $ac_status); }; }; then
8830 fits_in_uint=`cat conftest.val`
8831else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008832 $as_echo "$as_me: program exited with status $ac_status" >&5
8833$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834sed 's/^/| /' conftest.$ac_ext >&5
8835
8836( exit $ac_status )
8837result=?
8838fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008839rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -04008840rm -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 -05008841fi
8842rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008843
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844 if test "$fits_in_uint" = 1; then
8845 cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851#include <stddef.h>
8852 extern size_t foo;
8853 extern unsigned long foo;
8854
8855int
8856main ()
8857{
8858
8859 ;
8860 return 0;
8861}
8862_ACEOF
8863rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008864if { (ac_try="$ac_compile"
8865case "(($ac_try" in
8866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8867 *) ac_try_echo=$ac_try;;
8868esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8870$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008871 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872 ac_status=$?
8873 grep -v '^ *+' conftest.er1 >conftest.err
8874 rm -f conftest.er1
8875 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008877 (exit $ac_status); } && {
8878 test -z "$ac_c_werror_flag" ||
8879 test ! -s conftest.err
8880 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008881 fits_in_uint=0
8882else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008883 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008884sed 's/^/| /' conftest.$ac_ext >&5
8885
Theodore Ts'oe1052142006-10-21 21:46:47 -04008886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008887fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008888
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008890 fi
8891 if test -z "$result"; then
8892 if test "$fits_in_uint" = 1; then
8893 result="$res_hi$res_lo"U
8894 else
8895 result="$res_hi$res_lo"UL
8896 fi
8897 else
8898 result='~(size_t)0'
8899 fi
8900 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008901 { $as_echo "$as_me:$LINENO: result: $result" >&5
8902$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903 if test "$result" != yes; then
8904
8905cat >>confdefs.h <<_ACEOF
8906#define SIZE_MAX $result
8907_ACEOF
8908
8909 fi
8910
8911
8912
8913
8914for ac_header in stdint.h
8915do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008916as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8919$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008920if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008921 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008922fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008923ac_res=`eval 'as_val=${'$as_ac_Header'}
8924 $as_echo "$as_val"'`
8925 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8926$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008927else
8928 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008929{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8930$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008931cat >conftest.$ac_ext <<_ACEOF
8932/* confdefs.h. */
8933_ACEOF
8934cat confdefs.h >>conftest.$ac_ext
8935cat >>conftest.$ac_ext <<_ACEOF
8936/* end confdefs.h. */
8937$ac_includes_default
8938#include <$ac_header>
8939_ACEOF
8940rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008941if { (ac_try="$ac_compile"
8942case "(($ac_try" in
8943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8944 *) ac_try_echo=$ac_try;;
8945esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8947$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008948 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008958 ac_header_compiler=yes
8959else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008960 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008961sed 's/^/| /' conftest.$ac_ext >&5
8962
Theodore Ts'oe1052142006-10-21 21:46:47 -04008963 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008965
8966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008967{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8968$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008969
8970# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008971{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8972$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008973cat >conftest.$ac_ext <<_ACEOF
8974/* confdefs.h. */
8975_ACEOF
8976cat confdefs.h >>conftest.$ac_ext
8977cat >>conftest.$ac_ext <<_ACEOF
8978/* end confdefs.h. */
8979#include <$ac_header>
8980_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008981if { (ac_try="$ac_cpp conftest.$ac_ext"
8982case "(($ac_try" in
8983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8984 *) ac_try_echo=$ac_try;;
8985esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8987$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04008988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008989 ac_status=$?
8990 grep -v '^ *+' conftest.er1 >conftest.err
8991 rm -f conftest.er1
8992 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008994 (exit $ac_status); } >/dev/null && {
8995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8996 test ! -s conftest.err
8997 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008998 ac_header_preproc=yes
8999else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009000 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003 ac_header_preproc=no
9004fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009006rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009007{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9008$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009
9010# So? What about this header?
9011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9012 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9014$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9016$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009017 ac_header_preproc=yes
9018 ;;
9019 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009020 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9021$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9022 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9023$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9024 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9025$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9026 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9027$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9029$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9031$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009033 ;;
9034esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009035{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9036$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009037if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009038 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009039else
9040 eval "$as_ac_Header=\$ac_header_preproc"
9041fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009042ac_res=`eval 'as_val=${'$as_ac_Header'}
9043 $as_echo "$as_val"'`
9044 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9045$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046
9047fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009048as_val=`eval 'as_val=${'$as_ac_Header'}
9049 $as_echo "$as_val"'`
9050 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009051 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009052#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009053_ACEOF
9054
9055fi
9056
9057done
9058
9059
9060
9061 if test "X$prefix" = "XNONE"; then
9062 acl_final_prefix="$ac_default_prefix"
9063 else
9064 acl_final_prefix="$prefix"
9065 fi
9066 if test "X$exec_prefix" = "XNONE"; then
9067 acl_final_exec_prefix='${prefix}'
9068 else
9069 acl_final_exec_prefix="$exec_prefix"
9070 fi
9071 acl_save_prefix="$prefix"
9072 prefix="$acl_final_prefix"
9073 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9074 prefix="$acl_save_prefix"
9075
9076
Theodore Ts'oe1052142006-10-21 21:46:47 -04009077# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009078if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009079 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009080else
9081 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009082fi
9083
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009084# Prepare PATH_SEPARATOR.
9085# The user is always right.
9086if test "${PATH_SEPARATOR+set}" != set; then
9087 echo "#! /bin/sh" >conf$$.sh
9088 echo "exit 0" >>conf$$.sh
9089 chmod +x conf$$.sh
9090 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9091 PATH_SEPARATOR=';'
9092 else
9093 PATH_SEPARATOR=:
9094 fi
9095 rm -f conf$$.sh
9096fi
9097ac_prog=ld
9098if test "$GCC" = yes; then
9099 # Check if gcc -print-prog-name=ld gives a path.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009100 { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9101$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009102 case $host in
9103 *-*-mingw*)
9104 # gcc leaves a trailing carriage return which upsets mingw
9105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9106 *)
9107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9108 esac
9109 case $ac_prog in
9110 # Accept absolute paths.
9111 [\\/]* | [A-Za-z]:[\\/]*)
9112 re_direlt='/[^/][^/]*/\.\./'
9113 # Canonicalize the path of ld
9114 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9115 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9116 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9117 done
9118 test -z "$LD" && LD="$ac_prog"
9119 ;;
9120 "")
9121 # If it fails, then pretend we aren't using GCC.
9122 ac_prog=ld
9123 ;;
9124 *)
9125 # If it is relative, then search for the first ld in PATH.
9126 with_gnu_ld=unknown
9127 ;;
9128 esac
9129elif test "$with_gnu_ld" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009130 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
9131$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009132else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009133 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9134$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009135fi
9136if test "${acl_cv_path_LD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009137 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009138else
9139 if test -z "$LD"; then
9140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9141 for ac_dir in $PATH; do
9142 test -z "$ac_dir" && ac_dir=.
9143 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9144 acl_cv_path_LD="$ac_dir/$ac_prog"
9145 # Check to see if the program is GNU ld. I'd rather use --version,
9146 # but apparently some GNU ld's only accept -v.
9147 # Break only if it was the GNU/non-GNU ld that we prefer.
9148 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9149 *GNU* | *'with BFD'*)
9150 test "$with_gnu_ld" != no && break ;;
9151 *)
9152 test "$with_gnu_ld" != yes && break ;;
9153 esac
9154 fi
9155 done
9156 IFS="$ac_save_ifs"
9157else
9158 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9159fi
9160fi
9161
9162LD="$acl_cv_path_LD"
9163if test -n "$LD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009164 { $as_echo "$as_me:$LINENO: result: $LD" >&5
9165$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009167 { $as_echo "$as_me:$LINENO: result: no" >&5
9168$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009169fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009170test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9171$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009172 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009173{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9174$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009175if test "${acl_cv_prog_gnu_ld+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009176 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009177else
9178 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9179case `$LD -v 2>&1 </dev/null` in
9180*GNU* | *'with BFD'*)
9181 acl_cv_prog_gnu_ld=yes ;;
9182*)
9183 acl_cv_prog_gnu_ld=no ;;
9184esac
9185fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009186{ $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9187$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009188with_gnu_ld=$acl_cv_prog_gnu_ld
9189
9190
9191
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009192 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9193$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009194if test "${acl_cv_rpath+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009195 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009196else
9197
9198 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9199 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9200 . ./conftest.sh
9201 rm -f ./conftest.sh
9202 acl_cv_rpath=done
9203
9204fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009205{ $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9206$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009207 wl="$acl_cv_wl"
9208 libext="$acl_cv_libext"
9209 shlibext="$acl_cv_shlibext"
9210 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9211 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9212 hardcode_direct="$acl_cv_hardcode_direct"
9213 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009214 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009216 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009217else
9218 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009219fi
9220
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009221
9222
9223
9224
9225
9226
9227
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009228 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009230 acl_save_prefix="$prefix"
9231 prefix="$acl_final_prefix"
9232 acl_save_exec_prefix="$exec_prefix"
9233 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009234
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009235 eval additional_includedir=\"$includedir\"
9236 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009237
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009238 exec_prefix="$acl_save_exec_prefix"
9239 prefix="$acl_save_prefix"
9240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009241
Theodore Ts'oe1052142006-10-21 21:46:47 -04009242# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009243if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009244 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009245 if test "X$withval" = "Xno"; then
9246 use_additional=no
9247 else
9248 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009249
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009250 acl_save_prefix="$prefix"
9251 prefix="$acl_final_prefix"
9252 acl_save_exec_prefix="$exec_prefix"
9253 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009255 eval additional_includedir=\"$includedir\"
9256 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009258 exec_prefix="$acl_save_exec_prefix"
9259 prefix="$acl_save_prefix"
9260
9261 else
9262 additional_includedir="$withval/include"
9263 additional_libdir="$withval/lib"
9264 fi
9265 fi
9266
Theodore Ts'oe1052142006-10-21 21:46:47 -04009267fi
9268
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269 LIBICONV=
9270 LTLIBICONV=
9271 INCICONV=
9272 rpathdirs=
9273 ltrpathdirs=
9274 names_already_handled=
9275 names_next_round='iconv '
9276 while test -n "$names_next_round"; do
9277 names_this_round="$names_next_round"
9278 names_next_round=
9279 for name in $names_this_round; do
9280 already_handled=
9281 for n in $names_already_handled; do
9282 if test "$n" = "$name"; then
9283 already_handled=yes
9284 break
9285 fi
9286 done
9287 if test -z "$already_handled"; then
9288 names_already_handled="$names_already_handled $name"
9289 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9290 eval value=\"\$HAVE_LIB$uppername\"
9291 if test -n "$value"; then
9292 if test "$value" = yes; then
9293 eval value=\"\$LIB$uppername\"
9294 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9295 eval value=\"\$LTLIB$uppername\"
9296 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9297 else
9298 :
9299 fi
9300 else
9301 found_dir=
9302 found_la=
9303 found_so=
9304 found_a=
9305 if test $use_additional = yes; then
9306 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9307 found_dir="$additional_libdir"
9308 found_so="$additional_libdir/lib$name.$shlibext"
9309 if test -f "$additional_libdir/lib$name.la"; then
9310 found_la="$additional_libdir/lib$name.la"
9311 fi
9312 else
9313 if test -f "$additional_libdir/lib$name.$libext"; then
9314 found_dir="$additional_libdir"
9315 found_a="$additional_libdir/lib$name.$libext"
9316 if test -f "$additional_libdir/lib$name.la"; then
9317 found_la="$additional_libdir/lib$name.la"
9318 fi
9319 fi
9320 fi
9321 fi
9322 if test "X$found_dir" = "X"; then
9323 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325 acl_save_prefix="$prefix"
9326 prefix="$acl_final_prefix"
9327 acl_save_exec_prefix="$exec_prefix"
9328 exec_prefix="$acl_final_exec_prefix"
9329 eval x=\"$x\"
9330 exec_prefix="$acl_save_exec_prefix"
9331 prefix="$acl_save_prefix"
9332
9333 case "$x" in
9334 -L*)
9335 dir=`echo "X$x" | sed -e 's/^X-L//'`
9336 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9337 found_dir="$dir"
9338 found_so="$dir/lib$name.$shlibext"
9339 if test -f "$dir/lib$name.la"; then
9340 found_la="$dir/lib$name.la"
9341 fi
9342 else
9343 if test -f "$dir/lib$name.$libext"; then
9344 found_dir="$dir"
9345 found_a="$dir/lib$name.$libext"
9346 if test -f "$dir/lib$name.la"; then
9347 found_la="$dir/lib$name.la"
9348 fi
9349 fi
9350 fi
9351 ;;
9352 esac
9353 if test "X$found_dir" != "X"; then
9354 break
9355 fi
9356 done
9357 fi
9358 if test "X$found_dir" != "X"; then
9359 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9360 if test "X$found_so" != "X"; then
9361 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9362 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9363 else
9364 haveit=
9365 for x in $ltrpathdirs; do
9366 if test "X$x" = "X$found_dir"; then
9367 haveit=yes
9368 break
9369 fi
9370 done
9371 if test -z "$haveit"; then
9372 ltrpathdirs="$ltrpathdirs $found_dir"
9373 fi
9374 if test "$hardcode_direct" = yes; then
9375 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9376 else
9377 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9379 haveit=
9380 for x in $rpathdirs; do
9381 if test "X$x" = "X$found_dir"; then
9382 haveit=yes
9383 break
9384 fi
9385 done
9386 if test -z "$haveit"; then
9387 rpathdirs="$rpathdirs $found_dir"
9388 fi
9389 else
9390 haveit=
9391 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009392
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009393 acl_save_prefix="$prefix"
9394 prefix="$acl_final_prefix"
9395 acl_save_exec_prefix="$exec_prefix"
9396 exec_prefix="$acl_final_exec_prefix"
9397 eval x=\"$x\"
9398 exec_prefix="$acl_save_exec_prefix"
9399 prefix="$acl_save_prefix"
9400
9401 if test "X$x" = "X-L$found_dir"; then
9402 haveit=yes
9403 break
9404 fi
9405 done
9406 if test -z "$haveit"; then
9407 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9408 fi
9409 if test "$hardcode_minus_L" != no; then
9410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9411 else
9412 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9413 fi
9414 fi
9415 fi
9416 fi
9417 else
9418 if test "X$found_a" != "X"; then
9419 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9420 else
9421 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9422 fi
9423 fi
9424 additional_includedir=
9425 case "$found_dir" in
9426 */lib | */lib/)
9427 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9428 additional_includedir="$basedir/include"
9429 ;;
9430 esac
9431 if test "X$additional_includedir" != "X"; then
9432 if test "X$additional_includedir" != "X/usr/include"; then
9433 haveit=
9434 if test "X$additional_includedir" = "X/usr/local/include"; then
9435 if test -n "$GCC"; then
9436 case $host_os in
9437 linux*) haveit=yes;;
9438 esac
9439 fi
9440 fi
9441 if test -z "$haveit"; then
9442 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009443
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009444 acl_save_prefix="$prefix"
9445 prefix="$acl_final_prefix"
9446 acl_save_exec_prefix="$exec_prefix"
9447 exec_prefix="$acl_final_exec_prefix"
9448 eval x=\"$x\"
9449 exec_prefix="$acl_save_exec_prefix"
9450 prefix="$acl_save_prefix"
9451
9452 if test "X$x" = "X-I$additional_includedir"; then
9453 haveit=yes
9454 break
9455 fi
9456 done
9457 if test -z "$haveit"; then
9458 if test -d "$additional_includedir"; then
9459 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9460 fi
9461 fi
9462 fi
9463 fi
9464 fi
9465 if test -n "$found_la"; then
9466 save_libdir="$libdir"
9467 case "$found_la" in
9468 */* | *\\*) . "$found_la" ;;
9469 *) . "./$found_la" ;;
9470 esac
9471 libdir="$save_libdir"
9472 for dep in $dependency_libs; do
9473 case "$dep" in
9474 -L*)
9475 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9476 if test "X$additional_libdir" != "X/usr/lib"; then
9477 haveit=
9478 if test "X$additional_libdir" = "X/usr/local/lib"; then
9479 if test -n "$GCC"; then
9480 case $host_os in
9481 linux*) haveit=yes;;
9482 esac
9483 fi
9484 fi
9485 if test -z "$haveit"; then
9486 haveit=
9487 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009488
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009489 acl_save_prefix="$prefix"
9490 prefix="$acl_final_prefix"
9491 acl_save_exec_prefix="$exec_prefix"
9492 exec_prefix="$acl_final_exec_prefix"
9493 eval x=\"$x\"
9494 exec_prefix="$acl_save_exec_prefix"
9495 prefix="$acl_save_prefix"
9496
9497 if test "X$x" = "X-L$additional_libdir"; then
9498 haveit=yes
9499 break
9500 fi
9501 done
9502 if test -z "$haveit"; then
9503 if test -d "$additional_libdir"; then
9504 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9505 fi
9506 fi
9507 haveit=
9508 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009509
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009510 acl_save_prefix="$prefix"
9511 prefix="$acl_final_prefix"
9512 acl_save_exec_prefix="$exec_prefix"
9513 exec_prefix="$acl_final_exec_prefix"
9514 eval x=\"$x\"
9515 exec_prefix="$acl_save_exec_prefix"
9516 prefix="$acl_save_prefix"
9517
9518 if test "X$x" = "X-L$additional_libdir"; then
9519 haveit=yes
9520 break
9521 fi
9522 done
9523 if test -z "$haveit"; then
9524 if test -d "$additional_libdir"; then
9525 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9526 fi
9527 fi
9528 fi
9529 fi
9530 ;;
9531 -R*)
9532 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9533 if test "$enable_rpath" != no; then
9534 haveit=
9535 for x in $rpathdirs; do
9536 if test "X$x" = "X$dir"; then
9537 haveit=yes
9538 break
9539 fi
9540 done
9541 if test -z "$haveit"; then
9542 rpathdirs="$rpathdirs $dir"
9543 fi
9544 haveit=
9545 for x in $ltrpathdirs; do
9546 if test "X$x" = "X$dir"; then
9547 haveit=yes
9548 break
9549 fi
9550 done
9551 if test -z "$haveit"; then
9552 ltrpathdirs="$ltrpathdirs $dir"
9553 fi
9554 fi
9555 ;;
9556 -l*)
9557 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9558 ;;
9559 *.la)
9560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9561 ;;
9562 *)
9563 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9564 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9565 ;;
9566 esac
9567 done
9568 fi
9569 else
9570 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9571 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9572 fi
9573 fi
9574 fi
9575 done
9576 done
9577 if test "X$rpathdirs" != "X"; then
9578 if test -n "$hardcode_libdir_separator"; then
9579 alldirs=
9580 for found_dir in $rpathdirs; do
9581 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9582 done
9583 acl_save_libdir="$libdir"
9584 libdir="$alldirs"
9585 eval flag=\"$hardcode_libdir_flag_spec\"
9586 libdir="$acl_save_libdir"
9587 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9588 else
9589 for found_dir in $rpathdirs; do
9590 acl_save_libdir="$libdir"
9591 libdir="$found_dir"
9592 eval flag=\"$hardcode_libdir_flag_spec\"
9593 libdir="$acl_save_libdir"
9594 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9595 done
9596 fi
9597 fi
9598 if test "X$ltrpathdirs" != "X"; then
9599 for found_dir in $ltrpathdirs; do
9600 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9601 done
9602 fi
9603
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009604
9605
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009607
9608
9609
9610
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009611 { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
9612$as_echo_n "checking for ptrdiff_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613if test "${ac_cv_type_ptrdiff_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009614 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009615else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009616 ac_cv_type_ptrdiff_t=no
9617cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618/* confdefs.h. */
9619_ACEOF
9620cat confdefs.h >>conftest.$ac_ext
9621cat >>conftest.$ac_ext <<_ACEOF
9622/* end confdefs.h. */
9623$ac_includes_default
9624int
9625main ()
9626{
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009627if (sizeof (ptrdiff_t))
9628 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009629 ;
9630 return 0;
9631}
9632_ACEOF
9633rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009634if { (ac_try="$ac_compile"
9635case "(($ac_try" in
9636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9638esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9640$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009641 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 ac_status=$?
9643 grep -v '^ *+' conftest.er1 >conftest.err
9644 rm -f conftest.er1
9645 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658int
9659main ()
9660{
9661if (sizeof ((ptrdiff_t)))
9662 return 0;
9663 ;
9664 return 0;
9665}
9666_ACEOF
9667rm -f conftest.$ac_objext
9668if { (ac_try="$ac_compile"
9669case "(($ac_try" in
9670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9671 *) ac_try_echo=$ac_try;;
9672esac
9673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9674$as_echo "$ac_try_echo") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_c_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009686else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009687 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688sed 's/^/| /' conftest.$ac_ext >&5
9689
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009690 ac_cv_type_ptrdiff_t=yes
9691fi
9692
9693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694else
9695 $as_echo "$as_me: failed program was:" >&5
9696sed 's/^/| /' conftest.$ac_ext >&5
9697
9698
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009700
9701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009703{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
9704$as_echo "$ac_cv_type_ptrdiff_t" >&6; }
9705if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009706 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009707else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009708
9709cat >>confdefs.h <<\_ACEOF
9710#define ptrdiff_t long
9711_ACEOF
9712
9713
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009714fi
9715
9716
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009717
9718
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009719
9720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721
9722
9723
9724
9725
9726for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009727stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009728do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009729as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009731 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9732$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009733if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009734 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009735fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009736ac_res=`eval 'as_val=${'$as_ac_Header'}
9737 $as_echo "$as_val"'`
9738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9739$as_echo "$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009740else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009741 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009742{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9743$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009744cat >conftest.$ac_ext <<_ACEOF
9745/* confdefs.h. */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h. */
9750$ac_includes_default
9751#include <$ac_header>
9752_ACEOF
9753rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009754if { (ac_try="$ac_compile"
9755case "(($ac_try" in
9756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9757 *) ac_try_echo=$ac_try;;
9758esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9760$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009762 ac_status=$?
9763 grep -v '^ *+' conftest.er1 >conftest.err
9764 rm -f conftest.er1
9765 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009767 (exit $ac_status); } && {
9768 test -z "$ac_c_werror_flag" ||
9769 test ! -s conftest.err
9770 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009771 ac_header_compiler=yes
9772else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009773 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009774sed 's/^/| /' conftest.$ac_ext >&5
9775
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009778
9779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009780{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9781$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009782
9783# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009784{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9785$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009786cat >conftest.$ac_ext <<_ACEOF
9787/* confdefs.h. */
9788_ACEOF
9789cat confdefs.h >>conftest.$ac_ext
9790cat >>conftest.$ac_ext <<_ACEOF
9791/* end confdefs.h. */
9792#include <$ac_header>
9793_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009794if { (ac_try="$ac_cpp conftest.$ac_ext"
9795case "(($ac_try" in
9796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9798esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9800$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009802 ac_status=$?
9803 grep -v '^ *+' conftest.er1 >conftest.err
9804 rm -f conftest.er1
9805 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009807 (exit $ac_status); } >/dev/null && {
9808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9809 test ! -s conftest.err
9810 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811 ac_header_preproc=yes
9812else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009813 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009814sed 's/^/| /' conftest.$ac_ext >&5
9815
9816 ac_header_preproc=no
9817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009819rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009820{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9821$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009822
9823# So? What about this header?
9824case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9825 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009826 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9827$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9829$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009830 ac_header_preproc=yes
9831 ;;
9832 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9834$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9836$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9838$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9840$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9842$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9844$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009845
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009846 ;;
9847esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009848{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9849$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009850if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009851 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852else
9853 eval "$as_ac_Header=\$ac_header_preproc"
9854fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009855ac_res=`eval 'as_val=${'$as_ac_Header'}
9856 $as_echo "$as_val"'`
9857 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9858$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009859
9860fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009861as_val=`eval 'as_val=${'$as_ac_Header'}
9862 $as_echo "$as_val"'`
9863 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009865#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009866_ACEOF
9867
9868fi
9869
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009870done
9871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
9896mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9897strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9898__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009899do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009900as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9901{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9902$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009903if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009904 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906 cat >conftest.$ac_ext <<_ACEOF
9907/* confdefs.h. */
9908_ACEOF
9909cat confdefs.h >>conftest.$ac_ext
9910cat >>conftest.$ac_ext <<_ACEOF
9911/* end confdefs.h. */
9912/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9913 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9914#define $ac_func innocuous_$ac_func
9915
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009916/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917 which can conflict with char $ac_func (); below.
9918 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9919 <limits.h> exists even on freestanding compilers. */
9920
9921#ifdef __STDC__
9922# include <limits.h>
9923#else
9924# include <assert.h>
9925#endif
9926
9927#undef $ac_func
9928
Theodore Ts'oe1052142006-10-21 21:46:47 -04009929/* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932#ifdef __cplusplus
9933extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009935char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009936/* The GNU C library defines this for functions which it implements
9937 to always fail with ENOSYS. Some functions are actually named
9938 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009940choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009941#endif
9942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009943int
9944main ()
9945{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009946return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947 ;
9948 return 0;
9949}
9950_ACEOF
9951rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009952if { (ac_try="$ac_link"
9953case "(($ac_try" in
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9956esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009957eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04009959 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009968 } && test -s conftest$ac_exeext && {
9969 test "$cross_compiling" = yes ||
9970 $as_test_x conftest$ac_exeext
9971 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009972 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009973else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009974 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009975sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009976
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009979
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009980rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009981rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982 conftest$ac_exeext conftest.$ac_ext
9983fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009984ac_res=`eval 'as_val=${'$as_ac_var'}
9985 $as_echo "$as_val"'`
9986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9987$as_echo "$ac_res" >&6; }
9988as_val=`eval 'as_val=${'$as_ac_var'}
9989 $as_echo "$as_val"'`
9990 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009991 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009992#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993_ACEOF
9994
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009995fi
9996done
9997
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010000 { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10001$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002if test "${ac_cv_have_decl__snprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010003 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010004else
10005 cat >conftest.$ac_ext <<_ACEOF
10006/* confdefs.h. */
10007_ACEOF
10008cat confdefs.h >>conftest.$ac_ext
10009cat >>conftest.$ac_ext <<_ACEOF
10010/* end confdefs.h. */
10011#include <stdio.h>
10012int
10013main ()
10014{
10015
10016#ifndef _snprintf
10017 char *p = (char *) _snprintf;
10018#endif
10019
10020 ;
10021 return 0;
10022}
10023_ACEOF
10024rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010025if { (ac_try="$ac_compile"
10026case "(($ac_try" in
10027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10028 *) ac_try_echo=$ac_try;;
10029esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010030eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10031$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010032 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010033 ac_status=$?
10034 grep -v '^ *+' conftest.er1 >conftest.err
10035 rm -f conftest.er1
10036 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010038 (exit $ac_status); } && {
10039 test -z "$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10041 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010042 ac_cv_have_decl__snprintf=yes
10043else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010044 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010045sed 's/^/| /' conftest.$ac_ext >&5
10046
Theodore Ts'oe1052142006-10-21 21:46:47 -040010047 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010049
10050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010051fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010052{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10053$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010054 if test $ac_cv_have_decl__snprintf = yes; then
10055 gt_value=1
10056 else
10057 gt_value=0
10058 fi
10059
10060cat >>confdefs.h <<_ACEOF
10061#define HAVE_DECL__SNPRINTF $gt_value
10062_ACEOF
10063
10064
10065
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010066 { $as_echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10067$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010068if test "${ac_cv_have_decl__snwprintf+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010069 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010070else
10071 cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h. */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h. */
10077#include <stdio.h>
10078int
10079main ()
10080{
10081
10082#ifndef _snwprintf
10083 char *p = (char *) _snwprintf;
10084#endif
10085
10086 ;
10087 return 0;
10088}
10089_ACEOF
10090rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010091if { (ac_try="$ac_compile"
10092case "(($ac_try" in
10093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10094 *) ac_try_echo=$ac_try;;
10095esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10097$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010104 (exit $ac_status); } && {
10105 test -z "$ac_c_werror_flag" ||
10106 test ! -s conftest.err
10107 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010108 ac_cv_have_decl__snwprintf=yes
10109else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010110 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010111sed 's/^/| /' conftest.$ac_ext >&5
10112
Theodore Ts'oe1052142006-10-21 21:46:47 -040010113 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010115
10116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010117fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010118{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10119$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010120 if test $ac_cv_have_decl__snwprintf = yes; then
10121 gt_value=1
10122 else
10123 gt_value=0
10124 fi
10125
10126cat >>confdefs.h <<_ACEOF
10127#define HAVE_DECL__SNWPRINTF $gt_value
10128_ACEOF
10129
10130
10131
10132
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010133 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10134$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010136 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137else
10138 cat >conftest.$ac_ext <<_ACEOF
10139/* confdefs.h. */
10140_ACEOF
10141cat confdefs.h >>conftest.$ac_ext
10142cat >>conftest.$ac_ext <<_ACEOF
10143/* end confdefs.h. */
10144#include <stdio.h>
10145int
10146main ()
10147{
10148
10149#ifndef feof_unlocked
10150 char *p = (char *) feof_unlocked;
10151#endif
10152
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010158if { (ac_try="$ac_compile"
10159case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010165 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175 ac_cv_have_decl_feof_unlocked=yes
10176else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010177 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010178sed 's/^/| /' conftest.$ac_ext >&5
10179
Theodore Ts'oe1052142006-10-21 21:46:47 -040010180 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010181fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010182
10183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010185{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10186$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010187 if test $ac_cv_have_decl_feof_unlocked = yes; then
10188 gt_value=1
10189 else
10190 gt_value=0
10191 fi
10192
10193cat >>confdefs.h <<_ACEOF
10194#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10195_ACEOF
10196
10197
10198
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010199 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10200$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010202 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010203else
10204 cat >conftest.$ac_ext <<_ACEOF
10205/* confdefs.h. */
10206_ACEOF
10207cat confdefs.h >>conftest.$ac_ext
10208cat >>conftest.$ac_ext <<_ACEOF
10209/* end confdefs.h. */
10210#include <stdio.h>
10211int
10212main ()
10213{
10214
10215#ifndef fgets_unlocked
10216 char *p = (char *) fgets_unlocked;
10217#endif
10218
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10230$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010231 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010237 (exit $ac_status); } && {
10238 test -z "$ac_c_werror_flag" ||
10239 test ! -s conftest.err
10240 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010241 ac_cv_have_decl_fgets_unlocked=yes
10242else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010243 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010244sed 's/^/| /' conftest.$ac_ext >&5
10245
Theodore Ts'oe1052142006-10-21 21:46:47 -040010246 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010247fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010248
10249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010250fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010251{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10252$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010253 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10254 gt_value=1
10255 else
10256 gt_value=0
10257 fi
10258
10259cat >>confdefs.h <<_ACEOF
10260#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10261_ACEOF
10262
10263
10264
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010265 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10266$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010268 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010269else
10270 cat >conftest.$ac_ext <<_ACEOF
10271/* confdefs.h. */
10272_ACEOF
10273cat confdefs.h >>conftest.$ac_ext
10274cat >>conftest.$ac_ext <<_ACEOF
10275/* end confdefs.h. */
10276#include <stdio.h>
10277int
10278main ()
10279{
10280
10281#ifndef getc_unlocked
10282 char *p = (char *) getc_unlocked;
10283#endif
10284
10285 ;
10286 return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010290if { (ac_try="$ac_compile"
10291case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10296$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010297 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010307 ac_cv_have_decl_getc_unlocked=yes
10308else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010309 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010310sed 's/^/| /' conftest.$ac_ext >&5
10311
Theodore Ts'oe1052142006-10-21 21:46:47 -040010312 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010313fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010314
10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010316fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010317{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10318$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010319 if test $ac_cv_have_decl_getc_unlocked = yes; then
10320 gt_value=1
10321 else
10322 gt_value=0
10323 fi
10324
10325cat >>confdefs.h <<_ACEOF
10326#define HAVE_DECL_GETC_UNLOCKED $gt_value
10327_ACEOF
10328
10329
10330
10331 case $gt_cv_func_printf_posix in
10332 *yes) HAVE_POSIX_PRINTF=1 ;;
10333 *) HAVE_POSIX_PRINTF=0 ;;
10334 esac
10335
10336 if test "$ac_cv_func_asprintf" = yes; then
10337 HAVE_ASPRINTF=1
10338 else
10339 HAVE_ASPRINTF=0
10340 fi
10341
10342 if test "$ac_cv_func_snprintf" = yes; then
10343 HAVE_SNPRINTF=1
10344 else
10345 HAVE_SNPRINTF=0
10346 fi
10347
10348 if test "$ac_cv_func_wprintf" = yes; then
10349 HAVE_WPRINTF=1
10350 else
10351 HAVE_WPRINTF=0
10352 fi
10353
10354
10355
10356
10357
10358
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010359
10360 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010361
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010362 for element in $INCICONV; do
10363 haveit=
10364 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010365
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010366 acl_save_prefix="$prefix"
10367 prefix="$acl_final_prefix"
10368 acl_save_exec_prefix="$exec_prefix"
10369 exec_prefix="$acl_final_exec_prefix"
10370 eval x=\"$x\"
10371 exec_prefix="$acl_save_exec_prefix"
10372 prefix="$acl_save_prefix"
10373
10374 if test "X$x" = "X$element"; then
10375 haveit=yes
10376 break
10377 fi
10378 done
10379 if test -z "$haveit"; then
10380 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10381 fi
10382 done
10383
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010384
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010385 { $as_echo "$as_me:$LINENO: checking for iconv" >&5
10386$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387if test "${am_cv_func_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010388 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010389else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010390
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010391 am_cv_func_iconv="no, consider installing GNU libiconv"
10392 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010393 cat >conftest.$ac_ext <<_ACEOF
10394/* confdefs.h. */
10395_ACEOF
10396cat confdefs.h >>conftest.$ac_ext
10397cat >>conftest.$ac_ext <<_ACEOF
10398/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010399#include <stdlib.h>
10400#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401int
10402main ()
10403{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010404iconv_t cd = iconv_open("","");
10405 iconv(cd,NULL,NULL,NULL,NULL);
10406 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010407 ;
10408 return 0;
10409}
10410_ACEOF
10411rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010412if { (ac_try="$ac_link"
10413case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10418$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010419 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420 ac_status=$?
10421 grep -v '^ *+' conftest.er1 >conftest.err
10422 rm -f conftest.er1
10423 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010425 (exit $ac_status); } && {
10426 test -z "$ac_c_werror_flag" ||
10427 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010428 } && test -s conftest$ac_exeext && {
10429 test "$cross_compiling" = yes ||
10430 $as_test_x conftest$ac_exeext
10431 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010432 am_cv_func_iconv=yes
10433else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010434 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010435sed 's/^/| /' conftest.$ac_ext >&5
10436
Theodore Ts'oe1052142006-10-21 21:46:47 -040010437
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010439
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010440rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010442 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010443 if test "$am_cv_func_iconv" != yes; then
10444 am_save_LIBS="$LIBS"
10445 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446 cat >conftest.$ac_ext <<_ACEOF
10447/* confdefs.h. */
10448_ACEOF
10449cat confdefs.h >>conftest.$ac_ext
10450cat >>conftest.$ac_ext <<_ACEOF
10451/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010452#include <stdlib.h>
10453#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010454int
10455main ()
10456{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010457iconv_t cd = iconv_open("","");
10458 iconv(cd,NULL,NULL,NULL,NULL);
10459 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010460 ;
10461 return 0;
10462}
10463_ACEOF
10464rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010465if { (ac_try="$ac_link"
10466case "(($ac_try" in
10467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10468 *) ac_try_echo=$ac_try;;
10469esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10471$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010472 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010473 ac_status=$?
10474 grep -v '^ *+' conftest.er1 >conftest.err
10475 rm -f conftest.er1
10476 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010478 (exit $ac_status); } && {
10479 test -z "$ac_c_werror_flag" ||
10480 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010481 } && test -s conftest$ac_exeext && {
10482 test "$cross_compiling" = yes ||
10483 $as_test_x conftest$ac_exeext
10484 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010485 am_cv_lib_iconv=yes
10486 am_cv_func_iconv=yes
10487else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010488 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010489sed 's/^/| /' conftest.$ac_ext >&5
10490
Theodore Ts'oe1052142006-10-21 21:46:47 -040010491
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010492fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010493
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010494rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010495rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010496 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010497 LIBS="$am_save_LIBS"
10498 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010500fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010501{ $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10502$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010503 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504
10505cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010506#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010508
10509 fi
10510 if test "$am_cv_lib_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010511 { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10512$as_echo_n "checking how to link with libiconv... " >&6; }
10513 { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
10514$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010515 else
10516 CPPFLAGS="$am_save_CPPFLAGS"
10517 LIBICONV=
10518 LTLIBICONV=
10519 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520
10521
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010522
10523 if test "$am_cv_func_iconv" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010524 { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
10525$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010526 if test "${am_cv_proto_iconv+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010527 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010528else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529
10530 cat >conftest.$ac_ext <<_ACEOF
10531/* confdefs.h. */
10532_ACEOF
10533cat confdefs.h >>conftest.$ac_ext
10534cat >>conftest.$ac_ext <<_ACEOF
10535/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010536
10537#include <stdlib.h>
10538#include <iconv.h>
10539extern
10540#ifdef __cplusplus
10541"C"
10542#endif
10543#if defined(__STDC__) || defined(__cplusplus)
10544size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10545#else
10546size_t iconv();
10547#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010549int
10550main ()
10551{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010553 ;
10554 return 0;
10555}
10556_ACEOF
10557rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010558if { (ac_try="$ac_compile"
10559case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10564$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010565 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010566 ac_status=$?
10567 grep -v '^ *+' conftest.er1 >conftest.err
10568 rm -f conftest.er1
10569 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010571 (exit $ac_status); } && {
10572 test -z "$ac_c_werror_flag" ||
10573 test ! -s conftest.err
10574 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010575 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010576else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010577 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010578sed 's/^/| /' conftest.$ac_ext >&5
10579
Theodore Ts'oe1052142006-10-21 21:46:47 -040010580 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010581fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010582
10583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010584 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 +000010585fi
10586
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010587 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010588 { $as_echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010589 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010590$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -040010591 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010592
10593cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010594#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010596
10597 fi
10598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010599
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010600 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10601$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010602if test "${am_cv_langinfo_codeset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010603 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605 cat >conftest.$ac_ext <<_ACEOF
10606/* confdefs.h. */
10607_ACEOF
10608cat confdefs.h >>conftest.$ac_ext
10609cat >>conftest.$ac_ext <<_ACEOF
10610/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010611#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612int
10613main ()
10614{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010615char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616 ;
10617 return 0;
10618}
10619_ACEOF
10620rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010621if { (ac_try="$ac_link"
10622case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10627$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010628 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010637 } && test -s conftest$ac_exeext && {
10638 test "$cross_compiling" = yes ||
10639 $as_test_x conftest$ac_exeext
10640 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010641 am_cv_langinfo_codeset=yes
10642else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010643 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010644sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010645
Theodore Ts'oe1052142006-10-21 21:46:47 -040010646 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010647fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010648
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010649rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010650rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651 conftest$ac_exeext conftest.$ac_ext
10652
10653fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010654{ $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10655$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010656 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010657
10658cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010659#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010661
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010662 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010663
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010664 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010665
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010666 { $as_echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
10667$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668if test "${am_cv_val_LC_MESSAGES+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010669 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010670else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010671 cat >conftest.$ac_ext <<_ACEOF
10672/* confdefs.h. */
10673_ACEOF
10674cat confdefs.h >>conftest.$ac_ext
10675cat >>conftest.$ac_ext <<_ACEOF
10676/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010677#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010678int
10679main ()
10680{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010681return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682 ;
10683 return 0;
10684}
10685_ACEOF
10686rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010687if { (ac_try="$ac_link"
10688case "(($ac_try" in
10689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10690 *) ac_try_echo=$ac_try;;
10691esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10693$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010694 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695 ac_status=$?
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010699 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010700 (exit $ac_status); } && {
10701 test -z "$ac_c_werror_flag" ||
10702 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010703 } && test -s conftest$ac_exeext && {
10704 test "$cross_compiling" = yes ||
10705 $as_test_x conftest$ac_exeext
10706 }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010707 am_cv_val_LC_MESSAGES=yes
10708else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010709 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010710sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040010711
Theodore Ts'oe1052142006-10-21 21:46:47 -040010712 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010713fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010714
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010715rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010716rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717 conftest$ac_exeext conftest.$ac_ext
10718fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010719{ $as_echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
10720$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010721 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722
10723cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010725_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010726
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728
10729 fi
10730
10731 for ac_prog in bison
10732do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10736$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737if test "${ac_cv_prog_INTLBISON+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010738 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010739else
10740 if test -n "$INTLBISON"; then
10741 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
10742else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10744for as_dir in $PATH
10745do
10746 IFS=$as_save_IFS
10747 test -z "$as_dir" && as_dir=.
10748 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010749 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 -050010750 ac_cv_prog_INTLBISON="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010751 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752 break 2
10753 fi
10754done
10755done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010756IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010758fi
10759fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010760INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761if test -n "$INTLBISON"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010762 { $as_echo "$as_me:$LINENO: result: $INTLBISON" >&5
10763$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010765 { $as_echo "$as_me:$LINENO: result: no" >&5
10766$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010767fi
10768
Theodore Ts'oe1052142006-10-21 21:46:47 -040010769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010771done
10772
10773 if test -z "$INTLBISON"; then
10774 ac_verc_fail=yes
10775 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776 { $as_echo "$as_me:$LINENO: checking version of bison" >&5
10777$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010778 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
10779 case $ac_prog_version in
10780 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
10781 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
10782 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
10783 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
10784 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010785 { $as_echo "$as_me:$LINENO: result: $ac_prog_version" >&5
10786$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010787 fi
10788 if test $ac_verc_fail = yes; then
10789 INTLBISON=:
10790 fi
10791
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010792
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010793
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010794
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010795
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797
10798
10799
10800
10801
10802
10803
10804
10805
10806
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010807 { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
10808$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040010809 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010810if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010812else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010813 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -040010814fi
10815
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010816 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
10817$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010818
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010819
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820
10821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010823 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010825 LIBINTL=
10826 LTLIBINTL=
10827 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010828
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010829 if test "$USE_NLS" = "yes"; then
10830 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010832 { $as_echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
10833$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010834
Theodore Ts'oe1052142006-10-21 21:46:47 -040010835# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010836if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010837 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010838else
10839 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840fi
10841
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010842 { $as_echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
10843$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010844
10845 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10846 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010847
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010848
10849
10850
10851
10852
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010853 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
10854$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010855if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010856 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010857else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010858 cat >conftest.$ac_ext <<_ACEOF
10859/* confdefs.h. */
10860_ACEOF
10861cat confdefs.h >>conftest.$ac_ext
10862cat >>conftest.$ac_ext <<_ACEOF
10863/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010864#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010865extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010866extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010867int
10868main ()
10869{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010870bindtextdomain ("", "");
10871return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010872 ;
10873 return 0;
10874}
10875_ACEOF
10876rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010877if { (ac_try="$ac_link"
10878case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10881esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10883$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040010884 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010885 ac_status=$?
10886 grep -v '^ *+' conftest.er1 >conftest.err
10887 rm -f conftest.er1
10888 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010890 (exit $ac_status); } && {
10891 test -z "$ac_c_werror_flag" ||
10892 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010893 } && test -s conftest$ac_exeext && {
10894 test "$cross_compiling" = yes ||
10895 $as_test_x conftest$ac_exeext
10896 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010897 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010898else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010899 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010900sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010901
Theodore Ts'oe1052142006-10-21 21:46:47 -040010902 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010904
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010905rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010907 conftest$ac_exeext conftest.$ac_ext
10908fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010909{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
10910$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010911
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010912 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010913
10914
10915
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010916 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010917
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010918 acl_save_prefix="$prefix"
10919 prefix="$acl_final_prefix"
10920 acl_save_exec_prefix="$exec_prefix"
10921 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010922
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010923 eval additional_includedir=\"$includedir\"
10924 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010925
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010926 exec_prefix="$acl_save_exec_prefix"
10927 prefix="$acl_save_prefix"
10928
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010929
Theodore Ts'oe1052142006-10-21 21:46:47 -040010930# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010931if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010932 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010933 if test "X$withval" = "Xno"; then
10934 use_additional=no
10935 else
10936 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010937
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010938 acl_save_prefix="$prefix"
10939 prefix="$acl_final_prefix"
10940 acl_save_exec_prefix="$exec_prefix"
10941 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010942
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010943 eval additional_includedir=\"$includedir\"
10944 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010945
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010946 exec_prefix="$acl_save_exec_prefix"
10947 prefix="$acl_save_prefix"
10948
10949 else
10950 additional_includedir="$withval/include"
10951 additional_libdir="$withval/lib"
10952 fi
10953 fi
10954
Theodore Ts'oe1052142006-10-21 21:46:47 -040010955fi
10956
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957 LIBINTL=
10958 LTLIBINTL=
10959 INCINTL=
10960 rpathdirs=
10961 ltrpathdirs=
10962 names_already_handled=
10963 names_next_round='intl '
10964 while test -n "$names_next_round"; do
10965 names_this_round="$names_next_round"
10966 names_next_round=
10967 for name in $names_this_round; do
10968 already_handled=
10969 for n in $names_already_handled; do
10970 if test "$n" = "$name"; then
10971 already_handled=yes
10972 break
10973 fi
10974 done
10975 if test -z "$already_handled"; then
10976 names_already_handled="$names_already_handled $name"
10977 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10978 eval value=\"\$HAVE_LIB$uppername\"
10979 if test -n "$value"; then
10980 if test "$value" = yes; then
10981 eval value=\"\$LIB$uppername\"
10982 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10983 eval value=\"\$LTLIB$uppername\"
10984 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10985 else
10986 :
10987 fi
10988 else
10989 found_dir=
10990 found_la=
10991 found_so=
10992 found_a=
10993 if test $use_additional = yes; then
10994 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10995 found_dir="$additional_libdir"
10996 found_so="$additional_libdir/lib$name.$shlibext"
10997 if test -f "$additional_libdir/lib$name.la"; then
10998 found_la="$additional_libdir/lib$name.la"
10999 fi
11000 else
11001 if test -f "$additional_libdir/lib$name.$libext"; then
11002 found_dir="$additional_libdir"
11003 found_a="$additional_libdir/lib$name.$libext"
11004 if test -f "$additional_libdir/lib$name.la"; then
11005 found_la="$additional_libdir/lib$name.la"
11006 fi
11007 fi
11008 fi
11009 fi
11010 if test "X$found_dir" = "X"; then
11011 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011012
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011013 acl_save_prefix="$prefix"
11014 prefix="$acl_final_prefix"
11015 acl_save_exec_prefix="$exec_prefix"
11016 exec_prefix="$acl_final_exec_prefix"
11017 eval x=\"$x\"
11018 exec_prefix="$acl_save_exec_prefix"
11019 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011020
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011021 case "$x" in
11022 -L*)
11023 dir=`echo "X$x" | sed -e 's/^X-L//'`
11024 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11025 found_dir="$dir"
11026 found_so="$dir/lib$name.$shlibext"
11027 if test -f "$dir/lib$name.la"; then
11028 found_la="$dir/lib$name.la"
11029 fi
11030 else
11031 if test -f "$dir/lib$name.$libext"; then
11032 found_dir="$dir"
11033 found_a="$dir/lib$name.$libext"
11034 if test -f "$dir/lib$name.la"; then
11035 found_la="$dir/lib$name.la"
11036 fi
11037 fi
11038 fi
11039 ;;
11040 esac
11041 if test "X$found_dir" != "X"; then
11042 break
11043 fi
11044 done
11045 fi
11046 if test "X$found_dir" != "X"; then
11047 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11048 if test "X$found_so" != "X"; then
11049 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11050 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11051 else
11052 haveit=
11053 for x in $ltrpathdirs; do
11054 if test "X$x" = "X$found_dir"; then
11055 haveit=yes
11056 break
11057 fi
11058 done
11059 if test -z "$haveit"; then
11060 ltrpathdirs="$ltrpathdirs $found_dir"
11061 fi
11062 if test "$hardcode_direct" = yes; then
11063 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11064 else
11065 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11067 haveit=
11068 for x in $rpathdirs; do
11069 if test "X$x" = "X$found_dir"; then
11070 haveit=yes
11071 break
11072 fi
11073 done
11074 if test -z "$haveit"; then
11075 rpathdirs="$rpathdirs $found_dir"
11076 fi
11077 else
11078 haveit=
11079 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011080
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011081 acl_save_prefix="$prefix"
11082 prefix="$acl_final_prefix"
11083 acl_save_exec_prefix="$exec_prefix"
11084 exec_prefix="$acl_final_exec_prefix"
11085 eval x=\"$x\"
11086 exec_prefix="$acl_save_exec_prefix"
11087 prefix="$acl_save_prefix"
11088
11089 if test "X$x" = "X-L$found_dir"; then
11090 haveit=yes
11091 break
11092 fi
11093 done
11094 if test -z "$haveit"; then
11095 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11096 fi
11097 if test "$hardcode_minus_L" != no; then
11098 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11099 else
11100 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11101 fi
11102 fi
11103 fi
11104 fi
11105 else
11106 if test "X$found_a" != "X"; then
11107 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11108 else
11109 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11110 fi
11111 fi
11112 additional_includedir=
11113 case "$found_dir" in
11114 */lib | */lib/)
11115 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11116 additional_includedir="$basedir/include"
11117 ;;
11118 esac
11119 if test "X$additional_includedir" != "X"; then
11120 if test "X$additional_includedir" != "X/usr/include"; then
11121 haveit=
11122 if test "X$additional_includedir" = "X/usr/local/include"; then
11123 if test -n "$GCC"; then
11124 case $host_os in
11125 linux*) haveit=yes;;
11126 esac
11127 fi
11128 fi
11129 if test -z "$haveit"; then
11130 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011131
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011132 acl_save_prefix="$prefix"
11133 prefix="$acl_final_prefix"
11134 acl_save_exec_prefix="$exec_prefix"
11135 exec_prefix="$acl_final_exec_prefix"
11136 eval x=\"$x\"
11137 exec_prefix="$acl_save_exec_prefix"
11138 prefix="$acl_save_prefix"
11139
11140 if test "X$x" = "X-I$additional_includedir"; then
11141 haveit=yes
11142 break
11143 fi
11144 done
11145 if test -z "$haveit"; then
11146 if test -d "$additional_includedir"; then
11147 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11148 fi
11149 fi
11150 fi
11151 fi
11152 fi
11153 if test -n "$found_la"; then
11154 save_libdir="$libdir"
11155 case "$found_la" in
11156 */* | *\\*) . "$found_la" ;;
11157 *) . "./$found_la" ;;
11158 esac
11159 libdir="$save_libdir"
11160 for dep in $dependency_libs; do
11161 case "$dep" in
11162 -L*)
11163 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11164 if test "X$additional_libdir" != "X/usr/lib"; then
11165 haveit=
11166 if test "X$additional_libdir" = "X/usr/local/lib"; then
11167 if test -n "$GCC"; then
11168 case $host_os in
11169 linux*) haveit=yes;;
11170 esac
11171 fi
11172 fi
11173 if test -z "$haveit"; then
11174 haveit=
11175 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011177 acl_save_prefix="$prefix"
11178 prefix="$acl_final_prefix"
11179 acl_save_exec_prefix="$exec_prefix"
11180 exec_prefix="$acl_final_exec_prefix"
11181 eval x=\"$x\"
11182 exec_prefix="$acl_save_exec_prefix"
11183 prefix="$acl_save_prefix"
11184
11185 if test "X$x" = "X-L$additional_libdir"; then
11186 haveit=yes
11187 break
11188 fi
11189 done
11190 if test -z "$haveit"; then
11191 if test -d "$additional_libdir"; then
11192 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11193 fi
11194 fi
11195 haveit=
11196 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011197
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011198 acl_save_prefix="$prefix"
11199 prefix="$acl_final_prefix"
11200 acl_save_exec_prefix="$exec_prefix"
11201 exec_prefix="$acl_final_exec_prefix"
11202 eval x=\"$x\"
11203 exec_prefix="$acl_save_exec_prefix"
11204 prefix="$acl_save_prefix"
11205
11206 if test "X$x" = "X-L$additional_libdir"; then
11207 haveit=yes
11208 break
11209 fi
11210 done
11211 if test -z "$haveit"; then
11212 if test -d "$additional_libdir"; then
11213 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11214 fi
11215 fi
11216 fi
11217 fi
11218 ;;
11219 -R*)
11220 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11221 if test "$enable_rpath" != no; then
11222 haveit=
11223 for x in $rpathdirs; do
11224 if test "X$x" = "X$dir"; then
11225 haveit=yes
11226 break
11227 fi
11228 done
11229 if test -z "$haveit"; then
11230 rpathdirs="$rpathdirs $dir"
11231 fi
11232 haveit=
11233 for x in $ltrpathdirs; do
11234 if test "X$x" = "X$dir"; then
11235 haveit=yes
11236 break
11237 fi
11238 done
11239 if test -z "$haveit"; then
11240 ltrpathdirs="$ltrpathdirs $dir"
11241 fi
11242 fi
11243 ;;
11244 -l*)
11245 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11246 ;;
11247 *.la)
11248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11249 ;;
11250 *)
11251 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11252 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11253 ;;
11254 esac
11255 done
11256 fi
11257 else
11258 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11260 fi
11261 fi
11262 fi
11263 done
11264 done
11265 if test "X$rpathdirs" != "X"; then
11266 if test -n "$hardcode_libdir_separator"; then
11267 alldirs=
11268 for found_dir in $rpathdirs; do
11269 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11270 done
11271 acl_save_libdir="$libdir"
11272 libdir="$alldirs"
11273 eval flag=\"$hardcode_libdir_flag_spec\"
11274 libdir="$acl_save_libdir"
11275 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11276 else
11277 for found_dir in $rpathdirs; do
11278 acl_save_libdir="$libdir"
11279 libdir="$found_dir"
11280 eval flag=\"$hardcode_libdir_flag_spec\"
11281 libdir="$acl_save_libdir"
11282 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11283 done
11284 fi
11285 fi
11286 if test "X$ltrpathdirs" != "X"; then
11287 for found_dir in $ltrpathdirs; do
11288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11289 done
11290 fi
11291
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011292 { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11293$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011294if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011295 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011296else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011297 gt_save_CPPFLAGS="$CPPFLAGS"
11298 CPPFLAGS="$CPPFLAGS $INCINTL"
11299 gt_save_LIBS="$LIBS"
11300 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301 cat >conftest.$ac_ext <<_ACEOF
11302/* confdefs.h. */
11303_ACEOF
11304cat confdefs.h >>conftest.$ac_ext
11305cat >>conftest.$ac_ext <<_ACEOF
11306/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011307#include <libintl.h>
11308extern int _nl_msg_cat_cntr;
11309extern
11310#ifdef __cplusplus
11311"C"
11312#endif
11313const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011314int
11315main ()
11316{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011317bindtextdomain ("", "");
11318return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319 ;
11320 return 0;
11321}
11322_ACEOF
11323rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011324if { (ac_try="$ac_link"
11325case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011331 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011340 } && test -s conftest$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest$ac_exeext
11343 }; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011344 gt_cv_func_gnugettext1_libintl=yes
11345else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011346 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347sed 's/^/| /' conftest.$ac_ext >&5
11348
Theodore Ts'oe1052142006-10-21 21:46:47 -040011349 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011351
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011352rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011354 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011355 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11356 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357 cat >conftest.$ac_ext <<_ACEOF
11358/* confdefs.h. */
11359_ACEOF
11360cat confdefs.h >>conftest.$ac_ext
11361cat >>conftest.$ac_ext <<_ACEOF
11362/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011363#include <libintl.h>
11364extern int _nl_msg_cat_cntr;
11365extern
11366#ifdef __cplusplus
11367"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011368#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011369const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370int
11371main ()
11372{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011373bindtextdomain ("", "");
11374return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375 ;
11376 return 0;
11377}
11378_ACEOF
11379rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011380if { (ac_try="$ac_link"
11381case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011385eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11386$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011387 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 ac_status=$?
11389 grep -v '^ *+' conftest.er1 >conftest.err
11390 rm -f conftest.er1
11391 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011393 (exit $ac_status); } && {
11394 test -z "$ac_c_werror_flag" ||
11395 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011396 } && test -s conftest$ac_exeext && {
11397 test "$cross_compiling" = yes ||
11398 $as_test_x conftest$ac_exeext
11399 }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400 LIBINTL="$LIBINTL $LIBICONV"
11401 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11402 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011403
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011404else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011405 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406sed 's/^/| /' conftest.$ac_ext >&5
11407
Theodore Ts'oe1052142006-10-21 21:46:47 -040011408
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011409fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011410
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011411rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011412rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011414 fi
11415 CPPFLAGS="$gt_save_CPPFLAGS"
11416 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011417fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011418{ $as_echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11419$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011420 fi
11421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011422 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11423 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424 && test "$PACKAGE" != gettext-runtime \
11425 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011426 gt_use_preinstalled_gnugettext=yes
11427 else
11428 LIBINTL=
11429 LTLIBINTL=
11430 INCINTL=
11431 fi
11432
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011434 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11435 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011436 fi
11437 fi
11438
11439 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011440 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011441 USE_INCLUDED_LIBINTL=yes
11442 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11443 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11444 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011445 fi
11446
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011447 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11448 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11449 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011450 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011451
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011453 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11454 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455
11456cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011457#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011459
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011460 else
11461 USE_NLS=no
11462 fi
11463 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011464
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011465 { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
11466$as_echo_n "checking whether to use NLS... " >&6; }
11467 { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
11468$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469 if test "$USE_NLS" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011470 { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11471$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11473 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11474 gt_source="external libintl"
11475 else
11476 gt_source="libc"
11477 fi
11478 else
11479 gt_source="included intl directory"
11480 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011481 { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
11482$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483 fi
11484
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011485 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011486
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011487 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11488 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011489 { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
11490$as_echo_n "checking how to link with libintl... " >&6; }
11491 { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
11492$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011493
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011494 for element in $INCINTL; do
11495 haveit=
11496 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011498 acl_save_prefix="$prefix"
11499 prefix="$acl_final_prefix"
11500 acl_save_exec_prefix="$exec_prefix"
11501 exec_prefix="$acl_final_exec_prefix"
11502 eval x=\"$x\"
11503 exec_prefix="$acl_save_exec_prefix"
11504 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011505
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011506 if test "X$x" = "X$element"; then
11507 haveit=yes
11508 break
11509 fi
11510 done
11511 if test -z "$haveit"; then
11512 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11513 fi
11514 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011515
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011516 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011517
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011519cat >>confdefs.h <<\_ACEOF
11520#define HAVE_GETTEXT 1
11521_ACEOF
11522
11523
11524cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011525#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011526_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011527
11528 fi
11529
11530 POSUB=po
11531 fi
11532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533
11534 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011535 BUILD_INCLUDED_LIBINTL=yes
11536 fi
11537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011538
11539
11540
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011541
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011542 nls_cv_header_intl=
11543 nls_cv_header_libgt=
11544
11545 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011546
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011547
11548 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011549
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011550
11551 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552
11553
11554 if test "$USE_INCLUDED_LIBINTL" = yes; then
11555 INTLOBJS="\$(GETTOBJS)"
11556 fi
11557
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011558
11559 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560
11561
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011562
11563 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011564
11565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566
11567
11568
11569
11570
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011571{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11572$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11573set x ${MAKE-make}
11574ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011576 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011577else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011578 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011579SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011580all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011581 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011582_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011583# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011584case `${MAKE-make} -f conftest.make 2>/dev/null` in
11585 *@@@%%%=?*=@@@%%%*)
11586 eval ac_cv_prog_make_${ac_make}_set=yes;;
11587 *)
11588 eval ac_cv_prog_make_${ac_make}_set=no;;
11589esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011590rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011591fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011593 { $as_echo "$as_me:$LINENO: result: yes" >&5
11594$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595 SET_MAKE=
11596else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011597 { $as_echo "$as_me:$LINENO: result: no" >&5
11598$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599 SET_MAKE="MAKE=${MAKE-make}"
11600fi
11601
11602# Extract the first word of "ln", so it can be a program name with args.
11603set dummy ln; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11605$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011606if test "${ac_cv_path_LN+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 case $LN in
11610 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011611 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11612 ;;
11613 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11615for as_dir in $PATH
11616do
11617 IFS=$as_save_IFS
11618 test -z "$as_dir" && as_dir=.
11619 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011620 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 -050011621 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011622 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011623 break 2
11624 fi
11625done
11626done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011627IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011628
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11630 ;;
11631esac
11632fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011633LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011634if test -n "$LN"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011635 { $as_echo "$as_me:$LINENO: result: $LN" >&5
11636$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011637else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011638 { $as_echo "$as_me:$LINENO: result: no" >&5
11639$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011640fi
11641
Theodore Ts'oe1052142006-10-21 21:46:47 -040011642
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011643{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
11644$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011645LN_S=$as_ln_s
11646if test "$LN_S" = "ln -s"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647 { $as_echo "$as_me:$LINENO: result: yes" >&5
11648$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011649else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011650 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11651$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011652fi
11653
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011654# Extract the first word of "mv", so it can be a program name with args.
11655set dummy mv; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011656{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11657$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658if test "${ac_cv_path_MV+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011659 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011660else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011661 case $MV in
11662 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011663 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11664 ;;
11665 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $PATH
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011672 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 -050011673 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011674 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011675 break 2
11676 fi
11677done
11678done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011681 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11682 ;;
11683esac
11684fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686if test -n "$MV"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011687 { $as_echo "$as_me:$LINENO: result: $MV" >&5
11688$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690 { $as_echo "$as_me:$LINENO: result: no" >&5
11691$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692fi
11693
Theodore Ts'oe1052142006-10-21 21:46:47 -040011694
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011695# Extract the first word of "cp", so it can be a program name with args.
11696set dummy cp; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011697{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11698$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699if test "${ac_cv_path_CP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011700 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011701else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702 case $CP in
11703 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011704 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11705 ;;
11706 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708for as_dir in $PATH
11709do
11710 IFS=$as_save_IFS
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011713 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 -050011714 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011716 break 2
11717 fi
11718done
11719done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011722 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11723 ;;
11724esac
11725fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011726CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011727if test -n "$CP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011728 { $as_echo "$as_me:$LINENO: result: $CP" >&5
11729$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011731 { $as_echo "$as_me:$LINENO: result: no" >&5
11732$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733fi
11734
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011736# Extract the first word of "rm", so it can be a program name with args.
11737set dummy rm; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011738{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11739$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740if test "${ac_cv_path_RM+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011741 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011742else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743 case $RM in
11744 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011745 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11746 ;;
11747 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749for as_dir in $PATH
11750do
11751 IFS=$as_save_IFS
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011754 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 -050011755 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011756 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011757 break 2
11758 fi
11759done
11760done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011761IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011762
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011763 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11764 ;;
11765esac
11766fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011767RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011768if test -n "$RM"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011769 { $as_echo "$as_me:$LINENO: result: $RM" >&5
11770$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011771else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011772 { $as_echo "$as_me:$LINENO: result: no" >&5
11773$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011774fi
11775
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011777# Extract the first word of "chmod", so it can be a program name with args.
11778set dummy chmod; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011779{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11780$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781if test "${ac_cv_path_CHMOD+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011782 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011783else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011784 case $CHMOD in
11785 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011786 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11787 ;;
11788 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790for as_dir in $PATH
11791do
11792 IFS=$as_save_IFS
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011795 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 -050011796 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011798 break 2
11799 fi
11800done
11801done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011802IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011803
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011804 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11805 ;;
11806esac
11807fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011808CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011809if test -n "$CHMOD"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810 { $as_echo "$as_me:$LINENO: result: $CHMOD" >&5
11811$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011812else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011813 { $as_echo "$as_me:$LINENO: result: no" >&5
11814$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011815fi
11816
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817
Theodore Ts'o32237012005-01-17 19:13:39 -050011818for ac_prog in gawk mawk nawk awk
11819do
11820 # Extract the first word of "$ac_prog", so it can be a program name with args.
11821set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011822{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11823$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050011824if test "${ac_cv_prog_AWK+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011825 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011826else
Theodore Ts'o32237012005-01-17 19:13:39 -050011827 if test -n "$AWK"; then
11828 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11829else
11830as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011831for as_dir in $PATH
11832do
11833 IFS=$as_save_IFS
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011836 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 -050011837 ac_cv_prog_AWK="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011838 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011839 break 2
11840 fi
11841done
11842done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011843IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011844
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011845fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011846fi
11847AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011848if test -n "$AWK"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011849 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
11850$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011851else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011852 { $as_echo "$as_me:$LINENO: result: no" >&5
11853$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011854fi
11855
Theodore Ts'oe1052142006-10-21 21:46:47 -040011856
Theodore Ts'o32237012005-01-17 19:13:39 -050011857 test -n "$AWK" && break
11858done
11859
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011860{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
11861$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862if test "${ac_cv_path_EGREP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011863 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011864else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11866 then ac_cv_path_EGREP="$GREP -E"
11867 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011868 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011869 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870 # Loop through the user's path and test for each of PROGNAME-LIST
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011872for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11873do
11874 IFS=$as_save_IFS
11875 test -z "$as_dir" && as_dir=.
11876 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
11879 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
11880# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011881 # Check for GNU $ac_path_EGREP
11882case `"$ac_path_EGREP" --version 2>&1` in
11883*GNU*)
11884 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11885*)
11886 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011887 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011888 while :
11889 do
11890 cat "conftest.in" "conftest.in" >"conftest.tmp"
11891 mv "conftest.tmp" "conftest.in"
11892 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011893 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011894 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11896 ac_count=`expr $ac_count + 1`
11897 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11898 # Best one so far, save it but keep looking for a better one
11899 ac_cv_path_EGREP="$ac_path_EGREP"
11900 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011901 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011902 # 10*(2^10) chars as input seems more than enough
11903 test $ac_count -gt 10 && break
11904 done
11905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11906esac
11907
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011908 $ac_path_EGREP_found && break 3
11909 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910 done
11911done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011912IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011913 if test -z "$ac_cv_path_EGREP"; then
11914 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
11915$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 -040011916 { (exit 1); exit 1; }; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011918else
11919 ac_cv_path_EGREP=$EGREP
11920fi
11921
Theodore Ts'oe1052142006-10-21 21:46:47 -040011922 fi
11923fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011924{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11925$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011926 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011927
11928
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011929# Extract the first word of "sed", so it can be a program name with args.
11930set dummy sed; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11932$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933if test "${ac_cv_path_SED+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011934 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011935else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 case $SED in
11937 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011938 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11939 ;;
11940 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11942for as_dir in $PATH
11943do
11944 IFS=$as_save_IFS
11945 test -z "$as_dir" && as_dir=.
11946 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011947 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 -050011948 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011950 break 2
11951 fi
11952done
11953done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011956 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11957 ;;
11958esac
11959fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011961if test -n "$SED"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011962 { $as_echo "$as_me:$LINENO: result: $SED" >&5
11963$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011964else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965 { $as_echo "$as_me:$LINENO: result: no" >&5
11966$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011967fi
11968
Theodore Ts'oe1052142006-10-21 21:46:47 -040011969
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011970# Extract the first word of "perl", so it can be a program name with args.
11971set dummy perl; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11973$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974if test "${ac_cv_path_PERL+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011975 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011976else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 case $PERL in
11978 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011979 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11980 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011981 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983for as_dir in $PATH
11984do
11985 IFS=$as_save_IFS
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011988 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 -050011989 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991 break 2
11992 fi
11993done
11994done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011997 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11998 ;;
11999esac
12000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012002if test -n "$PERL"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12004$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012005else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012006 { $as_echo "$as_me:$LINENO: result: no" >&5
12007$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000012008fi
12009
Theodore Ts'oe1052142006-10-21 21:46:47 -040012010
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012011# Extract the first word of "ldconfig", so it can be a program name with args.
12012set dummy ldconfig; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12014$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015if test "${ac_cv_path_LDCONFIG+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012016 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012017else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018 case $LDCONFIG in
12019 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012020 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12021 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012022 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012029 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 -050012030 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032 break 2
12033 fi
12034done
12035done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012036IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012038 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12039 ;;
12040esac
12041fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012043if test -n "$LDCONFIG"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
12045$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012046else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012047 { $as_echo "$as_me:$LINENO: result: no" >&5
12048$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012049fi
12050
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052if test -n "$ac_tool_prefix"; then
12053 # 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 +000012054set dummy ${ac_tool_prefix}ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012055{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12056$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057if test "${ac_cv_prog_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059else
12060 if test -n "$AR"; then
12061 ac_cv_prog_AR="$AR" # Let the user override the test.
12062else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070 ac_cv_prog_AR="${ac_tool_prefix}ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012071 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012072 break 2
12073 fi
12074done
12075done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012076IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012077
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012078fi
12079fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012081if test -n "$AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012082 { $as_echo "$as_me:$LINENO: result: $AR" >&5
12083$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012084else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012085 { $as_echo "$as_me:$LINENO: result: no" >&5
12086$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012087fi
12088
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012092 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012093 # Extract the first word of "ar", so it can be a program name with args.
12094set dummy ar; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12096$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012098 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100 if test -n "$ac_ct_AR"; then
12101 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104for as_dir in $PATH
12105do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110 ac_cv_prog_ac_ct_AR="ar"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112 break 2
12113 fi
12114done
12115done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118fi
12119fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012120ac_ct_AR=$ac_cv_prog_ac_ct_AR
12121if test -n "$ac_ct_AR"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
12123$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012125 { $as_echo "$as_me:$LINENO: result: no" >&5
12126$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127fi
12128
Theodore Ts'oe1052142006-10-21 21:46:47 -040012129 if test "x$ac_ct_AR" = x; then
12130 AR="ar"
12131 else
12132 case $cross_compiling:$ac_tool_warned in
12133yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012134{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12135$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012136ac_tool_warned=yes ;;
12137esac
12138 AR=$ac_ct_AR
12139 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012142fi
12143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144if test -n "$ac_tool_prefix"; then
12145 # 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 +000012146set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012147{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12148$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149if test "${ac_cv_prog_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012150 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012151else
12152 if test -n "$RANLIB"; then
12153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12154else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012161 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 -050012162 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012164 break 2
12165 fi
12166done
12167done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012169
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012170fi
12171fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173if test -n "$RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
12175$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012176else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177 { $as_echo "$as_me:$LINENO: result: no" >&5
12178$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012179fi
12180
Theodore Ts'oe1052142006-10-21 21:46:47 -040012181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012185 # Extract the first word of "ranlib", so it can be a program name with args.
12186set dummy ranlib; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12188$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012190 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192 if test -n "$ac_ct_RANLIB"; then
12193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012194else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196for as_dir in $PATH
12197do
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202 ac_cv_prog_ac_ct_RANLIB="ranlib"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012204 break 2
12205 fi
12206done
12207done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012210fi
12211fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012212ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12213if test -n "$ac_ct_RANLIB"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012214 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
12215$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012217 { $as_echo "$as_me:$LINENO: result: no" >&5
12218$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012219fi
12220
Theodore Ts'oe1052142006-10-21 21:46:47 -040012221 if test "x$ac_ct_RANLIB" = x; then
12222 RANLIB=":"
12223 else
12224 case $cross_compiling:$ac_tool_warned in
12225yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012226{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12227$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012228ac_tool_warned=yes ;;
12229esac
12230 RANLIB=$ac_ct_RANLIB
12231 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012234fi
12235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236if test -n "$ac_tool_prefix"; then
12237 # 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 +000012238set dummy ${ac_tool_prefix}strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12240$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241if test "${ac_cv_prog_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012242 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012243else
12244 if test -n "$STRIP"; then
12245 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12248for as_dir in $PATH
12249do
12250 IFS=$as_save_IFS
12251 test -z "$as_dir" && as_dir=.
12252 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012253 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 -050012254 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012256 break 2
12257 fi
12258done
12259done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012260IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012261
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012262fi
12263fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012265if test -n "$STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012266 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
12267$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012268else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012269 { $as_echo "$as_me:$LINENO: result: no" >&5
12270$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012271fi
12272
Theodore Ts'oe1052142006-10-21 21:46:47 -040012273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012274fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012275if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012276 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012277 # Extract the first word of "strip", so it can be a program name with args.
12278set dummy strip; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12280$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012282 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012283else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012284 if test -n "$ac_ct_STRIP"; then
12285 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12288for as_dir in $PATH
12289do
12290 IFS=$as_save_IFS
12291 test -z "$as_dir" && as_dir=.
12292 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012294 ac_cv_prog_ac_ct_STRIP="strip"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012296 break 2
12297 fi
12298done
12299done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012300IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012301
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012302fi
12303fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12305if test -n "$ac_ct_STRIP"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012306 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
12307$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012308else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012309 { $as_echo "$as_me:$LINENO: result: no" >&5
12310$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012311fi
12312
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313 if test "x$ac_ct_STRIP" = x; then
12314 STRIP=":"
12315 else
12316 case $cross_compiling:$ac_tool_warned in
12317yes:)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012318{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12319$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012320ac_tool_warned=yes ;;
12321esac
12322 STRIP=$ac_ct_STRIP
12323 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012324else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012325 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012326fi
12327
Manish Katiyar7321d942008-04-14 17:20:03 +053012328# Extract the first word of "makeinfo", so it can be a program name with args.
12329set dummy makeinfo; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12331$as_echo_n "checking for $ac_word... " >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012332if test "${ac_cv_prog_MAKEINFO+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012333 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012334else
12335 if test -n "$MAKEINFO"; then
12336 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12337else
12338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339for as_dir in $PATH
12340do
12341 IFS=$as_save_IFS
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12345 ac_cv_prog_MAKEINFO="makeinfo"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012346 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012347 break 2
12348 fi
12349done
12350done
12351IFS=$as_save_IFS
12352
12353fi
12354fi
12355MAKEINFO=$ac_cv_prog_MAKEINFO
12356if test -n "$MAKEINFO"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012357 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
12358$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012359else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012360 { $as_echo "$as_me:$LINENO: result: no" >&5
12361$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012362fi
12363
12364
12365if test "_$MAKEINFO" = "_"; then
12366 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12367else
12368 case "$MAKEINFO" in
12369 */missing.*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012370 { $as_echo "$as_me:$LINENO: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012371*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012372$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012373*** Makeinfo is missing. Info documentation will not be built." >&2;}
12374 ;;
12375 *)
12376 ;;
12377 esac
12378fi
12379
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012380# Find a good install program. We prefer a C program (faster),
12381# so one script is as good as another. But avoid the broken or
12382# incompatible versions:
12383# SysV /etc/install, /usr/sbin/install
12384# SunOS /usr/etc/install
12385# IRIX /sbin/install
12386# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012388# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012389# AFS /usr/afsws/bin/install, which mishandles nonexistent args
12390# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012391# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012392# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012393# Reject install programs that cannot install multiple files.
12394{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
12395$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012396if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012397if test "${ac_cv_path_install+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012398 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012399else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401for as_dir in $PATH
12402do
12403 IFS=$as_save_IFS
12404 test -z "$as_dir" && as_dir=.
12405 # Account for people who put trailing slashes in PATH elements.
12406case $as_dir/ in
12407 ./ | .// | /cC/* | \
12408 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
12409 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
12410 /usr/ucb/* ) ;;
12411 *)
12412 # OSF1 and SCO ODT 3.0 have their own names for install.
12413 # Don't use installbsd from OSF since it installs stuff as root
12414 # by default.
12415 for ac_prog in ginstall scoinst install; do
12416 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012417 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 +000012418 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012420 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012421 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012422 elif test $ac_prog = install &&
12423 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
12424 # program-specific install script used by HP pwplus--don't use.
12425 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012426 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012427 rm -rf conftest.one conftest.two conftest.dir
12428 echo one > conftest.one
12429 echo two > conftest.two
12430 mkdir conftest.dir
12431 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
12432 test -s conftest.one && test -s conftest.two &&
12433 test -s conftest.dir/conftest.one &&
12434 test -s conftest.dir/conftest.two
12435 then
12436 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
12437 break 3
12438 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012439 fi
12440 fi
12441 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442 done
12443 ;;
12444esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012448
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012449rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012450
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012451fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012452 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012454 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455 # As a last resort, use the slow shell script. Don't cache a
12456 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012457 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040012458 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012460 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012461fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012462{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
12463$as_echo "$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012464
12465# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
12466# It thinks the first close brace ends the variable substitution.
12467test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
12468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012469test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000012470
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012471test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
12472
Theodore Ts'o6c133521999-07-03 20:37:03 +000012473# See if we need a separate native compiler.
12474if test $cross_compiling = no; then
12475 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012476
Theodore Ts'o6c133521999-07-03 20:37:03 +000012477else
12478 for ac_prog in gcc cc
12479do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012480 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012481set dummy $ac_prog; ac_word=$2
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012482{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12483$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484if test "${ac_cv_prog_BUILD_CC+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012485 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012486else
12487 if test -n "$BUILD_CC"; then
12488 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12489else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12491for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012492do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012493 IFS=$as_save_IFS
12494 test -z "$as_dir" && as_dir=.
12495 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012496 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 -050012497 ac_cv_prog_BUILD_CC="$ac_prog"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499 break 2
12500 fi
12501done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012502done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012503IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012504
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505fi
12506fi
12507BUILD_CC=$ac_cv_prog_BUILD_CC
12508if test -n "$BUILD_CC"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012509 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
12510$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012511else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012512 { $as_echo "$as_me:$LINENO: result: no" >&5
12513$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012514fi
12515
Theodore Ts'oe1052142006-10-21 21:46:47 -040012516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517 test -n "$BUILD_CC" && break
12518done
12519
12520fi
12521
Theodore Ts'o740837d2007-12-16 17:21:38 -050012522
12523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012524
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
Theodore Ts'o762c7c62005-04-06 14:44:16 -040012552
Theodore Ts'o106ad962007-04-04 21:26:37 -040012553
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010012554
12555
Theodore Ts'o3d058022008-07-12 22:06:30 -040012556
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040012557
Theodore Ts'od7f45af2008-09-12 10:15:26 -040012558
12559for 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 -050012560do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012561as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012562if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012563 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12564$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012566 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012568ac_res=`eval 'as_val=${'$as_ac_Header'}
12569 $as_echo "$as_val"'`
12570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12571$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012572else
12573 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012574{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12575$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012576cat >conftest.$ac_ext <<_ACEOF
12577/* confdefs.h. */
12578_ACEOF
12579cat confdefs.h >>conftest.$ac_ext
12580cat >>conftest.$ac_ext <<_ACEOF
12581/* end confdefs.h. */
12582$ac_includes_default
12583#include <$ac_header>
12584_ACEOF
12585rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012586if { (ac_try="$ac_compile"
12587case "(($ac_try" in
12588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589 *) ac_try_echo=$ac_try;;
12590esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012593 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594 ac_status=$?
12595 grep -v '^ *+' conftest.er1 >conftest.err
12596 rm -f conftest.er1
12597 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012599 (exit $ac_status); } && {
12600 test -z "$ac_c_werror_flag" ||
12601 test ! -s conftest.err
12602 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012603 ac_header_compiler=yes
12604else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012605 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606sed 's/^/| /' conftest.$ac_ext >&5
12607
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012609fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012610
12611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012612{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12613$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012614
12615# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012616{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12617$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618cat >conftest.$ac_ext <<_ACEOF
12619/* confdefs.h. */
12620_ACEOF
12621cat confdefs.h >>conftest.$ac_ext
12622cat >>conftest.$ac_ext <<_ACEOF
12623/* end confdefs.h. */
12624#include <$ac_header>
12625_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012626if { (ac_try="$ac_cpp conftest.$ac_ext"
12627case "(($ac_try" in
12628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12629 *) ac_try_echo=$ac_try;;
12630esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12632$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012634 ac_status=$?
12635 grep -v '^ *+' conftest.er1 >conftest.err
12636 rm -f conftest.er1
12637 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012639 (exit $ac_status); } >/dev/null && {
12640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12641 test ! -s conftest.err
12642 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012643 ac_header_preproc=yes
12644else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012646sed 's/^/| /' conftest.$ac_ext >&5
12647
12648 ac_header_preproc=no
12649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012650
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012652{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12653$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012654
12655# So? What about this header?
12656case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12657 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12659$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12660 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12661$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012662 ac_header_preproc=yes
12663 ;;
12664 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12666$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12668$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12670$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12672$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12674$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12676$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012677
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012678 ;;
12679esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12681$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012682if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012683 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684else
12685 eval "$as_ac_Header=\$ac_header_preproc"
12686fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012687ac_res=`eval 'as_val=${'$as_ac_Header'}
12688 $as_echo "$as_val"'`
12689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12690$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691
12692fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012693as_val=`eval 'as_val=${'$as_ac_Header'}
12694 $as_echo "$as_val"'`
12695 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012698_ACEOF
12699
12700fi
12701
12702done
12703
12704
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012705
12706for ac_header in sys/disk.h sys/mount.h
12707do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012708as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12709{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12710$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012712 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012713else
12714 cat >conftest.$ac_ext <<_ACEOF
12715/* confdefs.h. */
12716_ACEOF
12717cat confdefs.h >>conftest.$ac_ext
12718cat >>conftest.$ac_ext <<_ACEOF
12719/* end confdefs.h. */
12720
12721#if HAVE_SYS_QUEUE_H
12722#include <sys/queue.h>
12723#endif
12724
12725
12726#include <$ac_header>
12727_ACEOF
12728rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012729if { (ac_try="$ac_compile"
12730case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12733esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12735$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012736 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012737 ac_status=$?
12738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012742 (exit $ac_status); } && {
12743 test -z "$ac_c_werror_flag" ||
12744 test ! -s conftest.err
12745 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012746 eval "$as_ac_Header=yes"
12747else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012749sed 's/^/| /' conftest.$ac_ext >&5
12750
Theodore Ts'oe1052142006-10-21 21:46:47 -040012751 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012752fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012753
12754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012755fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012756ac_res=`eval 'as_val=${'$as_ac_Header'}
12757 $as_echo "$as_val"'`
12758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12759$as_echo "$ac_res" >&6; }
12760as_val=`eval 'as_val=${'$as_ac_Header'}
12761 $as_echo "$as_val"'`
12762 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012763 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012764#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012765_ACEOF
12766
12767fi
12768
12769done
12770
12771
12772for ac_header in net/if.h
12773do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012774as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12775{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12776$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012777if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012778 $as_echo_n "(cached) " >&6
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012779else
12780 cat >conftest.$ac_ext <<_ACEOF
12781/* confdefs.h. */
12782_ACEOF
12783cat confdefs.h >>conftest.$ac_ext
12784cat >>conftest.$ac_ext <<_ACEOF
12785/* end confdefs.h. */
12786
12787#if HAVE_SYS_TYPES_H
12788#include <sys/types.h>
12789#endif
12790#if HAVE_SYS_SOCKET
12791#include <sys/socket.h>
12792#endif
12793
12794
12795#include <$ac_header>
12796_ACEOF
12797rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798if { (ac_try="$ac_compile"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12804$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012805 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012806 ac_status=$?
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012811 (exit $ac_status); } && {
12812 test -z "$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12814 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012815 eval "$as_ac_Header=yes"
12816else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012817 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012818sed 's/^/| /' conftest.$ac_ext >&5
12819
Theodore Ts'oe1052142006-10-21 21:46:47 -040012820 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012821fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012822
12823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012824fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012825ac_res=`eval 'as_val=${'$as_ac_Header'}
12826 $as_echo "$as_val"'`
12827 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12828$as_echo "$ac_res" >&6; }
12829as_val=`eval 'as_val=${'$as_ac_Header'}
12830 $as_echo "$as_val"'`
12831 if test "x$as_val" = x""yes; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012832 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012833#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012834_ACEOF
12835
12836fi
12837
12838done
12839
12840
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012841for ac_func in vprintf
12842do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012843as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12844{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12845$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012846if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012847 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848else
12849 cat >conftest.$ac_ext <<_ACEOF
12850/* confdefs.h. */
12851_ACEOF
12852cat confdefs.h >>conftest.$ac_ext
12853cat >>conftest.$ac_ext <<_ACEOF
12854/* end confdefs.h. */
12855/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12857#define $ac_func innocuous_$ac_func
12858
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012859/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012860 which can conflict with char $ac_func (); below.
12861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12862 <limits.h> exists even on freestanding compilers. */
12863
12864#ifdef __STDC__
12865# include <limits.h>
12866#else
12867# include <assert.h>
12868#endif
12869
12870#undef $ac_func
12871
Theodore Ts'oe1052142006-10-21 21:46:47 -040012872/* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875#ifdef __cplusplus
12876extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012879/* The GNU C library defines this for functions which it implements
12880 to always fail with ENOSYS. Some functions are actually named
12881 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012882#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012883choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012884#endif
12885
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886int
12887main ()
12888{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012889return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012890 ;
12891 return 0;
12892}
12893_ACEOF
12894rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895if { (ac_try="$ac_link"
12896case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12899esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12901$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012902 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012908 (exit $ac_status); } && {
12909 test -z "$ac_c_werror_flag" ||
12910 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012911 } && test -s conftest$ac_exeext && {
12912 test "$cross_compiling" = yes ||
12913 $as_test_x conftest$ac_exeext
12914 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012915 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012916else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012917 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012918sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012919
Theodore Ts'oe1052142006-10-21 21:46:47 -040012920 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012923rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012924rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012925 conftest$ac_exeext conftest.$ac_ext
12926fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012927ac_res=`eval 'as_val=${'$as_ac_var'}
12928 $as_echo "$as_val"'`
12929 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12930$as_echo "$ac_res" >&6; }
12931as_val=`eval 'as_val=${'$as_ac_var'}
12932 $as_echo "$as_val"'`
12933 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012935#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012936_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012937
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012938{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
12939$as_echo_n "checking for _doprnt... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940if test "${ac_cv_func__doprnt+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012941 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012942else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943 cat >conftest.$ac_ext <<_ACEOF
12944/* confdefs.h. */
12945_ACEOF
12946cat confdefs.h >>conftest.$ac_ext
12947cat >>conftest.$ac_ext <<_ACEOF
12948/* end confdefs.h. */
12949/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12951#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012952
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012953/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954 which can conflict with char _doprnt (); below.
12955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12956 <limits.h> exists even on freestanding compilers. */
12957
12958#ifdef __STDC__
12959# include <limits.h>
12960#else
12961# include <assert.h>
12962#endif
12963
12964#undef _doprnt
12965
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966/* Override any GCC internal prototype to avoid an error.
12967 Use char because int might match the return type of a GCC
12968 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012969#ifdef __cplusplus
12970extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012971#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012973/* The GNU C library defines this for functions which it implements
12974 to always fail with ENOSYS. Some functions are actually named
12975 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012976#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012977choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012978#endif
12979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980int
12981main ()
12982{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012983return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012984 ;
12985 return 0;
12986}
12987_ACEOF
12988rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012989if { (ac_try="$ac_link"
12990case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12995$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012996 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013005 } && test -s conftest$ac_exeext && {
13006 test "$cross_compiling" = yes ||
13007 $as_test_x conftest$ac_exeext
13008 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013010else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013011 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013013
Theodore Ts'oe1052142006-10-21 21:46:47 -040013014 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013015fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013016
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013017rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013019 conftest$ac_exeext conftest.$ac_ext
13020fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013021{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
13022$as_echo "$ac_cv_func__doprnt" >&6; }
13023if test "x$ac_cv_func__doprnt" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024
13025cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013026#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013027_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013028
13029fi
13030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031fi
13032done
13033
13034
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013035{ $as_echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
13036$as_echo_n "checking for struct dirent.d_reclen... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013037if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013038 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013039else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013040 cat >conftest.$ac_ext <<_ACEOF
13041/* confdefs.h. */
13042_ACEOF
13043cat confdefs.h >>conftest.$ac_ext
13044cat >>conftest.$ac_ext <<_ACEOF
13045/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013046#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013047
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013048int
13049main ()
13050{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013051static struct dirent ac_aggr;
13052if (ac_aggr.d_reclen)
13053return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013054 ;
13055 return 0;
13056}
13057_ACEOF
13058rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013059if { (ac_try="$ac_compile"
13060case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13063esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13065$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013066 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013067 ac_status=$?
13068 grep -v '^ *+' conftest.er1 >conftest.err
13069 rm -f conftest.er1
13070 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013072 (exit $ac_status); } && {
13073 test -z "$ac_c_werror_flag" ||
13074 test ! -s conftest.err
13075 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013076 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040013077else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013078 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079sed 's/^/| /' conftest.$ac_ext >&5
13080
Theodore Ts'oe1052142006-10-21 21:46:47 -040013081 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087#include <dirent.h>
13088
13089int
13090main ()
13091{
13092static struct dirent ac_aggr;
13093if (sizeof ac_aggr.d_reclen)
13094return 0;
13095 ;
13096 return 0;
13097}
13098_ACEOF
13099rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013100if { (ac_try="$ac_compile"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13106$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013107 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013117 ac_cv_member_struct_dirent_d_reclen=yes
13118else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013119 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013120sed 's/^/| /' conftest.$ac_ext >&5
13121
Theodore Ts'oe1052142006-10-21 21:46:47 -040013122 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040013123fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013124
13125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013126fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013127
13128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013129fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013130{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
13131$as_echo "$ac_cv_member_struct_dirent_d_reclen" >&6; }
13132if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013133 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013134#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013136
13137fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013138
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013139{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
13140$as_echo_n "checking for ssize_t... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013141if test "${ac_cv_type_ssize_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013142 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013143else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013144 ac_cv_type_ssize_t=no
13145cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013146/* confdefs.h. */
13147_ACEOF
13148cat confdefs.h >>conftest.$ac_ext
13149cat >>conftest.$ac_ext <<_ACEOF
13150/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040013151#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013152
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013153int
13154main ()
13155{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013156if (sizeof (ssize_t))
13157 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158 ;
13159 return 0;
13160}
13161_ACEOF
13162rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013163if { (ac_try="$ac_compile"
13164case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13167esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13169$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013170 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013171 ac_status=$?
13172 grep -v '^ *+' conftest.er1 >conftest.err
13173 rm -f conftest.er1
13174 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013180 cat >conftest.$ac_ext <<_ACEOF
13181/* confdefs.h. */
13182_ACEOF
13183cat confdefs.h >>conftest.$ac_ext
13184cat >>conftest.$ac_ext <<_ACEOF
13185/* end confdefs.h. */
13186#include <sys/types.h>
13187
13188int
13189main ()
13190{
13191if (sizeof ((ssize_t)))
13192 return 0;
13193 ;
13194 return 0;
13195}
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (ac_try="$ac_compile"
13199case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202esac
13203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13204$as_echo "$ac_try_echo") >&5
13205 (eval "$ac_compile") 2>conftest.er1
13206 ac_status=$?
13207 grep -v '^ *+' conftest.er1 >conftest.err
13208 rm -f conftest.er1
13209 cat conftest.err >&5
13210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); } && {
13212 test -z "$ac_c_werror_flag" ||
13213 test ! -s conftest.err
13214 } && test -s conftest.$ac_objext; then
13215 :
Theodore Ts'offf45482003-04-13 00:44:19 -040013216else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013217 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013218sed 's/^/| /' conftest.$ac_ext >&5
13219
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013220 ac_cv_type_ssize_t=yes
13221fi
13222
13223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13224else
13225 $as_echo "$as_me: failed program was:" >&5
13226sed 's/^/| /' conftest.$ac_ext >&5
13227
13228
Theodore Ts'offf45482003-04-13 00:44:19 -040013229fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013230
13231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040013232fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013233{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
13234$as_echo "$ac_cv_type_ssize_t" >&6; }
13235if test "x$ac_cv_type_ssize_t" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013236 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013237#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040013239
13240fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013241
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013242{ $as_echo "$as_me:$LINENO: checking whether llseek is declared" >&5
13243$as_echo_n "checking whether llseek is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013244if test "${ac_cv_have_decl_llseek+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013245 $as_echo_n "(cached) " >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040013246else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013247 cat >conftest.$ac_ext <<_ACEOF
13248/* confdefs.h. */
13249_ACEOF
13250cat confdefs.h >>conftest.$ac_ext
13251cat >>conftest.$ac_ext <<_ACEOF
13252/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013253#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013254
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255int
13256main ()
13257{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013258#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013259 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013260#endif
13261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013262 ;
13263 return 0;
13264}
13265_ACEOF
13266rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013267if { (ac_try="$ac_compile"
13268case "(($ac_try" in
13269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13270 *) ac_try_echo=$ac_try;;
13271esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013272eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13273$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013274 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013275 ac_status=$?
13276 grep -v '^ *+' conftest.er1 >conftest.err
13277 rm -f conftest.er1
13278 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013280 (exit $ac_status); } && {
13281 test -z "$ac_c_werror_flag" ||
13282 test ! -s conftest.err
13283 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013284 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013285else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013286 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013287sed 's/^/| /' conftest.$ac_ext >&5
13288
Theodore Ts'oe1052142006-10-21 21:46:47 -040013289 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013290fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291
13292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013293fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013294{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
13295$as_echo "$ac_cv_have_decl_llseek" >&6; }
13296if test "x$ac_cv_have_decl_llseek" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013297 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013298#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013299_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000013300
13301fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013302
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013303{ $as_echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
13304$as_echo_n "checking whether lseek64 is declared... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013305if test "${ac_cv_have_decl_lseek64+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013306 $as_echo_n "(cached) " >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013308 cat >conftest.$ac_ext <<_ACEOF
13309/* confdefs.h. */
13310_ACEOF
13311cat confdefs.h >>conftest.$ac_ext
13312cat >>conftest.$ac_ext <<_ACEOF
13313/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013314#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013315 #define _LARGEFILE64_SOURCE
13316 #include <unistd.h>
13317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013318int
13319main ()
13320{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013321#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013322 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013323#endif
13324
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013325 ;
13326 return 0;
13327}
13328_ACEOF
13329rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013330if { (ac_try="$ac_compile"
13331case "(($ac_try" in
13332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13334esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13336$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013337 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013338 ac_status=$?
13339 grep -v '^ *+' conftest.er1 >conftest.err
13340 rm -f conftest.er1
13341 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013343 (exit $ac_status); } && {
13344 test -z "$ac_c_werror_flag" ||
13345 test ! -s conftest.err
13346 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013347 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013348else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013349 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013350sed 's/^/| /' conftest.$ac_ext >&5
13351
Theodore Ts'oe1052142006-10-21 21:46:47 -040013352 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013354
13355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013356fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013357{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
13358$as_echo "$ac_cv_have_decl_lseek64" >&6; }
13359if test "x$ac_cv_have_decl_lseek64" = x""yes; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013360 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013361#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013362_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000013363
13364fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013365
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013366# The cast to long int works around a bug in the HP C Compiler
13367# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13368# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13369# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013370{ $as_echo "$as_me:$LINENO: checking size of short" >&5
13371$as_echo_n "checking size of short... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013372if test "${ac_cv_sizeof_short+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013373 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013374else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013375 if test "$cross_compiling" = yes; then
13376 # Depending upon the size, compute the lo and hi bounds.
13377cat >conftest.$ac_ext <<_ACEOF
13378/* confdefs.h. */
13379_ACEOF
13380cat confdefs.h >>conftest.$ac_ext
13381cat >>conftest.$ac_ext <<_ACEOF
13382/* end confdefs.h. */
13383$ac_includes_default
13384int
13385main ()
13386{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013387static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013388test_array [0] = 0
13389
13390 ;
13391 return 0;
13392}
13393_ACEOF
13394rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013395if { (ac_try="$ac_compile"
13396case "(($ac_try" in
13397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13398 *) ac_try_echo=$ac_try;;
13399esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13401$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013402 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013408 (exit $ac_status); } && {
13409 test -z "$ac_c_werror_flag" ||
13410 test ! -s conftest.err
13411 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013412 ac_lo=0 ac_mid=0
13413 while :; do
13414 cat >conftest.$ac_ext <<_ACEOF
13415/* confdefs.h. */
13416_ACEOF
13417cat confdefs.h >>conftest.$ac_ext
13418cat >>conftest.$ac_ext <<_ACEOF
13419/* end confdefs.h. */
13420$ac_includes_default
13421int
13422main ()
13423{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013424static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013425test_array [0] = 0
13426
13427 ;
13428 return 0;
13429}
13430_ACEOF
13431rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013432if { (ac_try="$ac_compile"
13433case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13438$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013439 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013440 ac_status=$?
13441 grep -v '^ *+' conftest.er1 >conftest.err
13442 rm -f conftest.er1
13443 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013445 (exit $ac_status); } && {
13446 test -z "$ac_c_werror_flag" ||
13447 test ! -s conftest.err
13448 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013449 ac_hi=$ac_mid; break
13450else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013451 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013452sed 's/^/| /' conftest.$ac_ext >&5
13453
Theodore Ts'oe1052142006-10-21 21:46:47 -040013454 ac_lo=`expr $ac_mid + 1`
13455 if test $ac_lo -le $ac_mid; then
13456 ac_lo= ac_hi=
13457 break
13458 fi
13459 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013460fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013461
13462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013463 done
13464else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013465 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013466sed 's/^/| /' conftest.$ac_ext >&5
13467
Theodore Ts'oe1052142006-10-21 21:46:47 -040013468 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013469/* confdefs.h. */
13470_ACEOF
13471cat confdefs.h >>conftest.$ac_ext
13472cat >>conftest.$ac_ext <<_ACEOF
13473/* end confdefs.h. */
13474$ac_includes_default
13475int
13476main ()
13477{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013478static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013479test_array [0] = 0
13480
13481 ;
13482 return 0;
13483}
13484_ACEOF
13485rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013486if { (ac_try="$ac_compile"
13487case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13490esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13492$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013493 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013494 ac_status=$?
13495 grep -v '^ *+' conftest.er1 >conftest.err
13496 rm -f conftest.er1
13497 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013503 ac_hi=-1 ac_mid=-1
13504 while :; do
13505 cat >conftest.$ac_ext <<_ACEOF
13506/* confdefs.h. */
13507_ACEOF
13508cat confdefs.h >>conftest.$ac_ext
13509cat >>conftest.$ac_ext <<_ACEOF
13510/* end confdefs.h. */
13511$ac_includes_default
13512int
13513main ()
13514{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013515static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013516test_array [0] = 0
13517
13518 ;
13519 return 0;
13520}
13521_ACEOF
13522rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013523if { (ac_try="$ac_compile"
13524case "(($ac_try" in
13525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13526 *) ac_try_echo=$ac_try;;
13527esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13529$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013530 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013531 ac_status=$?
13532 grep -v '^ *+' conftest.er1 >conftest.err
13533 rm -f conftest.er1
13534 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013536 (exit $ac_status); } && {
13537 test -z "$ac_c_werror_flag" ||
13538 test ! -s conftest.err
13539 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540 ac_lo=$ac_mid; break
13541else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013542 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543sed 's/^/| /' conftest.$ac_ext >&5
13544
Theodore Ts'oe1052142006-10-21 21:46:47 -040013545 ac_hi=`expr '(' $ac_mid ')' - 1`
13546 if test $ac_mid -le $ac_hi; then
13547 ac_lo= ac_hi=
13548 break
13549 fi
13550 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013551fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013552
13553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013554 done
13555else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013556 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013557sed 's/^/| /' conftest.$ac_ext >&5
13558
Theodore Ts'oe1052142006-10-21 21:46:47 -040013559 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013560fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013561
13562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013564
13565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013566# Binary search between lo and hi bounds.
13567while test "x$ac_lo" != "x$ac_hi"; do
13568 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13569 cat >conftest.$ac_ext <<_ACEOF
13570/* confdefs.h. */
13571_ACEOF
13572cat confdefs.h >>conftest.$ac_ext
13573cat >>conftest.$ac_ext <<_ACEOF
13574/* end confdefs.h. */
13575$ac_includes_default
13576int
13577main ()
13578{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013579static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580test_array [0] = 0
13581
13582 ;
13583 return 0;
13584}
13585_ACEOF
13586rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013587if { (ac_try="$ac_compile"
13588case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13591esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13593$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013594 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013595 ac_status=$?
13596 grep -v '^ *+' conftest.er1 >conftest.err
13597 rm -f conftest.er1
13598 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013600 (exit $ac_status); } && {
13601 test -z "$ac_c_werror_flag" ||
13602 test ! -s conftest.err
13603 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013604 ac_hi=$ac_mid
13605else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013606 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013607sed 's/^/| /' conftest.$ac_ext >&5
13608
Theodore Ts'oe1052142006-10-21 21:46:47 -040013609 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013610fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013611
13612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013613done
13614case $ac_lo in
13615?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013616'') if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013617 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13618$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13619{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013620See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013621$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013622See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013623 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013624 else
13625 ac_cv_sizeof_short=0
13626 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013627esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013628else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013629 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013636static long int longval () { return (long int) (sizeof (short)); }
13637static unsigned long int ulongval () { return (long int) (sizeof (short)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013638#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013639#include <stdlib.h>
13640int
13641main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013642{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643
13644 FILE *f = fopen ("conftest.val", "w");
13645 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013646 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013647 if (((long int) (sizeof (short))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013648 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013649 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013650 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013651 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013653 }
13654 else
13655 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013656 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013657 if (i != ((long int) (sizeof (short))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040013658 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013659 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013661 /* Do not output a trailing newline, as this causes \r\n confusion
13662 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040013663 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013664
13665 ;
13666 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013667}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013668_ACEOF
13669rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013670if { (ac_try="$ac_link"
13671case "(($ac_try" in
13672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673 *) ac_try_echo=$ac_try;;
13674esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13676$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013677 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013678 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013681 { (case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013685eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13686$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013687 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013688 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013690 (exit $ac_status); }; }; then
13691 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013692else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013693 $as_echo "$as_me: program exited with status $ac_status" >&5
13694$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013695sed 's/^/| /' conftest.$ac_ext >&5
13696
13697( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013698if test "$ac_cv_type_short" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013699 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13700$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13701{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013702See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013703$as_echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013704See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013705 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013706 else
13707 ac_cv_sizeof_short=0
13708 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013709fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013710rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040013711rm -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 -050013712fi
13713rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013714fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013715{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
13716$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013717
13718
13719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013721#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013722_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013723
13724
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013725# The cast to long int works around a bug in the HP C Compiler
13726# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13727# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13728# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013729{ $as_echo "$as_me:$LINENO: checking size of int" >&5
13730$as_echo_n "checking size of int... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013731if test "${ac_cv_sizeof_int+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013732 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013733else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734 if test "$cross_compiling" = yes; then
13735 # Depending upon the size, compute the lo and hi bounds.
13736cat >conftest.$ac_ext <<_ACEOF
13737/* confdefs.h. */
13738_ACEOF
13739cat confdefs.h >>conftest.$ac_ext
13740cat >>conftest.$ac_ext <<_ACEOF
13741/* end confdefs.h. */
13742$ac_includes_default
13743int
13744main ()
13745{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013746static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747test_array [0] = 0
13748
13749 ;
13750 return 0;
13751}
13752_ACEOF
13753rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013754if { (ac_try="$ac_compile"
13755case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13758esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13760$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013761 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013762 ac_status=$?
13763 grep -v '^ *+' conftest.er1 >conftest.err
13764 rm -f conftest.er1
13765 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771 ac_lo=0 ac_mid=0
13772 while :; do
13773 cat >conftest.$ac_ext <<_ACEOF
13774/* confdefs.h. */
13775_ACEOF
13776cat confdefs.h >>conftest.$ac_ext
13777cat >>conftest.$ac_ext <<_ACEOF
13778/* end confdefs.h. */
13779$ac_includes_default
13780int
13781main ()
13782{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013783static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013784test_array [0] = 0
13785
13786 ;
13787 return 0;
13788}
13789_ACEOF
13790rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013791if { (ac_try="$ac_compile"
13792case "(($ac_try" in
13793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794 *) ac_try_echo=$ac_try;;
13795esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13797$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013798 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799 ac_status=$?
13800 grep -v '^ *+' conftest.er1 >conftest.err
13801 rm -f conftest.er1
13802 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013804 (exit $ac_status); } && {
13805 test -z "$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13807 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013808 ac_hi=$ac_mid; break
13809else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013810 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811sed 's/^/| /' conftest.$ac_ext >&5
13812
Theodore Ts'oe1052142006-10-21 21:46:47 -040013813 ac_lo=`expr $ac_mid + 1`
13814 if test $ac_lo -le $ac_mid; then
13815 ac_lo= ac_hi=
13816 break
13817 fi
13818 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013819fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013820
13821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822 done
13823else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013824 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013825sed 's/^/| /' conftest.$ac_ext >&5
13826
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828/* confdefs.h. */
13829_ACEOF
13830cat confdefs.h >>conftest.$ac_ext
13831cat >>conftest.$ac_ext <<_ACEOF
13832/* end confdefs.h. */
13833$ac_includes_default
13834int
13835main ()
13836{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013837static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013838test_array [0] = 0
13839
13840 ;
13841 return 0;
13842}
13843_ACEOF
13844rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013845if { (ac_try="$ac_compile"
13846case "(($ac_try" in
13847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13848 *) ac_try_echo=$ac_try;;
13849esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13851$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013852 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013853 ac_status=$?
13854 grep -v '^ *+' conftest.er1 >conftest.err
13855 rm -f conftest.er1
13856 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013858 (exit $ac_status); } && {
13859 test -z "$ac_c_werror_flag" ||
13860 test ! -s conftest.err
13861 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862 ac_hi=-1 ac_mid=-1
13863 while :; do
13864 cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
13869/* end confdefs.h. */
13870$ac_includes_default
13871int
13872main ()
13873{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013874static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875test_array [0] = 0
13876
13877 ;
13878 return 0;
13879}
13880_ACEOF
13881rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013882if { (ac_try="$ac_compile"
13883case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13886esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13888$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013889 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013890 ac_status=$?
13891 grep -v '^ *+' conftest.er1 >conftest.err
13892 rm -f conftest.er1
13893 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013895 (exit $ac_status); } && {
13896 test -z "$ac_c_werror_flag" ||
13897 test ! -s conftest.err
13898 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013899 ac_lo=$ac_mid; break
13900else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013901 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013902sed 's/^/| /' conftest.$ac_ext >&5
13903
Theodore Ts'oe1052142006-10-21 21:46:47 -040013904 ac_hi=`expr '(' $ac_mid ')' - 1`
13905 if test $ac_mid -le $ac_hi; then
13906 ac_lo= ac_hi=
13907 break
13908 fi
13909 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013911
13912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913 done
13914else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013915 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013916sed 's/^/| /' conftest.$ac_ext >&5
13917
Theodore Ts'oe1052142006-10-21 21:46:47 -040013918 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013920
13921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013923
13924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925# Binary search between lo and hi bounds.
13926while test "x$ac_lo" != "x$ac_hi"; do
13927 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13928 cat >conftest.$ac_ext <<_ACEOF
13929/* confdefs.h. */
13930_ACEOF
13931cat confdefs.h >>conftest.$ac_ext
13932cat >>conftest.$ac_ext <<_ACEOF
13933/* end confdefs.h. */
13934$ac_includes_default
13935int
13936main ()
13937{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013938static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939test_array [0] = 0
13940
13941 ;
13942 return 0;
13943}
13944_ACEOF
13945rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013946if { (ac_try="$ac_compile"
13947case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13950esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13952$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013953 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963 ac_hi=$ac_mid
13964else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013965 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966sed 's/^/| /' conftest.$ac_ext >&5
13967
Theodore Ts'oe1052142006-10-21 21:46:47 -040013968 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970
13971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013972done
13973case $ac_lo in
13974?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013975'') if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013976 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
13977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13978{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013979See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013980$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013981See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013982 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013983 else
13984 ac_cv_sizeof_int=0
13985 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013986esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013988 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013995static long int longval () { return (long int) (sizeof (int)); }
13996static unsigned long int ulongval () { return (long int) (sizeof (int)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013997#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998#include <stdlib.h>
13999int
14000main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014001{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014002
14003 FILE *f = fopen ("conftest.val", "w");
14004 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014005 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014006 if (((long int) (sizeof (int))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014008 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014009 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014010 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014011 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012 }
14013 else
14014 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014015 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014016 if (i != ((long int) (sizeof (int))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014017 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014018 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014019 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014020 /* Do not output a trailing newline, as this causes \r\n confusion
14021 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014022 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014023
14024 ;
14025 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014026}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014027_ACEOF
14028rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014029if { (ac_try="$ac_link"
14030case "(($ac_try" in
14031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14032 *) ac_try_echo=$ac_try;;
14033esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14035$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014036 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014037 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014040 { (case "(($ac_try" in
14041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14042 *) ac_try_echo=$ac_try;;
14043esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14045$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014046 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014047 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049 (exit $ac_status); }; }; then
14050 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014051else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014052 $as_echo "$as_me: program exited with status $ac_status" >&5
14053$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014054sed 's/^/| /' conftest.$ac_ext >&5
14055
14056( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014057if test "$ac_cv_type_int" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014058 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14060{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014061See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014062$as_echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014063See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014064 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014065 else
14066 ac_cv_sizeof_int=0
14067 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014068fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014069rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014070rm -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 -050014071fi
14072rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014073fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014074{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14075$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014076
14077
14078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014079cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014080#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014081_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014082
14083
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014084# The cast to long int works around a bug in the HP C Compiler
14085# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14086# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14087# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014088{ $as_echo "$as_me:$LINENO: checking size of long" >&5
14089$as_echo_n "checking size of long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014090if test "${ac_cv_sizeof_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014091 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093 if test "$cross_compiling" = yes; then
14094 # Depending upon the size, compute the lo and hi bounds.
14095cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
14101$ac_includes_default
14102int
14103main ()
14104{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014105static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106test_array [0] = 0
14107
14108 ;
14109 return 0;
14110}
14111_ACEOF
14112rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014113if { (ac_try="$ac_compile"
14114case "(($ac_try" in
14115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14116 *) ac_try_echo=$ac_try;;
14117esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14119$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014120 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014121 ac_status=$?
14122 grep -v '^ *+' conftest.er1 >conftest.err
14123 rm -f conftest.er1
14124 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014126 (exit $ac_status); } && {
14127 test -z "$ac_c_werror_flag" ||
14128 test ! -s conftest.err
14129 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014130 ac_lo=0 ac_mid=0
14131 while :; do
14132 cat >conftest.$ac_ext <<_ACEOF
14133/* confdefs.h. */
14134_ACEOF
14135cat confdefs.h >>conftest.$ac_ext
14136cat >>conftest.$ac_ext <<_ACEOF
14137/* end confdefs.h. */
14138$ac_includes_default
14139int
14140main ()
14141{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014142static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014143test_array [0] = 0
14144
14145 ;
14146 return 0;
14147}
14148_ACEOF
14149rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014150if { (ac_try="$ac_compile"
14151case "(($ac_try" in
14152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14153 *) ac_try_echo=$ac_try;;
14154esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014155eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14156$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014157 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014158 ac_status=$?
14159 grep -v '^ *+' conftest.er1 >conftest.err
14160 rm -f conftest.er1
14161 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014162 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014163 (exit $ac_status); } && {
14164 test -z "$ac_c_werror_flag" ||
14165 test ! -s conftest.err
14166 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014167 ac_hi=$ac_mid; break
14168else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014169 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014170sed 's/^/| /' conftest.$ac_ext >&5
14171
Theodore Ts'oe1052142006-10-21 21:46:47 -040014172 ac_lo=`expr $ac_mid + 1`
14173 if test $ac_lo -le $ac_mid; then
14174 ac_lo= ac_hi=
14175 break
14176 fi
14177 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014178fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014179
14180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014181 done
14182else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014183 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184sed 's/^/| /' conftest.$ac_ext >&5
14185
Theodore Ts'oe1052142006-10-21 21:46:47 -040014186 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014187/* confdefs.h. */
14188_ACEOF
14189cat confdefs.h >>conftest.$ac_ext
14190cat >>conftest.$ac_ext <<_ACEOF
14191/* end confdefs.h. */
14192$ac_includes_default
14193int
14194main ()
14195{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014196static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014197test_array [0] = 0
14198
14199 ;
14200 return 0;
14201}
14202_ACEOF
14203rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014204if { (ac_try="$ac_compile"
14205case "(($ac_try" in
14206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14207 *) ac_try_echo=$ac_try;;
14208esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14210$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014211 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212 ac_status=$?
14213 grep -v '^ *+' conftest.er1 >conftest.err
14214 rm -f conftest.er1
14215 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014221 ac_hi=-1 ac_mid=-1
14222 while :; do
14223 cat >conftest.$ac_ext <<_ACEOF
14224/* confdefs.h. */
14225_ACEOF
14226cat confdefs.h >>conftest.$ac_ext
14227cat >>conftest.$ac_ext <<_ACEOF
14228/* end confdefs.h. */
14229$ac_includes_default
14230int
14231main ()
14232{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014233static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014234test_array [0] = 0
14235
14236 ;
14237 return 0;
14238}
14239_ACEOF
14240rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014241if { (ac_try="$ac_compile"
14242case "(($ac_try" in
14243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14245esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14247$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014248 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014249 ac_status=$?
14250 grep -v '^ *+' conftest.er1 >conftest.err
14251 rm -f conftest.er1
14252 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014254 (exit $ac_status); } && {
14255 test -z "$ac_c_werror_flag" ||
14256 test ! -s conftest.err
14257 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258 ac_lo=$ac_mid; break
14259else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014260 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014261sed 's/^/| /' conftest.$ac_ext >&5
14262
Theodore Ts'oe1052142006-10-21 21:46:47 -040014263 ac_hi=`expr '(' $ac_mid ')' - 1`
14264 if test $ac_mid -le $ac_hi; then
14265 ac_lo= ac_hi=
14266 break
14267 fi
14268 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014270
14271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014272 done
14273else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014274 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275sed 's/^/| /' conftest.$ac_ext >&5
14276
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014278fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014279
14280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014281fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014282
14283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284# Binary search between lo and hi bounds.
14285while test "x$ac_lo" != "x$ac_hi"; do
14286 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14287 cat >conftest.$ac_ext <<_ACEOF
14288/* confdefs.h. */
14289_ACEOF
14290cat confdefs.h >>conftest.$ac_ext
14291cat >>conftest.$ac_ext <<_ACEOF
14292/* end confdefs.h. */
14293$ac_includes_default
14294int
14295main ()
14296{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014297static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298test_array [0] = 0
14299
14300 ;
14301 return 0;
14302}
14303_ACEOF
14304rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305if { (ac_try="$ac_compile"
14306case "(($ac_try" in
14307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14308 *) ac_try_echo=$ac_try;;
14309esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014310eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14311$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014312 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313 ac_status=$?
14314 grep -v '^ *+' conftest.er1 >conftest.err
14315 rm -f conftest.er1
14316 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014318 (exit $ac_status); } && {
14319 test -z "$ac_c_werror_flag" ||
14320 test ! -s conftest.err
14321 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014322 ac_hi=$ac_mid
14323else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014324 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325sed 's/^/| /' conftest.$ac_ext >&5
14326
Theodore Ts'oe1052142006-10-21 21:46:47 -040014327 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014328fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014329
14330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014331done
14332case $ac_lo in
14333?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014334'') if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014335 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14337{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014339$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014341 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014342 else
14343 ac_cv_sizeof_long=0
14344 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014345esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014347 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014354static long int longval () { return (long int) (sizeof (long)); }
14355static unsigned long int ulongval () { return (long int) (sizeof (long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014356#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357#include <stdlib.h>
14358int
14359main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014360{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014361
14362 FILE *f = fopen ("conftest.val", "w");
14363 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014364 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014365 if (((long int) (sizeof (long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014366 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014367 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014368 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014370 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014371 }
14372 else
14373 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014374 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014375 if (i != ((long int) (sizeof (long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014377 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014378 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014379 /* Do not output a trailing newline, as this causes \r\n confusion
14380 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014381 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382
14383 ;
14384 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014385}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386_ACEOF
14387rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014388if { (ac_try="$ac_link"
14389case "(($ac_try" in
14390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14391 *) ac_try_echo=$ac_try;;
14392esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14394$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014395 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014399 { (case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014403eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014405 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014406 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014408 (exit $ac_status); }; }; then
14409 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014410else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014411 $as_echo "$as_me: program exited with status $ac_status" >&5
14412$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413sed 's/^/| /' conftest.$ac_ext >&5
14414
14415( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014416if test "$ac_cv_type_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014417 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14419{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014421$as_echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014423 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014424 else
14425 ac_cv_sizeof_long=0
14426 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014428rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014429rm -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 -050014430fi
14431rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014432fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014433{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
14434$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014435
14436
14437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014439#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014440_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014441
14442
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014443# The cast to long int works around a bug in the HP C Compiler
14444# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14445# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14446# This bug is HP SR number 8606223364.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014447{ $as_echo "$as_me:$LINENO: checking size of long long" >&5
14448$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449if test "${ac_cv_sizeof_long_long+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014450 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014451else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452 if test "$cross_compiling" = yes; then
14453 # Depending upon the size, compute the lo and hi bounds.
14454cat >conftest.$ac_ext <<_ACEOF
14455/* confdefs.h. */
14456_ACEOF
14457cat confdefs.h >>conftest.$ac_ext
14458cat >>conftest.$ac_ext <<_ACEOF
14459/* end confdefs.h. */
14460$ac_includes_default
14461int
14462main ()
14463{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014464static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014465test_array [0] = 0
14466
14467 ;
14468 return 0;
14469}
14470_ACEOF
14471rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014472if { (ac_try="$ac_compile"
14473case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14478$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014489 ac_lo=0 ac_mid=0
14490 while :; do
14491 cat >conftest.$ac_ext <<_ACEOF
14492/* confdefs.h. */
14493_ACEOF
14494cat confdefs.h >>conftest.$ac_ext
14495cat >>conftest.$ac_ext <<_ACEOF
14496/* end confdefs.h. */
14497$ac_includes_default
14498int
14499main ()
14500{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014501static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014502test_array [0] = 0
14503
14504 ;
14505 return 0;
14506}
14507_ACEOF
14508rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014509if { (ac_try="$ac_compile"
14510case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014516 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014517 ac_status=$?
14518 grep -v '^ *+' conftest.er1 >conftest.err
14519 rm -f conftest.er1
14520 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014522 (exit $ac_status); } && {
14523 test -z "$ac_c_werror_flag" ||
14524 test ! -s conftest.err
14525 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014526 ac_hi=$ac_mid; break
14527else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014528 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529sed 's/^/| /' conftest.$ac_ext >&5
14530
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531 ac_lo=`expr $ac_mid + 1`
14532 if test $ac_lo -le $ac_mid; then
14533 ac_lo= ac_hi=
14534 break
14535 fi
14536 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014538
14539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540 done
14541else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014542 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014543sed 's/^/| /' conftest.$ac_ext >&5
14544
Theodore Ts'oe1052142006-10-21 21:46:47 -040014545 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014546/* confdefs.h. */
14547_ACEOF
14548cat confdefs.h >>conftest.$ac_ext
14549cat >>conftest.$ac_ext <<_ACEOF
14550/* end confdefs.h. */
14551$ac_includes_default
14552int
14553main ()
14554{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014555static int test_array [1 - 2 * !(((long int) (sizeof (long long))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556test_array [0] = 0
14557
14558 ;
14559 return 0;
14560}
14561_ACEOF
14562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014563if { (ac_try="$ac_compile"
14564case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14567esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14569$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014570 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571 ac_status=$?
14572 grep -v '^ *+' conftest.er1 >conftest.err
14573 rm -f conftest.er1
14574 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014576 (exit $ac_status); } && {
14577 test -z "$ac_c_werror_flag" ||
14578 test ! -s conftest.err
14579 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580 ac_hi=-1 ac_mid=-1
14581 while :; do
14582 cat >conftest.$ac_ext <<_ACEOF
14583/* confdefs.h. */
14584_ACEOF
14585cat confdefs.h >>conftest.$ac_ext
14586cat >>conftest.$ac_ext <<_ACEOF
14587/* end confdefs.h. */
14588$ac_includes_default
14589int
14590main ()
14591{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014592static int test_array [1 - 2 * !(((long int) (sizeof (long long))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014593test_array [0] = 0
14594
14595 ;
14596 return 0;
14597}
14598_ACEOF
14599rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600if { (ac_try="$ac_compile"
14601case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14604esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14606$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014607 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014608 ac_status=$?
14609 grep -v '^ *+' conftest.er1 >conftest.err
14610 rm -f conftest.er1
14611 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014613 (exit $ac_status); } && {
14614 test -z "$ac_c_werror_flag" ||
14615 test ! -s conftest.err
14616 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014617 ac_lo=$ac_mid; break
14618else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014619 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620sed 's/^/| /' conftest.$ac_ext >&5
14621
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622 ac_hi=`expr '(' $ac_mid ')' - 1`
14623 if test $ac_mid -le $ac_hi; then
14624 ac_lo= ac_hi=
14625 break
14626 fi
14627 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014628fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014629
14630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014631 done
14632else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014633 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634sed 's/^/| /' conftest.$ac_ext >&5
14635
Theodore Ts'oe1052142006-10-21 21:46:47 -040014636 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014637fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014638
14639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014641
14642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014643# Binary search between lo and hi bounds.
14644while test "x$ac_lo" != "x$ac_hi"; do
14645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14646 cat >conftest.$ac_ext <<_ACEOF
14647/* confdefs.h. */
14648_ACEOF
14649cat confdefs.h >>conftest.$ac_ext
14650cat >>conftest.$ac_ext <<_ACEOF
14651/* end confdefs.h. */
14652$ac_includes_default
14653int
14654main ()
14655{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014656static int test_array [1 - 2 * !(((long int) (sizeof (long long))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657test_array [0] = 0
14658
14659 ;
14660 return 0;
14661}
14662_ACEOF
14663rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664if { (ac_try="$ac_compile"
14665case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14668esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14670$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014671 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014672 ac_status=$?
14673 grep -v '^ *+' conftest.er1 >conftest.err
14674 rm -f conftest.er1
14675 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014677 (exit $ac_status); } && {
14678 test -z "$ac_c_werror_flag" ||
14679 test ! -s conftest.err
14680 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014681 ac_hi=$ac_mid
14682else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014683 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014684sed 's/^/| /' conftest.$ac_ext >&5
14685
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014687fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014688
14689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014690done
14691case $ac_lo in
14692?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014693'') if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014694 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14695$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14696{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014697See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014698$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014699See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014700 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014701 else
14702 ac_cv_sizeof_long_long=0
14703 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014705else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014706 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014713static long int longval () { return (long int) (sizeof (long long)); }
14714static unsigned long int ulongval () { return (long int) (sizeof (long long)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014715#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014716#include <stdlib.h>
14717int
14718main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014719{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014720
14721 FILE *f = fopen ("conftest.val", "w");
14722 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014723 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014724 if (((long int) (sizeof (long long))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014725 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014726 long int i = longval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014727 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014729 fprintf (f, "%ld", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014730 }
14731 else
14732 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014733 unsigned long int i = ulongval ();
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014734 if (i != ((long int) (sizeof (long long))))
Theodore Ts'oe1052142006-10-21 21:46:47 -040014735 return 1;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014736 fprintf (f, "%lu", i);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014737 }
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014738 /* Do not output a trailing newline, as this causes \r\n confusion
14739 on some platforms. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014741
14742 ;
14743 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014744}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014745_ACEOF
14746rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014747if { (ac_try="$ac_link"
14748case "(($ac_try" in
14749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14750 *) ac_try_echo=$ac_try;;
14751esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014752eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14753$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014754 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014755 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014758 { (case "(($ac_try" in
14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760 *) ac_try_echo=$ac_try;;
14761esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014764 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014765 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014767 (exit $ac_status); }; }; then
14768 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014769else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014770 $as_echo "$as_me: program exited with status $ac_status" >&5
14771$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014772sed 's/^/| /' conftest.$ac_ext >&5
14773
14774( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014775if test "$ac_cv_type_long_long" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014776 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14778{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014779See \`config.log' for more details." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014780$as_echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014781See \`config.log' for more details." >&2;}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014782 { (exit 77); exit 77; }; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014783 else
14784 ac_cv_sizeof_long_long=0
14785 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014786fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014787rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040014788rm -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 -050014789fi
14790rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014791fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014792{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
14793$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014794
14795
14796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014798#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014799_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014800
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014801
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014802SIZEOF_SHORT=$ac_cv_sizeof_short
14803SIZEOF_INT=$ac_cv_sizeof_int
14804SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014805SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
14806
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014807
14808
14809
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014810
14811 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14812$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014813if test "${ac_cv_c_bigendian+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014814 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014815else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014816 ac_cv_c_bigendian=unknown
14817 # See if we're dealing with a universal compiler.
14818 cat >conftest.$ac_ext <<_ACEOF
14819/* confdefs.h. */
14820_ACEOF
14821cat confdefs.h >>conftest.$ac_ext
14822cat >>conftest.$ac_ext <<_ACEOF
14823/* end confdefs.h. */
14824#ifndef __APPLE_CC__
14825 not a universal capable compiler
14826 #endif
14827 typedef int dummy;
14828
14829_ACEOF
14830rm -f conftest.$ac_objext
14831if { (ac_try="$ac_compile"
14832case "(($ac_try" in
14833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14834 *) ac_try_echo=$ac_try;;
14835esac
14836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14837$as_echo "$ac_try_echo") >&5
14838 (eval "$ac_compile") 2>conftest.er1
14839 ac_status=$?
14840 grep -v '^ *+' conftest.er1 >conftest.err
14841 rm -f conftest.er1
14842 cat conftest.err >&5
14843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); } && {
14845 test -z "$ac_c_werror_flag" ||
14846 test ! -s conftest.err
14847 } && test -s conftest.$ac_objext; then
14848
14849 # Check for potential -arch flags. It is not universal unless
14850 # there are some -arch flags. Note that *ppc* also matches
14851 # ppc64. This check is also rather less than ideal.
14852 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
14853 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
14854 esac
14855else
14856 $as_echo "$as_me: failed program was:" >&5
14857sed 's/^/| /' conftest.$ac_ext >&5
14858
14859
14860fi
14861
14862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14863 if test $ac_cv_c_bigendian = unknown; then
14864 # See if sys/param.h defines the BYTE_ORDER macro.
14865 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014866/* confdefs.h. */
14867_ACEOF
14868cat confdefs.h >>conftest.$ac_ext
14869cat >>conftest.$ac_ext <<_ACEOF
14870/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014871#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014872 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014873
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874int
14875main ()
14876{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014877#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14878 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14879 && LITTLE_ENDIAN)
14880 bogus endian macros
14881 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014882
14883 ;
14884 return 0;
14885}
14886_ACEOF
14887rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014888if { (ac_try="$ac_compile"
14889case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14894$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014895 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014896 ac_status=$?
14897 grep -v '^ *+' conftest.er1 >conftest.err
14898 rm -f conftest.er1
14899 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014901 (exit $ac_status); } && {
14902 test -z "$ac_c_werror_flag" ||
14903 test ! -s conftest.err
14904 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014905 # It does; now see whether it defined to BIG_ENDIAN or not.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014906 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014907/* confdefs.h. */
14908_ACEOF
14909cat confdefs.h >>conftest.$ac_ext
14910cat >>conftest.$ac_ext <<_ACEOF
14911/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014912#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014913 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014915int
14916main ()
14917{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014918#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014919 not big endian
14920 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014921
14922 ;
14923 return 0;
14924}
14925_ACEOF
14926rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014927if { (ac_try="$ac_compile"
14928case "(($ac_try" in
14929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930 *) ac_try_echo=$ac_try;;
14931esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14933$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014934 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014944 ac_cv_c_bigendian=yes
14945else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014946 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014947sed 's/^/| /' conftest.$ac_ext >&5
14948
Theodore Ts'oe1052142006-10-21 21:46:47 -040014949 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014950fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014951
14952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014953else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014954 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955sed 's/^/| /' conftest.$ac_ext >&5
14956
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014957
14958fi
14959
14960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14961 fi
14962 if test $ac_cv_c_bigendian = unknown; then
14963 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14964 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014965/* confdefs.h. */
14966_ACEOF
14967cat confdefs.h >>conftest.$ac_ext
14968cat >>conftest.$ac_ext <<_ACEOF
14969/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014970#include <limits.h>
14971
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972int
14973main ()
14974{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014975#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14976 bogus endian macros
14977 #endif
14978
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014979 ;
14980 return 0;
14981}
14982_ACEOF
14983rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014984if { (ac_try="$ac_compile"
14985case "(($ac_try" in
14986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14988esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14990$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015001 # It does; now see whether it defined to _BIG_ENDIAN or not.
15002 cat >conftest.$ac_ext <<_ACEOF
15003/* confdefs.h. */
15004_ACEOF
15005cat confdefs.h >>conftest.$ac_ext
15006cat >>conftest.$ac_ext <<_ACEOF
15007/* end confdefs.h. */
15008#include <limits.h>
15009
15010int
15011main ()
15012{
15013#ifndef _BIG_ENDIAN
15014 not big endian
15015 #endif
15016
15017 ;
15018 return 0;
15019}
15020_ACEOF
15021rm -f conftest.$ac_objext
15022if { (ac_try="$ac_compile"
15023case "(($ac_try" in
15024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15025 *) ac_try_echo=$ac_try;;
15026esac
15027eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15028$as_echo "$ac_try_echo") >&5
15029 (eval "$ac_compile") 2>conftest.er1
15030 ac_status=$?
15031 grep -v '^ *+' conftest.er1 >conftest.err
15032 rm -f conftest.er1
15033 cat conftest.err >&5
15034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } && {
15036 test -z "$ac_c_werror_flag" ||
15037 test ! -s conftest.err
15038 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015039 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015040else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015041 $as_echo "$as_me: failed program was:" >&5
15042sed 's/^/| /' conftest.$ac_ext >&5
15043
15044 ac_cv_c_bigendian=no
15045fi
15046
15047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15048else
15049 $as_echo "$as_me: failed program was:" >&5
15050sed 's/^/| /' conftest.$ac_ext >&5
15051
15052
15053fi
15054
15055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 fi
15057 if test $ac_cv_c_bigendian = unknown; then
15058 # Compile a test program.
15059 if test "$cross_compiling" = yes; then
15060 # Try to guess by grepping values from an object file.
15061 cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
15066/* end confdefs.h. */
15067short int ascii_mm[] =
15068 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15069 short int ascii_ii[] =
15070 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15071 int use_ascii (int i) {
15072 return ascii_mm[i] + ascii_ii[i];
15073 }
15074 short int ebcdic_ii[] =
15075 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15076 short int ebcdic_mm[] =
15077 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15078 int use_ebcdic (int i) {
15079 return ebcdic_mm[i] + ebcdic_ii[i];
15080 }
15081 extern int foo;
15082
15083int
15084main ()
15085{
15086return use_ascii (foo) == use_ebcdic (foo);
15087 ;
15088 return 0;
15089}
15090_ACEOF
15091rm -f conftest.$ac_objext
15092if { (ac_try="$ac_compile"
15093case "(($ac_try" in
15094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15095 *) ac_try_echo=$ac_try;;
15096esac
15097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15098$as_echo "$ac_try_echo") >&5
15099 (eval "$ac_compile") 2>conftest.er1
15100 ac_status=$?
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } && {
15106 test -z "$ac_c_werror_flag" ||
15107 test ! -s conftest.err
15108 } && test -s conftest.$ac_objext; then
15109 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15110 ac_cv_c_bigendian=yes
15111 fi
15112 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15113 if test "$ac_cv_c_bigendian" = unknown; then
15114 ac_cv_c_bigendian=no
15115 else
15116 # finding both strings is unlikely to happen, but who knows?
15117 ac_cv_c_bigendian=unknown
15118 fi
15119 fi
15120else
15121 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015122sed 's/^/| /' conftest.$ac_ext >&5
15123
Theodore Ts'oe1052142006-10-21 21:46:47 -040015124
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015125fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015126
15127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015128else
15129 cat >conftest.$ac_ext <<_ACEOF
15130/* confdefs.h. */
15131_ACEOF
15132cat confdefs.h >>conftest.$ac_ext
15133cat >>conftest.$ac_ext <<_ACEOF
15134/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015135$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015136int
15137main ()
15138{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015139
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015140 /* Are we little or big endian? From Harbison&Steele. */
15141 union
15142 {
15143 long int l;
15144 char c[sizeof (long int)];
15145 } u;
15146 u.l = 1;
15147 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015148
15149 ;
15150 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015151}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015152_ACEOF
15153rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015154if { (ac_try="$ac_link"
15155case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15158esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15160$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015161 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015162 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015165 { (case "(($ac_try" in
15166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15167 *) ac_try_echo=$ac_try;;
15168esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15170$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015171 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015172 ac_status=$?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015174 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015175 ac_cv_c_bigendian=no
15176else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015177 $as_echo "$as_me: program exited with status $ac_status" >&5
15178$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015179sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015181( exit $ac_status )
15182ac_cv_c_bigendian=yes
15183fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015184rm -rf conftest.dSYM
Theodore Ts'oe1052142006-10-21 21:46:47 -040015185rm -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 -040015186fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015187
15188
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015189 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015190fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015191{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15192$as_echo "$ac_cv_c_bigendian" >&6; }
15193 case $ac_cv_c_bigendian in #(
15194 yes)
15195 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015196#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015197_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015198;; #(
15199 no)
15200 ;; #(
15201 universal)
15202
15203cat >>confdefs.h <<\_ACEOF
15204#define AC_APPLE_UNIVERSAL_BUILD 1
15205_ACEOF
15206
15207 ;; #(
15208 *)
15209 { { $as_echo "$as_me:$LINENO: error: unknown endianness
15210 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15211$as_echo "$as_me: error: unknown endianness
15212 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015213 { (exit 1); exit 1; }; } ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015214 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015215
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015216BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015217ASM_TYPES_HEADER=./asm_types.h
15218
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015219echo "/* These defines are needed for the public ext2fs.h header file */" \
15220 > public_config.h
15221if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
15222 uniq tmp_config.$$ >> public_config.h
15223else
15224 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
15225fi
15226if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
15227 uniq tmp_config.$$ >> public_config.h
15228else
15229 echo "#undef WORDS_BIGENDIAN" >> public_config.h
15230fi
15231rm -f tmp_config.$$
15232PUBLIC_CONFIG_HEADER=./public_config.h
15233
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000015234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015235for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015236do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015237as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015238if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15240$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015241if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015242 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015243fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015244ac_res=`eval 'as_val=${'$as_ac_Header'}
15245 $as_echo "$as_val"'`
15246 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15247$as_echo "$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015248else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015249 # Is the header compilable?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015250{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15251$as_echo_n "checking $ac_header usability... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015252cat >conftest.$ac_ext <<_ACEOF
15253/* confdefs.h. */
15254_ACEOF
15255cat confdefs.h >>conftest.$ac_ext
15256cat >>conftest.$ac_ext <<_ACEOF
15257/* end confdefs.h. */
15258$ac_includes_default
15259#include <$ac_header>
15260_ACEOF
15261rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015262if { (ac_try="$ac_compile"
15263case "(($ac_try" in
15264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15265 *) ac_try_echo=$ac_try;;
15266esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15268$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015269 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015270 ac_status=$?
15271 grep -v '^ *+' conftest.er1 >conftest.err
15272 rm -f conftest.er1
15273 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015275 (exit $ac_status); } && {
15276 test -z "$ac_c_werror_flag" ||
15277 test ! -s conftest.err
15278 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015279 ac_header_compiler=yes
15280else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015281 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015282sed 's/^/| /' conftest.$ac_ext >&5
15283
Theodore Ts'oe1052142006-10-21 21:46:47 -040015284 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015286
15287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015288{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15289$as_echo "$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015290
15291# Is the header present?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015292{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15293$as_echo_n "checking $ac_header presence... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294cat >conftest.$ac_ext <<_ACEOF
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300#include <$ac_header>
15301_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015302if { (ac_try="$ac_cpp conftest.$ac_ext"
15303case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15306esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15308$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015310 ac_status=$?
15311 grep -v '^ *+' conftest.er1 >conftest.err
15312 rm -f conftest.er1
15313 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015315 (exit $ac_status); } >/dev/null && {
15316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15317 test ! -s conftest.err
15318 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319 ac_header_preproc=yes
15320else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015321 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015322sed 's/^/| /' conftest.$ac_ext >&5
15323
15324 ac_header_preproc=no
15325fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015327rm -f conftest.err conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015328{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15329$as_echo "$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015330
15331# So? What about this header?
15332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15333 yes:no: )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15335$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15337$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015338 ac_header_preproc=yes
15339 ;;
15340 no:yes:* )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15342$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15344$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15346$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15348$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15350$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15352$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015353
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015354 ;;
15355esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015356{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357$as_echo_n "checking for $ac_header... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015358if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015359 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015360else
15361 eval "$as_ac_Header=\$ac_header_preproc"
15362fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015363ac_res=`eval 'as_val=${'$as_ac_Header'}
15364 $as_echo "$as_val"'`
15365 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366$as_echo "$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015367
15368fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015369as_val=`eval 'as_val=${'$as_ac_Header'}
15370 $as_echo "$as_val"'`
15371 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015374_ACEOF
15375
15376fi
15377
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015378done
15379
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015380{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
15381$as_echo_n "checking for intptr_t... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015382if test "${ac_cv_type_intptr_t+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015383 $as_echo_n "(cached) " >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015384else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015385 ac_cv_type_intptr_t=no
15386cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
15392$ac_includes_default
15393int
15394main ()
15395{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015396if (sizeof (intptr_t))
15397 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015398 ;
15399 return 0;
15400}
15401_ACEOF
15402rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015403if { (ac_try="$ac_compile"
15404case "(($ac_try" in
15405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15406 *) ac_try_echo=$ac_try;;
15407esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15409$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015410 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015416 (exit $ac_status); } && {
15417 test -z "$ac_c_werror_flag" ||
15418 test ! -s conftest.err
15419 } && test -s conftest.$ac_objext; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015420 cat >conftest.$ac_ext <<_ACEOF
15421/* confdefs.h. */
15422_ACEOF
15423cat confdefs.h >>conftest.$ac_ext
15424cat >>conftest.$ac_ext <<_ACEOF
15425/* end confdefs.h. */
15426$ac_includes_default
15427int
15428main ()
15429{
15430if (sizeof ((intptr_t)))
15431 return 0;
15432 ;
15433 return 0;
15434}
15435_ACEOF
15436rm -f conftest.$ac_objext
15437if { (ac_try="$ac_compile"
15438case "(($ac_try" in
15439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15440 *) ac_try_echo=$ac_try;;
15441esac
15442eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15443$as_echo "$ac_try_echo") >&5
15444 (eval "$ac_compile") 2>conftest.er1
15445 ac_status=$?
15446 grep -v '^ *+' conftest.er1 >conftest.err
15447 rm -f conftest.er1
15448 cat conftest.err >&5
15449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); } && {
15451 test -z "$ac_c_werror_flag" ||
15452 test ! -s conftest.err
15453 } && test -s conftest.$ac_objext; then
15454 :
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015455else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015456 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015457sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015458
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015459 ac_cv_type_intptr_t=yes
15460fi
15461
15462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15463else
15464 $as_echo "$as_me: failed program was:" >&5
15465sed 's/^/| /' conftest.$ac_ext >&5
15466
15467
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015468fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015469
15470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040015471fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015472{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
15473$as_echo "$ac_cv_type_intptr_t" >&6; }
15474if test "x$ac_cv_type_intptr_t" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015475
15476cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015477#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478_ACEOF
15479
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050015480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015481fi
15482
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015483{ $as_echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
15484$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015486 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015487else
15488 cat >conftest.$ac_ext <<_ACEOF
15489/* confdefs.h. */
15490_ACEOF
15491cat confdefs.h >>conftest.$ac_ext
15492cat >>conftest.$ac_ext <<_ACEOF
15493/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015494#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495int
15496main ()
15497{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015498struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015499 ;
15500 return 0;
15501}
15502_ACEOF
15503rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015504if { (ac_try="$ac_compile"
15505case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15508esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15510$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015511 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015512 ac_status=$?
15513 grep -v '^ *+' conftest.er1 >conftest.err
15514 rm -f conftest.er1
15515 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015517 (exit $ac_status); } && {
15518 test -z "$ac_c_werror_flag" ||
15519 test ! -s conftest.err
15520 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015521 e2fsprogs_cv_struct_st_flags=yes
15522else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015523 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015524sed 's/^/| /' conftest.$ac_ext >&5
15525
Theodore Ts'oe1052142006-10-21 21:46:47 -040015526 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015527fi
15528
Theodore Ts'oe1052142006-10-21 21:46:47 -040015529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530fi
15531
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015532{ $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
15533$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015534if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015535 { $as_echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
15536$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015537 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015538 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015539else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015540 cat >conftest.$ac_ext <<_ACEOF
15541/* confdefs.h. */
15542_ACEOF
15543cat confdefs.h >>conftest.$ac_ext
15544cat >>conftest.$ac_ext <<_ACEOF
15545/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015546#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015547int
15548main ()
15549{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015550struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015551 ;
15552 return 0;
15553}
15554_ACEOF
15555rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015556if { (ac_try="$ac_compile"
15557case "(($ac_try" in
15558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15559 *) ac_try_echo=$ac_try;;
15560esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15562$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015563 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015564 ac_status=$?
15565 grep -v '^ *+' conftest.er1 >conftest.err
15566 rm -f conftest.er1
15567 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015569 (exit $ac_status); } && {
15570 test -z "$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15572 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015573 e2fsprogs_cv_struct_st_flags_immut=yes
15574else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015575 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015576sed 's/^/| /' conftest.$ac_ext >&5
15577
Theodore Ts'oe1052142006-10-21 21:46:47 -040015578 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015579fi
15580
Theodore Ts'oe1052142006-10-21 21:46:47 -040015581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15582fi
15583
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015584 { $as_echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
15585$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015586 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015587 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015588#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015589_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015590
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000015591 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015592fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015593{ $as_echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15594$as_echo_n "checking for struct sockaddr.sa_len... " >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015595if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015596 $as_echo_n "(cached) " >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015597else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015598 cat >conftest.$ac_ext <<_ACEOF
15599/* confdefs.h. */
15600_ACEOF
15601cat confdefs.h >>conftest.$ac_ext
15602cat >>conftest.$ac_ext <<_ACEOF
15603/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015604#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015605 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015606
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015607int
15608main ()
15609{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015610static struct sockaddr ac_aggr;
15611if (ac_aggr.sa_len)
15612return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015613 ;
15614 return 0;
15615}
15616_ACEOF
15617rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015618if { (ac_try="$ac_compile"
15619case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15622esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015625 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015626 ac_status=$?
15627 grep -v '^ *+' conftest.er1 >conftest.err
15628 rm -f conftest.er1
15629 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015631 (exit $ac_status); } && {
15632 test -z "$ac_c_werror_flag" ||
15633 test ! -s conftest.err
15634 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015635 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015636else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015637 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015638sed 's/^/| /' conftest.$ac_ext >&5
15639
Theodore Ts'oe1052142006-10-21 21:46:47 -040015640 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015641/* confdefs.h. */
15642_ACEOF
15643cat confdefs.h >>conftest.$ac_ext
15644cat >>conftest.$ac_ext <<_ACEOF
15645/* end confdefs.h. */
15646#include <sys/types.h>
15647 #include <sys/socket.h>
15648
15649int
15650main ()
15651{
15652static struct sockaddr ac_aggr;
15653if (sizeof ac_aggr.sa_len)
15654return 0;
15655 ;
15656 return 0;
15657}
15658_ACEOF
15659rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015660if { (ac_try="$ac_compile"
15661case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15666$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015667 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015677 ac_cv_member_struct_sockaddr_sa_len=yes
15678else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015679 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015680sed 's/^/| /' conftest.$ac_ext >&5
15681
Theodore Ts'oe1052142006-10-21 21:46:47 -040015682 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015684
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015686fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015687
15688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015689fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015690{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15691$as_echo "$ac_cv_member_struct_sockaddr_sa_len" >&6; }
15692if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015693
15694cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015695#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015696_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050015697
15698fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
Theodore Ts'o6c65d252005-01-19 12:59:48 -050015718
Theodore Ts'o762c7c62005-04-06 14:44:16 -040015719
15720
Andreas Dilger9b7d8112005-07-09 22:06:59 -050015721
Theodore Ts'oae2868a2006-10-22 00:18:49 -040015722
Theodore Ts'o106ad962007-04-04 21:26:37 -040015723
15724
15725
Theodore Ts'o740837d2007-12-16 17:21:38 -050015726
15727
Theodore Ts'o261cd392008-01-21 13:45:00 -050015728
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040015729
15730
Theodore Ts'o1207e362009-04-15 13:05:09 -040015731
15732
15733for 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 +000015734do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015735as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15736{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15737$as_echo_n "checking for $ac_func... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040015738if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015739 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015740else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015741 cat >conftest.$ac_ext <<_ACEOF
15742/* confdefs.h. */
15743_ACEOF
15744cat confdefs.h >>conftest.$ac_ext
15745cat >>conftest.$ac_ext <<_ACEOF
15746/* end confdefs.h. */
15747/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15749#define $ac_func innocuous_$ac_func
15750
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015751/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015752 which can conflict with char $ac_func (); below.
15753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15754 <limits.h> exists even on freestanding compilers. */
15755
15756#ifdef __STDC__
15757# include <limits.h>
15758#else
15759# include <assert.h>
15760#endif
15761
15762#undef $ac_func
15763
Theodore Ts'oe1052142006-10-21 21:46:47 -040015764/* Override any GCC internal prototype to avoid an error.
15765 Use char because int might match the return type of a GCC
15766 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015767#ifdef __cplusplus
15768extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015769#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015770char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015771/* The GNU C library defines this for functions which it implements
15772 to always fail with ENOSYS. Some functions are actually named
15773 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040015774#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015775choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015776#endif
15777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015778int
15779main ()
15780{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015781return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015787if { (ac_try="$ac_link"
15788case "(($ac_try" in
15789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15790 *) ac_try_echo=$ac_try;;
15791esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15793$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015794 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015803 } && test -s conftest$ac_exeext && {
15804 test "$cross_compiling" = yes ||
15805 $as_test_x conftest$ac_exeext
15806 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015808else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015809 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015810sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015811
Theodore Ts'oe1052142006-10-21 21:46:47 -040015812 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015814
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015815rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015817 conftest$ac_exeext conftest.$ac_ext
15818fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015819ac_res=`eval 'as_val=${'$as_ac_var'}
15820 $as_echo "$as_val"'`
15821 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15822$as_echo "$ac_res" >&6; }
15823as_val=`eval 'as_val=${'$as_ac_var'}
15824 $as_echo "$as_val"'`
15825 if test "x$as_val" = x""yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015826 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015827#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015828_ACEOF
15829
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015830fi
15831done
15832
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015833SOCKET_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015834{ $as_echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15835$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015836if test "${ac_cv_lib_socket_socket+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015837 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015838else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015839 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015840LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015841cat >conftest.$ac_ext <<_ACEOF
15842/* confdefs.h. */
15843_ACEOF
15844cat confdefs.h >>conftest.$ac_ext
15845cat >>conftest.$ac_ext <<_ACEOF
15846/* end confdefs.h. */
15847
Theodore Ts'oe1052142006-10-21 21:46:47 -040015848/* Override any GCC internal prototype to avoid an error.
15849 Use char because int might match the return type of a GCC
15850 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015851#ifdef __cplusplus
15852extern "C"
15853#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015854char socket ();
15855int
15856main ()
15857{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015858return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015859 ;
15860 return 0;
15861}
15862_ACEOF
15863rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015864if { (ac_try="$ac_link"
15865case "(($ac_try" in
15866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15867 *) ac_try_echo=$ac_try;;
15868esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015869eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15870$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015871 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015872 ac_status=$?
15873 grep -v '^ *+' conftest.er1 >conftest.err
15874 rm -f conftest.er1
15875 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015877 (exit $ac_status); } && {
15878 test -z "$ac_c_werror_flag" ||
15879 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015880 } && test -s conftest$ac_exeext && {
15881 test "$cross_compiling" = yes ||
15882 $as_test_x conftest$ac_exeext
15883 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015884 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015885else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015886 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015887sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015888
Theodore Ts'oe1052142006-10-21 21:46:47 -040015889 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015890fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015891
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015892rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015893rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015894 conftest$ac_exeext conftest.$ac_ext
15895LIBS=$ac_check_lib_save_LIBS
15896fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015897{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15898$as_echo "$ac_cv_lib_socket_socket" >&6; }
15899if test "x$ac_cv_lib_socket_socket" = x""yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015900 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015901fi
15902
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015903
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015904DLOPEN_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015905{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15906$as_echo_n "checking for dlopen in -ldl... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015907if test "${ac_cv_lib_dl_dlopen+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015908 $as_echo_n "(cached) " >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015909else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015910 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015911LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015912cat >conftest.$ac_ext <<_ACEOF
15913/* confdefs.h. */
15914_ACEOF
15915cat confdefs.h >>conftest.$ac_ext
15916cat >>conftest.$ac_ext <<_ACEOF
15917/* end confdefs.h. */
15918
Theodore Ts'oe1052142006-10-21 21:46:47 -040015919/* Override any GCC internal prototype to avoid an error.
15920 Use char because int might match the return type of a GCC
15921 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015922#ifdef __cplusplus
15923extern "C"
15924#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015925char dlopen ();
15926int
15927main ()
15928{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015929return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015930 ;
15931 return 0;
15932}
15933_ACEOF
15934rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015935if { (ac_try="$ac_link"
15936case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15939esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15941$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015942 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015943 ac_status=$?
15944 grep -v '^ *+' conftest.er1 >conftest.err
15945 rm -f conftest.er1
15946 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015951 } && test -s conftest$ac_exeext && {
15952 test "$cross_compiling" = yes ||
15953 $as_test_x conftest$ac_exeext
15954 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015955 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015956else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015957 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015958sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015959
Theodore Ts'oe1052142006-10-21 21:46:47 -040015960 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015961fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015962
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015963rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015965 conftest$ac_exeext conftest.$ac_ext
15966LIBS=$ac_check_lib_save_LIBS
15967fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015968{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15969$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15970if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015971 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015972cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015973#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015974_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015975
Theodore Ts'obbac86b2003-03-16 06:27:22 -050015976fi
15977
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015978
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015979{ $as_echo "$as_me:$LINENO: checking for optreset" >&5
15980$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015981if test "${ac_cv_have_optreset+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015982 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015984 cat >conftest.$ac_ext <<_ACEOF
15985/* confdefs.h. */
15986_ACEOF
15987cat confdefs.h >>conftest.$ac_ext
15988cat >>conftest.$ac_ext <<_ACEOF
15989/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015990#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015991
15992_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015993if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015994 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015995 ac_cv_have_optreset=yes
15996else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015997 ac_cv_have_optreset=no
15998fi
15999rm -f conftest*
16000
16001fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016002{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
16003$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016004if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016005 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016006#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016007_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016008
16009fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016010SEM_INIT_LIB=''
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016011{ $as_echo "$as_me:$LINENO: checking for sem_init" >&5
16012$as_echo_n "checking for sem_init... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016013if test "${ac_cv_func_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016014 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016015else
16016 cat >conftest.$ac_ext <<_ACEOF
16017/* confdefs.h. */
16018_ACEOF
16019cat confdefs.h >>conftest.$ac_ext
16020cat >>conftest.$ac_ext <<_ACEOF
16021/* end confdefs.h. */
16022/* Define sem_init to an innocuous variant, in case <limits.h> declares sem_init.
16023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16024#define sem_init innocuous_sem_init
16025
16026/* System header to define __stub macros and hopefully few prototypes,
16027 which can conflict with char sem_init (); below.
16028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16029 <limits.h> exists even on freestanding compilers. */
16030
16031#ifdef __STDC__
16032# include <limits.h>
16033#else
16034# include <assert.h>
16035#endif
16036
16037#undef sem_init
16038
16039/* Override any GCC internal prototype to avoid an error.
16040 Use char because int might match the return type of a GCC
16041 builtin and then its argument prototype would still apply. */
16042#ifdef __cplusplus
16043extern "C"
16044#endif
16045char sem_init ();
16046/* The GNU C library defines this for functions which it implements
16047 to always fail with ENOSYS. Some functions are actually named
16048 something starting with __ and the normal name is an alias. */
16049#if defined __stub_sem_init || defined __stub___sem_init
16050choke me
16051#endif
16052
16053int
16054main ()
16055{
16056return sem_init ();
16057 ;
16058 return 0;
16059}
16060_ACEOF
16061rm -f conftest.$ac_objext conftest$ac_exeext
16062if { (ac_try="$ac_link"
16063case "(($ac_try" in
16064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065 *) ac_try_echo=$ac_try;;
16066esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16068$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016069 (eval "$ac_link") 2>conftest.er1
16070 ac_status=$?
16071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016075 (exit $ac_status); } && {
16076 test -z "$ac_c_werror_flag" ||
16077 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016078 } && test -s conftest$ac_exeext && {
16079 test "$cross_compiling" = yes ||
16080 $as_test_x conftest$ac_exeext
16081 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016082 ac_cv_func_sem_init=yes
16083else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016084 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016085sed 's/^/| /' conftest.$ac_ext >&5
16086
16087 ac_cv_func_sem_init=no
16088fi
16089
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016090rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016091rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092 conftest$ac_exeext conftest.$ac_ext
16093fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016094{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_sem_init" >&5
16095$as_echo "$ac_cv_func_sem_init" >&6; }
16096if test "x$ac_cv_func_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016097 :
16098else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016099 { $as_echo "$as_me:$LINENO: checking for sem_init in -lpthread" >&5
16100$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016101if test "${ac_cv_lib_pthread_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016102 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016103else
16104 ac_check_lib_save_LIBS=$LIBS
16105LIBS="-lpthread $LIBS"
16106cat >conftest.$ac_ext <<_ACEOF
16107/* confdefs.h. */
16108_ACEOF
16109cat confdefs.h >>conftest.$ac_ext
16110cat >>conftest.$ac_ext <<_ACEOF
16111/* end confdefs.h. */
16112
16113/* Override any GCC internal prototype to avoid an error.
16114 Use char because int might match the return type of a GCC
16115 builtin and then its argument prototype would still apply. */
16116#ifdef __cplusplus
16117extern "C"
16118#endif
16119char sem_init ();
16120int
16121main ()
16122{
16123return sem_init ();
16124 ;
16125 return 0;
16126}
16127_ACEOF
16128rm -f conftest.$ac_objext conftest$ac_exeext
16129if { (ac_try="$ac_link"
16130case "(($ac_try" in
16131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16132 *) ac_try_echo=$ac_try;;
16133esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16135$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016136 (eval "$ac_link") 2>conftest.er1
16137 ac_status=$?
16138 grep -v '^ *+' conftest.er1 >conftest.err
16139 rm -f conftest.er1
16140 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016142 (exit $ac_status); } && {
16143 test -z "$ac_c_werror_flag" ||
16144 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016145 } && test -s conftest$ac_exeext && {
16146 test "$cross_compiling" = yes ||
16147 $as_test_x conftest$ac_exeext
16148 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016149 ac_cv_lib_pthread_sem_init=yes
16150else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016151 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016152sed 's/^/| /' conftest.$ac_ext >&5
16153
16154 ac_cv_lib_pthread_sem_init=no
16155fi
16156
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016157rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016158rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16159 conftest$ac_exeext conftest.$ac_ext
16160LIBS=$ac_check_lib_save_LIBS
16161fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016162{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_sem_init" >&5
16163$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
16164if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016165 cat >>confdefs.h <<\_ACEOF
16166#define HAVE_SEM_INIT 1
16167_ACEOF
16168
16169 SEM_INIT_LIB=-lpthread
16170else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016171 { $as_echo "$as_me:$LINENO: checking for sem_init in -lrt" >&5
16172$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016173if test "${ac_cv_lib_rt_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016174 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016175else
16176 ac_check_lib_save_LIBS=$LIBS
16177LIBS="-lrt $LIBS"
16178cat >conftest.$ac_ext <<_ACEOF
16179/* confdefs.h. */
16180_ACEOF
16181cat confdefs.h >>conftest.$ac_ext
16182cat >>conftest.$ac_ext <<_ACEOF
16183/* end confdefs.h. */
16184
16185/* Override any GCC internal prototype to avoid an error.
16186 Use char because int might match the return type of a GCC
16187 builtin and then its argument prototype would still apply. */
16188#ifdef __cplusplus
16189extern "C"
16190#endif
16191char sem_init ();
16192int
16193main ()
16194{
16195return sem_init ();
16196 ;
16197 return 0;
16198}
16199_ACEOF
16200rm -f conftest.$ac_objext conftest$ac_exeext
16201if { (ac_try="$ac_link"
16202case "(($ac_try" in
16203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16204 *) ac_try_echo=$ac_try;;
16205esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016206eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16207$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016208 (eval "$ac_link") 2>conftest.er1
16209 ac_status=$?
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016217 } && test -s conftest$ac_exeext && {
16218 test "$cross_compiling" = yes ||
16219 $as_test_x conftest$ac_exeext
16220 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016221 ac_cv_lib_rt_sem_init=yes
16222else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016223 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016224sed 's/^/| /' conftest.$ac_ext >&5
16225
16226 ac_cv_lib_rt_sem_init=no
16227fi
16228
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016229rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016230rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16231 conftest$ac_exeext conftest.$ac_ext
16232LIBS=$ac_check_lib_save_LIBS
16233fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016234{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sem_init" >&5
16235$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16236if test "x$ac_cv_lib_rt_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016237 cat >>confdefs.h <<\_ACEOF
16238#define HAVE_SEM_INIT 1
16239_ACEOF
16240
16241 SEM_INIT_LIB=-lrt
16242else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016243 { $as_echo "$as_me:$LINENO: checking for sem_init in -lposix4" >&5
16244$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016245if test "${ac_cv_lib_posix4_sem_init+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016246 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016247else
16248 ac_check_lib_save_LIBS=$LIBS
16249LIBS="-lposix4 $LIBS"
16250cat >conftest.$ac_ext <<_ACEOF
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256
16257/* Override any GCC internal prototype to avoid an error.
16258 Use char because int might match the return type of a GCC
16259 builtin and then its argument prototype would still apply. */
16260#ifdef __cplusplus
16261extern "C"
16262#endif
16263char sem_init ();
16264int
16265main ()
16266{
16267return sem_init ();
16268 ;
16269 return 0;
16270}
16271_ACEOF
16272rm -f conftest.$ac_objext conftest$ac_exeext
16273if { (ac_try="$ac_link"
16274case "(($ac_try" in
16275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16276 *) ac_try_echo=$ac_try;;
16277esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16279$as_echo "$ac_try_echo") >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016280 (eval "$ac_link") 2>conftest.er1
16281 ac_status=$?
16282 grep -v '^ *+' conftest.er1 >conftest.err
16283 rm -f conftest.er1
16284 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016286 (exit $ac_status); } && {
16287 test -z "$ac_c_werror_flag" ||
16288 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016289 } && test -s conftest$ac_exeext && {
16290 test "$cross_compiling" = yes ||
16291 $as_test_x conftest$ac_exeext
16292 }; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016293 ac_cv_lib_posix4_sem_init=yes
16294else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016295 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016296sed 's/^/| /' conftest.$ac_ext >&5
16297
16298 ac_cv_lib_posix4_sem_init=no
16299fi
16300
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016301rm -rf conftest.dSYM
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16303 conftest$ac_exeext conftest.$ac_ext
16304LIBS=$ac_check_lib_save_LIBS
16305fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016306{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sem_init" >&5
16307$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
16308if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then
Theodore Ts'od7f45af2008-09-12 10:15:26 -040016309 cat >>confdefs.h <<\_ACEOF
16310#define HAVE_SEM_INIT 1
16311_ACEOF
16312
16313 SEM_INIT_LIB=-lposix4
16314fi
16315
16316fi
16317
16318fi
16319
16320fi
16321
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016322{ $as_echo "$as_me:$LINENO: checking for unified diff option" >&5
16323$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040016324if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016325 UNI_DIFF_OPTS=-u
16326else
16327 UNI_DIFF_OPTS=-c
16328fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016329{ $as_echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
16330$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040016331
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016332case "$host_os" in
16333linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016334 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016335#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016336_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016337
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000016338 ;;
16339esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016340LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016341CYGWIN_CMT="#"
16342UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016343case "$host_os" in
16344linux*)
16345 LINUX_CMT=
16346 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040016347cygwin)
16348 CYGWIN_CMT=
16349 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040016350 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040016351esac
16352
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016353
16354
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016355case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016356linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016357 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
16358 root_prefix="";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016359 { $as_echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
16360$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016361 fi
16362 ;;
16363esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016364case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016365linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000016366 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016367 prefix="/usr";
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016368 { $as_echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
16369$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016370 if test "$mandir" = '${prefix}/man' ; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016371 { $as_echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
16372$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040016373 mandir=/usr/share/man
16374 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016375 fi
16376;;
16377esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016378if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000016379 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016380 root_prefix="$ac_default_prefix"
16381 else
16382 root_prefix="$prefix"
16383 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040016384 root_bindir=$bindir
16385 root_sbindir=$sbindir
16386 root_libdir=$libdir
16387 root_sysconfdir=$sysconfdir
16388else
16389 root_bindir='${root_prefix}/bin'
16390 root_sbindir='${root_prefix}/sbin'
16391 root_libdir='${root_prefix}/lib'
16392 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016393fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016394if test "$bindir" != '${exec_prefix}/bin'; then
16395 root_bindir=$bindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016396 { $as_echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
16397$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016398fi
16399if test "$sbindir" != '${exec_prefix}/sbin'; then
16400 root_sbindir=$sbindir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016401 { $as_echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
16402$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016403fi
16404if test "$libdir" != '${exec_prefix}/lib'; then
16405 root_libdir=$libdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016406 { $as_echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
16407$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016408fi
16409if test "$sysconfdir" != '${prefix}/etc'; then
16410 root_sysconfdir=$sysconfdir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016411 { $as_echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
16412$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050016413fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000016414
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016415
16416
16417
16418
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016419{ $as_echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
16420$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016421if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016422 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000016423else
16424 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016425cat >conftest.$ac_ext <<_ACEOF
16426/* confdefs.h. */
16427_ACEOF
16428cat confdefs.h >>conftest.$ac_ext
16429cat >>conftest.$ac_ext <<_ACEOF
16430/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000016431#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016432int
16433main ()
16434{
Theodore Ts'oae851481997-04-29 18:13:24 +000016435fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016436 ;
16437 return 0;
16438}
16439_ACEOF
16440rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040016441if { (ac_try="$ac_link"
16442case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16445esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16447$as_echo "$ac_try_echo") >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040016448 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016449 ac_status=$?
16450 grep -v '^ *+' conftest.er1 >conftest.err
16451 rm -f conftest.er1
16452 cat conftest.err >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016454 (exit $ac_status); } && {
16455 test -z "$ac_c_werror_flag" ||
16456 test ! -s conftest.err
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016457 } && test -s conftest$ac_exeext && {
16458 test "$cross_compiling" = yes ||
16459 $as_test_x conftest$ac_exeext
16460 }; then
Theodore Ts'oae851481997-04-29 18:13:24 +000016461 ac_cv_e2fsprogs_use_static=yes
16462else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016463 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016464sed 's/^/| /' conftest.$ac_ext >&5
16465
Theodore Ts'oe1052142006-10-21 21:46:47 -040016466 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000016467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016468
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016469rm -rf conftest.dSYM
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016470rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016471 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000016472LDFLAGS=$SAVE_LDFLAGS
16473fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016474
Theodore Ts'odefde781999-01-04 07:39:19 +000016475case "$host_os" in
16476solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016477 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000016478;;
16479esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016480{ $as_echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
16481$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000016482LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000016483if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016484 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000016485fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016486
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016487case "$host_os" in
16488darwin*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016489 { $as_echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
16490$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016491 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016492#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016493_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016494
16495 ;;
16496esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016497SS_DIR=`cd ${srcdir}/lib/ss; pwd`
16498ET_DIR=`cd ${srcdir}/lib/et; pwd`
16499
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016500
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016501if test "$cross_compiling" = yes ; then
16502 DO_TEST_SUITE=
16503else
16504 DO_TEST_SUITE=check
16505fi
16506
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040016507INTL_FLAGS=
16508if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
16509 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
16510fi
16511
Theodore Ts'odd947da2005-11-09 18:37:07 -040016512if test $cross_compiling = no; then
16513 BUILD_CFLAGS="$CFLAGS"
16514 BUILD_LDFLAGS="$LDFLAGS"
16515else
16516 BUILD_CFLAGS=
16517 BUILD_LDFLAGS=
16518fi
16519
16520
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016521test -d lib || mkdir lib
16522test -d include || mkdir include
16523test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000016524test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050016525for i in MCONFIG Makefile e2fsprogs.spec \
16526 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040016527 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16528 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016529 lib/uuid/Makefile lib/uuid/uuid_types.h \
16530 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050016531 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
16532 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050016533 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050016534 debugfs/Makefile tests/Makefile tests/progs/Makefile \
16535 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
16536 if test -d `dirname ${srcdir}/$i` ; then
16537 outlist="$outlist $i"
16538 fi
16539done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016540ac_config_files="$ac_config_files $outlist"
16541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016542cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016543# This file is a shell script that caches the results of configure
16544# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016545# scripts and configure runs, see configure's option --config-cache.
16546# It is not useful on other systems. If it contains results you don't
16547# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016548#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016549# config.status only pays attention to the cache file if you give it
16550# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016551#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016552# `ac_cv_env_foo' variables (set or unset) will be overridden when
16553# loading this file, other *unset* `ac_cv_foo' will be assigned the
16554# following values.
16555
16556_ACEOF
16557
Theodore Ts'o21c84b71997-04-29 16:15:03 +000016558# The following way of writing the cache mishandles newlines in values,
16559# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016560# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016561# Ultrix sh set writes to stderr and can't be redirected directly,
16562# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016563(
16564 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16565 eval ac_val=\$$ac_var
16566 case $ac_val in #(
16567 *${as_nl}*)
16568 case $ac_var in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016569 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
16570$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016571 esac
16572 case $ac_var in #(
16573 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016574 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'oe1052142006-10-21 21:46:47 -040016575 *) $as_unset $ac_var ;;
16576 esac ;;
16577 esac
16578 done
16579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016580 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016581 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16582 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016583 # `set' does not quote correctly, so add quotes (double-quote
16584 # substitution turns \\\\ into \\, and sed turns \\ into \).
16585 sed -n \
16586 "s/'/'\\\\''/g;
16587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040016588 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016589 *)
16590 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016592 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016593 esac |
16594 sort
16595) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016596 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016597 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016598 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016599 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016600 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16601 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040016602 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16603 :end' >>confcache
16604if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16605 if test -w "$cache_file"; then
16606 test "x$cache_file" != "x/dev/null" &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016607 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
16608$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016609 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016610 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016611 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16612$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016613 fi
16614fi
16615rm -f confcache
16616
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016617test "x$prefix" = xNONE && prefix=$ac_default_prefix
16618# Let make expand exec_prefix.
16619test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16620
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016621# Transform confdefs.h into DEFS.
16622# Protect against shell expansion while executing Makefile rules.
16623# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016624#
16625# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040016626# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016627# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016628ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016629:mline
16630/\\$/{
16631 N
16632 s,\\\n,,
16633 b mline
16634}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016635t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040016636:clear
16637s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016638t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016639s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016640t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040016641b any
16642:quote
16643s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
16644s/\[/\\&/g
16645s/\]/\\&/g
16646s/\$/$$/g
16647H
16648:any
16649${
16650 g
16651 s/^\n//
16652 s/\n/ /g
16653 p
16654}
16655'
16656DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016657
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016659ac_libobjs=
16660ac_ltlibobjs=
16661for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16662 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016664 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16666 # will be set to the directory where LIBOBJS objects are built.
16667 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16668 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016669done
16670LIBOBJS=$ac_libobjs
16671
16672LTLIBOBJS=$ac_ltlibobjs
16673
16674
16675
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016676
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016677: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016678ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016679ac_clean_files_save=$ac_clean_files
16680ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016681{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16683cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016684#! $SHELL
16685# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016686# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016687# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016688# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016689
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016690debug=false
16691ac_cs_recheck=false
16692ac_cs_silent=false
16693SHELL=\${CONFIG_SHELL-$SHELL}
16694_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016695
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016696cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016697## --------------------- ##
16698## M4sh Initialization. ##
16699## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040016700
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016701# Be more Bourne compatible
16702DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016703if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16704 emulate sh
16705 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016706 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016707 # is contrary to our usage. Disable this feature.
16708 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016709 setopt NO_GLOB_SUBST
16710else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016711 case `(set -o) 2>/dev/null` in
16712 *posix*) set -o posix ;;
16713esac
16714
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016715fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016716
16717
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016718
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016719
Theodore Ts'oe1052142006-10-21 21:46:47 -040016720# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016721# Avoid depending upon Character Ranges.
16722as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16723as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16724as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16725as_cr_digits='0123456789'
16726as_cr_alnum=$as_cr_Letters$as_cr_digits
16727
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016728as_nl='
16729'
16730export as_nl
16731# Printing a long string crashes Solaris 7 /usr/bin/printf.
16732as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16733as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16734as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16735if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16736 as_echo='printf %s\n'
16737 as_echo_n='printf %s'
16738else
16739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16741 as_echo_n='/usr/ucb/echo -n'
16742 else
16743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16744 as_echo_n_body='eval
16745 arg=$1;
16746 case $arg in
16747 *"$as_nl"*)
16748 expr "X$arg" : "X\\(.*\\)$as_nl";
16749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16750 esac;
16751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16752 '
16753 export as_echo_n_body
16754 as_echo_n='sh -c $as_echo_n_body as_echo'
16755 fi
16756 export as_echo_body
16757 as_echo='sh -c $as_echo_body as_echo'
16758fi
16759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016760# The user is always right.
16761if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016762 PATH_SEPARATOR=:
16763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16765 PATH_SEPARATOR=';'
16766 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016767fi
16768
Theodore Ts'oe1052142006-10-21 21:46:47 -040016769# Support unset when possible.
16770if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
16771 as_unset=unset
16772else
16773 as_unset=false
16774fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016775
Theodore Ts'oe1052142006-10-21 21:46:47 -040016776
16777# IFS
16778# We need space, tab and new line, in precisely that order. Quoting is
16779# there to prevent editors from complaining about space-tab.
16780# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16781# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040016782IFS=" "" $as_nl"
16783
16784# Find who we are. Look in the path if we contain no directory separator.
16785case $0 in
16786 *[\\/]* ) as_myself=$0 ;;
16787 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016788for as_dir in $PATH
16789do
16790 IFS=$as_save_IFS
16791 test -z "$as_dir" && as_dir=.
16792 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16793done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016794IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016795
Theodore Ts'oe1052142006-10-21 21:46:47 -040016796 ;;
16797esac
16798# We did not find ourselves, most probably we were run as `sh COMMAND'
16799# in which case we are not to be found in the path.
16800if test "x$as_myself" = x; then
16801 as_myself=$0
16802fi
16803if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016804 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -040016805 { (exit 1); exit 1; }
16806fi
16807
16808# Work around bugs in pre-3.0 UWIN ksh.
16809for as_var in ENV MAIL MAILPATH
16810do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
16811done
16812PS1='$ '
16813PS2='> '
16814PS4='+ '
16815
16816# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016817LC_ALL=C
16818export LC_ALL
16819LANGUAGE=C
16820export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040016821
16822# Required to use basename.
16823if expr a : '\(a\)' >/dev/null 2>&1 &&
16824 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16825 as_expr=expr
16826else
16827 as_expr=false
16828fi
16829
16830if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16831 as_basename=basename
16832else
16833 as_basename=false
16834fi
16835
16836
16837# Name of the executable.
16838as_me=`$as_basename -- "$0" ||
16839$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16840 X"$0" : 'X\(//\)$' \| \
16841 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016842$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016843 sed '/^.*\/\([^/][^/]*\)\/*$/{
16844 s//\1/
16845 q
16846 }
16847 /^X\/\(\/\/\)$/{
16848 s//\1/
16849 q
16850 }
16851 /^X\/\(\/\).*/{
16852 s//\1/
16853 q
16854 }
16855 s/.*/./; q'`
16856
16857# CDPATH.
16858$as_unset CDPATH
16859
16860
16861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016862 as_lineno_1=$LINENO
16863 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016864 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016865 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040016866
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016867 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16868 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040016869 # line-number line after each line using $LINENO; the second 'sed'
16870 # does the real work. The second script uses 'N' to pair each
16871 # line-number line with the line containing $LINENO, and appends
16872 # trailing '-' during substitution so that $LINENO is not a special
16873 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016874 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016875 # scripts with optimization help from Paolo Bonzini. Blame Lee
16876 # E. McMahon (1931-1989) for sed's syntax. :-)
16877 sed -n '
16878 p
16879 /[$]LINENO/=
16880 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016881 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016882 s/[$]LINENO.*/&-/
16883 t lineno
16884 b
16885 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016886 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040016887 :loop
16888 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016889 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040016890 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016891 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040016892 chmod +x "$as_me.lineno" ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016893 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016894 { (exit 1); exit 1; }; }
16895
16896 # Don't try to exec as it changes $[0], causing all sort of problems
16897 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040016898 # original and so on. Autoconf is especially sensitive to this).
16899 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016900 # Exit status is that of the last command.
16901 exit
16902}
16903
16904
Theodore Ts'oe1052142006-10-21 21:46:47 -040016905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16906 as_dirname=dirname
16907else
16908 as_dirname=false
16909fi
16910
16911ECHO_C= ECHO_N= ECHO_T=
16912case `echo -n x` in
16913-n*)
16914 case `echo 'x\c'` in
16915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16916 *) ECHO_C='\c';;
16917 esac;;
16918*)
16919 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016920esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016921if expr a : '\(a\)' >/dev/null 2>&1 &&
16922 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016923 as_expr=expr
16924else
16925 as_expr=false
16926fi
16927
16928rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040016929if test -d conf$$.dir; then
16930 rm -f conf$$.dir/conf$$.file
16931else
16932 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016933 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040016934fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016935if (echo >conf$$.file) 2>/dev/null; then
16936 if ln -s conf$$.file conf$$ 2>/dev/null; then
16937 as_ln_s='ln -s'
16938 # ... but there are two gotchas:
16939 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16940 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16941 # In both cases, we have to default to `cp -p'.
16942 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16943 as_ln_s='cp -p'
16944 elif ln conf$$.file conf$$ 2>/dev/null; then
16945 as_ln_s=ln
16946 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016947 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016948 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016949else
16950 as_ln_s='cp -p'
16951fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040016952rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16953rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016954
16955if mkdir -p . 2>/dev/null; then
16956 as_mkdir_p=:
16957else
16958 test -d ./-p && rmdir ./-p
16959 as_mkdir_p=false
16960fi
16961
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016962if test -x / >/dev/null 2>&1; then
16963 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040016964else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016965 if ls -dL / >/dev/null 2>&1; then
16966 as_ls_L_option=L
16967 else
16968 as_ls_L_option=
16969 fi
16970 as_test_x='
16971 eval sh -c '\''
16972 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016973 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016974 else
16975 case $1 in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016976 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016977 esac;
16978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
16979 ???[sx]*):;;*)false;;esac;fi
16980 '\'' sh
16981 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040016982fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040016983as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016984
16985# Sed expression to map a string onto a valid CPP name.
16986as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16987
16988# Sed expression to map a string onto a valid variable name.
16989as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16990
16991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016992exec 6>&1
16993
Theodore Ts'oe1052142006-10-21 21:46:47 -040016994# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016995# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040016996# values after options handling.
16997ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016998This file was extended by $as_me, which was
Scott James Remnant39fd3d42009-05-14 13:03:25 +010016999generated by GNU Autoconf 2.63. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017000
17001 CONFIG_FILES = $CONFIG_FILES
17002 CONFIG_HEADERS = $CONFIG_HEADERS
17003 CONFIG_LINKS = $CONFIG_LINKS
17004 CONFIG_COMMANDS = $CONFIG_COMMANDS
17005 $ $0 $@
17006
Theodore Ts'oe1052142006-10-21 21:46:47 -040017007on `(hostname || uname -n) 2>/dev/null | sed 1q`
17008"
17009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017010_ACEOF
17011
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017012case $ac_config_files in *"
17013"*) set x $ac_config_files; shift; ac_config_files=$*;;
17014esac
17015
17016
17017
17018cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017019# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017020config_files="$ac_config_files"
17021config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017022
Theodore Ts'oe1052142006-10-21 21:46:47 -040017023_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017024
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017025cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017026ac_cs_usage="\
17027\`$as_me' instantiates files from templates according to the
17028current configuration.
17029
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017030Usage: $0 [OPTION]... [FILE]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017031
17032 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017033 -V, --version print version number and configuration settings, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017034 -q, --quiet, --silent
17035 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017036 -d, --debug don't remove temporary files
17037 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017038 --file=FILE[:TEMPLATE]
17039 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017040
17041Configuration files:
17042$config_files
17043
17044Configuration commands:
17045$config_commands
17046
17047Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017048
Theodore Ts'oe1052142006-10-21 21:46:47 -040017049_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017050cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017051ac_cs_version="\\
17052config.status
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017053configured by $0, generated by GNU Autoconf 2.63,
17054 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017055
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017056Copyright (C) 2008 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017057This config.status script is free software; the Free Software Foundation
17058gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040017059
17060ac_pwd='$ac_pwd'
17061srcdir='$srcdir'
17062INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017063AWK='$AWK'
17064test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017065_ACEOF
17066
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017067cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17068# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017069ac_need_defaults=:
17070while test $# != 0
17071do
17072 case $1 in
17073 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040017074 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17075 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017076 ac_shift=:
17077 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017078 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017079 ac_option=$1
17080 ac_optarg=$2
17081 ac_shift=shift
17082 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017083 esac
17084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017085 case $ac_option in
17086 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017087 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17088 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017089 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017090 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017091 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017092 debug=: ;;
17093 --file | --fil | --fi | --f )
17094 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017095 case $ac_optarg in
17096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17097 esac
17098 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017099 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017100 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017101 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017102 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17103 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17104 ac_cs_silent=: ;;
17105
17106 # This is an error.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017107 -*) { $as_echo "$as_me: error: unrecognized option: $1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017108Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017109 { (exit 1); exit 1; }; } ;;
17110
Theodore Ts'oe1052142006-10-21 21:46:47 -040017111 *) ac_config_targets="$ac_config_targets $1"
17112 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017113
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017114 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017115 shift
17116done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017118ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040017119
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017120if $ac_cs_silent; then
17121 exec 6>/dev/null
17122 ac_configure_extra_args="$ac_configure_extra_args --silent"
17123fi
17124
17125_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017126cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017127if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017128 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17129 shift
17130 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17131 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017132 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017133 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017134fi
17135
17136_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017138exec 5>>config.log
17139{
17140 echo
17141 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17142## Running $as_me. ##
17143_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017144 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017145} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017146
Theodore Ts'oe1052142006-10-21 21:46:47 -040017147_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017149#
Theodore Ts'oe1052142006-10-21 21:46:47 -040017150# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017151#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017152# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017153 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017154 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017155 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017156 # Capture the value of LINGUAS because we need it to compute CATALOGS.
17157 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017158
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017160_ACEOF
17161
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017162cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017163
17164# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017165for ac_config_target in $ac_config_targets
17166do
Theodore Ts'oe1052142006-10-21 21:46:47 -040017167 case $ac_config_target in
17168 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17169 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
17170
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017171 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17172$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017173 { (exit 1); exit 1; }; };;
17174 esac
17175done
17176
Theodore Ts'oe1052142006-10-21 21:46:47 -040017177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017178# If the user did not use the arguments to specify the items to instantiate,
17179# then the envvar interface is used. Set only those that are not.
17180# We use the long form for the default assignment because of an extremely
17181# bizarre bug on SunOS 4.1.3.
17182if $ac_need_defaults; then
17183 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17185fi
17186
17187# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040017188# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017189# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017190# Hook for its removal unless debugging.
17191# Note that there is a small window in which the directory will not be cleaned:
17192# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017193$debug ||
17194{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017195 tmp=
17196 trap 'exit_status=$?
17197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17198' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017199 trap '{ (exit 1); exit 1; }' 1 2 13 15
17200}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017201# Create a (secure) tmp directory for tmp files.
17202
17203{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017205 test -n "$tmp" && test -d "$tmp"
17206} ||
17207{
Theodore Ts'oe1052142006-10-21 21:46:47 -040017208 tmp=./conf$$-$RANDOM
17209 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017210} ||
17211{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017212 $as_echo "$as_me: cannot create a temporary directory in ." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017213 { (exit 1); exit 1; }
17214}
17215
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017216# Set up the scripts for CONFIG_FILES section.
17217# No need to generate them if there are no CONFIG_FILES.
17218# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017219if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017220
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017221if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
17222 ac_cs_awk_getline=:
17223 ac_cs_awk_pipe_init=
17224 ac_cs_awk_read_file='
17225 while ((getline aline < (F[key])) > 0)
17226 print(aline)
17227 close(F[key])'
17228 ac_cs_awk_pipe_fini=
17229else
17230 ac_cs_awk_getline=false
17231 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
17232 ac_cs_awk_read_file='
17233 print "|#_!!_#|"
17234 print "cat " F[key] " &&"
17235 '$ac_cs_awk_pipe_init
17236 # The final `:' finishes the AND list.
17237 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
17238fi
17239ac_cr=' '
17240ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17241if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17242 ac_cs_awk_cr='\\r'
17243else
17244 ac_cs_awk_cr=$ac_cr
17245fi
17246
17247echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017248_ACEOF
17249
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017250# Create commands to substitute file output variables.
17251{
17252 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
17253 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
17254 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
17255 echo "_ACAWK" &&
17256 echo "_ACEOF"
17257} >conf$$files.sh &&
17258. ./conf$$files.sh ||
17259 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17260$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17261 { (exit 1); exit 1; }; }
17262rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017263
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017264{
17265 echo "cat >conf$$subs.awk <<_ACEOF" &&
17266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17267 echo "_ACEOF"
17268} >conf$$subs.sh ||
17269 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17270$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17271 { (exit 1); exit 1; }; }
17272ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017273ac_delim='%!_!# '
17274for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017275 . ./conf$$subs.sh ||
17276 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17277$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17278 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017279
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017280 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17281 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040017282 break
17283 elif $ac_last_try; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017284 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17285$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017286 { (exit 1); exit 1; }; }
17287 else
17288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017289 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040017290done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017291rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040017292
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17294cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040017295_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017296sed -n '
17297h
17298s/^/S["/; s/!.*/"]=/
17299p
17300g
17301s/^[^!]*!//
17302:repl
17303t repl
17304s/'"$ac_delim"'$//
17305t delim
17306:nl
17307h
17308s/\(.\{148\}\).*/\1/
17309t more1
17310s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17311p
17312n
17313b repl
17314:more1
17315s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17316p
17317g
17318s/.\{148\}//
17319t nl
17320:delim
17321h
17322s/\(.\{148\}\).*/\1/
17323t more2
17324s/["\\]/\\&/g; s/^/"/; s/$/"/
17325p
17326b
17327:more2
17328s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17329p
17330g
17331s/.\{148\}//
17332t delim
17333' <conf$$subs.awk | sed '
17334/^[^""]/{
17335 N
17336 s/\n//
17337}
17338' >>$CONFIG_STATUS || ac_write_fail=1
17339rm -f conf$$subs.awk
17340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17341_ACAWK
17342cat >>"\$tmp/subs1.awk" <<_ACAWK &&
17343 for (key in S) S_is_set[key] = 1
17344 FS = ""
17345 \$ac_cs_awk_pipe_init
17346}
17347{
17348 line = $ 0
17349 nfields = split(line, field, "@")
17350 substed = 0
17351 len = length(field[1])
17352 for (i = 2; i < nfields; i++) {
17353 key = field[i]
17354 keylen = length(key)
17355 if (S_is_set[key]) {
17356 value = S[key]
17357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17358 len += length(value) + length(field[++i])
17359 substed = 1
17360 } else
17361 len += 1 + keylen
17362 }
17363 if (nfields == 3 && !substed) {
17364 key = field[2]
17365 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17366 \$ac_cs_awk_read_file
17367 next
17368 }
17369 }
17370 print line
17371}
17372\$ac_cs_awk_pipe_fini
17373_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040017374_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17376if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17377 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17378else
17379 cat
17380fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
17381 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
17382$as_echo "$as_me: error: could not setup config files machinery" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017383 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017384_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017385
17386# VPATH may cause trouble with some makes, so we remove $(srcdir),
17387# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17388# trailing colons and then remove the whole line if VPATH becomes empty
17389# (actually we leave an empty line to preserve line numbers).
17390if test "x$srcdir" = x.; then
17391 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17392s/:*\$(srcdir):*/:/
17393s/:*\${srcdir}:*/:/
17394s/:*@srcdir@:*/:/
17395s/^\([^=]*=[ ]*\):*/\1/
17396s/:*$//
17397s/^[^=]*=[ ]*$//
17398}'
17399fi
17400
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017402fi # test -n "$CONFIG_FILES"
17403
Theodore Ts'oe1052142006-10-21 21:46:47 -040017404
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017405eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
17406shift
17407for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040017408do
17409 case $ac_tag in
17410 :[FHLC]) ac_mode=$ac_tag; continue;;
17411 esac
17412 case $ac_mode$ac_tag in
17413 :[FHL]*:*);;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017414 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
17415$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017416 { (exit 1); exit 1; }; };;
17417 :[FH]-) ac_tag=-:-;;
17418 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17419 esac
17420 ac_save_IFS=$IFS
17421 IFS=:
17422 set x $ac_tag
17423 IFS=$ac_save_IFS
17424 shift
17425 ac_file=$1
17426 shift
17427
17428 case $ac_mode in
17429 :L) ac_source=$1;;
17430 :[FH])
17431 ac_file_inputs=
17432 for ac_f
17433 do
17434 case $ac_f in
17435 -) ac_f="$tmp/stdin";;
17436 *) # Look for the file first in the build tree, then in the source tree
17437 # (if the path is not absolute). The absolute path cannot be DOS-style,
17438 # because $ac_f cannot contain `:'.
17439 test -f "$ac_f" ||
17440 case $ac_f in
17441 [\\/$]*) false;;
17442 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17443 esac ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017444 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
17445$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017446 { (exit 1); exit 1; }; };;
17447 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017448 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17449 ac_file_inputs="$ac_file_inputs '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040017450 done
17451
17452 # Let's still pretend it is `configure' which instantiates (i.e., don't
17453 # use $as_me), people would be surprised to read:
17454 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017455 configure_input='Generated from '`
17456 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17457 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017458 if test x"$ac_file" != x-; then
17459 configure_input="$ac_file. $configure_input"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017460 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
17461$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017462 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017463 # Neutralize special characters interpreted by sed in replacement strings.
17464 case $configure_input in #(
17465 *\&* | *\|* | *\\* )
17466 ac_sed_conf_input=`$as_echo "$configure_input" |
17467 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17468 *) ac_sed_conf_input=$configure_input;;
17469 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017470
17471 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017472 *:-:* | *:-) cat >"$tmp/stdin" \
17473 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17474$as_echo "$as_me: error: could not create $ac_file" >&2;}
17475 { (exit 1); exit 1; }; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017476 esac
17477 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017478 esac
17479
Theodore Ts'oe1052142006-10-21 21:46:47 -040017480 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017481$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17482 X"$ac_file" : 'X\(//\)[^/]' \| \
17483 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017484 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017485$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17487 s//\1/
17488 q
17489 }
17490 /^X\(\/\/\)[^/].*/{
17491 s//\1/
17492 q
17493 }
17494 /^X\(\/\/\)$/{
17495 s//\1/
17496 q
17497 }
17498 /^X\(\/\).*/{
17499 s//\1/
17500 q
17501 }
17502 s/.*/./; q'`
17503 { as_dir="$ac_dir"
17504 case $as_dir in #(
17505 -*) as_dir=./$as_dir;;
17506 esac
17507 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017508 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040017509 while :; do
17510 case $as_dir in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017511 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
Theodore Ts'oe1052142006-10-21 21:46:47 -040017512 *) as_qdir=$as_dir;;
17513 esac
17514 as_dirs="'$as_qdir' $as_dirs"
17515 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017516$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17517 X"$as_dir" : 'X\(//\)[^/]' \| \
17518 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040017519 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017520$as_echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040017521 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17522 s//\1/
17523 q
17524 }
17525 /^X\(\/\/\)[^/].*/{
17526 s//\1/
17527 q
17528 }
17529 /^X\(\/\/\)$/{
17530 s//\1/
17531 q
17532 }
17533 /^X\(\/\).*/{
17534 s//\1/
17535 q
17536 }
17537 s/.*/./; q'`
17538 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017539 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040017540 test -z "$as_dirs" || eval "mkdir $as_dirs"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017541 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
17542$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017543 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017544 ac_builddir=.
17545
Theodore Ts'oe1052142006-10-21 21:46:47 -040017546case "$ac_dir" in
17547.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17548*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017549 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017550 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017551 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040017552 case $ac_top_builddir_sub in
17553 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17554 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17555 esac ;;
17556esac
17557ac_abs_top_builddir=$ac_pwd
17558ac_abs_builddir=$ac_pwd$ac_dir_suffix
17559# for backward compatibility:
17560ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017561
17562case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017563 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017564 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040017565 ac_top_srcdir=$ac_top_builddir_sub
17566 ac_abs_top_srcdir=$ac_pwd ;;
17567 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017568 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017569 ac_top_srcdir=$srcdir
17570 ac_abs_top_srcdir=$srcdir ;;
17571 *) # Relative name.
17572 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17573 ac_top_srcdir=$ac_top_build_prefix$srcdir
17574 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017575esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040017576ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017578
Theodore Ts'oe1052142006-10-21 21:46:47 -040017579 case $ac_mode in
17580 :F)
17581 #
17582 # CONFIG_FILE
17583 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017584
17585 case $INSTALL in
17586 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040017587 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017588 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017589_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040017590
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017592# If the template does not know about datarootdir, expand it.
17593# FIXME: This hack should be removed a few years after 2.60.
17594ac_datarootdir_hack=; ac_datarootdir_seen=
17595
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017596ac_sed_dataroot='
17597/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040017598 p
17599 q
17600}
17601/@datadir@/p
17602/@docdir@/p
17603/@infodir@/p
17604/@localedir@/p
17605/@mandir@/p
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017606'
17607case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040017608*datarootdir*) ac_datarootdir_seen=yes;;
17609*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017610 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17611$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017612_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017613cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040017614 ac_datarootdir_hack='
17615 s&@datadir@&$datadir&g
17616 s&@docdir@&$docdir&g
17617 s&@infodir@&$infodir&g
17618 s&@localedir@&$localedir&g
17619 s&@mandir@&$mandir&g
17620 s&\\\${datarootdir}&$datarootdir&g' ;;
17621esac
17622_ACEOF
17623
17624# Neutralize VPATH when `$srcdir' = `.'.
17625# Shell code in configure.ac might set extrasub.
17626# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17628ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017629$extrasub
17630_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017632:t
17633/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017634s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017635s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017636s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040017637s&@srcdir@&$ac_srcdir&;t t
17638s&@abs_srcdir@&$ac_abs_srcdir&;t t
17639s&@top_srcdir@&$ac_top_srcdir&;t t
17640s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17641s&@builddir@&$ac_builddir&;t t
17642s&@abs_builddir@&$ac_abs_builddir&;t t
17643s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17644s&@INSTALL@&$ac_INSTALL&;t t
17645$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017646"
17647eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17648if $ac_cs_awk_getline; then
17649 $AWK -f "$tmp/subs.awk"
17650else
17651 $AWK -f "$tmp/subs.awk" | $SHELL
17652fi >$tmp/out \
17653 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17654$as_echo "$as_me: error: could not create $ac_file" >&2;}
17655 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017656
Theodore Ts'oe1052142006-10-21 21:46:47 -040017657test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17658 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
17659 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017660 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017661which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017662$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040017663which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017664
Theodore Ts'oe1052142006-10-21 21:46:47 -040017665 rm -f "$tmp/stdin"
17666 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017667 -) cat "$tmp/out" && rm -f "$tmp/out";;
17668 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
17669 esac \
17670 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
17671$as_echo "$as_me: error: could not create $ac_file" >&2;}
17672 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040017673 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017674
17675
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017676 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
17677$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040017678 ;;
17679 esac
17680
17681
17682 case $ac_file$ac_mode in
17683 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017684 for ac_file in $CONFIG_FILES; do
17685 # Support "outfile[:infile[:infile...]]"
17686 case "$ac_file" in
17687 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000017688 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017689 # PO directories have a Makefile.in generated from Makefile.in.in.
17690 case "$ac_file" in */Makefile.in)
17691 # Adjust a relative srcdir.
17692 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
17693 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
17694 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17695 # In autoconf-2.13 it is called $ac_given_srcdir.
17696 # In autoconf-2.50 it is called $srcdir.
17697 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17698 case "$ac_given_srcdir" in
17699 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17700 /*) top_srcdir="$ac_given_srcdir" ;;
17701 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17702 esac
17703 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17704 rm -f "$ac_dir/POTFILES"
17705 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
17706 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 -050017707 POMAKEFILEDEPS="POTFILES.in"
17708 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017709 # on $ac_dir but don't depend on user-specified configuration
17710 # parameters.
17711 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17712 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017713 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017714 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17715 fi
17716 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
17717 # Hide the ALL_LINGUAS assigment from automake.
17718 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017719 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17720 else
17721 # The set of available languages was given in configure.in.
17722 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017723 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017724 # Compute POFILES
17725 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17726 # Compute UPDATEPOFILES
17727 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17728 # Compute DUMMYPOFILES
17729 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17730 # Compute GMOFILES
17731 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017732 case "$ac_given_srcdir" in
17733 .) srcdirpre= ;;
17734 *) srcdirpre='$(srcdir)/' ;;
17735 esac
17736 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017737 UPDATEPOFILES=
17738 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017739 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017740 for lang in $ALL_LINGUAS; do
17741 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017742 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17743 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017744 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040017745 done
17746 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17747 # environment variable.
17748 INST_LINGUAS=
17749 if test -n "$ALL_LINGUAS"; then
17750 for presentlang in $ALL_LINGUAS; do
17751 useit=no
17752 if test "%UNSET%" != "$LINGUAS"; then
17753 desiredlanguages="$LINGUAS"
17754 else
17755 desiredlanguages="$ALL_LINGUAS"
17756 fi
17757 for desiredlang in $desiredlanguages; do
17758 # Use the presentlang catalog if desiredlang is
17759 # a. equal to presentlang, or
17760 # b. a variant of presentlang (because in this case,
17761 # presentlang can be used as a fallback for messages
17762 # which are not translated in the desiredlang catalog).
17763 case "$desiredlang" in
17764 "$presentlang"*) useit=yes;;
17765 esac
17766 done
17767 if test $useit = yes; then
17768 INST_LINGUAS="$INST_LINGUAS $presentlang"
17769 fi
17770 done
17771 fi
17772 CATALOGS=
17773 if test -n "$INST_LINGUAS"; then
17774 for lang in $INST_LINGUAS; do
17775 CATALOGS="$CATALOGS $lang.gmo"
17776 done
17777 fi
17778 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017779 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 -040017780 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17781 if test -f "$f"; then
17782 case "$f" in
17783 *.orig | *.bak | *~) ;;
17784 *) cat "$f" >> "$ac_dir/Makefile" ;;
17785 esac
17786 fi
17787 done
17788 fi
17789 ;;
17790 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017791 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017792
Theodore Ts'oe1052142006-10-21 21:46:47 -040017793 esac
17794done # for ac_tag
17795
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017796
17797{ (exit 0); exit 0; }
17798_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017799chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017800ac_clean_files=$ac_clean_files_save
17801
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017802test $ac_write_fail = 0 ||
17803 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
17804$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
17805 { (exit 1); exit 1; }; }
17806
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050017807
17808# configure is writing to config.log, and then calls config.status.
17809# config.status does its own redirection, appending to config.log.
17810# Unfortunately, on DOS this fails, as config.log is still kept open
17811# by configure, so config.status won't be able to write to it; its
17812# output is simply discarded. So we exec the FD to /dev/null,
17813# effectively closing config.log, so it can be properly (re)opened and
17814# appended to by config.status. When coming back to configure, we
17815# need to make the FD available again.
17816if test "$no_create" != yes; then
17817 ac_cs_success=:
17818 ac_config_status_args=
17819 test "$silent" = yes &&
17820 ac_config_status_args="$ac_config_status_args --quiet"
17821 exec 5>/dev/null
17822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17823 exec 5>>config.log
17824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17825 # would make configure fail if this is the last instruction.
17826 $ac_cs_success || { (exit 1); exit 1; }
17827fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010017828if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17829 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17830$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17831fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000017832
Theodore Ts'oee683a12005-02-05 15:53:56 -050017833if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi