blob: 6dccb3ce1daa5c1637be18793ffb5324aa290f16 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003# Generated by GNU Autoconf 2.65.
4#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Theodore Ts'oe1052142006-10-21 21:46:47 -04006# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8# Inc.
9#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010#
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050020 emulate sh
21 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040025 setopt NO_GLOB_SUBST
26else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040034
35
Scott James Remnant39fd3d42009-05-14 13:03:25 +010036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050060 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081fi
82
Theodore Ts'oe1052142006-10-21 21:46:47 -040083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050092case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040093 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050095for as_dir in $PATH
96do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050099 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400101IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500102
Theodore Ts'oe1052142006-10-21 21:46:47 -0400103 ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108 as_myself=$0
109fi
110if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500112 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113fi
114
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400132
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error ERROR [LINENO LOG_FD]
360# ---------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with status $?, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
Theodore Ts'oe1052142006-10-21 21:46:47 -0400375if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378else
379 as_expr=false
380fi
381
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384else
385 as_basename=false
386fi
387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400393
Theodore Ts'oe1052142006-10-21 21:46:47 -0400394as_me=`$as_basename -- "$0" ||
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100398$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
401 q
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419
420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400426 sed -n '
427 p
428 /[$]LINENO/=
429 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500430 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400431 s/[$]LINENO.*/&-/
432 t lineno
433 b
434 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500438 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400439 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500440 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400441 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500443
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500448 # Exit status is that of the last command.
449 exit
450}
451
Theodore Ts'oe1052142006-10-21 21:46:47 -0400452ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500453case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400454-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500455 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400460 esac;;
461*)
462 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500463esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500464
465rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468else
469 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100470 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400471fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100472if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100485 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500486else
487 as_ln_s='cp -p'
488fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500491
492if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500493 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500494else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
497fi
498
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400499if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400501else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
506 fi
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100510 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400511 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500512 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100513 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400514 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
518 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400520as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500521
522# Sed expression to map a string onto a valid CPP name.
523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525# Sed expression to map a string onto a valid variable name.
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400529test -n "$DJDIR" || exec 7<&0 </dev/null
530exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500531
532# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534# so uname gets run too.
535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500537#
538# Initializations.
539#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000540ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400543LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500544cross_compiling=no
545subdirs=
546MFLAGS=
547MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500548
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549# Identity of this package.
550PACKAGE_NAME=
551PACKAGE_TARNAME=
552PACKAGE_VERSION=
553PACKAGE_STRING=
554PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500555PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500556
557ac_unique_file="version.h"
558# Factoring default headers for most tests.
559ac_includes_default="\
560#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400561#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# include <sys/types.h>
563#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400564#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565# include <sys/stat.h>
566#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400567#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500568# include <stdlib.h>
569# include <stddef.h>
570#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400571# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# include <stdlib.h>
573# endif
574#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400575#ifdef HAVE_STRING_H
576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# include <memory.h>
578# endif
579# include <string.h>
580#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400581#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500582# include <strings.h>
583#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400584#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500585# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400586#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400587#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400588# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500589#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400590#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500591# include <unistd.h>
592#endif"
593
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400594ac_header_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100595ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400596LIBOBJS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100597BUILD_LDFLAGS
598BUILD_CFLAGS
599INTL_FLAGS
600DO_TEST_SUITE
601ET_DIR
602SS_DIR
603LDFLAG_STATIC
604root_sysconfdir
605root_libdir
606root_sbindir
607root_bindir
608root_prefix
609UNIX_CMT
610CYGWIN_CMT
611LINUX_CMT
612UNI_DIFF_OPTS
613SEM_INIT_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100614SOCKET_LIB
615SIZEOF_LONG_LONG
616SIZEOF_LONG
617SIZEOF_INT
618SIZEOF_SHORT
619BUILD_CC
620MAKEINFO
621STRIP
622AR
623LDCONFIG
624PERL
625SED
626AWK
627CHMOD
628RM
629CP
630MV
631LN_S
632LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400633ifNotGNUmake
634ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635BINARY_TYPE
636POSUB
637LTLIBINTL
638LIBINTL
639INTLLIBS
640INTL_LIBTOOL_SUFFIX_PREFIX
641INTLOBJS
642GENCAT
643INSTOBJEXT
644DATADIRNAME
645CATOBJEXT
646USE_INCLUDED_LIBINTL
647BUILD_INCLUDED_LIBINTL
648INTLBISON
649LTLIBICONV
650LIBICONV
651HAVE_WPRINTF
652HAVE_SNPRINTF
653HAVE_ASPRINTF
654HAVE_POSIX_PRINTF
655GLIBC21
656ALLOCA
657RANLIB
658MSGMERGE
659XGETTEXT
660GMSGFMT
661MSGFMT
662USE_NLS
663MKINSTALLDIRS
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
667SET_MAKE
668VERSION
669PACKAGE
670GETTEXT_PACKAGE
671UUIDD_CMT
672E2INITRD_MAN
673E2INITRD_PROG
674FSCK_MAN
675FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500676DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100677RESIZER_CMT
678IMAGER_CMT
679DEBUGFS_CMT
680BLKID_CMT
681DEPPROFILED_LIBBLKID
682PROFILED_LIBBLKID
683DEPSTATIC_LIBBLKID
684STATIC_LIBBLKID
685DEPLIBBLKID
686LIBBLKID
687UUID_CMT
688DEPPROFILED_LIBUUID
689PROFILED_LIBUUID
690DEPSTATIC_LIBUUID
691STATIC_LIBUUID
692DEPLIBUUID
693LIBUUID
694PKG_CONFIG
695TEST_IO_CMT
696PRIVATE_LIBS_CMT
697LDFLAG_DYNAMIC
698PROFILED_LIB_EXT
699STATIC_LIB_EXT
700LIB_EXT
701CHECKER_CMT
702PROFILE_CMT
703BSDLIB_CMT
704ELF_CMT
705HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400706Q
707E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400708LINK_BUILD_FLAGS
709LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710MAINTAINER_CMT
711LINUX_INCLUDE
712EGREP
713GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714CPP
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500715DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731E2FSPROGS_PKGVER
732E2FSPROGS_VERSION
733E2FSPROGS_DAY
734E2FSPROGS_MONTH
735E2FSPROGS_YEAR
736target_alias
737host_alias
738build_alias
739LIBS
740ECHO_T
741ECHO_N
742ECHO_C
743DEFS
744mandir
745localedir
746libdir
747psdir
748pdfdir
749dvidir
750htmldir
751infodir
752docdir
753oldincludedir
754includedir
755localstatedir
756sharedstatedir
757sysconfdir
758datadir
759datarootdir
760libexecdir
761sbindir
762bindir
763program_transform_name
764prefix
765exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500766PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100767PACKAGE_BUGREPORT
768PACKAGE_STRING
769PACKAGE_VERSION
770PACKAGE_TARNAME
771PACKAGE_NAME
772PATH_SEPARATOR
773SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400774ac_subst_files='MCONFIG
775MAKEFILE_ELF
776MAKEFILE_BSDLIB
777MAKEFILE_PROFILE
778MAKEFILE_CHECKER
779MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400780ASM_TYPES_HEADER
781PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100782ac_user_opts='
783enable_option_checking
784with_diet_libc
785with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100786with_ccopts
787with_ldopts
788with_root_prefix
789enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400790enable_symlink_install
791enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400792enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100793enable_compression
794enable_htree
795enable_elf_shlibs
796enable_bsd_shlibs
797enable_profile
798enable_checker
799enable_jbd_debug
800enable_blkid_debug
801enable_testio_debug
802enable_libuuid
803enable_libblkid
804enable_debugfs
805enable_imager
806enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500807enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100808enable_fsck
809enable_e2initrd_helper
810enable_tls
811enable_uuidd
812enable_nls
813with_gnu_ld
814enable_rpath
815with_libiconv_prefix
816with_included_gettext
817with_libintl_prefix
818'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400819 ac_precious_vars='build_alias
820host_alias
821target_alias
822CC
823CFLAGS
824LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400825LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400826CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400827CPP
828PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400829
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000830
831# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500832ac_init_help=
833ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834ac_unrecognized_opts=
835ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000836# The variables have the same names as the options, with
837# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500838cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000840no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841no_recursion=
842prefix=NONE
843program_prefix=NONE
844program_suffix=NONE
845program_transform_name=s,x,x,
846silent=
847site=
848srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849verbose=
850x_includes=NONE
851x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500852
853# Installation directory options.
854# These are left unexpanded so users can "make install exec_prefix=/foo"
855# and all the variables that are supposed to be based on exec_prefix
856# by default will actually change.
857# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400858# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000859bindir='${exec_prefix}/bin'
860sbindir='${exec_prefix}/sbin'
861libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400862datarootdir='${prefix}/share'
863datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000864sysconfdir='${prefix}/etc'
865sharedstatedir='${prefix}/com'
866localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867includedir='${prefix}/include'
868oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400869docdir='${datarootdir}/doc/${PACKAGE}'
870infodir='${datarootdir}/info'
871htmldir='${docdir}'
872dvidir='${docdir}'
873pdfdir='${docdir}'
874psdir='${docdir}'
875libdir='${exec_prefix}/lib'
876localedir='${datarootdir}/locale'
877mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000878
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000879ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400880ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000881for ac_option
882do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400885 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000886 ac_prev=
887 continue
888 fi
889
Theodore Ts'oe1052142006-10-21 21:46:47 -0400890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
Theodore Ts'oe1052142006-10-21 21:46:47 -0400897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000900
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500904 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000905
906 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500907 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500909 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920
Theodore Ts'oe1052142006-10-21 21:46:47 -0400921 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000922 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500924 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000925
Theodore Ts'oe1052142006-10-21 21:46:47 -0400926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000933 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000935 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500937 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942"enable_$ac_useropt"
943"*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958
959 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500963 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968"enable_$ac_useropt"
969"*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500982 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000994
995 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000997 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000999
Theodore Ts'oe1052142006-10-21 21:46:47 -04001000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001011 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001016 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001021 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001028 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001029
Theodore Ts'oe1052142006-10-21 21:46:47 -04001030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001035 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001036 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001040 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001045 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001046
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001052 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001066 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001071 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001085 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103
Theodore Ts'oe1052142006-10-21 21:46:47 -04001104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001134
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001143 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001151
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001155 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162
1163 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001167 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172"with_$ac_useropt"
1173"*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001178
1179 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001183 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188"with_$ac_useropt"
1189"*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001204 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001211 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001212
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001213 -*) as_fn_error "unrecognized option: \`$ac_option'
1214Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001215 ;;
1216
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1223 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001224 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 export $ac_envvar ;;
1226
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001227 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233 ;;
1234
1235 esac
1236done
1237
1238if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001240 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241fi
1242
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001243if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001246 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249fi
1250
1251# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001252for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001257 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001265 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001269 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001270done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001272# There might be people who depend on the old broken behavior: `$host'
1273# used to hold the argument of --host etc.
1274# FIXME: To remove some day.
1275build=$build_alias
1276host=$host_alias
1277target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001279# FIXME: To remove some day.
1280if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001283 $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 -05001284 If a cross compiler is detected then cross compile mode will be used." >&2
1285 elif test "x$build_alias" != "x$host_alias"; then
1286 cross_compiling=yes
1287 fi
1288fi
1289
1290ac_tool_prefix=
1291test -n "$host_alias" && ac_tool_prefix=$host_alias-
1292
1293test "$silent" = yes && exec 6>/dev/null
1294
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295
Theodore Ts'oe1052142006-10-21 21:46:47 -04001296ac_pwd=`pwd` && test -n "$ac_pwd" &&
1297ac_ls_di=`ls -di .` &&
1298ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001299 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001300test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001301 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001302
1303
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304# Find the source files, if location was not specified.
1305if test -z "$srcdir"; then
1306 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001307 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001308 ac_confdir=`$as_dirname -- "$as_myself" ||
1309$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1310 X"$as_myself" : 'X\(//\)[^/]' \| \
1311 X"$as_myself" : 'X\(//\)$' \| \
1312 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1313$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1315 s//\1/
1316 q
1317 }
1318 /^X\(\/\/\)[^/].*/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\).*/{
1327 s//\1/
1328 q
1329 }
1330 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001332 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001333 srcdir=..
1334 fi
1335else
1336 ac_srcdir_defaulted=no
1337fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338if test ! -r "$srcdir/$ac_unique_file"; then
1339 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001340 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1343ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001344 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001345 pwd)`
1346# When building in place, set srcdir=.
1347if test "$ac_abs_confdir" = "$ac_pwd"; then
1348 srcdir=.
1349fi
1350# Remove unnecessary trailing slashes from srcdir.
1351# Double slashes in file names in object file debugging info
1352# mess up M-x gdb in Emacs.
1353case $srcdir in
1354*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1355esac
1356for ac_var in $ac_precious_vars; do
1357 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_env_${ac_var}_value=\$${ac_var}
1359 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1360 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1361done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363#
1364# Report the --help message.
1365#
1366if test "$ac_init_help" = "long"; then
1367 # Omit some internal or obsolete options to make the list less imposing.
1368 # This message is too long to be a string in the A/UX 3.1 sh.
1369 cat <<_ACEOF
1370\`configure' configures this package to adapt to many kinds of systems.
1371
1372Usage: $0 [OPTION]... [VAR=VALUE]...
1373
1374To assign environment variables (e.g., CC, CFLAGS...), specify them as
1375VAR=VALUE. See below for descriptions of some of the useful variables.
1376
1377Defaults for the options are specified in brackets.
1378
1379Configuration:
1380 -h, --help display this help and exit
1381 --help=short display options specific to this package
1382 --help=recursive display the short help of all the included packages
1383 -V, --version display version information and exit
1384 -q, --quiet, --silent do not print \`checking...' messages
1385 --cache-file=FILE cache test results in FILE [disabled]
1386 -C, --config-cache alias for \`--cache-file=config.cache'
1387 -n, --no-create do not create output files
1388 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1389
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001390Installation directories:
1391 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001392 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001393 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001394 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001395
1396By default, \`make install' will install all the files in
1397\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1398an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1399for instance \`--prefix=\$HOME'.
1400
1401For better control, use the options below.
1402
1403Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001404 --bindir=DIR user executables [EPREFIX/bin]
1405 --sbindir=DIR system admin executables [EPREFIX/sbin]
1406 --libexecdir=DIR program executables [EPREFIX/libexec]
1407 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1408 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1409 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1410 --libdir=DIR object code libraries [EPREFIX/lib]
1411 --includedir=DIR C header files [PREFIX/include]
1412 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1413 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1414 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1415 --infodir=DIR info documentation [DATAROOTDIR/info]
1416 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1417 --mandir=DIR man documentation [DATAROOTDIR/man]
1418 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1419 --htmldir=DIR html documentation [DOCDIR]
1420 --dvidir=DIR dvi documentation [DOCDIR]
1421 --pdfdir=DIR pdf documentation [DOCDIR]
1422 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001423_ACEOF
1424
1425 cat <<\_ACEOF
1426
1427System types:
1428 --build=BUILD configure for building on BUILD [guessed]
1429 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1430_ACEOF
1431fi
1432
1433if test -n "$ac_init_help"; then
1434
1435 cat <<\_ACEOF
1436
1437Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001438 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1440 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001441 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001442 --enable-symlink-install use symlinks when installing instead of hard links
1443 --enable-symlink-build use symlinks while building instead of hard links
1444 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001445 --enable-compression enable EXPERIMENTAL compression support
1446 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447 --enable-elf-shlibs select ELF shared libraries
1448 --enable-bsd-shlibs select BSD shared libraries
1449 --enable-profile build profiling libraries
1450 --enable-checker build checker libraries
1451 --enable-jbd-debug enable journal debugging
1452 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001453 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001454 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001455 --disable-libblkid do not build private blkid library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456 --disable-debugfs disable support of debugfs program
1457 --disable-imager disable support of e2image program
1458 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001459 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001460 --enable-fsck build fsck wrapper program
1461 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001462 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001463 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001464 --disable-nls do not use Native Language Support
1465 --disable-rpath do not hardcode runtime library paths
1466
1467Optional Packages:
1468 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1469 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001470 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001471 --with-cc no longer supported, use CC= instead
1472 --with-ccopts no longer supported, use CFLAGS= instead
1473 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1475 --with-gnu-ld assume the C compiler uses GNU ld default=no
1476 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1477 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1478 --with-included-gettext use the GNU gettext library included here
1479 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1480 --without-libintl-prefix don't search for libintl in includedir and libdir
1481
1482Some influential environment variables:
1483 CC C compiler command
1484 CFLAGS C compiler flags
1485 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1486 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001487 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001488 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001489 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001490 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001491 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493Use these variables to override the choices made by `configure' or to help
1494it to find libraries and programs with nonstandard names/locations.
1495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001496Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001497_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001498ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001499fi
1500
1501if test "$ac_init_help" = "recursive"; then
1502 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001504 test -d "$ac_dir" ||
1505 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1506 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507 ac_builddir=.
1508
Theodore Ts'oe1052142006-10-21 21:46:47 -04001509case "$ac_dir" in
1510.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001513 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001515 case $ac_top_builddir_sub in
1516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1518 esac ;;
1519esac
1520ac_abs_top_builddir=$ac_pwd
1521ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522# for backward compatibility:
1523ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524
1525case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001526 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001528 ac_top_srcdir=$ac_top_builddir_sub
1529 ac_abs_top_srcdir=$ac_pwd ;;
1530 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001531 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001532 ac_top_srcdir=$srcdir
1533 ac_abs_top_srcdir=$srcdir ;;
1534 *) # Relative name.
1535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536 ac_top_srcdir=$ac_top_build_prefix$srcdir
1537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001539ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540
Theodore Ts'oe1052142006-10-21 21:46:47 -04001541 cd "$ac_dir" || { ac_status=$?; continue; }
1542 # Check for guested configure.
1543 if test -f "$ac_srcdir/configure.gnu"; then
1544 echo &&
1545 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546 elif test -f "$ac_srcdir/configure"; then
1547 echo &&
1548 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001550 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001551 fi || ac_status=$?
1552 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 done
1554fi
1555
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001557if $ac_init_version; then
1558 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001559configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001560generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001562Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563This configure script is free software; the Free Software Foundation
1564gives unlimited permission to copy, distribute and modify it.
1565_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001566 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001568
1569## ------------------------ ##
1570## Autoconf initialization. ##
1571## ------------------------ ##
1572
1573# ac_fn_c_try_compile LINENO
1574# --------------------------
1575# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576ac_fn_c_try_compile ()
1577{
1578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579 rm -f conftest.$ac_objext
1580 if { { ac_try="$ac_compile"
1581case "(($ac_try" in
1582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583 *) ac_try_echo=$ac_try;;
1584esac
1585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586$as_echo "$ac_try_echo"; } >&5
1587 (eval "$ac_compile") 2>conftest.err
1588 ac_status=$?
1589 if test -s conftest.err; then
1590 grep -v '^ *+' conftest.err >conftest.er1
1591 cat conftest.er1 >&5
1592 mv -f conftest.er1 conftest.err
1593 fi
1594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595 test $ac_status = 0; } && {
1596 test -z "$ac_c_werror_flag" ||
1597 test ! -s conftest.err
1598 } && test -s conftest.$ac_objext; then :
1599 ac_retval=0
1600else
1601 $as_echo "$as_me: failed program was:" >&5
1602sed 's/^/| /' conftest.$ac_ext >&5
1603
1604 ac_retval=1
1605fi
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001607 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001608
1609} # ac_fn_c_try_compile
1610
1611# ac_fn_c_try_link LINENO
1612# -----------------------
1613# Try to link conftest.$ac_ext, and return whether this succeeded.
1614ac_fn_c_try_link ()
1615{
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest$ac_exeext
1618 if { { ac_try="$ac_link"
1619case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622esac
1623eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624$as_echo "$ac_try_echo"; } >&5
1625 (eval "$ac_link") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest$ac_exeext && {
1637 test "$cross_compiling" = yes ||
1638 $as_test_x conftest$ac_exeext
1639 }; then :
1640 ac_retval=0
1641else
1642 $as_echo "$as_me: failed program was:" >&5
1643sed 's/^/| /' conftest.$ac_ext >&5
1644
1645 ac_retval=1
1646fi
1647 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649 # interfere with the next link command; also delete a directory that is
1650 # left behind by Apple's compiler. We do this before executing the actions.
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001653 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001654
1655} # ac_fn_c_try_link
1656
1657# ac_fn_c_try_cpp LINENO
1658# ----------------------
1659# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_cpp ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 if { { ac_try="$ac_cpp conftest.$ac_ext"
1664case "(($ac_try" in
1665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666 *) ac_try_echo=$ac_try;;
1667esac
1668eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669$as_echo "$ac_try_echo"; } >&5
1670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1671 ac_status=$?
1672 if test -s conftest.err; then
1673 grep -v '^ *+' conftest.err >conftest.er1
1674 cat conftest.er1 >&5
1675 mv -f conftest.er1 conftest.err
1676 fi
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; } >/dev/null && {
1679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1680 test ! -s conftest.err
1681 }; then :
1682 ac_retval=0
1683else
1684 $as_echo "$as_me: failed program was:" >&5
1685sed 's/^/| /' conftest.$ac_ext >&5
1686
1687 ac_retval=1
1688fi
1689 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001690 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001691
1692} # ac_fn_c_try_cpp
1693
1694# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1695# -------------------------------------------------------
1696# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1697# the include files in INCLUDES and setting the cache variable VAR
1698# accordingly.
1699ac_fn_c_check_header_mongrel ()
1700{
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1704$as_echo_n "checking for $2... " >&6; }
1705if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1706 $as_echo_n "(cached) " >&6
1707fi
1708eval ac_res=\$$3
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1710$as_echo "$ac_res" >&6; }
1711else
1712 # Is the header compilable?
1713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1714$as_echo_n "checking $2 usability... " >&6; }
1715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h. */
1717$4
1718#include <$2>
1719_ACEOF
1720if ac_fn_c_try_compile "$LINENO"; then :
1721 ac_header_compiler=yes
1722else
1723 ac_header_compiler=no
1724fi
1725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1727$as_echo "$ac_header_compiler" >&6; }
1728
1729# Is the header present?
1730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1731$as_echo_n "checking $2 presence... " >&6; }
1732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733/* end confdefs.h. */
1734#include <$2>
1735_ACEOF
1736if ac_fn_c_try_cpp "$LINENO"; then :
1737 ac_header_preproc=yes
1738else
1739 ac_header_preproc=no
1740fi
1741rm -f conftest.err conftest.$ac_ext
1742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1743$as_echo "$ac_header_preproc" >&6; }
1744
1745# So? What about this header?
1746case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1747 yes:no: )
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1749$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1751$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1752 ;;
1753 no:yes:* )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1755$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1757$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1759$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1761$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764 ;;
1765esac
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1769 $as_echo_n "(cached) " >&6
1770else
1771 eval "$3=\$ac_header_compiler"
1772fi
1773eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776fi
1777 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778
1779} # ac_fn_c_check_header_mongrel
1780
1781# ac_fn_c_try_run LINENO
1782# ----------------------
1783# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1784# that executables *can* be run.
1785ac_fn_c_try_run ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_link"
1789case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_link") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1799 { { case "(($ac_try" in
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1802esac
1803eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804$as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_try") 2>&5
1806 ac_status=$?
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; }; }; then :
1809 ac_retval=0
1810else
1811 $as_echo "$as_me: program exited with status $ac_status" >&5
1812 $as_echo "$as_me: failed program was:" >&5
1813sed 's/^/| /' conftest.$ac_ext >&5
1814
1815 ac_retval=$ac_status
1816fi
1817 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1818 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001819 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001820
1821} # ac_fn_c_try_run
1822
1823# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1824# -------------------------------------------------------
1825# Tests whether HEADER exists and can be compiled using the include files in
1826# INCLUDES, setting the cache variable VAR accordingly.
1827ac_fn_c_check_header_compile ()
1828{
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836/* end confdefs.h. */
1837$4
1838#include <$2>
1839_ACEOF
1840if ac_fn_c_try_compile "$LINENO"; then :
1841 eval "$3=yes"
1842else
1843 eval "$3=no"
1844fi
1845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852} # ac_fn_c_check_header_compile
1853
1854# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1855# -------------------------------------------
1856# Tests whether TYPE exists after having included INCLUDES, setting cache
1857# variable VAR accordingly.
1858ac_fn_c_check_type ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862$as_echo_n "checking for $2... " >&6; }
1863if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1864 $as_echo_n "(cached) " >&6
1865else
1866 eval "$3=no"
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868/* end confdefs.h. */
1869$4
1870int
1871main ()
1872{
1873if (sizeof ($2))
1874 return 0;
1875 ;
1876 return 0;
1877}
1878_ACEOF
1879if ac_fn_c_try_compile "$LINENO"; then :
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882$4
1883int
1884main ()
1885{
1886if (sizeof (($2)))
1887 return 0;
1888 ;
1889 return 0;
1890}
1891_ACEOF
1892if ac_fn_c_try_compile "$LINENO"; then :
1893
1894else
1895 eval "$3=yes"
1896fi
1897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1898fi
1899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900fi
1901eval ac_res=\$$3
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905
1906} # ac_fn_c_check_type
1907
1908# ac_fn_c_check_func LINENO FUNC VAR
1909# ----------------------------------
1910# Tests whether FUNC exists, setting the cache variable VAR accordingly
1911ac_fn_c_check_func ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1923#define $2 innocuous_$2
1924
1925/* System header to define __stub macros and hopefully few prototypes,
1926 which can conflict with char $2 (); below.
1927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1928 <limits.h> exists even on freestanding compilers. */
1929
1930#ifdef __STDC__
1931# include <limits.h>
1932#else
1933# include <assert.h>
1934#endif
1935
1936#undef $2
1937
1938/* Override any GCC internal prototype to avoid an error.
1939 Use char because int might match the return type of a GCC
1940 builtin and then its argument prototype would still apply. */
1941#ifdef __cplusplus
1942extern "C"
1943#endif
1944char $2 ();
1945/* The GNU C library defines this for functions which it implements
1946 to always fail with ENOSYS. Some functions are actually named
1947 something starting with __ and the normal name is an alias. */
1948#if defined __stub_$2 || defined __stub___$2
1949choke me
1950#endif
1951
1952int
1953main ()
1954{
1955return $2 ();
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_link "$LINENO"; then :
1961 eval "$3=yes"
1962else
1963 eval "$3=no"
1964fi
1965rm -f core conftest.err conftest.$ac_objext \
1966 conftest$ac_exeext conftest.$ac_ext
1967fi
1968eval ac_res=\$$3
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1970$as_echo "$ac_res" >&6; }
1971 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972
1973} # ac_fn_c_check_func
1974
1975# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1976# --------------------------------------------
1977# Tries to find the compile-time value of EXPR in a program that includes
1978# INCLUDES, setting VAR accordingly. Returns whether the value could be
1979# computed
1980ac_fn_c_compute_int ()
1981{
1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1983 if test "$cross_compiling" = yes; then
1984 # Depending upon the size, compute the lo and hi bounds.
1985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991static int test_array [1 - 2 * !(($2) >= 0)];
1992test_array [0] = 0
1993
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_lo=0 ac_mid=0
2000 while :; do
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004int
2005main ()
2006{
2007static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2008test_array [0] = 0
2009
2010 ;
2011 return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015 ac_hi=$ac_mid; break
2016else
2017 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2018 if test $ac_lo -le $ac_mid; then
2019 ac_lo= ac_hi=
2020 break
2021 fi
2022 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2023fi
2024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2025 done
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$4
2030int
2031main ()
2032{
2033static int test_array [1 - 2 * !(($2) < 0)];
2034test_array [0] = 0
2035
2036 ;
2037 return 0;
2038}
2039_ACEOF
2040if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_hi=-1 ac_mid=-1
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044/* end confdefs.h. */
2045$4
2046int
2047main ()
2048{
2049static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2050test_array [0] = 0
2051
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_lo=$ac_mid; break
2058else
2059 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2060 if test $ac_mid -le $ac_hi; then
2061 ac_lo= ac_hi=
2062 break
2063 fi
2064 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068else
2069 ac_lo= ac_hi=
2070fi
2071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072fi
2073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074# Binary search between lo and hi bounds.
2075while test "x$ac_lo" != "x$ac_hi"; do
2076 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2084test_array [0] = 0
2085
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091 ac_hi=$ac_mid
2092else
2093 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096done
2097case $ac_lo in #((
2098?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2099'') ac_retval=1 ;;
2100esac
2101 else
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105static long int longval () { return $2; }
2106static unsigned long int ulongval () { return $2; }
2107#include <stdio.h>
2108#include <stdlib.h>
2109int
2110main ()
2111{
2112
2113 FILE *f = fopen ("conftest.val", "w");
2114 if (! f)
2115 return 1;
2116 if (($2) < 0)
2117 {
2118 long int i = longval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%ld", i);
2122 }
2123 else
2124 {
2125 unsigned long int i = ulongval ();
2126 if (i != ($2))
2127 return 1;
2128 fprintf (f, "%lu", i);
2129 }
2130 /* Do not output a trailing newline, as this causes \r\n confusion
2131 on some platforms. */
2132 return ferror (f) || fclose (f) != 0;
2133
2134 ;
2135 return 0;
2136}
2137_ACEOF
2138if ac_fn_c_try_run "$LINENO"; then :
2139 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2140else
2141 ac_retval=1
2142fi
2143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2144 conftest.$ac_objext conftest.beam conftest.$ac_ext
2145rm -f conftest.val
2146
2147 fi
2148 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002149 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002150
2151} # ac_fn_c_compute_int
2152
2153# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2154# ----------------------------------------------------
2155# Tries to find if the field MEMBER exists in type AGGR, after including
2156# INCLUDES, setting cache variable VAR accordingly.
2157ac_fn_c_check_member ()
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2161$as_echo_n "checking for $2.$3... " >&6; }
2162if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2163 $as_echo_n "(cached) " >&6
2164else
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */
2167$5
2168int
2169main ()
2170{
2171static $2 ac_aggr;
2172if (ac_aggr.$3)
2173return 0;
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179 eval "$4=yes"
2180else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$5
2184int
2185main ()
2186{
2187static $2 ac_aggr;
2188if (sizeof ac_aggr.$3)
2189return 0;
2190 ;
2191 return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195 eval "$4=yes"
2196else
2197 eval "$4=no"
2198fi
2199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200fi
2201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202fi
2203eval ac_res=\$$4
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205$as_echo "$ac_res" >&6; }
2206 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2207
2208} # ac_fn_c_check_member
2209
2210# ac_fn_c_check_decl LINENO SYMBOL VAR
2211# ------------------------------------
2212# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2213ac_fn_c_check_decl ()
2214{
2215 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2217$as_echo_n "checking whether $2 is declared... " >&6; }
2218if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2219 $as_echo_n "(cached) " >&6
2220else
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223$4
2224int
2225main ()
2226{
2227#ifndef $2
2228 (void) $2;
2229#endif
2230
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 eval "$3=yes"
2237else
2238 eval "$3=no"
2239fi
2240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241fi
2242eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244$as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2246
2247} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002248cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002249This file contains any messages produced by compilers while
2250running configure, to aid debugging if configure makes a mistake.
2251
2252It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002253generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002254
2255 $ $0 $@
2256
2257_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002258exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002259{
2260cat <<_ASUNAME
2261## --------- ##
2262## Platform. ##
2263## --------- ##
2264
2265hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269uname -v = `(uname -v) 2>/dev/null || echo unknown`
2270
2271/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2273
2274/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002277/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002278/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2281
2282_ASUNAME
2283
2284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285for as_dir in $PATH
2286do
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002289 $as_echo "PATH: $as_dir"
2290 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002291IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002292
2293} >&5
2294
2295cat >&5 <<_ACEOF
2296
2297
2298## ----------- ##
2299## Core tests. ##
2300## ----------- ##
2301
2302_ACEOF
2303
2304
2305# Keep a trace of the command line.
2306# Strip out --no-create and --no-recursion so they do not pile up.
2307# Strip out --silent because we don't want to record it for future runs.
2308# Also quote any args containing shell meta-characters.
2309# Make two passes to allow for proper duplicate-argument suppression.
2310ac_configure_args=
2311ac_configure_args0=
2312ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002313ac_must_keep_next=false
2314for ac_pass in 1 2
2315do
2316 for ac_arg
2317 do
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002323 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002325 esac
2326 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002328 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002329 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2341 ;;
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2344 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002345 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002346 ;;
2347 esac
2348 done
2349done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002350{ ac_configure_args0=; unset ac_configure_args0;}
2351{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002352
2353# When interrupted or exit'd, cleanup temporary files, and complete
2354# config.log. We remove comments because anyway the quotes in there
2355# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002356# WARNING: Use '\'' to represent an apostrophe within the trap.
2357# 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 -05002358trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2360 {
2361 echo
2362
2363 cat <<\_ASBOX
2364## ---------------- ##
2365## Cache variables. ##
2366## ---------------- ##
2367_ASBOX
2368 echo
2369 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002370(
2371 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2372 eval ac_val=\$$ac_var
2373 case $ac_val in #(
2374 *${as_nl}*)
2375 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002376 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002377$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002378 esac
2379 case $ac_var in #(
2380 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002381 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002382 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002383 esac ;;
2384 esac
2385 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002386 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2388 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002389 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390 "s/'\''/'\''\\\\'\'''\''/g;
2391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2392 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002393 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396 esac |
2397 sort
2398)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002399 echo
2400
2401 cat <<\_ASBOX
2402## ----------------- ##
2403## Output variables. ##
2404## ----------------- ##
2405_ASBOX
2406 echo
2407 for ac_var in $ac_subst_vars
2408 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002409 eval ac_val=\$$ac_var
2410 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002411 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002412 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002413 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002414 done | sort
2415 echo
2416
2417 if test -n "$ac_subst_files"; then
2418 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002419## ------------------- ##
2420## File substitutions. ##
2421## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002422_ASBOX
2423 echo
2424 for ac_var in $ac_subst_files
2425 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002426 eval ac_val=\$$ac_var
2427 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002428 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002429 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002430 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 done | sort
2432 echo
2433 fi
2434
2435 if test -s confdefs.h; then
2436 cat <<\_ASBOX
2437## ----------- ##
2438## confdefs.h. ##
2439## ----------- ##
2440_ASBOX
2441 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 echo
2444 fi
2445 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002446 $as_echo "$as_me: caught signal $ac_signal"
2447 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002449 rm -f core *.core core.conftest.* &&
2450 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002451 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002452' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002454 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002455done
2456ac_signal=0
2457
2458# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002459rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002461$as_echo "/* confdefs.h */" > confdefs.h
2462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463# Predefined preprocessor variables.
2464
2465cat >>confdefs.h <<_ACEOF
2466#define PACKAGE_NAME "$PACKAGE_NAME"
2467_ACEOF
2468
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469cat >>confdefs.h <<_ACEOF
2470#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2471_ACEOF
2472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473cat >>confdefs.h <<_ACEOF
2474#define PACKAGE_VERSION "$PACKAGE_VERSION"
2475_ACEOF
2476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477cat >>confdefs.h <<_ACEOF
2478#define PACKAGE_STRING "$PACKAGE_STRING"
2479_ACEOF
2480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481cat >>confdefs.h <<_ACEOF
2482#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2483_ACEOF
2484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002485cat >>confdefs.h <<_ACEOF
2486#define PACKAGE_URL "$PACKAGE_URL"
2487_ACEOF
2488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002489
2490# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002491# Prefer an explicitly selected file to automatically selected ones.
2492ac_site_file1=NONE
2493ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002495 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002496elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002502fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002503for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002505 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002508$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002510 . "$ac_site_file"
2511 fi
2512done
2513
2514if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002515 # Some versions of bash will fail to source /dev/null (special files
2516 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2517 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002519$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2522 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523 esac
2524 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 >$cache_file
2529fi
2530
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002531as_fn_append ac_header_list " stdlib.h"
2532as_fn_append ac_header_list " unistd.h"
2533as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534# Check that the precious variables saved in the cache have kept the same
2535# value.
2536ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2539 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2541 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 case $ac_old_set,$ac_new_set in
2543 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002545$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 -05002546 ac_cache_corrupted=: ;;
2547 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002549$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550 ac_cache_corrupted=: ;;
2551 ,);;
2552 *)
2553 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002554 # differences in whitespace do not lead to failure.
2555 ac_old_val_w=`echo x $ac_old_val`
2556 ac_new_val_w=`echo x $ac_new_val`
2557 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002559$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2560 ac_cache_corrupted=:
2561 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002562 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002563$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2564 eval $ac_var=\$ac_old_val
2565 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002566 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002567$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002568 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002569$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570 fi;;
2571 esac
2572 # Pass precious variables to config.status.
2573 if test "$ac_new_set" = set; then
2574 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002575 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002576 *) ac_arg=$ac_var=$ac_new_val ;;
2577 esac
2578 case " $ac_configure_args " in
2579 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002580 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581 esac
2582 fi
2583done
2584if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002586$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002588$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002589 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002590fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002591## -------------------- ##
2592## Main body of script. ##
2593## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002594
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002595ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002596ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002597ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002601
2602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002603ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002605 for ac_t in install-sh install.sh shtool; do
2606 if test -f "$ac_dir/$ac_t"; then
2607 ac_aux_dir=$ac_dir
2608 ac_install_sh="$ac_aux_dir/$ac_t -c"
2609 break 2
2610 fi
2611 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612done
2613if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002614 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002615fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002616
2617# These three variables are undocumented and unsupported,
2618# and are intended to be withdrawn in a future Autoconf release.
2619# They can cause serious problems if a builder's source tree is in a directory
2620# whose full name contains unusual characters.
2621ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2622ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2623ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002625
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002626MCONFIG=./MCONFIG
2627
Theodore Ts'o74becf31997-04-26 14:37:06 +00002628BINARY_TYPE=bin
2629E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2630 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2631DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2632 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002633E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002634MONTH=`echo $DATE | awk -F- '{print $2}'`
2635YEAR=`echo $DATE | awk -F- '{print $3}'`
2636
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002637if expr $YEAR ">" 1900 > /dev/null ; then
2638 E2FSPROGS_YEAR=$YEAR
2639elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002640 E2FSPROGS_YEAR=19$YEAR
2641else
2642 E2FSPROGS_YEAR=20$YEAR
2643fi
2644
2645case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002646Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2647Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2648Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2649Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2650May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2651Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2652Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2653Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2654Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2655Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2656Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2657Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002658*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002659$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002660esac
2661
Andreas Dilger927566a2006-11-12 19:41:25 -05002662base_ver=`echo $E2FSPROGS_VERSION | \
2663 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002664
2665date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2666
2667case $E2FSPROGS_VERSION in
2668*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002669 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002670 ;;
2671*)
2672 E2FSPROGS_PKGVER="$base_ver"
2673 ;;
2674esac
2675
2676unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002678$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002680$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002681
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002682
2683
2684
Andreas Dilger927566a2006-11-12 19:41:25 -05002685
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002686# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002687$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002689
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002691$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002692if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002693 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002694else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002695 ac_build_alias=$build_alias
2696test "x$ac_build_alias" = x &&
2697 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2698test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002699 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002700ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002703fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002705$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002706case $ac_cv_build in
2707*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002709esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002710build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002711ac_save_IFS=$IFS; IFS='-'
2712set x $ac_cv_build
2713shift
2714build_cpu=$1
2715build_vendor=$2
2716shift; shift
2717# Remember, the first character of IFS is used to create $*,
2718# except with old shells:
2719build_os=$*
2720IFS=$ac_save_IFS
2721case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002722
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002723
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002725$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002726if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002727 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002728else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002729 if test "x$host_alias" = x; then
2730 ac_cv_host=$ac_cv_build
2731else
2732 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002733 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002734fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002735
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002736fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002738$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002739case $ac_cv_host in
2740*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002741*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002742esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002743host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002744ac_save_IFS=$IFS; IFS='-'
2745set x $ac_cv_host
2746shift
2747host_cpu=$1
2748host_vendor=$2
2749shift; shift
2750# Remember, the first character of IFS is used to create $*,
2751# except with old shells:
2752host_os=$*
2753IFS=$ac_save_IFS
2754case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002755
2756
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002757DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2765set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002767$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002768if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002769 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002770else
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2773else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775for as_dir in $PATH
2776do
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002779 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002780 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 -05002781 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002783 break 2
2784 fi
2785done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002786 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002787IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002788
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002789fi
2790fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002791CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002792if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002794$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002795else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002797$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002798fi
2799
Theodore Ts'oe1052142006-10-21 21:46:47 -04002800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002801fi
2802if test -z "$ac_cv_prog_CC"; then
2803 ac_ct_CC=$CC
2804 # Extract the first word of "gcc", so it can be a program name with args.
2805set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002807$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002808if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002809 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813else
2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002819 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002820 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 -05002821 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002823 break 2
2824 fi
2825done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002826 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828
2829fi
2830fi
2831ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002834$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002838fi
2839
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840 if test "x$ac_ct_CC" = x; then
2841 CC=""
2842 else
2843 case $cross_compiling:$ac_tool_warned in
2844yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002845{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002846$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002847ac_tool_warned=yes ;;
2848esac
2849 CC=$ac_ct_CC
2850 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002851else
2852 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002853fi
2854
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002855if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856 if test -n "$ac_tool_prefix"; then
2857 # 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 -05002858set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002860$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002861if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002862 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002863else
2864 if test -n "$CC"; then
2865 ac_cv_prog_CC="$CC" # Let the user override the test.
2866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868for as_dir in $PATH
2869do
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002872 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002873 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 -05002874 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876 break 2
2877 fi
2878done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002879 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002880IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881
2882fi
2883fi
2884CC=$ac_cv_prog_CC
2885if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002887$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002890$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002891fi
2892
Theodore Ts'oe1052142006-10-21 21:46:47 -04002893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895fi
2896if test -z "$CC"; then
2897 # Extract the first word of "cc", so it can be a program name with args.
2898set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002900$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002901if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002902 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903else
2904 if test -n "$CC"; then
2905 ac_cv_prog_CC="$CC" # Let the user override the test.
2906else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002907 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2909for as_dir in $PATH
2910do
2911 IFS=$as_save_IFS
2912 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002914 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 -05002915 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2916 ac_prog_rejected=yes
2917 continue
2918 fi
2919 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921 break 2
2922 fi
2923done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002924 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002925IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002927if test $ac_prog_rejected = yes; then
2928 # We found a bogon in the path, so make sure we never use it.
2929 set dummy $ac_cv_prog_CC
2930 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002932 # We chose a different compiler from the bogus one.
2933 # However, it has the same basename, so the bogon will be chosen
2934 # first if we set CC to just the basename; use the full file name.
2935 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002937 fi
2938fi
2939fi
2940fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002942if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002944$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002945else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002947$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002948fi
2949
Theodore Ts'oe1052142006-10-21 21:46:47 -04002950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002951fi
2952if test -z "$CC"; then
2953 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002954 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955 do
2956 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2957set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002959$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002961 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002962else
2963 if test -n "$CC"; then
2964 ac_cv_prog_CC="$CC" # Let the user override the test.
2965else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967for as_dir in $PATH
2968do
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002972 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 -05002973 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975 break 2
2976 fi
2977done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002978 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002979IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002981fi
2982fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002984if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002986$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002989$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002990fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993 test -n "$CC" && break
2994 done
2995fi
2996if test -z "$CC"; then
2997 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002998 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002999do
3000 # Extract the first word of "$ac_prog", so it can be a program name with args.
3001set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003003$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003004if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003005 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003006else
3007 if test -n "$ac_ct_CC"; then
3008 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009else
3010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011for as_dir in $PATH
3012do
3013 IFS=$as_save_IFS
3014 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003016 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 -05003017 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003019 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003020 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003023IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024
3025fi
3026fi
3027ac_ct_CC=$ac_cv_prog_ac_ct_CC
3028if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003033$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003034fi
3035
Theodore Ts'oe1052142006-10-21 21:46:47 -04003036
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037 test -n "$ac_ct_CC" && break
3038done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003039
Theodore Ts'oe1052142006-10-21 21:46:47 -04003040 if test "x$ac_ct_CC" = x; then
3041 CC=""
3042 else
3043 case $cross_compiling:$ac_tool_warned in
3044yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003045{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003046$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003047ac_tool_warned=yes ;;
3048esac
3049 CC=$ac_ct_CC
3050 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003052
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003054
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003055
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003056test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003057$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058as_fn_error "no acceptable C compiler found in \$PATH
3059See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060
3061# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003062$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003063set X $ac_compile
3064ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065for ac_option in --version -v -V -qversion; do
3066 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003067case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003071eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072$as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003075 if test -s conftest.err; then
3076 sed '10a\
3077... rest of stderr output deleted ...
3078 10q' conftest.err >conftest.er1
3079 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003080 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003081 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3083 test $ac_status = 0; }
3084done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003089int
3090main ()
3091{
3092
3093 ;
3094 return 0;
3095}
3096_ACEOF
3097ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003098ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099# Try to create an executable without -o first, disregard a.out.
3100# It will help us diagnose broken compilers, and finding out an intuition
3101# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3103$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003104ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3105
3106# The possible output files:
3107ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3108
Theodore Ts'oe1052142006-10-21 21:46:47 -04003109ac_rmfiles=
3110for ac_file in $ac_files
3111do
3112 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3115 esac
3116done
3117rm -f $ac_rmfiles
3118
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003120case "(($ac_try" in
3121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3122 *) ac_try_echo=$ac_try;;
3123esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3125$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3129 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003130 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3131# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3132# in a Makefile. We should not override ac_cv_exeext if it was cached,
3133# so that the user can short-circuit this test for compilers unknown to
3134# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003135for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136do
3137 test -f "$ac_file" || continue
3138 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003139 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 ;;
3141 [ab].out )
3142 # We found the default executable, but exeext='' is most
3143 # certainly right.
3144 break;;
3145 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003146 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003147 then :; else
3148 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3149 fi
3150 # We set ac_cv_exeext here because the later test for it is not
3151 # safe: cross compilers may not add the suffix if given an `-o'
3152 # argument, so we may need to know it at that point already.
3153 # Even if this section looks crufty: it has the advantage of
3154 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003155 break;;
3156 * )
3157 break;;
3158 esac
3159done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003160test "$ac_cv_exeext" = no && ac_cv_exeext=
3161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003162else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003163 ac_file=''
3164fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003165if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3167$as_echo "no" >&6; }
3168$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169sed 's/^/| /' conftest.$ac_ext >&5
3170
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003171{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003172$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003173{ as_fn_set_status 77
3174as_fn_error "C compiler cannot create executables
3175See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003176else
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3178$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003179fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3181$as_echo_n "checking for C compiler default output file name... " >&6; }
3182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3183$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003185
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003186rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003187ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003189$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003191case "(($ac_try" in
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3194esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003197 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3200 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3202# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3203# work properly (i.e., refer to `conftest.exe'), while it won't with
3204# `rm'.
3205for ac_file in conftest.exe conftest conftest.*; do
3206 test -f "$ac_file" || continue
3207 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003209 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 break;;
3211 * ) break;;
3212 esac
3213done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003214else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003217as_fn_error "cannot compute suffix of executables: cannot compile and link
3218See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003220rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003222$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223
3224rm -f conftest.$ac_ext
3225EXEEXT=$ac_cv_exeext
3226ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3228/* end confdefs.h. */
3229#include <stdio.h>
3230int
3231main ()
3232{
3233FILE *f = fopen ("conftest.out", "w");
3234 return ferror (f) || fclose (f) != 0;
3235
3236 ;
3237 return 0;
3238}
3239_ACEOF
3240ac_clean_files="$ac_clean_files conftest.out"
3241# Check that the compiler produces executables we can run. If not, either
3242# the compiler is broken, or we cross compile.
3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3244$as_echo_n "checking whether we are cross compiling... " >&6; }
3245if test "$cross_compiling" != yes; then
3246 { { ac_try="$ac_link"
3247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
3251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
3253 (eval "$ac_link") 2>&5
3254 ac_status=$?
3255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }
3257 if { ac_try='./conftest$ac_cv_exeext'
3258 { { case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261esac
3262eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3263$as_echo "$ac_try_echo"; } >&5
3264 (eval "$ac_try") 2>&5
3265 ac_status=$?
3266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3267 test $ac_status = 0; }; }; then
3268 cross_compiling=no
3269 else
3270 if test "$cross_compiling" = maybe; then
3271 cross_compiling=yes
3272 else
3273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3275as_fn_error "cannot run C compiled programs.
3276If you meant to cross compile, use \`--host'.
3277See \`config.log' for more details." "$LINENO" 5; }
3278 fi
3279 fi
3280fi
3281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3282$as_echo "$cross_compiling" >&6; }
3283
3284rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3285ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003287$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003288if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003289 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003290else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003292/* end confdefs.h. */
3293
3294int
3295main ()
3296{
3297
3298 ;
3299 return 0;
3300}
3301_ACEOF
3302rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003303if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003304case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003308eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3309$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003310 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003311 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3313 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003314 for ac_file in conftest.o conftest.obj conftest.*; do
3315 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003317 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003318 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3319 break;;
3320 esac
3321done
3322else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003323 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324sed 's/^/| /' conftest.$ac_ext >&5
3325
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003326{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003328as_fn_error "cannot compute suffix of object files: cannot compile
3329See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331rm -f conftest.$ac_cv_objext conftest.$ac_ext
3332fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003335OBJEXT=$ac_cv_objext
3336ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003338$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003339if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003340 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343/* end confdefs.h. */
3344
3345int
3346main ()
3347{
3348#ifndef __GNUC__
3349 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003350#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352 ;
3353 return 0;
3354}
3355_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003359 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003360fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003362ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003366$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3367if test $ac_compiler_gnu = yes; then
3368 GCC=yes
3369else
3370 GCC=
3371fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003372ac_test_CFLAGS=${CFLAGS+set}
3373ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003375$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003376if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003377 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003378else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379 ac_save_c_werror_flag=$ac_c_werror_flag
3380 ac_c_werror_flag=yes
3381 ac_cv_prog_cc_g=no
3382 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003384/* end confdefs.h. */
3385
3386int
3387main ()
3388{
3389
3390 ;
3391 return 0;
3392}
3393_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003394if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003395 ac_cv_prog_cc_g=yes
3396else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003397 CFLAGS=""
3398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003399/* end confdefs.h. */
3400
3401int
3402main ()
3403{
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003409if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411else
3412 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003413 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003415/* end confdefs.h. */
3416
3417int
3418main ()
3419{
3420
3421 ;
3422 return 0;
3423}
3424_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003426 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003427fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3431fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003436$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003437if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003438 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003439elif test $ac_cv_prog_cc_g = yes; then
3440 if test "$GCC" = yes; then
3441 CFLAGS="-g -O2"
3442 else
3443 CFLAGS="-g"
3444 fi
3445else
3446 if test "$GCC" = yes; then
3447 CFLAGS="-O2"
3448 else
3449 CFLAGS=
3450 fi
3451fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003453$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003454if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003455 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003457 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003458ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460/* end confdefs.h. */
3461#include <stdarg.h>
3462#include <stdio.h>
3463#include <sys/types.h>
3464#include <sys/stat.h>
3465/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3466struct buf { int x; };
3467FILE * (*rcsopen) (struct buf *, struct stat *, int);
3468static char *e (p, i)
3469 char **p;
3470 int i;
3471{
3472 return p[i];
3473}
3474static char *f (char * (*g) (char **, int), char **p, ...)
3475{
3476 char *s;
3477 va_list v;
3478 va_start (v,p);
3479 s = g (p, va_arg (v,int));
3480 va_end (v);
3481 return s;
3482}
3483
3484/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3485 function prototypes and stuff, but not '\xHH' hex character constants.
3486 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003487 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3489 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003490 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3492
Theodore Ts'oe1052142006-10-21 21:46:47 -04003493/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3494 inside strings and character constants. */
3495#define FOO(x) 'x'
3496int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498int test (int i, double x);
3499struct s1 {int (*f) (int a);};
3500struct s2 {int (*f) (double a);};
3501int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3502int argc;
3503char **argv;
3504int
3505main ()
3506{
3507return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3508 ;
3509 return 0;
3510}
3511_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003512for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3513 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003514do
3515 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003516 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003517 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003519rm -f core conftest.err conftest.$ac_objext
3520 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003521done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003522rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523CC=$ac_save_CC
3524
3525fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526# AC_CACHE_VAL
3527case "x$ac_cv_prog_cc_c89" in
3528 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003530$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003531 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003533$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003534 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003535 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003537$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003538esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003539if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003541fi
3542
3543ac_ext=c
3544ac_cpp='$CPP $CPPFLAGS'
3545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3547ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548
3549
3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3551$as_echo_n "checking for dlopen in -ldl... " >&6; }
3552if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3554else
3555 ac_check_lib_save_LIBS=$LIBS
3556LIBS="-ldl $LIBS"
3557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558/* end confdefs.h. */
3559
3560/* Override any GCC internal prototype to avoid an error.
3561 Use char because int might match the return type of a GCC
3562 builtin and then its argument prototype would still apply. */
3563#ifdef __cplusplus
3564extern "C"
3565#endif
3566char dlopen ();
3567int
3568main ()
3569{
3570return dlopen ();
3571 ;
3572 return 0;
3573}
3574_ACEOF
3575if ac_fn_c_try_link "$LINENO"; then :
3576 ac_cv_lib_dl_dlopen=yes
3577else
3578 ac_cv_lib_dl_dlopen=no
3579fi
3580rm -f core conftest.err conftest.$ac_objext \
3581 conftest$ac_exeext conftest.$ac_ext
3582LIBS=$ac_check_lib_save_LIBS
3583fi
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3585$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3586if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3587 DLOPEN_LIB=-ldl
3588$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3589
3590fi
3591
3592
3593WITH_DIET_LIBC=
3594
3595# Check whether --with-diet-libc was given.
3596if test "${with_diet_libc+set}" = set; then :
3597 withval=$with_diet_libc; CC="diet cc -nostdinc"
3598WITH_DIET_LIBC=yes
3599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3600$as_echo "CC=$CC" >&6; }
3601fi
3602
3603# Check whether --with-cc was given.
3604if test "${with_cc+set}" = set; then :
3605 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3606fi
3607
3608
3609# Check whether --with-ccopts was given.
3610if test "${with_ccopts+set}" = set; then :
3611 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3612fi
3613
3614
3615# Check whether --with-ldopts was given.
3616if test "${with_ldopts+set}" = set; then :
3617 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3618fi
3619
3620ac_ext=c
3621ac_cpp='$CPP $CPPFLAGS'
3622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3627set dummy ${ac_tool_prefix}gcc; ac_word=$2
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629$as_echo_n "checking for $ac_word... " >&6; }
3630if test "${ac_cv_prog_CC+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3632else
3633 if test -n "$CC"; then
3634 ac_cv_prog_CC="$CC" # Let the user override the test.
3635else
3636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3637for as_dir in $PATH
3638do
3639 IFS=$as_save_IFS
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3645 break 2
3646 fi
3647done
3648 done
3649IFS=$as_save_IFS
3650
3651fi
3652fi
3653CC=$ac_cv_prog_CC
3654if test -n "$CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3656$as_echo "$CC" >&6; }
3657else
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659$as_echo "no" >&6; }
3660fi
3661
3662
3663fi
3664if test -z "$ac_cv_prog_CC"; then
3665 ac_ct_CC=$CC
3666 # Extract the first word of "gcc", so it can be a program name with args.
3667set dummy gcc; ac_word=$2
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669$as_echo_n "checking for $ac_word... " >&6; }
3670if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3672else
3673 if test -n "$ac_ct_CC"; then
3674 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3675else
3676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677for as_dir in $PATH
3678do
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_CC="gcc"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687done
3688 done
3689IFS=$as_save_IFS
3690
3691fi
3692fi
3693ac_ct_CC=$ac_cv_prog_ac_ct_CC
3694if test -n "$ac_ct_CC"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3696$as_echo "$ac_ct_CC" >&6; }
3697else
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699$as_echo "no" >&6; }
3700fi
3701
3702 if test "x$ac_ct_CC" = x; then
3703 CC=""
3704 else
3705 case $cross_compiling:$ac_tool_warned in
3706yes:)
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709ac_tool_warned=yes ;;
3710esac
3711 CC=$ac_ct_CC
3712 fi
3713else
3714 CC="$ac_cv_prog_CC"
3715fi
3716
3717if test -z "$CC"; then
3718 if test -n "$ac_tool_prefix"; then
3719 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3720set dummy ${ac_tool_prefix}cc; ac_word=$2
3721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722$as_echo_n "checking for $ac_word... " >&6; }
3723if test "${ac_cv_prog_CC+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3725else
3726 if test -n "$CC"; then
3727 ac_cv_prog_CC="$CC" # Let the user override the test.
3728else
3729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730for as_dir in $PATH
3731do
3732 IFS=$as_save_IFS
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3736 ac_cv_prog_CC="${ac_tool_prefix}cc"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 break 2
3739 fi
3740done
3741 done
3742IFS=$as_save_IFS
3743
3744fi
3745fi
3746CC=$ac_cv_prog_CC
3747if test -n "$CC"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3749$as_echo "$CC" >&6; }
3750else
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752$as_echo "no" >&6; }
3753fi
3754
3755
3756 fi
3757fi
3758if test -z "$CC"; then
3759 # Extract the first word of "cc", so it can be a program name with args.
3760set dummy cc; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
3763if test "${ac_cv_prog_CC+set}" = set; then :
3764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768else
3769 ac_prog_rejected=no
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3778 ac_prog_rejected=yes
3779 continue
3780 fi
3781 ac_cv_prog_CC="cc"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785done
3786 done
3787IFS=$as_save_IFS
3788
3789if test $ac_prog_rejected = yes; then
3790 # We found a bogon in the path, so make sure we never use it.
3791 set dummy $ac_cv_prog_CC
3792 shift
3793 if test $# != 0; then
3794 # We chose a different compiler from the bogus one.
3795 # However, it has the same basename, so the bogon will be chosen
3796 # first if we set CC to just the basename; use the full file name.
3797 shift
3798 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3799 fi
3800fi
3801fi
3802fi
3803CC=$ac_cv_prog_CC
3804if test -n "$CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3806$as_echo "$CC" >&6; }
3807else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809$as_echo "no" >&6; }
3810fi
3811
3812
3813fi
3814if test -z "$CC"; then
3815 if test -n "$ac_tool_prefix"; then
3816 for ac_prog in cl.exe
3817 do
3818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3819set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3821$as_echo_n "checking for $ac_word... " >&6; }
3822if test "${ac_cv_prog_CC+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3824else
3825 if test -n "$CC"; then
3826 ac_cv_prog_CC="$CC" # Let the user override the test.
3827else
3828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3835 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3837 break 2
3838 fi
3839done
3840 done
3841IFS=$as_save_IFS
3842
3843fi
3844fi
3845CC=$ac_cv_prog_CC
3846if test -n "$CC"; then
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3848$as_echo "$CC" >&6; }
3849else
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3851$as_echo "no" >&6; }
3852fi
3853
3854
3855 test -n "$CC" && break
3856 done
3857fi
3858if test -z "$CC"; then
3859 ac_ct_CC=$CC
3860 for ac_prog in cl.exe
3861do
3862 # Extract the first word of "$ac_prog", so it can be a program name with args.
3863set dummy $ac_prog; ac_word=$2
3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3865$as_echo_n "checking for $ac_word... " >&6; }
3866if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3867 $as_echo_n "(cached) " >&6
3868else
3869 if test -n "$ac_ct_CC"; then
3870 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3871else
3872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873for as_dir in $PATH
3874do
3875 IFS=$as_save_IFS
3876 test -z "$as_dir" && as_dir=.
3877 for ac_exec_ext in '' $ac_executable_extensions; do
3878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3879 ac_cv_prog_ac_ct_CC="$ac_prog"
3880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 break 2
3882 fi
3883done
3884 done
3885IFS=$as_save_IFS
3886
3887fi
3888fi
3889ac_ct_CC=$ac_cv_prog_ac_ct_CC
3890if test -n "$ac_ct_CC"; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3892$as_echo "$ac_ct_CC" >&6; }
3893else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895$as_echo "no" >&6; }
3896fi
3897
3898
3899 test -n "$ac_ct_CC" && break
3900done
3901
3902 if test "x$ac_ct_CC" = x; then
3903 CC=""
3904 else
3905 case $cross_compiling:$ac_tool_warned in
3906yes:)
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3909ac_tool_warned=yes ;;
3910esac
3911 CC=$ac_ct_CC
3912 fi
3913fi
3914
3915fi
3916
3917
3918test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3920as_fn_error "no acceptable C compiler found in \$PATH
3921See \`config.log' for more details." "$LINENO" 5; }
3922
3923# Provide some information about the compiler.
3924$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3925set X $ac_compile
3926ac_compiler=$2
3927for ac_option in --version -v -V -qversion; do
3928 { { ac_try="$ac_compiler $ac_option >&5"
3929case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3932esac
3933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934$as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3936 ac_status=$?
3937 if test -s conftest.err; then
3938 sed '10a\
3939... rest of stderr output deleted ...
3940 10q' conftest.err >conftest.er1
3941 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003942 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003943 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945 test $ac_status = 0; }
3946done
3947
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3949$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3950if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3951 $as_echo_n "(cached) " >&6
3952else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954/* end confdefs.h. */
3955
3956int
3957main ()
3958{
3959#ifndef __GNUC__
3960 choke me
3961#endif
3962
3963 ;
3964 return 0;
3965}
3966_ACEOF
3967if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_compiler_gnu=yes
3969else
3970 ac_compiler_gnu=no
3971fi
3972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973ac_cv_c_compiler_gnu=$ac_compiler_gnu
3974
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3977$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978if test $ac_compiler_gnu = yes; then
3979 GCC=yes
3980else
3981 GCC=
3982fi
3983ac_test_CFLAGS=${CFLAGS+set}
3984ac_save_CFLAGS=$CFLAGS
3985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3986$as_echo_n "checking whether $CC accepts -g... " >&6; }
3987if test "${ac_cv_prog_cc_g+set}" = set; then :
3988 $as_echo_n "(cached) " >&6
3989else
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3992 ac_cv_prog_cc_g=no
3993 CFLAGS="-g"
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h. */
3996
3997int
3998main ()
3999{
4000
4001 ;
4002 return 0;
4003}
4004_ACEOF
4005if ac_fn_c_try_compile "$LINENO"; then :
4006 ac_cv_prog_cc_g=yes
4007else
4008 CFLAGS=""
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010/* end confdefs.h. */
4011
4012int
4013main ()
4014{
4015
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020if ac_fn_c_try_compile "$LINENO"; then :
4021
4022else
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024 CFLAGS="-g"
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027
4028int
4029main ()
4030{
4031
4032 ;
4033 return 0;
4034}
4035_ACEOF
4036if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_cv_prog_cc_g=yes
4038fi
4039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4040fi
4041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042fi
4043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4045fi
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4047$as_echo "$ac_cv_prog_cc_g" >&6; }
4048if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4052 CFLAGS="-g -O2"
4053 else
4054 CFLAGS="-g"
4055 fi
4056else
4057 if test "$GCC" = yes; then
4058 CFLAGS="-O2"
4059 else
4060 CFLAGS=
4061 fi
4062fi
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4064$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4065if test "${ac_cv_prog_cc_c89+set}" = set; then :
4066 $as_echo_n "(cached) " >&6
4067else
4068 ac_cv_prog_cc_c89=no
4069ac_save_CC=$CC
4070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#include <stdarg.h>
4073#include <stdio.h>
4074#include <sys/types.h>
4075#include <sys/stat.h>
4076/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4077struct buf { int x; };
4078FILE * (*rcsopen) (struct buf *, struct stat *, int);
4079static char *e (p, i)
4080 char **p;
4081 int i;
4082{
4083 return p[i];
4084}
4085static char *f (char * (*g) (char **, int), char **p, ...)
4086{
4087 char *s;
4088 va_list v;
4089 va_start (v,p);
4090 s = g (p, va_arg (v,int));
4091 va_end (v);
4092 return s;
4093}
4094
4095/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4096 function prototypes and stuff, but not '\xHH' hex character constants.
4097 These don't provoke an error unfortunately, instead are silently treated
4098 as 'x'. The following induces an error, until -std is added to get
4099 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4100 array size at least. It's necessary to write '\x00'==0 to get something
4101 that's true only with -std. */
4102int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4103
4104/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4105 inside strings and character constants. */
4106#define FOO(x) 'x'
4107int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4108
4109int test (int i, double x);
4110struct s1 {int (*f) (int a);};
4111struct s2 {int (*f) (double a);};
4112int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4113int argc;
4114char **argv;
4115int
4116main ()
4117{
4118return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4119 ;
4120 return 0;
4121}
4122_ACEOF
4123for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4124 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4125do
4126 CC="$ac_save_CC $ac_arg"
4127 if ac_fn_c_try_compile "$LINENO"; then :
4128 ac_cv_prog_cc_c89=$ac_arg
4129fi
4130rm -f core conftest.err conftest.$ac_objext
4131 test "x$ac_cv_prog_cc_c89" != "xno" && break
4132done
4133rm -f conftest.$ac_ext
4134CC=$ac_save_CC
4135
4136fi
4137# AC_CACHE_VAL
4138case "x$ac_cv_prog_cc_c89" in
4139 x)
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4141$as_echo "none needed" >&6; } ;;
4142 xno)
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4144$as_echo "unsupported" >&6; } ;;
4145 *)
4146 CC="$CC $ac_cv_prog_cc_c89"
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4148$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4149esac
4150if test "x$ac_cv_prog_cc_c89" != xno; then :
4151
4152fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004153
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004154ac_ext=c
4155ac_cpp='$CPP $CPPFLAGS'
4156ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004160ac_ext=c
4161ac_cpp='$CPP $CPPFLAGS'
4162ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004166$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004167# On Suns, sometimes $CPP names a directory.
4168if test -n "$CPP" && test -d "$CPP"; then
4169 CPP=
4170fi
4171if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004172 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004173 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004175 # Double quotes because CPP needs to be expanded
4176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4177 do
4178 ac_preproc_ok=false
4179for ac_c_preproc_warn_flag in '' yes
4180do
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004185 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004186 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004188/* end confdefs.h. */
4189#ifdef __STDC__
4190# include <limits.h>
4191#else
4192# include <assert.h>
4193#endif
4194 Syntax error
4195_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004196if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004198else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004199 # Broken: fails on valid input.
4200continue
4201fi
4202rm -f conftest.err conftest.$ac_ext
4203
Theodore Ts'oe1052142006-10-21 21:46:47 -04004204 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004205 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004207/* end confdefs.h. */
4208#include <ac_nonexistent.h>
4209_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004210if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004211 # Broken: success on invalid input.
4212continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004213else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004214 # Passes both tests.
4215ac_preproc_ok=:
4216break
4217fi
4218rm -f conftest.err conftest.$ac_ext
4219
4220done
4221# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4222rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004223if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004224 break
4225fi
4226
4227 done
4228 ac_cv_prog_CPP=$CPP
4229
4230fi
4231 CPP=$ac_cv_prog_CPP
4232else
4233 ac_cv_prog_CPP=$CPP
4234fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004236$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004237ac_preproc_ok=false
4238for ac_c_preproc_warn_flag in '' yes
4239do
4240 # Use a header file that comes with gcc, so configuring glibc
4241 # with a fresh cross-compiler works.
4242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4243 # <limits.h> exists even on freestanding compilers.
4244 # On the NeXT, cc -E runs the code through the compiler's parser,
4245 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004247/* end confdefs.h. */
4248#ifdef __STDC__
4249# include <limits.h>
4250#else
4251# include <assert.h>
4252#endif
4253 Syntax error
4254_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004255if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004258 # Broken: fails on valid input.
4259continue
4260fi
4261rm -f conftest.err conftest.$ac_ext
4262
Theodore Ts'oe1052142006-10-21 21:46:47 -04004263 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004264 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004266/* end confdefs.h. */
4267#include <ac_nonexistent.h>
4268_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004269if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270 # Broken: success on invalid input.
4271continue
4272else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273 # Passes both tests.
4274ac_preproc_ok=:
4275break
4276fi
4277rm -f conftest.err conftest.$ac_ext
4278
4279done
4280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4281rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282if $ac_preproc_ok; then :
4283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004287as_fn_error "C preprocessor \"$CPP\" fails sanity check
4288See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289fi
4290
4291ac_ext=c
4292ac_cpp='$CPP $CPPFLAGS'
4293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4295ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296
4297
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004299$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004300if test "${ac_cv_path_GREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004301 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004302else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004303 if test -z "$GREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004304 ac_path_GREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004305 # Loop through the user's path and test for each of PROGNAME-LIST
4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004307for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308do
4309 IFS=$as_save_IFS
4310 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004311 for ac_prog in grep ggrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004312 for ac_exec_ext in '' $ac_executable_extensions; do
4313 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4314 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4315# Check for GNU ac_path_GREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004316 # Check for GNU $ac_path_GREP
4317case `"$ac_path_GREP" --version 2>&1` in
4318*GNU*)
4319 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4320*)
4321 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004322 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004323 while :
4324 do
4325 cat "conftest.in" "conftest.in" >"conftest.tmp"
4326 mv "conftest.tmp" "conftest.in"
4327 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004328 $as_echo 'GREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004329 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004331 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004332 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4333 # Best one so far, save it but keep looking for a better one
4334 ac_cv_path_GREP="$ac_path_GREP"
4335 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337 # 10*(2^10) chars as input seems more than enough
4338 test $ac_count -gt 10 && break
4339 done
4340 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341esac
4342
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004343 $ac_path_GREP_found && break 3
4344 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004345 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004346 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004347IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004348 if test -z "$ac_cv_path_GREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004349 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004350 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004351else
4352 ac_cv_path_GREP=$GREP
4353fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004354
Theodore Ts'oe1052142006-10-21 21:46:47 -04004355fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004357$as_echo "$ac_cv_path_GREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004358 GREP="$ac_cv_path_GREP"
4359
4360
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004362$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004363if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004364 $as_echo_n "(cached) " >&6
Theodore Ts'oe1052142006-10-21 21:46:47 -04004365else
4366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4367 then ac_cv_path_EGREP="$GREP -E"
4368 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004369 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004370 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004371 # Loop through the user's path and test for each of PROGNAME-LIST
4372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04004373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4374do
4375 IFS=$as_save_IFS
4376 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004377 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4381# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004382 # Check for GNU $ac_path_EGREP
4383case `"$ac_path_EGREP" --version 2>&1` in
4384*GNU*)
4385 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4386*)
4387 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004388 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389 while :
4390 do
4391 cat "conftest.in" "conftest.in" >"conftest.tmp"
4392 mv "conftest.tmp" "conftest.in"
4393 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004394 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04004395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004397 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4399 # Best one so far, save it but keep looking for a better one
4400 ac_cv_path_EGREP="$ac_path_EGREP"
4401 ac_path_EGREP_max=$ac_count
4402 fi
4403 # 10*(2^10) chars as input seems more than enough
4404 test $ac_count -gt 10 && break
4405 done
4406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4407esac
4408
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004409 $ac_path_EGREP_found && break 3
4410 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004411 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004412 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004413IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004414 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004415 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004416 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004417else
4418 ac_cv_path_EGREP=$EGREP
4419fi
4420
Theodore Ts'oe1052142006-10-21 21:46:47 -04004421 fi
4422fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004424$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04004425 EGREP="$ac_cv_path_EGREP"
4426
4427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004429$as_echo_n "checking for ANSI C header files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430if test "${ac_cv_header_stdc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004431 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004432else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004434/* end confdefs.h. */
4435#include <stdlib.h>
4436#include <stdarg.h>
4437#include <string.h>
4438#include <float.h>
4439
4440int
4441main ()
4442{
4443
4444 ;
4445 return 0;
4446}
4447_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004448if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004449 ac_cv_header_stdc=yes
4450else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004451 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004452fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004454
4455if test $ac_cv_header_stdc = yes; then
4456 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004458/* end confdefs.h. */
4459#include <string.h>
4460
4461_ACEOF
4462if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004463 $EGREP "memchr" >/dev/null 2>&1; then :
4464
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004465else
4466 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004467fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004468rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004469
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004470fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004471
4472if test $ac_cv_header_stdc = yes; then
4473 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004475/* end confdefs.h. */
4476#include <stdlib.h>
4477
4478_ACEOF
4479if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004480 $EGREP "free" >/dev/null 2>&1; then :
4481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004482else
4483 ac_cv_header_stdc=no
4484fi
4485rm -f conftest*
4486
4487fi
4488
4489if test $ac_cv_header_stdc = yes; then
4490 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004491 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004492 :
4493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004495/* end confdefs.h. */
4496#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04004497#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004498#if ((' ' & 0x0FF) == 0x020)
4499# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4500# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4501#else
4502# define ISLOWER(c) \
4503 (('a' <= (c) && (c) <= 'i') \
4504 || ('j' <= (c) && (c) <= 'r') \
4505 || ('s' <= (c) && (c) <= 'z'))
4506# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4507#endif
4508
4509#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4510int
4511main ()
4512{
4513 int i;
4514 for (i = 0; i < 256; i++)
4515 if (XOR (islower (i), ISLOWER (i))
4516 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04004517 return 2;
4518 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004519}
4520_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004521if ac_fn_c_try_run "$LINENO"; then :
4522
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004524 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004525fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4527 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528fi
4529
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004530fi
4531fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004533$as_echo "$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004534if test $ac_cv_header_stdc = yes; then
4535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004536$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004537
4538fi
4539
4540# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004541for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4542 inttypes.h stdint.h unistd.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004543do :
4544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4545ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4546"
4547eval as_val=\$$as_ac_Header
4548 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004549 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004551_ACEOF
4552
4553fi
4554
4555done
4556
4557
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004558ac_fn_c_check_header_mongrel "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
4559if test "x$ac_cv_header_linux_fs_h" = x""yes; then :
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004560 linux_headers=yes
4561else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004562 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004563fi
4564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004565
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00004566if test "$linux_headers" != yes; then
4567 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004568fi
4569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004571$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004572if test "$GCC" = yes
4573then
4574 case "$host_cpu" in
4575 alpha) addcflags="-mieee" ;;
4576 esac
4577fi
4578if test "x$addcflags" != x
4579then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004581$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004582 CFLAGS="$addcflags $CFLAGS"
4583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004585$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004586fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004587LIB_EXT=.a
4588STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004589PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004590
Theodore Ts'oe1052142006-10-21 21:46:47 -04004591# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004592if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004593 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004594else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004595 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004596fi
4597# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004598if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004599 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004600then
4601 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004603$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004604else
4605 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004607$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004608fi
4609
4610else
4611 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004613$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004614
Theodore Ts'oe1052142006-10-21 21:46:47 -04004615fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004616
Theodore Ts'oe1052142006-10-21 21:46:47 -04004617
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004618# Check whether --enable-symlink-install was given.
4619if test "${enable_symlink_install+set}" = set; then :
4620 enableval=$enable_symlink_install; if test "$enableval" = "no"
4621then
4622 LINK_INSTALL_FLAGS=-f
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4624$as_echo "Disabling symlinks for install" >&6; }
4625else
4626 LINK_INSTALL_FLAGS=-sf
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4628$as_echo "Enabling symlinks for install" >&6; }
4629fi
4630
4631else
4632 LINK_INSTALL_FLAGS=-f
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4634$as_echo "Disabling symlinks for install" >&6; }
4635
4636fi
4637
4638
4639# Check whether --enable-symlink-build was given.
4640if test "${enable_symlink_build+set}" = set; then :
4641 enableval=$enable_symlink_build; if test "$enableval" = "no"
4642then
4643 LINK_BUILD_FLAGS=
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4645$as_echo "Disabling symlinks for build" >&6; }
4646else
4647 LINK_BUILD_FLAGS=-s
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4649$as_echo "Enabling symlinks for build" >&6; }
4650fi
4651
4652else
4653 LINK_BUILD_FLAGS=
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4655$as_echo "Disabling symlinks for build" >&6; }
4656
4657fi
4658
4659
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004660# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004661if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004662 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4663then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004665$as_echo "Disabling verbose make commands" >&6; }
4666 E=@echo
4667 Q=@
4668else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004670$as_echo "Enabling verbose make commands" >&6; }
4671 E=@\\#
4672 Q=
4673fi
4674
4675else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004677$as_echo "Disabling verbose make commands" >&6; }
4678E=@echo
4679Q=@
4680
4681fi
4682
4683
4684
Theodore Ts'oe1052142006-10-21 21:46:47 -04004685# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004686if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004687 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004688then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004690$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004691else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004692 $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004693
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004695$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004697$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004698fi
4699
4700else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004702$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004703
Theodore Ts'oe1052142006-10-21 21:46:47 -04004704fi
4705
4706# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004707if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004708 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004709then
4710 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004712$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004713else
4714 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004715 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004718$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004719fi
4720
4721else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004722 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004723$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004724
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004726$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004727
Theodore Ts'oe1052142006-10-21 21:46:47 -04004728fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004729
Theodore Ts'oe1052142006-10-21 21:46:47 -04004730
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004731E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004732LDFLAG_DYNAMIC=
4733PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004734# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004735if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004736 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004737then
4738 ELF_CMT=#
4739 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004741$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004742else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004743 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004744 ELF_CMT=
4745 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004746 case "$host_os" in
4747 solaris2.*)
4748 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4749 ;;
4750 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004751 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004752 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004753 PRIVATE_LIBS_CMT=#
4754 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004756$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004757fi
4758
4759else
4760 MAKEFILE_ELF=/dev/null
4761ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004763$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004764
Theodore Ts'oe1052142006-10-21 21:46:47 -04004765fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004766
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004767
Theodore Ts'oe1052142006-10-21 21:46:47 -04004768
4769# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004770if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004771 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004772then
4773 BSDLIB_CMT=#
4774 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004776$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004777else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004778 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004779 BSDLIB_CMT=
4780 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004781 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004782 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004783 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004784 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4785 LIB_EXT=.dylib
4786 ;;
4787 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004790fi
4791
4792else
4793 MAKEFILE_BSDLIB=/dev/null
4794BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004796$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004799
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004800
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801
4802# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004804 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004805then
4806 PROFILE_CMT=#
4807 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004810else
4811 PROFILE_CMT=
4812 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4813 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004815$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004816fi
4817
4818else
4819 PROFILE_CMT=#
4820MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004822$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004823
Theodore Ts'oe1052142006-10-21 21:46:47 -04004824fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004825
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004826
Theodore Ts'oe1052142006-10-21 21:46:47 -04004827
4828# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004830 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004831then
4832 CHECKER_CMT=#
4833 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004835$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004836else
4837 CHECKER_CMT=
4838 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004840$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004841fi
4842
4843else
4844 CHECKER_CMT=#
4845MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004847$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004848
Theodore Ts'oe1052142006-10-21 21:46:47 -04004849fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004850
4851
4852
4853
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004854
Theodore Ts'oe1052142006-10-21 21:46:47 -04004855
Theodore Ts'o55da9872008-09-02 23:12:38 -04004856
4857
Theodore Ts'oe1052142006-10-21 21:46:47 -04004858# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004859if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004860 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004861then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004863$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004865 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004866
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004868$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004869fi
4870
4871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004873$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004874
Theodore Ts'oe1052142006-10-21 21:46:47 -04004875fi
4876
4877# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004878if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004879 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004880then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004882$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004883else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004884 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004885
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004887$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004888fi
4889
4890else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004892$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004893
Theodore Ts'oe1052142006-10-21 21:46:47 -04004894fi
4895
4896# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004897if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004898 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004899then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004902 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004903else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004904 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004906
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004908$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004909fi
4910
4911else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004913$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004915
4916TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004917
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918fi
4919
Theodore Ts'oaf773652008-09-01 11:27:27 -04004920
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004921
4922
4923if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4924 if test -n "$ac_tool_prefix"; then
4925 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4926set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004928$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004931else
4932 case $PKG_CONFIG in
4933 [\\/]* | ?:[\\/]*)
4934 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4935 ;;
4936 *)
4937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004946 break 2
4947 fi
4948done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004949 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004950IFS=$as_save_IFS
4951
4952 ;;
4953esac
4954fi
4955PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4956if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004961$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004962fi
4963
4964
4965fi
4966if test -z "$ac_cv_path_PKG_CONFIG"; then
4967 ac_pt_PKG_CONFIG=$PKG_CONFIG
4968 # Extract the first word of "pkg-config", so it can be a program name with args.
4969set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004972if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004973 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004974else
4975 case $ac_pt_PKG_CONFIG in
4976 [\\/]* | ?:[\\/]*)
4977 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4978 ;;
4979 *)
4980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004989 break 2
4990 fi
4991done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004992 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004993IFS=$as_save_IFS
4994
4995 ;;
4996esac
4997fi
4998ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4999if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005001$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005004$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005005fi
5006
5007 if test "x$ac_pt_PKG_CONFIG" = x; then
5008 PKG_CONFIG=""
5009 else
5010 case $cross_compiling:$ac_tool_warned in
5011yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005012{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005013$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005014ac_tool_warned=yes ;;
5015esac
5016 PKG_CONFIG=$ac_pt_PKG_CONFIG
5017 fi
5018else
5019 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5020fi
5021
5022fi
5023if test -n "$PKG_CONFIG"; then
5024 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005026$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005027 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005029$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005030 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005032$as_echo "no" >&6; }
5033 PKG_CONFIG=""
5034 fi
5035
5036fi
5037LIBUUID=
5038DEPLIBUUID=
5039STATIC_LIBUUID=
5040DEPSTATIC_LIBUUID=
5041PROFILED_LIBUUID=
5042DEPPROFILED_LIBUUID=
5043UUID_CMT=
5044# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005046 enableval=$enable_libuuid; if test "$enableval" = "no"
5047then
5048 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005049 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005050 fi
5051
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055 $as_echo_n "(cached) " >&6
5056else
5057 ac_check_lib_save_LIBS=$LIBS
5058LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060/* end confdefs.h. */
5061
5062/* Override any GCC internal prototype to avoid an error.
5063 Use char because int might match the return type of a GCC
5064 builtin and then its argument prototype would still apply. */
5065#ifdef __cplusplus
5066extern "C"
5067#endif
5068char uuid_generate ();
5069int
5070main ()
5071{
5072return uuid_generate ();
5073 ;
5074 return 0;
5075}
5076_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005078 ac_cv_lib_uuid_uuid_generate=yes
5079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005081fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082rm -f core conftest.err conftest.$ac_objext \
5083 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084LIBS=$ac_check_lib_save_LIBS
5085fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005087$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005088if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005089 LIBUUID=`$PKG_CONFIG --libs uuid`;
5090 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5091else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005092 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005093fi
5094
5095 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005097$as_echo "Disabling private uuid library" >&6; }
5098else
5099 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5100 DEPLIBUUID=$LIBUUID
5101 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5102 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5103 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5104 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005106$as_echo "Enabling private uuid library" >&6; }
5107fi
5108
5109else
5110 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5111DEPLIBUUID=$LIBUUID
5112STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5113DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5114PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5115DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005117$as_echo "Enabling private uuid library by default" >&6; }
5118
5119fi
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5131 if test -n "$ac_tool_prefix"; then
5132 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5133set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005135$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005136if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005137 $as_echo_n "(cached) " >&6
5138else
5139 case $PKG_CONFIG in
5140 [\\/]* | ?:[\\/]*)
5141 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5142 ;;
5143 *)
5144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5145for as_dir in $PATH
5146do
5147 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005153 break 2
5154 fi
5155done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005156 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005157IFS=$as_save_IFS
5158
5159 ;;
5160esac
5161fi
5162PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5163if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005165$as_echo "$PKG_CONFIG" >&6; }
5166else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005168$as_echo "no" >&6; }
5169fi
5170
5171
5172fi
5173if test -z "$ac_cv_path_PKG_CONFIG"; then
5174 ac_pt_PKG_CONFIG=$PKG_CONFIG
5175 # Extract the first word of "pkg-config", so it can be a program name with args.
5176set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005178$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005179if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005180 $as_echo_n "(cached) " >&6
5181else
5182 case $ac_pt_PKG_CONFIG in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5185 ;;
5186 *)
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005192 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005196 break 2
5197 fi
5198done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005199 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005200IFS=$as_save_IFS
5201
5202 ;;
5203esac
5204fi
5205ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5206if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005208$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5209else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005211$as_echo "no" >&6; }
5212fi
5213
5214 if test "x$ac_pt_PKG_CONFIG" = x; then
5215 PKG_CONFIG=""
5216 else
5217 case $cross_compiling:$ac_tool_warned in
5218yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005219{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005220$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5221ac_tool_warned=yes ;;
5222esac
5223 PKG_CONFIG=$ac_pt_PKG_CONFIG
5224 fi
5225else
5226 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5227fi
5228
5229fi
5230if test -n "$PKG_CONFIG"; then
5231 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5234 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005236$as_echo "yes" >&6; }
5237 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005239$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005240 PKG_CONFIG=""
5241 fi
5242
5243fi
5244LIBBLKID=
5245DEPLIBBLKID=
5246STATIC_LIBBLKID=
5247DEPSTATIC_LIBBLKID=
5248PROFILED_LIBBLKID=
5249DEPPROFILED_LIBBLKID=
5250BLKID_CMT=
5251# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005252if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005253 enableval=$enable_libblkid; if test "$enableval" = "no"
5254then
5255 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005256 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005257 fi
5258
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005260$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005261if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005262 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005263else
5264 ac_check_lib_save_LIBS=$LIBS
5265LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005267/* end confdefs.h. */
5268
5269/* Override any GCC internal prototype to avoid an error.
5270 Use char because int might match the return type of a GCC
5271 builtin and then its argument prototype would still apply. */
5272#ifdef __cplusplus
5273extern "C"
5274#endif
5275char blkid_get_cache ();
5276int
5277main ()
5278{
5279return blkid_get_cache ();
5280 ;
5281 return 0;
5282}
5283_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005284if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005285 ac_cv_lib_blkid_blkid_get_cache=yes
5286else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005287 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005288fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005289rm -f core conftest.err conftest.$ac_objext \
5290 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005291LIBS=$ac_check_lib_save_LIBS
5292fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005295if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005296 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5297 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005299 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005300fi
5301
5302 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005305else
5306 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5307 DEPLIBBLKID=$LIBBLKID
5308 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5309 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5310 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5311 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005312 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005316fi
5317
5318else
5319 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5320DEPLIBBLKID=$LIBBLKID
5321STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5322DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5323PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5324DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005325$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005326
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005328$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005329
5330fi
5331
5332
5333
5334
5335
5336
5337
5338
Theodore Ts'oe1052142006-10-21 21:46:47 -04005339# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005340if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005341 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005342then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005344$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005345 DEBUGFS_CMT="#"
5346else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005347 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005349$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005350fi
5351
5352else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005354$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355DEBUGFS_CMT=
5356
Theodore Ts'oe1052142006-10-21 21:46:47 -04005357fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005358
Theodore Ts'oe1052142006-10-21 21:46:47 -04005359
5360# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005361if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005362 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005366 IMAGER_CMT="#"
5367else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005368 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005370$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005371fi
5372
5373else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005375$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005376IMAGER_CMT=
5377
Theodore Ts'oe1052142006-10-21 21:46:47 -04005378fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005379
Theodore Ts'oe1052142006-10-21 21:46:47 -04005380
5381# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005382if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005383 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005384then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005386$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005387 RESIZER_CMT="#"
5388else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005389 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005392fi
5393
5394else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005396$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005397RESIZER_CMT=
5398
Theodore Ts'oe1052142006-10-21 21:46:47 -04005399fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005400
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005402# Check whether --enable-defrag was given.
5403if test "${enable_defrag+set}" = set; then :
5404 enableval=$enable_defrag; if test "$enableval" = "no"
5405then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5407$as_echo "Disabling e4defrag support" >&6; }
5408 DEFRAG_CMT="#"
5409else
5410 DEFRAG_CMT=
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5412$as_echo "Enabling e4defrag support" >&6; }
5413fi
5414
5415else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5417$as_echo "Enabling e4defrag support by default" >&6; }
5418DEFRAG_CMT=
5419
5420fi
5421
5422
Theodore Ts'oe1052142006-10-21 21:46:47 -04005423# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005425 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005426then
5427 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005429$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005430else
5431 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005434fi
5435
5436else
5437 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005438 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005439 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005441$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005442 ;;
5443 *)
5444 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005446$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005447esac
5448
Theodore Ts'oe1052142006-10-21 21:46:47 -04005449fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005450
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005451
Theodore Ts'oe1052142006-10-21 21:46:47 -04005452
5453# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005454if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005455 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005456then
5457 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005459$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005460else
5461 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005463$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005464fi
5465
5466else
5467 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005469$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005470
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005472
5473
Theodore Ts'oe1052142006-10-21 21:46:47 -04005474
Theodore Ts'o32493942007-12-31 10:45:01 -05005475# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005476if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005477 enableval=$enable_tls; if test "$enableval" = "no"
5478then
5479 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005481$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005482else
5483 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005485$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005486fi
5487
5488else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005489 if test -n "$WITH_DIET_LIBC"
5490then
5491 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005493$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005494else
5495 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005497$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005498fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005499
5500fi
5501
5502if test "$try_tls" = "yes"
5503then
5504
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005506$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005508 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005509else
5510
5511 ax_tls_keywords="__thread __declspec(thread) none"
5512 for ax_tls_keyword in $ax_tls_keywords; do
5513 case $ax_tls_keyword in
5514 none) ac_cv_tls=none ; break ;;
5515 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005517/* end confdefs.h. */
5518#include <stdlib.h>
5519 static void
5520 foo(void) {
5521 static $ax_tls_keyword int bar;
5522 exit(1);
5523 }
5524int
5525main ()
5526{
5527
5528 ;
5529 return 0;
5530}
5531_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005532if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005533 ac_cv_tls=$ax_tls_keyword ; break
5534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005535 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005536
5537fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 esac
5540 done
5541
5542fi
5543
5544
5545 if test "$ac_cv_tls" != "none"; then
5546
5547cat >>confdefs.h <<_ACEOF
5548#define TLS $ac_cv_tls
5549_ACEOF
5550
5551 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005553$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005554
5555fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005556# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005557if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005558 enableval=$enable_uuidd; if test "$enableval" = "no"
5559then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005561$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005562 UUIDD_CMT="#"
5563else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005564 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005565
5566 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005568$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005569fi
5570
5571else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005573
5574UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005577
5578fi
5579
5580
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005581MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005584PACKAGE=e2fsprogs
5585VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005586VERSION=0.14.1
5587cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005588#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005589_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005592#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005594
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005595
5596
5597
5598
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005600$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5601set x ${MAKE-make}
5602ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005603if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005604 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005605else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005607SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005608all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005609 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005611# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005612case `${MAKE-make} -f conftest.make 2>/dev/null` in
5613 *@@@%%%=?*=@@@%%%*)
5614 eval ac_cv_prog_make_${ac_make}_set=yes;;
5615 *)
5616 eval ac_cv_prog_make_${ac_make}_set=no;;
5617esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005618rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005620if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005622$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005623 SET_MAKE=
5624else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005626$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005627 SET_MAKE="MAKE=${MAKE-make}"
5628fi
5629
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005630# Find a good install program. We prefer a C program (faster),
5631# so one script is as good as another. But avoid the broken or
5632# incompatible versions:
5633# SysV /etc/install, /usr/sbin/install
5634# SunOS /usr/etc/install
5635# IRIX /sbin/install
5636# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005637# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005638# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5639# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5640# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005642# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005643# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005645$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005646if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005647if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005648 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005649else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651for as_dir in $PATH
5652do
5653 IFS=$as_save_IFS
5654 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005655 # Account for people who put trailing slashes in PATH elements.
5656case $as_dir/ in #((
5657 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005658 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005659 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005660 /usr/ucb/* ) ;;
5661 *)
5662 # OSF1 and SCO ODT 3.0 have their own names for install.
5663 # Don't use installbsd from OSF since it installs stuff as root
5664 # by default.
5665 for ac_prog in ginstall scoinst install; do
5666 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005667 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 -04005668 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005669 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005670 # AIX install. It has an incompatible calling convention.
5671 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672 elif test $ac_prog = install &&
5673 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5674 # program-specific install script used by HP pwplus--don't use.
5675 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005676 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005677 rm -rf conftest.one conftest.two conftest.dir
5678 echo one > conftest.one
5679 echo two > conftest.two
5680 mkdir conftest.dir
5681 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5682 test -s conftest.one && test -s conftest.two &&
5683 test -s conftest.dir/conftest.one &&
5684 test -s conftest.dir/conftest.two
5685 then
5686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5687 break 3
5688 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005689 fi
5690 fi
5691 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005692 done
5693 ;;
5694esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005695
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005696 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005697IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005699rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005700
5701fi
5702 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005703 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005704 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005705 # As a last resort, use the slow shell script. Don't cache a
5706 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005707 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005708 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005709 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005710 fi
5711fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005713$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005714
5715# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5716# It thinks the first close brace ends the variable substitution.
5717test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005719test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005720
5721test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5722
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005723
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005724 MKINSTALLDIRS=
5725 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005726 case "$ac_aux_dir" in
5727 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5728 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5729 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005730 fi
5731 if test -z "$MKINSTALLDIRS"; then
5732 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5733 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005734
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005735
5736
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005738$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005739 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005740if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005741 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005742else
5743 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744fi
5745
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005747$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005748
5749
5750
5751
5752
5753
5754# Prepare PATH_SEPARATOR.
5755# The user is always right.
5756if test "${PATH_SEPARATOR+set}" != set; then
5757 echo "#! /bin/sh" >conf$$.sh
5758 echo "exit 0" >>conf$$.sh
5759 chmod +x conf$$.sh
5760 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5761 PATH_SEPARATOR=';'
5762 else
5763 PATH_SEPARATOR=:
5764 fi
5765 rm -f conf$$.sh
5766fi
5767
5768# Find out how to test for executable files. Don't use a zero-byte file,
5769# as systems may use methods other than mode bits to determine executability.
5770cat >conf$$.file <<_ASEOF
5771#! /bin/sh
5772exit 0
5773_ASEOF
5774chmod +x conf$$.file
5775if test -x conf$$.file >/dev/null 2>&1; then
5776 ac_executable_p="test -x"
5777else
5778 ac_executable_p="test -f"
5779fi
5780rm -f conf$$.file
5781
5782# Extract the first word of "msgfmt", so it can be a program name with args.
5783set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005785$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005786if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005787 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005788else
5789 case "$MSGFMT" in
5790 [\\/]* | ?:[\\/]*)
5791 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5792 ;;
5793 *)
5794 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5795 for ac_dir in $PATH; do
5796 IFS="$ac_save_IFS"
5797 test -z "$ac_dir" && ac_dir=.
5798 for ac_exec_ext in '' $ac_executable_extensions; do
5799 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5800 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5801 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5802 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5803 break 2
5804 fi
5805 fi
5806 done
5807 done
5808 IFS="$ac_save_IFS"
5809 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5810 ;;
5811esac
5812fi
5813MSGFMT="$ac_cv_path_MSGFMT"
5814if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005816$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005819$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820fi
5821
5822 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5823set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005826if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005827 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005828else
5829 case $GMSGFMT in
5830 [\\/]* | ?:[\\/]*)
5831 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5832 ;;
5833 *)
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005839 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005840 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 -05005841 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005843 break 2
5844 fi
5845done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005846 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005847IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005848
5849 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5850 ;;
5851esac
5852fi
5853GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005854if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005856$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005857else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005859$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005860fi
5861
5862
5863
Theodore Ts'oe1052142006-10-21 21:46:47 -04005864
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005865# Prepare PATH_SEPARATOR.
5866# The user is always right.
5867if test "${PATH_SEPARATOR+set}" != set; then
5868 echo "#! /bin/sh" >conf$$.sh
5869 echo "exit 0" >>conf$$.sh
5870 chmod +x conf$$.sh
5871 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5872 PATH_SEPARATOR=';'
5873 else
5874 PATH_SEPARATOR=:
5875 fi
5876 rm -f conf$$.sh
5877fi
5878
5879# Find out how to test for executable files. Don't use a zero-byte file,
5880# as systems may use methods other than mode bits to determine executability.
5881cat >conf$$.file <<_ASEOF
5882#! /bin/sh
5883exit 0
5884_ASEOF
5885chmod +x conf$$.file
5886if test -x conf$$.file >/dev/null 2>&1; then
5887 ac_executable_p="test -x"
5888else
5889 ac_executable_p="test -f"
5890fi
5891rm -f conf$$.file
5892
5893# Extract the first word of "xgettext", so it can be a program name with args.
5894set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005897if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005898 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005899else
5900 case "$XGETTEXT" in
5901 [\\/]* | ?:[\\/]*)
5902 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5903 ;;
5904 *)
5905 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5906 for ac_dir in $PATH; do
5907 IFS="$ac_save_IFS"
5908 test -z "$ac_dir" && ac_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5911 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5912 (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
5913 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5914 break 2
5915 fi
5916 fi
5917 done
5918 done
5919 IFS="$ac_save_IFS"
5920 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5921 ;;
5922esac
5923fi
5924XGETTEXT="$ac_cv_path_XGETTEXT"
5925if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005927$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005930$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931fi
5932
5933 rm -f messages.po
5934
5935
5936# Prepare PATH_SEPARATOR.
5937# The user is always right.
5938if test "${PATH_SEPARATOR+set}" != set; then
5939 echo "#! /bin/sh" >conf$$.sh
5940 echo "exit 0" >>conf$$.sh
5941 chmod +x conf$$.sh
5942 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5943 PATH_SEPARATOR=';'
5944 else
5945 PATH_SEPARATOR=:
5946 fi
5947 rm -f conf$$.sh
5948fi
5949
5950# Find out how to test for executable files. Don't use a zero-byte file,
5951# as systems may use methods other than mode bits to determine executability.
5952cat >conf$$.file <<_ASEOF
5953#! /bin/sh
5954exit 0
5955_ASEOF
5956chmod +x conf$$.file
5957if test -x conf$$.file >/dev/null 2>&1; then
5958 ac_executable_p="test -x"
5959else
5960 ac_executable_p="test -f"
5961fi
5962rm -f conf$$.file
5963
5964# Extract the first word of "msgmerge", so it can be a program name with args.
5965set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005967$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005968if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005969 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970else
5971 case "$MSGMERGE" in
5972 [\\/]* | ?:[\\/]*)
5973 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5974 ;;
5975 *)
5976 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5977 for ac_dir in $PATH; do
5978 IFS="$ac_save_IFS"
5979 test -z "$ac_dir" && ac_dir=.
5980 for ac_exec_ext in '' $ac_executable_extensions; do
5981 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5982 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5983 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5984 break 2
5985 fi
5986 fi
5987 done
5988 done
5989 IFS="$ac_save_IFS"
5990 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5991 ;;
5992esac
5993fi
5994MSGMERGE="$ac_cv_path_MSGMERGE"
5995if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005997$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006000$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006001fi
6002
6003
6004 if test "$GMSGFMT" != ":"; then
6005 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6006 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6007 : ;
6008 else
6009 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006011$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006012 GMSGFMT=":"
6013 fi
6014 fi
6015
6016 if test "$XGETTEXT" != ":"; then
6017 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6018 (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
6019 : ;
6020 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006022$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023 XGETTEXT=":"
6024 fi
6025 rm -f messages.po
6026 fi
6027
Theodore Ts'oe1052142006-10-21 21:46:47 -04006028 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029
6030
6031if test -n "$ac_tool_prefix"; then
6032 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6033set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006035$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006036if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006037 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038else
6039 if test -n "$RANLIB"; then
6040 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043for as_dir in $PATH
6044do
6045 IFS=$as_save_IFS
6046 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006047 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006048 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 -05006049 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006051 break 2
6052 fi
6053done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006054 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006056
6057fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058fi
6059RANLIB=$ac_cv_prog_RANLIB
6060if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006062$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006065$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006067
Theodore Ts'oe1052142006-10-21 21:46:47 -04006068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006069fi
6070if test -z "$ac_cv_prog_RANLIB"; then
6071 ac_ct_RANLIB=$RANLIB
6072 # Extract the first word of "ranlib", so it can be a program name with args.
6073set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006075$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006076if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006077 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078else
6079 if test -n "$ac_ct_RANLIB"; then
6080 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6081else
6082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083for as_dir in $PATH
6084do
6085 IFS=$as_save_IFS
6086 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006087 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006088 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 -05006089 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006091 break 2
6092 fi
6093done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006094 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006095IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097fi
6098fi
6099ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6100if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006102$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006105$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106fi
6107
Theodore Ts'oe1052142006-10-21 21:46:47 -04006108 if test "x$ac_ct_RANLIB" = x; then
6109 RANLIB=":"
6110 else
6111 case $cross_compiling:$ac_tool_warned in
6112yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006113{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006114$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006115ac_tool_warned=yes ;;
6116esac
6117 RANLIB=$ac_ct_RANLIB
6118 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119else
6120 RANLIB="$ac_cv_prog_RANLIB"
6121fi
6122
6123
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006125$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006126if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006127 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006128else
6129 ac_check_lib_save_LIBS=$LIBS
6130LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006132/* end confdefs.h. */
6133
Theodore Ts'oe1052142006-10-21 21:46:47 -04006134/* Override any GCC internal prototype to avoid an error.
6135 Use char because int might match the return type of a GCC
6136 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006137#ifdef __cplusplus
6138extern "C"
6139#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140char strerror ();
6141int
6142main ()
6143{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006144return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006145 ;
6146 return 0;
6147}
6148_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006149if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006150 ac_cv_lib_cposix_strerror=yes
6151else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006152 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154rm -f core conftest.err conftest.$ac_objext \
6155 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006156LIBS=$ac_check_lib_save_LIBS
6157fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006159$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006160if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161 LIBS="$LIBS -lcposix"
6162fi
6163
6164
6165
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006167$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006168if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006169 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006172/* end confdefs.h. */
6173
6174int
6175main ()
6176{
6177/* FIXME: Include the comments suggested by Paul. */
6178#ifndef __cplusplus
6179 /* Ultrix mips cc rejects this. */
6180 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006181 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006182 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006183 char const *const *pcpcc;
6184 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006185 /* NEC SVR4.0.2 mips cc rejects this. */
6186 struct point {int x, y;};
6187 static struct point const zero = {0,0};
6188 /* AIX XL C 1.02.0.0 rejects this.
6189 It does not let you subtract one const X* pointer from another in
6190 an arm of an if-expression whose if-part is not a constant
6191 expression */
6192 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006193 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006194 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006195 ++pcpcc;
6196 ppc = (char**) pcpcc;
6197 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006198 { /* SCO 3.2v4 cc rejects this. */
6199 char *t;
6200 char const *s = 0 ? (char *) 0 : (char const *) 0;
6201
6202 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006203 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006204 }
6205 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6206 int x[] = {25, 17};
6207 const int *foo = &x[0];
6208 ++foo;
6209 }
6210 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6211 typedef const int *iptr;
6212 iptr p = 0;
6213 ++p;
6214 }
6215 { /* AIX XL C 1.02.0.0 rejects this saying
6216 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6217 struct s { int j; const int *ap[3]; };
6218 struct s *b; b->j = 5;
6219 }
6220 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6221 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006222 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006223 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006224 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006225#endif
6226
6227 ;
6228 return 0;
6229}
6230_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006231if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006232 ac_cv_c_const=yes
6233else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006234 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006235fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006237fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006239$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006240if test $ac_cv_c_const = no; then
6241
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006242$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006243
6244fi
6245
6246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006248$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006249if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006250 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006253/* end confdefs.h. */
6254
6255int
6256main ()
6257{
6258signed char x;
6259 ;
6260 return 0;
6261}
6262_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006263if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264 bh_cv_c_signed=yes
6265else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006266 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006267fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006269fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006271$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006272 if test $bh_cv_c_signed = no; then
6273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006274$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275
6276 fi
6277
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006279$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006280if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006281 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282else
6283 ac_cv_c_inline=no
6284for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286/* end confdefs.h. */
6287#ifndef __cplusplus
6288typedef int foo_t;
6289static $ac_kw foo_t static_foo () {return 0; }
6290$ac_kw foo_t foo () {return 0; }
6291#endif
6292
6293_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006294if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006295 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299done
6300
6301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006303$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006305case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006306 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006307 *)
6308 case $ac_cv_c_inline in
6309 no) ac_val=;;
6310 *) ac_val=$ac_cv_c_inline;;
6311 esac
6312 cat >>confdefs.h <<_ACEOF
6313#ifndef __cplusplus
6314#define inline $ac_val
6315#endif
6316_ACEOF
6317 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006318esac
6319
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006320ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6321if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006322
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006323else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006324
6325cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006326#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327_ACEOF
6328
6329fi
6330
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006331ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6332if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006334else
6335
6336cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006337#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338_ACEOF
6339
6340fi
6341
6342
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006344$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006345if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006346 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349/* end confdefs.h. */
6350long long ll = 1LL; int i = 63;
6351int
6352main ()
6353{
6354long long llmax = (long long) -1;
6355 return ll << i | ll >> i | llmax / ll | llmax % ll;
6356 ;
6357 return 0;
6358}
6359_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006360if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361 ac_cv_type_long_long=yes
6362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006363 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006365rm -f core conftest.err conftest.$ac_objext \
6366 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006367fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006369$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370 if test $ac_cv_type_long_long = yes; then
6371
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006372$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373
6374 fi
6375
6376
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006378$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006379if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006380 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006381else
6382 if test "$GCC" = yes; then
6383 gt_cv_c_long_double=yes
6384 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006386/* end confdefs.h. */
6387
6388 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6389 long double foo = 0.0;
6390 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6391 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6392
6393int
6394main ()
6395{
6396
6397 ;
6398 return 0;
6399}
6400_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006401if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402 gt_cv_c_long_double=yes
6403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006404 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006405fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407 fi
6408fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006410$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411 if test $gt_cv_c_long_double = yes; then
6412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006413$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006414
6415 fi
6416
6417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006419$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006420if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006421 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006424/* end confdefs.h. */
6425#include <stddef.h>
6426 wchar_t foo = (wchar_t)'\0';
6427int
6428main ()
6429{
6430
6431 ;
6432 return 0;
6433}
6434_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006435if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006436 gt_cv_c_wchar_t=yes
6437else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006438 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006439fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006441fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006443$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444 if test $gt_cv_c_wchar_t = yes; then
6445
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006446$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447
6448 fi
6449
6450
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006452$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006453if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006454 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457/* end confdefs.h. */
6458#include <wchar.h>
6459 wint_t foo = (wchar_t)'\0';
6460int
6461main ()
6462{
6463
6464 ;
6465 return 0;
6466}
6467_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006468if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006469 gt_cv_c_wint_t=yes
6470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006471 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006476$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477 if test $gt_cv_c_wint_t = yes; then
6478
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006479$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480
6481 fi
6482
6483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006485$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006486if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006487 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006488else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006490/* end confdefs.h. */
6491#include <sys/types.h>
6492#include <inttypes.h>
6493int
6494main ()
6495{
6496uintmax_t i = (uintmax_t) -1;
6497 ;
6498 return 0;
6499}
6500_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006501if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006502 jm_ac_cv_header_inttypes_h=yes
6503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006504 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006509$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006510 if test $jm_ac_cv_header_inttypes_h = yes; then
6511
6512cat >>confdefs.h <<_ACEOF
6513#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6514_ACEOF
6515
6516 fi
6517
6518
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006520$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006521if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006522 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006525/* end confdefs.h. */
6526#include <sys/types.h>
6527#include <stdint.h>
6528int
6529main ()
6530{
6531uintmax_t i = (uintmax_t) -1;
6532 ;
6533 return 0;
6534}
6535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006536if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006537 jm_ac_cv_header_stdint_h=yes
6538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006540fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006542fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006544$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545 if test $jm_ac_cv_header_stdint_h = yes; then
6546
6547cat >>confdefs.h <<_ACEOF
6548#define HAVE_STDINT_H_WITH_UINTMAX 1
6549_ACEOF
6550
6551 fi
6552
6553
6554
6555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006557$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006558if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006559 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562/* end confdefs.h. */
6563
6564#include <stddef.h>
6565#include <stdlib.h>
6566#if HAVE_STDINT_H_WITH_UINTMAX
6567#include <stdint.h>
6568#endif
6569#if HAVE_INTTYPES_H_WITH_UINTMAX
6570#include <inttypes.h>
6571#endif
6572
6573int
6574main ()
6575{
6576intmax_t x = -1;
6577 ;
6578 return 0;
6579}
6580_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006581if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006582 gt_cv_c_intmax_t=yes
6583else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006584 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006589$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006590 if test $gt_cv_c_intmax_t = yes; then
6591
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006592$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
6594 fi
6595
6596
6597
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006599$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006600if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006601 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006602else
6603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006604 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607/* end confdefs.h. */
6608
6609#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6610 notposix
6611#endif
6612
6613_ACEOF
6614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006615 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616 gt_cv_func_printf_posix="guessing no"
6617else
6618 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006619fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006620rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006621
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006622
6623else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625/* end confdefs.h. */
6626
6627#include <stdio.h>
6628#include <string.h>
6629/* The string "%2$d %1$d", with dollar characters protected from the shell's
6630 dollar expansion (possibly an autoconf bug). */
6631static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6632static char buf[100];
6633int main ()
6634{
6635 sprintf (buf, format, 33, 55);
6636 return (strcmp (buf, "55 33") != 0);
6637}
6638_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006639if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640 gt_cv_func_printf_posix=yes
6641else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006643fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006644rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6645 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006647
Theodore Ts'oe1052142006-10-21 21:46:47 -04006648
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006649fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006651$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652 case $gt_cv_func_printf_posix in
6653 *yes)
6654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006655$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656
6657 ;;
6658 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006659
6660# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6661# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006663$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006665 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006666else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006669#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006670int
6671main ()
6672{
6673char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006674 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675 ;
6676 return 0;
6677}
6678_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006679if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006682 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006684rm -f core conftest.err conftest.$ac_objext \
6685 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006688$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006689if test $ac_cv_working_alloca_h = yes; then
6690
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006692
6693fi
6694
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006696$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006697if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006698 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006699else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006702#ifdef __GNUC__
6703# define alloca __builtin_alloca
6704#else
6705# ifdef _MSC_VER
6706# include <malloc.h>
6707# define alloca _alloca
6708# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006709# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006710# include <alloca.h>
6711# else
6712# ifdef _AIX
6713 #pragma alloca
6714# else
6715# ifndef alloca /* predefined by HP cc +Olibcalls */
6716char *alloca ();
6717# endif
6718# endif
6719# endif
6720# endif
6721#endif
6722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006723int
6724main ()
6725{
6726char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006727 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728 ;
6729 return 0;
6730}
6731_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006732if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006733 ac_cv_func_alloca_works=yes
6734else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006735 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006737rm -f core conftest.err conftest.$ac_objext \
6738 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006741$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006742
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006743if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006745$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006746
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006747else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006748 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6749# that cause trouble. Some versions do not even contain alloca or
6750# contain a buggy version. If you still want to use their alloca,
6751# use ar to extract alloca.o from them instead of compiling alloca.c.
6752
Theodore Ts'oe1052142006-10-21 21:46:47 -04006753ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756
6757
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006759$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006760if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006761 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006764/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006765#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006766webecray
6767#else
6768wenotbecray
6769#endif
6770
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006771_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006773 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006774 ac_cv_os_cray=yes
6775else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006776 ac_cv_os_cray=no
6777fi
6778rm -f conftest*
6779
6780fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006782$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006783if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006785 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6787eval as_val=\$$as_ac_var
6788 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789
6790cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006791#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006795fi
6796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006797 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006798fi
6799
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006801$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006802if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006803 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006804else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006805 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006806 ac_cv_c_stack_direction=0
6807else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006809/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006810$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006812find_stack_direction ()
6813{
6814 static char *addr = 0;
6815 auto char dummy;
6816 if (addr == 0)
6817 {
6818 addr = &dummy;
6819 return find_stack_direction ();
6820 }
6821 else
6822 return (&dummy > addr) ? 1 : -1;
6823}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006824
6825int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006826main ()
6827{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006828 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006829}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006831if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006832 ac_cv_c_stack_direction=1
6833else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006834 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006835fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6837 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006839
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006842$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006844#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845_ACEOF
6846
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006847
6848fi
6849
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006850
6851
6852
6853 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006854do :
6855 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006856ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6857"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858eval as_val=\$$as_ac_Header
6859 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006861#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862_ACEOF
6863
6864fi
6865
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006866done
6867
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006868
6869
6870
6871
6872
6873
6874
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876do :
6877 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6878if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006880#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881_ACEOF
6882
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006883fi
6884done
6885
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006887$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006888if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006889 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006890else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006892 ac_cv_func_mmap_fixed_mapped=no
6893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895/* end confdefs.h. */
6896$ac_includes_default
6897/* malloc might have been renamed as rpl_malloc. */
6898#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006899
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006900/* Thanks to Mike Haertel and Jim Avera for this test.
6901 Here is a matrix of mmap possibilities:
6902 mmap private not fixed
6903 mmap private fixed at somewhere currently unmapped
6904 mmap private fixed at somewhere already mapped
6905 mmap shared not fixed
6906 mmap shared fixed at somewhere currently unmapped
6907 mmap shared fixed at somewhere already mapped
6908 For private mappings, we should verify that changes cannot be read()
6909 back from the file, nor mmap's back from the file at a different
6910 address. (There have been systems where private was not correctly
6911 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006913 like early versions of FreeBSD and possibly contemporary NetBSD.)
6914 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916
6917 Grep wants private fixed already mapped.
6918 The main things grep needs to know about mmap are:
6919 * does it exist and is it safe to write into the mmap'd area
6920 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922#include <fcntl.h>
6923#include <sys/mman.h>
6924
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006925#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926char *malloc ();
6927#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006928
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006930#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006931# ifdef _SC_PAGESIZE
6932# define getpagesize() sysconf(_SC_PAGESIZE)
6933# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006934# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006935# include <sys/param.h>
6936# ifdef EXEC_PAGESIZE
6937# define getpagesize() EXEC_PAGESIZE
6938# else /* no EXEC_PAGESIZE */
6939# ifdef NBPG
6940# define getpagesize() NBPG * CLSIZE
6941# ifndef CLSIZE
6942# define CLSIZE 1
6943# endif /* no CLSIZE */
6944# else /* no NBPG */
6945# ifdef NBPC
6946# define getpagesize() NBPC
6947# else /* no NBPC */
6948# ifdef PAGESIZE
6949# define getpagesize() PAGESIZE
6950# endif /* PAGESIZE */
6951# endif /* no NBPC */
6952# endif /* no NBPG */
6953# endif /* no EXEC_PAGESIZE */
6954# else /* no HAVE_SYS_PARAM_H */
6955# define getpagesize() 8192 /* punt totally */
6956# endif /* no HAVE_SYS_PARAM_H */
6957# endif /* no _SC_PAGESIZE */
6958
6959#endif /* no HAVE_GETPAGESIZE */
6960
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006962main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006965 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006967 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971 /* First, make a file with some known garbage in it. */
6972 data = (char *) malloc (pagesize);
6973 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006974 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975 for (i = 0; i < pagesize; ++i)
6976 *(data + i) = rand ();
6977 umask (0);
6978 fd = creat ("conftest.mmap", 0600);
6979 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006980 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006981 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006982 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006984
Theodore Ts'o61ef2472010-08-01 22:30:33 -04006985 /* Next, check that the tail of a page is zero-filled. File must have
6986 non-zero length, otherwise we risk SIGBUS for entire page. */
6987 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6988 if (fd2 < 0)
6989 return 4;
6990 cdata2 = "";
6991 if (write (fd2, cdata2, 1) != 1)
6992 return 5;
6993 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6994 if (data2 == MAP_FAILED)
6995 return 6;
6996 for (i = 0; i < pagesize; ++i)
6997 if (*(data2 + i))
6998 return 7;
6999 close (fd2);
7000 if (munmap (data2, pagesize))
7001 return 8;
7002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003 /* Next, try to mmap the file at a fixed address which already has
7004 something else allocated at it. If we can, also make sure that
7005 we see the same garbage. */
7006 fd = open ("conftest.mmap", O_RDWR);
7007 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007008 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007009 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7010 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007011 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012 for (i = 0; i < pagesize; ++i)
7013 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007014 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016 /* Finally, make sure that changes to the mapped area do not
7017 percolate back to the file as seen by read(). (This is a bug on
7018 some variants of i386 svr4.0.) */
7019 for (i = 0; i < pagesize; ++i)
7020 *(data2 + i) = *(data2 + i) + 1;
7021 data3 = (char *) malloc (pagesize);
7022 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007023 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007025 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007026 for (i = 0; i < pagesize; ++i)
7027 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007028 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007029 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007030 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007031}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007033if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034 ac_cv_func_mmap_fixed_mapped=yes
7035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007037fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007038rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7039 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007044$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007045if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007046
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007048
7049fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007050rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007052
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007054$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007055if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007056 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007057else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007059/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007060
7061#include <features.h>
7062#ifdef __GNU_LIBRARY__
7063 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7064 Lucky GNU user
7065 #endif
7066#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007067
7068_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007071 ac_cv_gnu_library_2_1=yes
7072else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007073 ac_cv_gnu_library_2_1=no
7074fi
7075rm -f conftest*
7076
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007077
7078
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007079fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007081$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007082
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007083 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007084
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007086
7087
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007089$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007091 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007093
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007094 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007095
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007096 # Guess based on the CPU.
7097 case "$host_cpu" in
7098 alpha* | i3456786 | m68k | s390*)
7099 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7100 *)
7101 gt_cv_int_divbyzero_sigfpe="guessing no";;
7102 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007107
7108#include <stdlib.h>
7109#include <signal.h>
7110
7111static void
7112#ifdef __cplusplus
7113sigfpe_handler (int sig)
7114#else
7115sigfpe_handler (sig) int sig;
7116#endif
7117{
7118 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7119 exit (sig != SIGFPE);
7120}
7121
7122int x = 1;
7123int y = 0;
7124int z;
7125int nan;
7126
7127int main ()
7128{
7129 signal (SIGFPE, sigfpe_handler);
7130/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7131#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7132 signal (SIGTRAP, sigfpe_handler);
7133#endif
7134/* Linux/SPARC yields signal SIGILL. */
7135#if defined (__sparc__) && defined (__linux__)
7136 signal (SIGILL, sigfpe_handler);
7137#endif
7138
7139 z = x / y;
7140 nan = y / y;
7141 exit (1);
7142}
7143
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007144_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007145if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007146 gt_cv_int_divbyzero_sigfpe=yes
7147else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007148 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007149fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007150rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7151 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007152fi
7153
Theodore Ts'oe1052142006-10-21 21:46:47 -04007154
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007157$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007158 case "$gt_cv_int_divbyzero_sigfpe" in
7159 *yes) value=1;;
7160 *) value=0;;
7161 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007162
7163cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007164#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007166
7167
7168
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007170$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007171if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007172 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175/* end confdefs.h. */
7176unsigned long long ull = 1ULL; int i = 63;
7177int
7178main ()
7179{
7180unsigned long long ullmax = (unsigned long long) -1;
7181 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7182 ;
7183 return 0;
7184}
7185_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007186if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187 ac_cv_type_unsigned_long_long=yes
7188else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007189 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007191rm -f core conftest.err conftest.$ac_objext \
7192 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007195$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 if test $ac_cv_type_unsigned_long_long = yes; then
7197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007198$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199
7200 fi
7201
7202
7203
7204
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007205 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 -05007206
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007207 test $ac_cv_type_unsigned_long_long = yes \
7208 && ac_type='unsigned long long' \
7209 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210
7211cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007212#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213_ACEOF
7214
7215 else
7216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007217$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007218
7219 fi
7220
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007223$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007224if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007225 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007227
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007229/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007230#include <sys/types.h>
7231#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232int
7233main ()
7234{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 ;
7237 return 0;
7238}
7239_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007240if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007241 gt_cv_header_inttypes_h=yes
7242else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007243 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246
7247fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007249$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007250 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251
7252cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007253#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007255
7256 fi
7257
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007260 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007262$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007263if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007264 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007265else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007266
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007269#include <inttypes.h>
7270#ifdef PRId32
7271char *p = PRId32;
7272#endif
7273
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274int
7275main ()
7276{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007278 ;
7279 return 0;
7280}
7281_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007282if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007283 gt_cv_inttypes_pri_broken=no
7284else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007285 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007286fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288
7289fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007291$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007292 fi
7293 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007294
7295cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007296#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298
7299 fi
7300
7301
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007302 for ac_header in stdint.h
7303do :
7304 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7305if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007306 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007307#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007308_ACEOF
7309
7310fi
7311
7312done
7313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007315$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318/* end confdefs.h. */
7319
7320#include <limits.h>
7321#if HAVE_STDINT_H
7322#include <stdint.h>
7323#endif
7324#ifdef SIZE_MAX
7325Found it
7326#endif
7327
7328_ACEOF
7329if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007330 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331 result=yes
7332fi
7333rm -f conftest*
7334
7335 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007336 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007339 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342
7343 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7344
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007345else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007346 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007347fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007349
7350 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007353 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007355
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359/* end confdefs.h. */
7360#include <stddef.h>
7361 extern size_t foo;
7362 extern unsigned long foo;
7363
7364int
7365main ()
7366{
7367
7368 ;
7369 return 0;
7370}
7371_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007372if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007373 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376 fi
7377 if test -z "$result"; then
7378 if test "$fits_in_uint" = 1; then
7379 result="$res_hi$res_lo"U
7380 else
7381 result="$res_hi$res_lo"UL
7382 fi
7383 else
7384 result='~(size_t)0'
7385 fi
7386 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007388$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389 if test "$result" != yes; then
7390
7391cat >>confdefs.h <<_ACEOF
7392#define SIZE_MAX $result
7393_ACEOF
7394
7395 fi
7396
7397
7398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007399 for ac_header in stdint.h
7400do :
7401 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7402if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405_ACEOF
7406
7407fi
7408
7409done
7410
7411
7412
7413 if test "X$prefix" = "XNONE"; then
7414 acl_final_prefix="$ac_default_prefix"
7415 else
7416 acl_final_prefix="$prefix"
7417 fi
7418 if test "X$exec_prefix" = "XNONE"; then
7419 acl_final_exec_prefix='${prefix}'
7420 else
7421 acl_final_exec_prefix="$exec_prefix"
7422 fi
7423 acl_save_prefix="$prefix"
7424 prefix="$acl_final_prefix"
7425 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7426 prefix="$acl_save_prefix"
7427
7428
Theodore Ts'oe1052142006-10-21 21:46:47 -04007429# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007430if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007431 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007432else
7433 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007434fi
7435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436# Prepare PATH_SEPARATOR.
7437# The user is always right.
7438if test "${PATH_SEPARATOR+set}" != set; then
7439 echo "#! /bin/sh" >conf$$.sh
7440 echo "exit 0" >>conf$$.sh
7441 chmod +x conf$$.sh
7442 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7443 PATH_SEPARATOR=';'
7444 else
7445 PATH_SEPARATOR=:
7446 fi
7447 rm -f conf$$.sh
7448fi
7449ac_prog=ld
7450if test "$GCC" = yes; then
7451 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007453$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454 case $host in
7455 *-*-mingw*)
7456 # gcc leaves a trailing carriage return which upsets mingw
7457 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7458 *)
7459 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7460 esac
7461 case $ac_prog in
7462 # Accept absolute paths.
7463 [\\/]* | [A-Za-z]:[\\/]*)
7464 re_direlt='/[^/][^/]*/\.\./'
7465 # Canonicalize the path of ld
7466 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7467 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7468 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7469 done
7470 test -z "$LD" && LD="$ac_prog"
7471 ;;
7472 "")
7473 # If it fails, then pretend we aren't using GCC.
7474 ac_prog=ld
7475 ;;
7476 *)
7477 # If it is relative, then search for the first ld in PATH.
7478 with_gnu_ld=unknown
7479 ;;
7480 esac
7481elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007483$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007486$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007488if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007489 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490else
7491 if test -z "$LD"; then
7492 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7493 for ac_dir in $PATH; do
7494 test -z "$ac_dir" && ac_dir=.
7495 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7496 acl_cv_path_LD="$ac_dir/$ac_prog"
7497 # Check to see if the program is GNU ld. I'd rather use --version,
7498 # but apparently some GNU ld's only accept -v.
7499 # Break only if it was the GNU/non-GNU ld that we prefer.
7500 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7501 *GNU* | *'with BFD'*)
7502 test "$with_gnu_ld" != no && break ;;
7503 *)
7504 test "$with_gnu_ld" != yes && break ;;
7505 esac
7506 fi
7507 done
7508 IFS="$ac_save_ifs"
7509else
7510 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7511fi
7512fi
7513
7514LD="$acl_cv_path_LD"
7515if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007517$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007520$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007522test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007524$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007526 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527else
7528 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7529case `$LD -v 2>&1 </dev/null` in
7530*GNU* | *'with BFD'*)
7531 acl_cv_prog_gnu_ld=yes ;;
7532*)
7533 acl_cv_prog_gnu_ld=no ;;
7534esac
7535fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007537$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538with_gnu_ld=$acl_cv_prog_gnu_ld
7539
7540
7541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007543$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007544if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007545 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546else
7547
7548 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7549 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7550 . ./conftest.sh
7551 rm -f ./conftest.sh
7552 acl_cv_rpath=done
7553
7554fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007556$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007557 wl="$acl_cv_wl"
7558 libext="$acl_cv_libext"
7559 shlibext="$acl_cv_shlibext"
7560 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7561 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7562 hardcode_direct="$acl_cv_hardcode_direct"
7563 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007565if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007566 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567else
7568 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569fi
7570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007571
7572
7573
7574
7575
7576
7577
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007578 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007579
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007580 acl_save_prefix="$prefix"
7581 prefix="$acl_final_prefix"
7582 acl_save_exec_prefix="$exec_prefix"
7583 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007585 eval additional_includedir=\"$includedir\"
7586 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007588 exec_prefix="$acl_save_exec_prefix"
7589 prefix="$acl_save_prefix"
7590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007591
Theodore Ts'oe1052142006-10-21 21:46:47 -04007592# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007594 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007595 if test "X$withval" = "Xno"; then
7596 use_additional=no
7597 else
7598 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007600 acl_save_prefix="$prefix"
7601 prefix="$acl_final_prefix"
7602 acl_save_exec_prefix="$exec_prefix"
7603 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007605 eval additional_includedir=\"$includedir\"
7606 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007607
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007608 exec_prefix="$acl_save_exec_prefix"
7609 prefix="$acl_save_prefix"
7610
7611 else
7612 additional_includedir="$withval/include"
7613 additional_libdir="$withval/lib"
7614 fi
7615 fi
7616
Theodore Ts'oe1052142006-10-21 21:46:47 -04007617fi
7618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007619 LIBICONV=
7620 LTLIBICONV=
7621 INCICONV=
7622 rpathdirs=
7623 ltrpathdirs=
7624 names_already_handled=
7625 names_next_round='iconv '
7626 while test -n "$names_next_round"; do
7627 names_this_round="$names_next_round"
7628 names_next_round=
7629 for name in $names_this_round; do
7630 already_handled=
7631 for n in $names_already_handled; do
7632 if test "$n" = "$name"; then
7633 already_handled=yes
7634 break
7635 fi
7636 done
7637 if test -z "$already_handled"; then
7638 names_already_handled="$names_already_handled $name"
7639 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7640 eval value=\"\$HAVE_LIB$uppername\"
7641 if test -n "$value"; then
7642 if test "$value" = yes; then
7643 eval value=\"\$LIB$uppername\"
7644 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7645 eval value=\"\$LTLIB$uppername\"
7646 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7647 else
7648 :
7649 fi
7650 else
7651 found_dir=
7652 found_la=
7653 found_so=
7654 found_a=
7655 if test $use_additional = yes; then
7656 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7657 found_dir="$additional_libdir"
7658 found_so="$additional_libdir/lib$name.$shlibext"
7659 if test -f "$additional_libdir/lib$name.la"; then
7660 found_la="$additional_libdir/lib$name.la"
7661 fi
7662 else
7663 if test -f "$additional_libdir/lib$name.$libext"; then
7664 found_dir="$additional_libdir"
7665 found_a="$additional_libdir/lib$name.$libext"
7666 if test -f "$additional_libdir/lib$name.la"; then
7667 found_la="$additional_libdir/lib$name.la"
7668 fi
7669 fi
7670 fi
7671 fi
7672 if test "X$found_dir" = "X"; then
7673 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007674
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007675 acl_save_prefix="$prefix"
7676 prefix="$acl_final_prefix"
7677 acl_save_exec_prefix="$exec_prefix"
7678 exec_prefix="$acl_final_exec_prefix"
7679 eval x=\"$x\"
7680 exec_prefix="$acl_save_exec_prefix"
7681 prefix="$acl_save_prefix"
7682
7683 case "$x" in
7684 -L*)
7685 dir=`echo "X$x" | sed -e 's/^X-L//'`
7686 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7687 found_dir="$dir"
7688 found_so="$dir/lib$name.$shlibext"
7689 if test -f "$dir/lib$name.la"; then
7690 found_la="$dir/lib$name.la"
7691 fi
7692 else
7693 if test -f "$dir/lib$name.$libext"; then
7694 found_dir="$dir"
7695 found_a="$dir/lib$name.$libext"
7696 if test -f "$dir/lib$name.la"; then
7697 found_la="$dir/lib$name.la"
7698 fi
7699 fi
7700 fi
7701 ;;
7702 esac
7703 if test "X$found_dir" != "X"; then
7704 break
7705 fi
7706 done
7707 fi
7708 if test "X$found_dir" != "X"; then
7709 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7710 if test "X$found_so" != "X"; then
7711 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7712 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7713 else
7714 haveit=
7715 for x in $ltrpathdirs; do
7716 if test "X$x" = "X$found_dir"; then
7717 haveit=yes
7718 break
7719 fi
7720 done
7721 if test -z "$haveit"; then
7722 ltrpathdirs="$ltrpathdirs $found_dir"
7723 fi
7724 if test "$hardcode_direct" = yes; then
7725 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7726 else
7727 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7728 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7729 haveit=
7730 for x in $rpathdirs; do
7731 if test "X$x" = "X$found_dir"; then
7732 haveit=yes
7733 break
7734 fi
7735 done
7736 if test -z "$haveit"; then
7737 rpathdirs="$rpathdirs $found_dir"
7738 fi
7739 else
7740 haveit=
7741 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007742
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007743 acl_save_prefix="$prefix"
7744 prefix="$acl_final_prefix"
7745 acl_save_exec_prefix="$exec_prefix"
7746 exec_prefix="$acl_final_exec_prefix"
7747 eval x=\"$x\"
7748 exec_prefix="$acl_save_exec_prefix"
7749 prefix="$acl_save_prefix"
7750
7751 if test "X$x" = "X-L$found_dir"; then
7752 haveit=yes
7753 break
7754 fi
7755 done
7756 if test -z "$haveit"; then
7757 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7758 fi
7759 if test "$hardcode_minus_L" != no; then
7760 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7761 else
7762 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7763 fi
7764 fi
7765 fi
7766 fi
7767 else
7768 if test "X$found_a" != "X"; then
7769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7770 else
7771 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7772 fi
7773 fi
7774 additional_includedir=
7775 case "$found_dir" in
7776 */lib | */lib/)
7777 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7778 additional_includedir="$basedir/include"
7779 ;;
7780 esac
7781 if test "X$additional_includedir" != "X"; then
7782 if test "X$additional_includedir" != "X/usr/include"; then
7783 haveit=
7784 if test "X$additional_includedir" = "X/usr/local/include"; then
7785 if test -n "$GCC"; then
7786 case $host_os in
7787 linux*) haveit=yes;;
7788 esac
7789 fi
7790 fi
7791 if test -z "$haveit"; then
7792 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007794 acl_save_prefix="$prefix"
7795 prefix="$acl_final_prefix"
7796 acl_save_exec_prefix="$exec_prefix"
7797 exec_prefix="$acl_final_exec_prefix"
7798 eval x=\"$x\"
7799 exec_prefix="$acl_save_exec_prefix"
7800 prefix="$acl_save_prefix"
7801
7802 if test "X$x" = "X-I$additional_includedir"; then
7803 haveit=yes
7804 break
7805 fi
7806 done
7807 if test -z "$haveit"; then
7808 if test -d "$additional_includedir"; then
7809 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7810 fi
7811 fi
7812 fi
7813 fi
7814 fi
7815 if test -n "$found_la"; then
7816 save_libdir="$libdir"
7817 case "$found_la" in
7818 */* | *\\*) . "$found_la" ;;
7819 *) . "./$found_la" ;;
7820 esac
7821 libdir="$save_libdir"
7822 for dep in $dependency_libs; do
7823 case "$dep" in
7824 -L*)
7825 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7826 if test "X$additional_libdir" != "X/usr/lib"; then
7827 haveit=
7828 if test "X$additional_libdir" = "X/usr/local/lib"; then
7829 if test -n "$GCC"; then
7830 case $host_os in
7831 linux*) haveit=yes;;
7832 esac
7833 fi
7834 fi
7835 if test -z "$haveit"; then
7836 haveit=
7837 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007838
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007839 acl_save_prefix="$prefix"
7840 prefix="$acl_final_prefix"
7841 acl_save_exec_prefix="$exec_prefix"
7842 exec_prefix="$acl_final_exec_prefix"
7843 eval x=\"$x\"
7844 exec_prefix="$acl_save_exec_prefix"
7845 prefix="$acl_save_prefix"
7846
7847 if test "X$x" = "X-L$additional_libdir"; then
7848 haveit=yes
7849 break
7850 fi
7851 done
7852 if test -z "$haveit"; then
7853 if test -d "$additional_libdir"; then
7854 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7855 fi
7856 fi
7857 haveit=
7858 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007859
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007860 acl_save_prefix="$prefix"
7861 prefix="$acl_final_prefix"
7862 acl_save_exec_prefix="$exec_prefix"
7863 exec_prefix="$acl_final_exec_prefix"
7864 eval x=\"$x\"
7865 exec_prefix="$acl_save_exec_prefix"
7866 prefix="$acl_save_prefix"
7867
7868 if test "X$x" = "X-L$additional_libdir"; then
7869 haveit=yes
7870 break
7871 fi
7872 done
7873 if test -z "$haveit"; then
7874 if test -d "$additional_libdir"; then
7875 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7876 fi
7877 fi
7878 fi
7879 fi
7880 ;;
7881 -R*)
7882 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7883 if test "$enable_rpath" != no; then
7884 haveit=
7885 for x in $rpathdirs; do
7886 if test "X$x" = "X$dir"; then
7887 haveit=yes
7888 break
7889 fi
7890 done
7891 if test -z "$haveit"; then
7892 rpathdirs="$rpathdirs $dir"
7893 fi
7894 haveit=
7895 for x in $ltrpathdirs; do
7896 if test "X$x" = "X$dir"; then
7897 haveit=yes
7898 break
7899 fi
7900 done
7901 if test -z "$haveit"; then
7902 ltrpathdirs="$ltrpathdirs $dir"
7903 fi
7904 fi
7905 ;;
7906 -l*)
7907 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7908 ;;
7909 *.la)
7910 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7911 ;;
7912 *)
7913 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7914 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7915 ;;
7916 esac
7917 done
7918 fi
7919 else
7920 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7921 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7922 fi
7923 fi
7924 fi
7925 done
7926 done
7927 if test "X$rpathdirs" != "X"; then
7928 if test -n "$hardcode_libdir_separator"; then
7929 alldirs=
7930 for found_dir in $rpathdirs; do
7931 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7932 done
7933 acl_save_libdir="$libdir"
7934 libdir="$alldirs"
7935 eval flag=\"$hardcode_libdir_flag_spec\"
7936 libdir="$acl_save_libdir"
7937 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7938 else
7939 for found_dir in $rpathdirs; do
7940 acl_save_libdir="$libdir"
7941 libdir="$found_dir"
7942 eval flag=\"$hardcode_libdir_flag_spec\"
7943 libdir="$acl_save_libdir"
7944 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7945 done
7946 fi
7947 fi
7948 if test "X$ltrpathdirs" != "X"; then
7949 for found_dir in $ltrpathdirs; do
7950 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7951 done
7952 fi
7953
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007954
7955
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007956
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007957
7958
7959
7960
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007961 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
7962if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007963
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007965
7966$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007967
7968
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007969fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007970
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007971 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007972stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007973do :
7974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7976eval as_val=\$$as_ac_Header
7977 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007978 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007980_ACEOF
7981
7982fi
7983
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007984done
7985
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007986 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
7988strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
7989__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007990do :
7991 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7992ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7993eval as_val=\$$as_ac_var
7994 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007995 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007996#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007997_ACEOF
7998
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007999fi
8000done
8001
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008003
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008005$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008006if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008007 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008008else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008010/* end confdefs.h. */
8011#include <stdio.h>
8012int
8013main ()
8014{
8015
8016#ifndef _snprintf
8017 char *p = (char *) _snprintf;
8018#endif
8019
8020 ;
8021 return 0;
8022}
8023_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008024if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008025 ac_cv_have_decl__snprintf=yes
8026else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008027 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008030fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008032$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008033 if test $ac_cv_have_decl__snprintf = yes; then
8034 gt_value=1
8035 else
8036 gt_value=0
8037 fi
8038
8039cat >>confdefs.h <<_ACEOF
8040#define HAVE_DECL__SNPRINTF $gt_value
8041_ACEOF
8042
8043
8044
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008046$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008047if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008048 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008049else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008051/* end confdefs.h. */
8052#include <stdio.h>
8053int
8054main ()
8055{
8056
8057#ifndef _snwprintf
8058 char *p = (char *) _snwprintf;
8059#endif
8060
8061 ;
8062 return 0;
8063}
8064_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008065if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066 ac_cv_have_decl__snwprintf=yes
8067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008068 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008069fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008071fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008073$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008074 if test $ac_cv_have_decl__snwprintf = yes; then
8075 gt_value=1
8076 else
8077 gt_value=0
8078 fi
8079
8080cat >>confdefs.h <<_ACEOF
8081#define HAVE_DECL__SNWPRINTF $gt_value
8082_ACEOF
8083
8084
8085
8086
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008088$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008089if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008090 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008091else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008093/* end confdefs.h. */
8094#include <stdio.h>
8095int
8096main ()
8097{
8098
8099#ifndef feof_unlocked
8100 char *p = (char *) feof_unlocked;
8101#endif
8102
8103 ;
8104 return 0;
8105}
8106_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008107if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008108 ac_cv_have_decl_feof_unlocked=yes
8109else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008110 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008113fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008115$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008116 if test $ac_cv_have_decl_feof_unlocked = yes; then
8117 gt_value=1
8118 else
8119 gt_value=0
8120 fi
8121
8122cat >>confdefs.h <<_ACEOF
8123#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8124_ACEOF
8125
8126
8127
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008129$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008130if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008131 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008132else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008134/* end confdefs.h. */
8135#include <stdio.h>
8136int
8137main ()
8138{
8139
8140#ifndef fgets_unlocked
8141 char *p = (char *) fgets_unlocked;
8142#endif
8143
8144 ;
8145 return 0;
8146}
8147_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008148if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008149 ac_cv_have_decl_fgets_unlocked=yes
8150else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008151 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008152fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008156$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008157 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8158 gt_value=1
8159 else
8160 gt_value=0
8161 fi
8162
8163cat >>confdefs.h <<_ACEOF
8164#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8165_ACEOF
8166
8167
8168
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008170$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008171if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008172 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008173else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008175/* end confdefs.h. */
8176#include <stdio.h>
8177int
8178main ()
8179{
8180
8181#ifndef getc_unlocked
8182 char *p = (char *) getc_unlocked;
8183#endif
8184
8185 ;
8186 return 0;
8187}
8188_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008189if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008190 ac_cv_have_decl_getc_unlocked=yes
8191else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008192 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008193fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008195fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008197$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198 if test $ac_cv_have_decl_getc_unlocked = yes; then
8199 gt_value=1
8200 else
8201 gt_value=0
8202 fi
8203
8204cat >>confdefs.h <<_ACEOF
8205#define HAVE_DECL_GETC_UNLOCKED $gt_value
8206_ACEOF
8207
8208
8209
8210 case $gt_cv_func_printf_posix in
8211 *yes) HAVE_POSIX_PRINTF=1 ;;
8212 *) HAVE_POSIX_PRINTF=0 ;;
8213 esac
8214
8215 if test "$ac_cv_func_asprintf" = yes; then
8216 HAVE_ASPRINTF=1
8217 else
8218 HAVE_ASPRINTF=0
8219 fi
8220
8221 if test "$ac_cv_func_snprintf" = yes; then
8222 HAVE_SNPRINTF=1
8223 else
8224 HAVE_SNPRINTF=0
8225 fi
8226
8227 if test "$ac_cv_func_wprintf" = yes; then
8228 HAVE_WPRINTF=1
8229 else
8230 HAVE_WPRINTF=0
8231 fi
8232
8233
8234
8235
8236
8237
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008238
8239 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008241 for element in $INCICONV; do
8242 haveit=
8243 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008244
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008245 acl_save_prefix="$prefix"
8246 prefix="$acl_final_prefix"
8247 acl_save_exec_prefix="$exec_prefix"
8248 exec_prefix="$acl_final_exec_prefix"
8249 eval x=\"$x\"
8250 exec_prefix="$acl_save_exec_prefix"
8251 prefix="$acl_save_prefix"
8252
8253 if test "X$x" = "X$element"; then
8254 haveit=yes
8255 break
8256 fi
8257 done
8258 if test -z "$haveit"; then
8259 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8260 fi
8261 done
8262
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008265$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008266if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008267 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008268else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008269
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008270 am_cv_func_iconv="no, consider installing GNU libiconv"
8271 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008273/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008274#include <stdlib.h>
8275#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008276int
8277main ()
8278{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008279iconv_t cd = iconv_open("","");
8280 iconv(cd,NULL,NULL,NULL,NULL);
8281 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008282 ;
8283 return 0;
8284}
8285_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008286if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008287 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008288fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008289rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008291 if test "$am_cv_func_iconv" != yes; then
8292 am_save_LIBS="$LIBS"
8293 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008295/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008296#include <stdlib.h>
8297#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008298int
8299main ()
8300{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008301iconv_t cd = iconv_open("","");
8302 iconv(cd,NULL,NULL,NULL,NULL);
8303 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008304 ;
8305 return 0;
8306}
8307_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008308if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008309 am_cv_lib_iconv=yes
8310 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008311fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008312rm -f core conftest.err conftest.$ac_objext \
8313 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008314 LIBS="$am_save_LIBS"
8315 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008316
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008317fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008319$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008320 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008322$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008323
8324 fi
8325 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008327$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008329$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008330 else
8331 CPPFLAGS="$am_save_CPPFLAGS"
8332 LIBICONV=
8333 LTLIBICONV=
8334 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008335
8336
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008337
8338 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008340$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008341 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008342 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008343else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008347
8348#include <stdlib.h>
8349#include <iconv.h>
8350extern
8351#ifdef __cplusplus
8352"C"
8353#endif
8354#if defined(__STDC__) || defined(__cplusplus)
8355size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8356#else
8357size_t iconv();
8358#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360int
8361main ()
8362{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364 ;
8365 return 0;
8366}
8367_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008368if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008369 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008371 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008374 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 +00008375fi
8376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008377 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008379 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008380$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382
8383cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008384#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008385_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008386
8387 fi
8388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008391$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008392if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008393 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008394else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008396/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008397#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008398int
8399main ()
8400{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008401char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008402 ;
8403 return 0;
8404}
8405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008406if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008407 am_cv_langinfo_codeset=yes
8408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008409 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008410fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008411rm -f core conftest.err conftest.$ac_objext \
8412 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008413
8414fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008416$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008417 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008419$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008420
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008421 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008423 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008426$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008427if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008428 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008431/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008432#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008433int
8434main ()
8435{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008436return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008437 ;
8438 return 0;
8439}
8440_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008441if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008442 am_cv_val_LC_MESSAGES=yes
8443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008444 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008445fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008446rm -f core conftest.err conftest.$ac_objext \
8447 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008450$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008451 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008453$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008454
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008455 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008456
8457 fi
8458
8459 for ac_prog in bison
8460do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008461 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008462set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008464$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008465if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008466 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008467else
8468 if test -n "$INTLBISON"; then
8469 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8470else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472for as_dir in $PATH
8473do
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008476 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008477 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 -05008478 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008480 break 2
8481 fi
8482done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008483 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008484IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008485
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008486fi
8487fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008488INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008489if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008491$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008492else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008494$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008495fi
8496
Theodore Ts'oe1052142006-10-21 21:46:47 -04008497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008498 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008499done
8500
8501 if test -z "$INTLBISON"; then
8502 ac_verc_fail=yes
8503 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008505$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008506 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8507 case $ac_prog_version in
8508 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8509 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8510 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8511 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8512 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008514$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008515 fi
8516 if test $ac_verc_fail = yes; then
8517 INTLBISON=:
8518 fi
8519
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008520
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008521
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008522
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008523
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008525
8526
8527
8528
8529
8530
8531
8532
8533
8534
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008536$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008537 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008538if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008539 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008540else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008541 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008542fi
8543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008545$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008546
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008548
8549
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008550 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008551 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008552
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008553 LIBINTL=
8554 LTLIBINTL=
8555 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008556
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008557 if test "$USE_NLS" = "yes"; then
8558 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008559
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008561$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008562
Theodore Ts'oe1052142006-10-21 21:46:47 -04008563# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008564if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008565 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008566else
8567 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008568fi
8569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008571$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008572
8573 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8574 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576
8577
8578
8579
8580
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008582$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008583if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008584 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008585else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008587/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008588#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008589extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008590extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008591int
8592main ()
8593{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594bindtextdomain ("", "");
8595return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596 ;
8597 return 0;
8598}
8599_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008600if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008602else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008603 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008604fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008607fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008609$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008610
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008611 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
8613
8614
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008615 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008621
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008622 eval additional_includedir=\"$includedir\"
8623 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008624
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008625 exec_prefix="$acl_save_exec_prefix"
8626 prefix="$acl_save_prefix"
8627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628
Theodore Ts'oe1052142006-10-21 21:46:47 -04008629# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008630if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008631 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008632 if test "X$withval" = "Xno"; then
8633 use_additional=no
8634 else
8635 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008636
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637 acl_save_prefix="$prefix"
8638 prefix="$acl_final_prefix"
8639 acl_save_exec_prefix="$exec_prefix"
8640 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008642 eval additional_includedir=\"$includedir\"
8643 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008644
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008645 exec_prefix="$acl_save_exec_prefix"
8646 prefix="$acl_save_prefix"
8647
8648 else
8649 additional_includedir="$withval/include"
8650 additional_libdir="$withval/lib"
8651 fi
8652 fi
8653
Theodore Ts'oe1052142006-10-21 21:46:47 -04008654fi
8655
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008656 LIBINTL=
8657 LTLIBINTL=
8658 INCINTL=
8659 rpathdirs=
8660 ltrpathdirs=
8661 names_already_handled=
8662 names_next_round='intl '
8663 while test -n "$names_next_round"; do
8664 names_this_round="$names_next_round"
8665 names_next_round=
8666 for name in $names_this_round; do
8667 already_handled=
8668 for n in $names_already_handled; do
8669 if test "$n" = "$name"; then
8670 already_handled=yes
8671 break
8672 fi
8673 done
8674 if test -z "$already_handled"; then
8675 names_already_handled="$names_already_handled $name"
8676 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8677 eval value=\"\$HAVE_LIB$uppername\"
8678 if test -n "$value"; then
8679 if test "$value" = yes; then
8680 eval value=\"\$LIB$uppername\"
8681 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8682 eval value=\"\$LTLIB$uppername\"
8683 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8684 else
8685 :
8686 fi
8687 else
8688 found_dir=
8689 found_la=
8690 found_so=
8691 found_a=
8692 if test $use_additional = yes; then
8693 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8694 found_dir="$additional_libdir"
8695 found_so="$additional_libdir/lib$name.$shlibext"
8696 if test -f "$additional_libdir/lib$name.la"; then
8697 found_la="$additional_libdir/lib$name.la"
8698 fi
8699 else
8700 if test -f "$additional_libdir/lib$name.$libext"; then
8701 found_dir="$additional_libdir"
8702 found_a="$additional_libdir/lib$name.$libext"
8703 if test -f "$additional_libdir/lib$name.la"; then
8704 found_la="$additional_libdir/lib$name.la"
8705 fi
8706 fi
8707 fi
8708 fi
8709 if test "X$found_dir" = "X"; then
8710 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008711
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008712 acl_save_prefix="$prefix"
8713 prefix="$acl_final_prefix"
8714 acl_save_exec_prefix="$exec_prefix"
8715 exec_prefix="$acl_final_exec_prefix"
8716 eval x=\"$x\"
8717 exec_prefix="$acl_save_exec_prefix"
8718 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008719
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008720 case "$x" in
8721 -L*)
8722 dir=`echo "X$x" | sed -e 's/^X-L//'`
8723 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8724 found_dir="$dir"
8725 found_so="$dir/lib$name.$shlibext"
8726 if test -f "$dir/lib$name.la"; then
8727 found_la="$dir/lib$name.la"
8728 fi
8729 else
8730 if test -f "$dir/lib$name.$libext"; then
8731 found_dir="$dir"
8732 found_a="$dir/lib$name.$libext"
8733 if test -f "$dir/lib$name.la"; then
8734 found_la="$dir/lib$name.la"
8735 fi
8736 fi
8737 fi
8738 ;;
8739 esac
8740 if test "X$found_dir" != "X"; then
8741 break
8742 fi
8743 done
8744 fi
8745 if test "X$found_dir" != "X"; then
8746 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8747 if test "X$found_so" != "X"; then
8748 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8749 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8750 else
8751 haveit=
8752 for x in $ltrpathdirs; do
8753 if test "X$x" = "X$found_dir"; then
8754 haveit=yes
8755 break
8756 fi
8757 done
8758 if test -z "$haveit"; then
8759 ltrpathdirs="$ltrpathdirs $found_dir"
8760 fi
8761 if test "$hardcode_direct" = yes; then
8762 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8763 else
8764 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8765 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8766 haveit=
8767 for x in $rpathdirs; do
8768 if test "X$x" = "X$found_dir"; then
8769 haveit=yes
8770 break
8771 fi
8772 done
8773 if test -z "$haveit"; then
8774 rpathdirs="$rpathdirs $found_dir"
8775 fi
8776 else
8777 haveit=
8778 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008780 acl_save_prefix="$prefix"
8781 prefix="$acl_final_prefix"
8782 acl_save_exec_prefix="$exec_prefix"
8783 exec_prefix="$acl_final_exec_prefix"
8784 eval x=\"$x\"
8785 exec_prefix="$acl_save_exec_prefix"
8786 prefix="$acl_save_prefix"
8787
8788 if test "X$x" = "X-L$found_dir"; then
8789 haveit=yes
8790 break
8791 fi
8792 done
8793 if test -z "$haveit"; then
8794 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8795 fi
8796 if test "$hardcode_minus_L" != no; then
8797 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8798 else
8799 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8800 fi
8801 fi
8802 fi
8803 fi
8804 else
8805 if test "X$found_a" != "X"; then
8806 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
8807 else
8808 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
8809 fi
8810 fi
8811 additional_includedir=
8812 case "$found_dir" in
8813 */lib | */lib/)
8814 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8815 additional_includedir="$basedir/include"
8816 ;;
8817 esac
8818 if test "X$additional_includedir" != "X"; then
8819 if test "X$additional_includedir" != "X/usr/include"; then
8820 haveit=
8821 if test "X$additional_includedir" = "X/usr/local/include"; then
8822 if test -n "$GCC"; then
8823 case $host_os in
8824 linux*) haveit=yes;;
8825 esac
8826 fi
8827 fi
8828 if test -z "$haveit"; then
8829 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8835 eval x=\"$x\"
8836 exec_prefix="$acl_save_exec_prefix"
8837 prefix="$acl_save_prefix"
8838
8839 if test "X$x" = "X-I$additional_includedir"; then
8840 haveit=yes
8841 break
8842 fi
8843 done
8844 if test -z "$haveit"; then
8845 if test -d "$additional_includedir"; then
8846 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
8847 fi
8848 fi
8849 fi
8850 fi
8851 fi
8852 if test -n "$found_la"; then
8853 save_libdir="$libdir"
8854 case "$found_la" in
8855 */* | *\\*) . "$found_la" ;;
8856 *) . "./$found_la" ;;
8857 esac
8858 libdir="$save_libdir"
8859 for dep in $dependency_libs; do
8860 case "$dep" in
8861 -L*)
8862 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8863 if test "X$additional_libdir" != "X/usr/lib"; then
8864 haveit=
8865 if test "X$additional_libdir" = "X/usr/local/lib"; then
8866 if test -n "$GCC"; then
8867 case $host_os in
8868 linux*) haveit=yes;;
8869 esac
8870 fi
8871 fi
8872 if test -z "$haveit"; then
8873 haveit=
8874 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008875
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008876 acl_save_prefix="$prefix"
8877 prefix="$acl_final_prefix"
8878 acl_save_exec_prefix="$exec_prefix"
8879 exec_prefix="$acl_final_exec_prefix"
8880 eval x=\"$x\"
8881 exec_prefix="$acl_save_exec_prefix"
8882 prefix="$acl_save_prefix"
8883
8884 if test "X$x" = "X-L$additional_libdir"; then
8885 haveit=yes
8886 break
8887 fi
8888 done
8889 if test -z "$haveit"; then
8890 if test -d "$additional_libdir"; then
8891 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
8892 fi
8893 fi
8894 haveit=
8895 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008896
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897 acl_save_prefix="$prefix"
8898 prefix="$acl_final_prefix"
8899 acl_save_exec_prefix="$exec_prefix"
8900 exec_prefix="$acl_final_exec_prefix"
8901 eval x=\"$x\"
8902 exec_prefix="$acl_save_exec_prefix"
8903 prefix="$acl_save_prefix"
8904
8905 if test "X$x" = "X-L$additional_libdir"; then
8906 haveit=yes
8907 break
8908 fi
8909 done
8910 if test -z "$haveit"; then
8911 if test -d "$additional_libdir"; then
8912 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
8913 fi
8914 fi
8915 fi
8916 fi
8917 ;;
8918 -R*)
8919 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8920 if test "$enable_rpath" != no; then
8921 haveit=
8922 for x in $rpathdirs; do
8923 if test "X$x" = "X$dir"; then
8924 haveit=yes
8925 break
8926 fi
8927 done
8928 if test -z "$haveit"; then
8929 rpathdirs="$rpathdirs $dir"
8930 fi
8931 haveit=
8932 for x in $ltrpathdirs; do
8933 if test "X$x" = "X$dir"; then
8934 haveit=yes
8935 break
8936 fi
8937 done
8938 if test -z "$haveit"; then
8939 ltrpathdirs="$ltrpathdirs $dir"
8940 fi
8941 fi
8942 ;;
8943 -l*)
8944 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8945 ;;
8946 *.la)
8947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8948 ;;
8949 *)
8950 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
8951 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
8952 ;;
8953 esac
8954 done
8955 fi
8956 else
8957 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8958 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
8959 fi
8960 fi
8961 fi
8962 done
8963 done
8964 if test "X$rpathdirs" != "X"; then
8965 if test -n "$hardcode_libdir_separator"; then
8966 alldirs=
8967 for found_dir in $rpathdirs; do
8968 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8969 done
8970 acl_save_libdir="$libdir"
8971 libdir="$alldirs"
8972 eval flag=\"$hardcode_libdir_flag_spec\"
8973 libdir="$acl_save_libdir"
8974 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8975 else
8976 for found_dir in $rpathdirs; do
8977 acl_save_libdir="$libdir"
8978 libdir="$found_dir"
8979 eval flag=\"$hardcode_libdir_flag_spec\"
8980 libdir="$acl_save_libdir"
8981 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
8982 done
8983 fi
8984 fi
8985 if test "X$ltrpathdirs" != "X"; then
8986 for found_dir in $ltrpathdirs; do
8987 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
8988 done
8989 fi
8990
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008992$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008993if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008994 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008995else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008996 gt_save_CPPFLAGS="$CPPFLAGS"
8997 CPPFLAGS="$CPPFLAGS $INCINTL"
8998 gt_save_LIBS="$LIBS"
8999 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009001/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009002#include <libintl.h>
9003extern int _nl_msg_cat_cntr;
9004extern
9005#ifdef __cplusplus
9006"C"
9007#endif
9008const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009int
9010main ()
9011{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009012bindtextdomain ("", "");
9013return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014 ;
9015 return 0;
9016}
9017_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009018if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009019 gt_cv_func_gnugettext1_libintl=yes
9020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009021 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009022fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009023rm -f core conftest.err conftest.$ac_objext \
9024 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009025 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9026 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009028/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009029#include <libintl.h>
9030extern int _nl_msg_cat_cntr;
9031extern
9032#ifdef __cplusplus
9033"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009034#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009035const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009036int
9037main ()
9038{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009039bindtextdomain ("", "");
9040return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009041 ;
9042 return 0;
9043}
9044_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009045if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009046 LIBINTL="$LIBINTL $LIBICONV"
9047 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9048 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009049
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009050fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009051rm -f core conftest.err conftest.$ac_objext \
9052 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009053 fi
9054 CPPFLAGS="$gt_save_CPPFLAGS"
9055 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009056fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009058$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009059 fi
9060
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009061 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9062 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009063 && test "$PACKAGE" != gettext-runtime \
9064 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009065 gt_use_preinstalled_gnugettext=yes
9066 else
9067 LIBINTL=
9068 LTLIBINTL=
9069 INCINTL=
9070 fi
9071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009072
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009073 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9074 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009075 fi
9076 fi
9077
9078 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009079 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009080 USE_INCLUDED_LIBINTL=yes
9081 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9082 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9083 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009084 fi
9085
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009086 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9087 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9088 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009089 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009091
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009092 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9093 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009094
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009095$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009096
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009097 else
9098 USE_NLS=no
9099 fi
9100 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009101
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009103$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009105$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009106 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009108$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009109 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9110 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9111 gt_source="external libintl"
9112 else
9113 gt_source="libc"
9114 fi
9115 else
9116 gt_source="included intl directory"
9117 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009119$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009120 fi
9121
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009122 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009123
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009124 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9125 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009127$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009129$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009130
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009131 for element in $INCINTL; do
9132 haveit=
9133 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009134
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009135 acl_save_prefix="$prefix"
9136 prefix="$acl_final_prefix"
9137 acl_save_exec_prefix="$exec_prefix"
9138 exec_prefix="$acl_final_exec_prefix"
9139 eval x=\"$x\"
9140 exec_prefix="$acl_save_exec_prefix"
9141 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009142
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009143 if test "X$x" = "X$element"; then
9144 haveit=yes
9145 break
9146 fi
9147 done
9148 if test -z "$haveit"; then
9149 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9150 fi
9151 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009152
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009153 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009154
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009155
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009156$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009157
9158
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009159$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009160
9161 fi
9162
9163 POSUB=po
9164 fi
9165
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009166
9167 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009168 BUILD_INCLUDED_LIBINTL=yes
9169 fi
9170
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009171
9172
9173
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009174
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009175 nls_cv_header_intl=
9176 nls_cv_header_libgt=
9177
9178 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009179
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009180
9181 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009182
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009183
9184 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009185
9186
9187 if test "$USE_INCLUDED_LIBINTL" = yes; then
9188 INTLOBJS="\$(GETTOBJS)"
9189 fi
9190
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009191
9192 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193
9194
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009195
9196 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009197
9198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009199
9200
9201
9202
9203
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009205$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9206set x ${MAKE-make}
9207ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009208if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009209 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009211 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009212SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009213all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009214 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009215_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009216# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009217case `${MAKE-make} -f conftest.make 2>/dev/null` in
9218 *@@@%%%=?*=@@@%%%*)
9219 eval ac_cv_prog_make_${ac_make}_set=yes;;
9220 *)
9221 eval ac_cv_prog_make_${ac_make}_set=no;;
9222esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009224fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009225if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009227$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009228 SET_MAKE=
9229else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009231$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009232 SET_MAKE="MAKE=${MAKE-make}"
9233fi
9234
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009236$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009237if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009238 $as_echo_n "(cached) " >&6
9239else
9240 _cv_gnu_make_command='' ;
9241 for a in "$MAKE" make gmake gnumake ; do
9242 if test -z "$a" ; then continue ; fi ;
9243 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9244 _cv_gnu_make_command=$a ;
9245 break;
9246 fi
9247 done ;
9248
9249fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009251$as_echo "$_cv_gnu_make_command" >&6; } ;
9252 if test "x$_cv_gnu_make_command" != "x" ; then
9253 ifGNUmake='' ;
9254 ifNotGNUmake='#' ;
9255 else
9256 ifGNUmake='#' ;
9257 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009259$as_echo "\"Not found\"" >&6; };
9260 fi
9261
9262
9263
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009264# Extract the first word of "ln", so it can be a program name with args.
9265set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009267$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009268if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009269 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271 case $LN in
9272 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009273 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9274 ;;
9275 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9277for as_dir in $PATH
9278do
9279 IFS=$as_save_IFS
9280 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009281 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009282 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 -05009283 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009285 break 2
9286 fi
9287done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009288 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009289IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009290
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009291 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9292 ;;
9293esac
9294fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009295LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009296if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009298$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009299else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009301$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009302fi
9303
Theodore Ts'oe1052142006-10-21 21:46:47 -04009304
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009306$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009307LN_S=$as_ln_s
9308if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009310$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009311else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009313$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009314fi
9315
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009316# Extract the first word of "mv", so it can be a program name with args.
9317set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009319$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009320if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009321 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009323 case $MV in
9324 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009325 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9326 ;;
9327 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9329for as_dir in $PATH
9330do
9331 IFS=$as_save_IFS
9332 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009333 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009334 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 -05009335 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009337 break 2
9338 fi
9339done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009340 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009341IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009343 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9344 ;;
9345esac
9346fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009347MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009348if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009350$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009351else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009353$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009354fi
9355
Theodore Ts'oe1052142006-10-21 21:46:47 -04009356
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009357# Extract the first word of "cp", so it can be a program name with args.
9358set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009360$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009361if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009362 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009363else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009364 case $CP in
9365 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009366 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9367 ;;
9368 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370for as_dir in $PATH
9371do
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009374 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009375 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 -05009376 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009378 break 2
9379 fi
9380done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009381 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009382IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009384 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9385 ;;
9386esac
9387fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009388CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009389if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009391$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009392else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009394$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009395fi
9396
Theodore Ts'oe1052142006-10-21 21:46:47 -04009397
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009398# Extract the first word of "rm", so it can be a program name with args.
9399set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009401$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009402if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009403 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405 case $RM in
9406 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009407 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9408 ;;
9409 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411for as_dir in $PATH
9412do
9413 IFS=$as_save_IFS
9414 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009415 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009416 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 -05009417 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009419 break 2
9420 fi
9421done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009422 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009423IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009424
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009425 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9426 ;;
9427esac
9428fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009429RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009430if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009432$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009435$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009436fi
9437
Theodore Ts'oe1052142006-10-21 21:46:47 -04009438
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009439# Extract the first word of "chmod", so it can be a program name with args.
9440set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009442$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009443if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009444 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009445else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009446 case $CHMOD in
9447 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009448 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9449 ;;
9450 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9452for as_dir in $PATH
9453do
9454 IFS=$as_save_IFS
9455 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009456 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009457 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 -05009458 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009460 break 2
9461 fi
9462done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009463 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009464IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009466 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9467 ;;
9468esac
9469fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009471if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009473$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009476$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009477fi
9478
Theodore Ts'oe1052142006-10-21 21:46:47 -04009479
Theodore Ts'o32237012005-01-17 19:13:39 -05009480for ac_prog in gawk mawk nawk awk
9481do
9482 # Extract the first word of "$ac_prog", so it can be a program name with args.
9483set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009485$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009486if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009487 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009488else
Theodore Ts'o32237012005-01-17 19:13:39 -05009489 if test -n "$AWK"; then
9490 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9491else
9492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009493for as_dir in $PATH
9494do
9495 IFS=$as_save_IFS
9496 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009497 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009498 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 -05009499 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 break 2
9502 fi
9503done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009504 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009505IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009507fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009508fi
9509AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009510if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009512$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009513else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009515$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009516fi
9517
Theodore Ts'oe1052142006-10-21 21:46:47 -04009518
Theodore Ts'o32237012005-01-17 19:13:39 -05009519 test -n "$AWK" && break
9520done
9521
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009523$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009524if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009525 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009526else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009527 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9528 then ac_cv_path_EGREP="$GREP -E"
9529 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009530 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009531 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009532 # Loop through the user's path and test for each of PROGNAME-LIST
9533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009534for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9535do
9536 IFS=$as_save_IFS
9537 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009538 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009539 for ac_exec_ext in '' $ac_executable_extensions; do
9540 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9541 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9542# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009543 # Check for GNU $ac_path_EGREP
9544case `"$ac_path_EGREP" --version 2>&1` in
9545*GNU*)
9546 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9547*)
9548 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550 while :
9551 do
9552 cat "conftest.in" "conftest.in" >"conftest.tmp"
9553 mv "conftest.tmp" "conftest.in"
9554 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009555 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009556 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9557 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009558 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009559 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9560 # Best one so far, save it but keep looking for a better one
9561 ac_cv_path_EGREP="$ac_path_EGREP"
9562 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009563 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009564 # 10*(2^10) chars as input seems more than enough
9565 test $ac_count -gt 10 && break
9566 done
9567 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9568esac
9569
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009570 $ac_path_EGREP_found && break 3
9571 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009572 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009573 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009574IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009575 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009576 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009577 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009578else
9579 ac_cv_path_EGREP=$EGREP
9580fi
9581
Theodore Ts'oe1052142006-10-21 21:46:47 -04009582 fi
9583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009585$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009587
9588
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009589# Extract the first word of "sed", so it can be a program name with args.
9590set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009592$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009593if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009594 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009595else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596 case $SED in
9597 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009598 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9599 ;;
9600 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9602for as_dir in $PATH
9603do
9604 IFS=$as_save_IFS
9605 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009606 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009607 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 -05009608 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009610 break 2
9611 fi
9612done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009613 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009614IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009615
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009616 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9617 ;;
9618esac
9619fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009621if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009623$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009624else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009626$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009627fi
9628
Theodore Ts'oe1052142006-10-21 21:46:47 -04009629
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009630# Extract the first word of "perl", so it can be a program name with args.
9631set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009634if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009635 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009636else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009637 case $PERL in
9638 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009639 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9640 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009641 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9643for as_dir in $PATH
9644do
9645 IFS=$as_save_IFS
9646 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009647 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009648 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 -05009649 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009651 break 2
9652 fi
9653done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009654 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009655IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009656
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009657 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9658 ;;
9659esac
9660fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009662if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009664$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009667$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009668fi
9669
Theodore Ts'oe1052142006-10-21 21:46:47 -04009670
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009671# Extract the first word of "ldconfig", so it can be a program name with args.
9672set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009674$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009675if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009676 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009677else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009678 case $LDCONFIG in
9679 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009680 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9681 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009682 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684for as_dir in $PATH
9685do
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009688 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009689 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 -05009690 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009692 break 2
9693 fi
9694done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009695 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009696IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009697
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009698 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9699 ;;
9700esac
9701fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009702LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009703if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009705$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009706else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009708$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009709fi
9710
Theodore Ts'oe1052142006-10-21 21:46:47 -04009711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009712if test -n "$ac_tool_prefix"; then
9713 # 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 +00009714set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009716$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009717if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009718 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009719else
9720 if test -n "$AR"; then
9721 ac_cv_prog_AR="$AR" # Let the user override the test.
9722else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9724for as_dir in $PATH
9725do
9726 IFS=$as_save_IFS
9727 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009728 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009729 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 -05009730 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009732 break 2
9733 fi
9734done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009735 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009736IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009737
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009738fi
9739fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009740AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009741if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009743$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009744else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009746$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009747fi
9748
Theodore Ts'oe1052142006-10-21 21:46:47 -04009749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009750fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009751if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009752 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009753 # Extract the first word of "ar", so it can be a program name with args.
9754set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009756$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009757if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009758 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009759else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760 if test -n "$ac_ct_AR"; then
9761 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764for as_dir in $PATH
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009768 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009769 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 -05009770 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 break 2
9773 fi
9774done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009775 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009777
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009778fi
9779fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009780ac_ct_AR=$ac_cv_prog_ac_ct_AR
9781if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009783$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009784else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009786$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009787fi
9788
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789 if test "x$ac_ct_AR" = x; then
9790 AR="ar"
9791 else
9792 case $cross_compiling:$ac_tool_warned in
9793yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009796ac_tool_warned=yes ;;
9797esac
9798 AR=$ac_ct_AR
9799 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009800else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009801 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009802fi
9803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804if test -n "$ac_tool_prefix"; then
9805 # 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 +00009806set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009808$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009809if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009810 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009811else
9812 if test -n "$RANLIB"; then
9813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9814else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9816for as_dir in $PATH
9817do
9818 IFS=$as_save_IFS
9819 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009820 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009821 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 -05009822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824 break 2
9825 fi
9826done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009827 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009828IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009830fi
9831fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009832RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009833if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009835$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009836else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009838$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009839fi
9840
Theodore Ts'oe1052142006-10-21 21:46:47 -04009841
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009842fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009843if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009845 # Extract the first word of "ranlib", so it can be a program name with args.
9846set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009848$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009849if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009850 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009851else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009852 if test -n "$ac_ct_RANLIB"; then
9853 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009854else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9856for as_dir in $PATH
9857do
9858 IFS=$as_save_IFS
9859 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009860 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009861 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 -05009862 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009864 break 2
9865 fi
9866done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009867 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009868IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009869
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009870fi
9871fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9873if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009875$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009876else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009878$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009879fi
9880
Theodore Ts'oe1052142006-10-21 21:46:47 -04009881 if test "x$ac_ct_RANLIB" = x; then
9882 RANLIB=":"
9883 else
9884 case $cross_compiling:$ac_tool_warned in
9885yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009886{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009887$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009888ac_tool_warned=yes ;;
9889esac
9890 RANLIB=$ac_ct_RANLIB
9891 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009892else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009893 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009894fi
9895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009896if test -n "$ac_tool_prefix"; then
9897 # 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 +00009898set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009900$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009901if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009902 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009903else
9904 if test -n "$STRIP"; then
9905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9906else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009907as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9908for as_dir in $PATH
9909do
9910 IFS=$as_save_IFS
9911 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009912 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009913 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 -05009914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009916 break 2
9917 fi
9918done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009919 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009920IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009921
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009922fi
9923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009924STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009925if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009927$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009930$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009931fi
9932
Theodore Ts'oe1052142006-10-21 21:46:47 -04009933
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009935if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009936 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009937 # Extract the first word of "strip", so it can be a program name with args.
9938set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009940$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009941if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009942 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009944 if test -n "$ac_ct_STRIP"; then
9945 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009946else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948for as_dir in $PATH
9949do
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009952 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009953 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 -05009954 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009956 break 2
9957 fi
9958done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009959 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009960IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009961
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009962fi
9963fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009964ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9965if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009967$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009968else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009970$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009971fi
9972
Theodore Ts'oe1052142006-10-21 21:46:47 -04009973 if test "x$ac_ct_STRIP" = x; then
9974 STRIP=":"
9975 else
9976 case $cross_compiling:$ac_tool_warned in
9977yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009978{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009979$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009980ac_tool_warned=yes ;;
9981esac
9982 STRIP=$ac_ct_STRIP
9983 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009984else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009985 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009986fi
9987
Manish Katiyar7321d942008-04-14 17:20:03 +05309988# Extract the first word of "makeinfo", so it can be a program name with args.
9989set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009991$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009992if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009993 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +05309994else
9995 if test -n "$MAKEINFO"; then
9996 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
9997else
9998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9999for as_dir in $PATH
10000do
10001 IFS=$as_save_IFS
10002 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010003 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10005 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010007 break 2
10008 fi
10009done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010010 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010011IFS=$as_save_IFS
10012
10013fi
10014fi
10015MAKEINFO=$ac_cv_prog_MAKEINFO
10016if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010018$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010019else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010021$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010022fi
10023
10024
10025if test "_$MAKEINFO" = "_"; then
10026 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10027else
10028 case "$MAKEINFO" in
10029 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010031*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010032$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010033*** Makeinfo is missing. Info documentation will not be built." >&2;}
10034 ;;
10035 *)
10036 ;;
10037 esac
10038fi
10039
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010040
Theodore Ts'o6c133521999-07-03 20:37:03 +000010041# See if we need a separate native compiler.
10042if test $cross_compiling = no; then
10043 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010044
Theodore Ts'o6c133521999-07-03 20:37:03 +000010045else
10046 for ac_prog in gcc cc
10047do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010048 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010049set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010051$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010052if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010053 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010054else
10055 if test -n "$BUILD_CC"; then
10056 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10057else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010060do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010061 IFS=$as_save_IFS
10062 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010063 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010064 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 -050010065 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010067 break 2
10068 fi
10069done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010070 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010072
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010073fi
10074fi
10075BUILD_CC=$ac_cv_prog_BUILD_CC
10076if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010078$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010081$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082fi
10083
Theodore Ts'oe1052142006-10-21 21:46:47 -040010084
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085 test -n "$BUILD_CC" && break
10086done
10087
10088fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010089for 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'o57aa50d2009-11-26 10:38:04 -050010090do :
10091 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10092ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10093eval as_val=\$$as_ac_Header
10094 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010095 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010096#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097_ACEOF
10098
10099fi
10100
10101done
10102
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010103for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010104do :
10105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10106ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010107#if HAVE_SYS_QUEUE_H
10108#include <sys/queue.h>
10109#endif
10110
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010111"
10112eval as_val=\$$as_ac_Header
10113 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010114 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010115#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010116_ACEOF
10117
10118fi
10119
10120done
10121
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010122for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010123do :
10124 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010125#if HAVE_SYS_TYPES_H
10126#include <sys/types.h>
10127#endif
10128#if HAVE_SYS_SOCKET
10129#include <sys/socket.h>
10130#endif
10131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010132"
10133if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010134 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010135#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010136_ACEOF
10137
10138fi
10139
10140done
10141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010142for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010143do :
10144 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10145if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010147#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010148_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010149
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010150ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10151if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010152
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010153$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010154
10155fi
10156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010157fi
10158done
10159
10160
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010161ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10162"
10163if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
10164 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010165
10166fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010167
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010168ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10169"
10170if test "x$ac_cv_type_ssize_t" = x""yes; then :
10171 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010172
Theodore Ts'offf45482003-04-13 00:44:19 -040010173fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010174
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010175ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10176"
10177if test "x$ac_cv_have_decl_llseek" = x""yes; then :
10178 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010179
10180fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010181
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010182ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010183 #define _LARGEFILE64_SOURCE
10184 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010185"
10186if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
10187 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010188
10189fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010190
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010191# The cast to long int works around a bug in the HP C Compiler
10192# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10193# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10194# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010196$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010197if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010198 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010199else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010200 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010203 if test "$ac_cv_type_short" = yes; then
10204 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010205$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010206{ as_fn_set_status 77
10207as_fn_error "cannot compute sizeof (short)
10208See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010209 else
10210 ac_cv_sizeof_short=0
10211 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010212fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010213
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010216$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010217
10218
10219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010220cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010221#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010222_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010223
10224
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010225# The cast to long int works around a bug in the HP C Compiler
10226# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10227# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10228# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010230$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010231if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010232 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010233else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010234 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010236else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010237 if test "$ac_cv_type_int" = yes; then
10238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010240{ as_fn_set_status 77
10241as_fn_error "cannot compute sizeof (int)
10242See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010243 else
10244 ac_cv_sizeof_int=0
10245 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010247
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010248fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010250$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010251
10252
10253
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010254cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010255#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010256_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010257
10258
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010259# The cast to long int works around a bug in the HP C Compiler
10260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10262# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010264$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010265if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010266 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010268 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010270else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010271 if test "$ac_cv_type_long" = yes; then
10272 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010273$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010274{ as_fn_set_status 77
10275as_fn_error "cannot compute sizeof (long)
10276See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010277 else
10278 ac_cv_sizeof_long=0
10279 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010284$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010285
10286
10287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010288cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010289#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010290_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010291
10292
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010293# The cast to long int works around a bug in the HP C Compiler
10294# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10295# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10296# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010298$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010299if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010300 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010302 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010303
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010305 if test "$ac_cv_type_long_long" = yes; then
10306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010307$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010308{ as_fn_set_status 77
10309as_fn_error "cannot compute sizeof (long long)
10310See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010311 else
10312 ac_cv_sizeof_long_long=0
10313 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010314fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010316fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010318$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010319
10320
10321
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010322cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010323#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010324_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010325
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010326
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010327SIZEOF_SHORT=$ac_cv_sizeof_short
10328SIZEOF_INT=$ac_cv_sizeof_int
10329SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010330SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10331
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010332
10333
10334
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010336$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010337if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010338 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010339else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010340 ac_cv_c_bigendian=unknown
10341 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010343/* end confdefs.h. */
10344#ifndef __APPLE_CC__
10345 not a universal capable compiler
10346 #endif
10347 typedef int dummy;
10348
10349_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010350if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010351
10352 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010353 # there are at least two -arch flags with different values.
10354 ac_arch=
10355 ac_prev=
10356 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10357 if test -n "$ac_prev"; then
10358 case $ac_word in
10359 i?86 | x86_64 | ppc | ppc64)
10360 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10361 ac_arch=$ac_word
10362 else
10363 ac_cv_c_bigendian=universal
10364 break
10365 fi
10366 ;;
10367 esac
10368 ac_prev=
10369 elif test "x$ac_word" = "x-arch"; then
10370 ac_prev=arch
10371 fi
10372 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010373fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10375 if test $ac_cv_c_bigendian = unknown; then
10376 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010379#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010380 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010382int
10383main ()
10384{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010385#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10386 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10387 && LITTLE_ENDIAN)
10388 bogus endian macros
10389 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010390
10391 ;
10392 return 0;
10393}
10394_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010395if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010396 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010398/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010399#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010400 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010402int
10403main ()
10404{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010405#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010406 not big endian
10407 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010408
10409 ;
10410 return 0;
10411}
10412_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010413if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010414 ac_cv_c_bigendian=yes
10415else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010416 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010419fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10421 fi
10422 if test $ac_cv_c_bigendian = unknown; then
10423 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010425/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010426#include <limits.h>
10427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010428int
10429main ()
10430{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010431#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10432 bogus endian macros
10433 #endif
10434
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010435 ;
10436 return 0;
10437}
10438_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010439if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010440 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010442/* end confdefs.h. */
10443#include <limits.h>
10444
10445int
10446main ()
10447{
10448#ifndef _BIG_ENDIAN
10449 not big endian
10450 #endif
10451
10452 ;
10453 return 0;
10454}
10455_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010456if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010457 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010458else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010459 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010460fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010462fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 fi
10465 if test $ac_cv_c_bigendian = unknown; then
10466 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010467 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010468 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010470/* end confdefs.h. */
10471short int ascii_mm[] =
10472 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10473 short int ascii_ii[] =
10474 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10475 int use_ascii (int i) {
10476 return ascii_mm[i] + ascii_ii[i];
10477 }
10478 short int ebcdic_ii[] =
10479 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10480 short int ebcdic_mm[] =
10481 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10482 int use_ebcdic (int i) {
10483 return ebcdic_mm[i] + ebcdic_ii[i];
10484 }
10485 extern int foo;
10486
10487int
10488main ()
10489{
10490return use_ascii (foo) == use_ebcdic (foo);
10491 ;
10492 return 0;
10493}
10494_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010495if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010496 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10497 ac_cv_c_bigendian=yes
10498 fi
10499 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10500 if test "$ac_cv_c_bigendian" = unknown; then
10501 ac_cv_c_bigendian=no
10502 else
10503 # finding both strings is unlikely to happen, but who knows?
10504 ac_cv_c_bigendian=unknown
10505 fi
10506 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010511/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010512$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010513int
10514main ()
10515{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010516
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010517 /* Are we little or big endian? From Harbison&Steele. */
10518 union
10519 {
10520 long int l;
10521 char c[sizeof (long int)];
10522 } u;
10523 u.l = 1;
10524 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010525
10526 ;
10527 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010528}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010529_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010530if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010531 ac_cv_c_bigendian=no
10532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10536 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010538
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010539 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010542$as_echo "$ac_cv_c_bigendian" >&6; }
10543 case $ac_cv_c_bigendian in #(
10544 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010545 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010546;; #(
10547 no)
10548 ;; #(
10549 universal)
10550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010552
10553 ;; #(
10554 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010555 as_fn_error "unknown endianness
10556 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010557 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010558
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010559BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010560ASM_TYPES_HEADER=./asm_types.h
10561
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010562echo "/* These defines are needed for the public ext2fs.h header file */" \
10563 > public_config.h
10564if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10565 uniq tmp_config.$$ >> public_config.h
10566else
10567 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10568fi
10569if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10570 uniq tmp_config.$$ >> public_config.h
10571else
10572 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10573fi
10574rm -f tmp_config.$$
10575PUBLIC_CONFIG_HEADER=./public_config.h
10576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010577for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010578do :
10579 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10580if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010582#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010583_ACEOF
10584
10585fi
10586
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010587done
10588
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010589ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10590if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010591
10592cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010593#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010594_ACEOF
10595
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010596
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010597fi
10598
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010600$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010601if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010602 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010605/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010606#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010607int
10608main ()
10609{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010610struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010611 ;
10612 return 0;
10613}
10614_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010615if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010616 e2fsprogs_cv_struct_st_flags=yes
10617else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010618 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10621fi
10622
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010625if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010627$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010628 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010629 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010630else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010632/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010633#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634int
10635main ()
10636{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010637struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010638 ;
10639 return 0;
10640}
10641_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010642if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010643 e2fsprogs_cv_struct_st_flags_immut=yes
10644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010645 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010646fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10648fi
10649
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010651$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010652 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010653 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010654
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010655 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010656fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010657ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010658 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010659"
10660if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010661
10662cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010663#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010664_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010665
10666fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010668if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010670$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010671if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010672 $as_echo_n "(cached) " >&6
10673else
10674 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010676/* end confdefs.h. */
10677
10678/* Override any GCC internal prototype to avoid an error.
10679 Use char because int might match the return type of a GCC
10680 builtin and then its argument prototype would still apply. */
10681#ifdef __cplusplus
10682extern "C"
10683#endif
10684char blkid_probe_all ();
10685int
10686main ()
10687{
10688return blkid_probe_all ();
10689 ;
10690 return 0;
10691}
10692_ACEOF
10693for ac_lib in '' blkid; do
10694 if test -z "$ac_lib"; then
10695 ac_res="none required"
10696 else
10697 ac_res=-l$ac_lib
10698 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10699 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010700 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010701 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010702fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext
10705 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010706 break
10707fi
10708done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010709if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10710
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010711else
10712 ac_cv_search_blkid_probe_all=no
10713fi
10714rm conftest.$ac_ext
10715LIBS=$ac_func_search_save_LIBS
10716fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010718$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10719ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010720if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010721 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10722
10723fi
10724
10725fi
Theodore Ts'o30c05292010-12-16 22:53:34 -050010726for 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 sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010727do :
10728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10729ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10730eval as_val=\$$as_ac_var
10731 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010732 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010733#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734_ACEOF
10735
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010736fi
10737done
10738
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010739SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010741$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010742if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010743 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010744else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010746LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748/* end confdefs.h. */
10749
Theodore Ts'oe1052142006-10-21 21:46:47 -040010750/* Override any GCC internal prototype to avoid an error.
10751 Use char because int might match the return type of a GCC
10752 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010753#ifdef __cplusplus
10754extern "C"
10755#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010756char socket ();
10757int
10758main ()
10759{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010760return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010761 ;
10762 return 0;
10763}
10764_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010765if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010767else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010768 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010769fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010770rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010772LIBS=$ac_check_lib_save_LIBS
10773fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010775$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010777 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010778fi
10779
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010780
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010782$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010783if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010784 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010785else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010787/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010788#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789
10790_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010791if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010792 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010793 ac_cv_have_optreset=yes
10794else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010795 ac_cv_have_optreset=no
10796fi
10797rm -f conftest*
10798
10799fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010801$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010802if test $ac_cv_have_optreset = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010803 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010804
10805fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010806SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010807ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
10808if test "x$ac_cv_func_sem_init" = x""yes; then :
10809
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010810else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010812$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010813if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010814 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010815else
10816 ac_check_lib_save_LIBS=$LIBS
10817LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010819/* end confdefs.h. */
10820
10821/* Override any GCC internal prototype to avoid an error.
10822 Use char because int might match the return type of a GCC
10823 builtin and then its argument prototype would still apply. */
10824#ifdef __cplusplus
10825extern "C"
10826#endif
10827char sem_init ();
10828int
10829main ()
10830{
10831return sem_init ();
10832 ;
10833 return 0;
10834}
10835_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010836if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010837 ac_cv_lib_pthread_sem_init=yes
10838else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010839 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010840fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010841rm -f core conftest.err conftest.$ac_objext \
10842 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010843LIBS=$ac_check_lib_save_LIBS
10844fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010846$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010847if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
10848 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010849
10850 SEM_INIT_LIB=-lpthread
10851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010853$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010854if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010855 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010856else
10857 ac_check_lib_save_LIBS=$LIBS
10858LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010860/* end confdefs.h. */
10861
10862/* Override any GCC internal prototype to avoid an error.
10863 Use char because int might match the return type of a GCC
10864 builtin and then its argument prototype would still apply. */
10865#ifdef __cplusplus
10866extern "C"
10867#endif
10868char sem_init ();
10869int
10870main ()
10871{
10872return sem_init ();
10873 ;
10874 return 0;
10875}
10876_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010877if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010878 ac_cv_lib_rt_sem_init=yes
10879else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010880 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010881fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010882rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010884LIBS=$ac_check_lib_save_LIBS
10885fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010887$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010888if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
10889 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010890
10891 SEM_INIT_LIB=-lrt
10892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010894$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010895if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010896 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010897else
10898 ac_check_lib_save_LIBS=$LIBS
10899LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010901/* end confdefs.h. */
10902
10903/* Override any GCC internal prototype to avoid an error.
10904 Use char because int might match the return type of a GCC
10905 builtin and then its argument prototype would still apply. */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909char sem_init ();
10910int
10911main ()
10912{
10913return sem_init ();
10914 ;
10915 return 0;
10916}
10917_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010918if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010919 ac_cv_lib_posix4_sem_init=yes
10920else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010921 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010922fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010923rm -f core conftest.err conftest.$ac_objext \
10924 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010925LIBS=$ac_check_lib_save_LIBS
10926fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010928$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010929if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
10930 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040010931
10932 SEM_INIT_LIB=-lposix4
10933fi
10934
10935fi
10936
10937fi
10938
10939fi
10940
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010942$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040010943if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010944 UNI_DIFF_OPTS=-u
10945else
10946 UNI_DIFF_OPTS=-c
10947fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010949$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040010950
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010951case "$host_os" in
10952linux*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010954
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000010955 ;;
10956esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010957LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010958CYGWIN_CMT="#"
10959UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010960case "$host_os" in
10961linux*)
10962 LINUX_CMT=
10963 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040010964cygwin)
10965 CYGWIN_CMT=
10966 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040010967 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040010968esac
10969
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010970
10971
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010972case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010973linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010974 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
10975 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010977$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010978 fi
10979 ;;
10980esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010981case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010982linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010983 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010984 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010986$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010987 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010989$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040010990 mandir=/usr/share/man
10991 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010992 fi
10993;;
10994esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010995if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000010996 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000010997 root_prefix="$ac_default_prefix"
10998 else
10999 root_prefix="$prefix"
11000 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011001 root_bindir=$bindir
11002 root_sbindir=$sbindir
11003 root_libdir=$libdir
11004 root_sysconfdir=$sysconfdir
11005else
11006 root_bindir='${root_prefix}/bin'
11007 root_sbindir='${root_prefix}/sbin'
11008 root_libdir='${root_prefix}/lib'
11009 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011010fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011011if test "$bindir" != '${exec_prefix}/bin'; then
11012 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011014$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011015fi
11016if test "$sbindir" != '${exec_prefix}/sbin'; then
11017 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011019$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011020fi
11021if test "$libdir" != '${exec_prefix}/lib'; then
11022 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011024$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011025fi
11026if test "$sysconfdir" != '${prefix}/etc'; then
11027 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011029$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011030fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011031
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011032
11033
11034
11035
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011037$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011038if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011039 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011040else
11041 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011043/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011044#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011045int
11046main ()
11047{
Theodore Ts'oae851481997-04-29 18:13:24 +000011048fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049 ;
11050 return 0;
11051}
11052_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011053if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011054 ac_cv_e2fsprogs_use_static=yes
11055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011056 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011057fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011058rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011060LDFLAGS=$SAVE_LDFLAGS
11061fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011062
Theodore Ts'odefde781999-01-04 07:39:19 +000011063case "$host_os" in
11064solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011065 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011066;;
11067esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011069$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011070LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011071if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011072 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011073fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011074
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011075case "$host_os" in
11076darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011078$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011079 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011080
11081 ;;
11082esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011083SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11084ET_DIR=`cd ${srcdir}/lib/et; pwd`
11085
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011086
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011087if test "$cross_compiling" = yes ; then
11088 DO_TEST_SUITE=
11089else
11090 DO_TEST_SUITE=check
11091fi
11092
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011093INTL_FLAGS=
11094if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
11095 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
11096fi
11097
Theodore Ts'odd947da2005-11-09 18:37:07 -040011098if test $cross_compiling = no; then
11099 BUILD_CFLAGS="$CFLAGS"
11100 BUILD_LDFLAGS="$LDFLAGS"
11101else
11102 BUILD_CFLAGS=
11103 BUILD_LDFLAGS=
11104fi
11105
11106
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011107test -d lib || mkdir lib
11108test -d include || mkdir include
11109test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011110test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011111for i in MCONFIG Makefile e2fsprogs.spec \
11112 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011113 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11114 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011115 lib/uuid/Makefile lib/uuid/uuid_types.h \
11116 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011117 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11118 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011119 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011120 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011121 resize/Makefile doc/Makefile intl/Makefile \
11122 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011123 if test -d `dirname ${srcdir}/$i` ; then
11124 outlist="$outlist $i"
11125 fi
11126done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011127ac_config_files="$ac_config_files $outlist"
11128
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011129cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011130# This file is a shell script that caches the results of configure
11131# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011132# scripts and configure runs, see configure's option --config-cache.
11133# It is not useful on other systems. If it contains results you don't
11134# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011135#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011136# config.status only pays attention to the cache file if you give it
11137# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011138#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011139# `ac_cv_env_foo' variables (set or unset) will be overridden when
11140# loading this file, other *unset* `ac_cv_foo' will be assigned the
11141# following values.
11142
11143_ACEOF
11144
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011145# The following way of writing the cache mishandles newlines in values,
11146# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011147# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011148# Ultrix sh set writes to stderr and can't be redirected directly,
11149# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011150(
11151 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11152 eval ac_val=\$$ac_var
11153 case $ac_val in #(
11154 *${as_nl}*)
11155 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011156 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011157$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011158 esac
11159 case $ac_var in #(
11160 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011161 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011162 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011163 esac ;;
11164 esac
11165 done
11166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011167 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011168 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11169 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011170 # `set' does not quote correctly, so add quotes: double-quote
11171 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172 sed -n \
11173 "s/'/'\\\\''/g;
11174 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011175 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011176 *)
11177 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011178 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011179 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011180 esac |
11181 sort
11182) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011183 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011184 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011185 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011186 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011187 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11188 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011189 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11190 :end' >>confcache
11191if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11192 if test -w "$cache_file"; then
11193 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011194 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011195$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011196 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011197 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011198 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011199$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011200 fi
11201fi
11202rm -f confcache
11203
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011204test "x$prefix" = xNONE && prefix=$ac_default_prefix
11205# Let make expand exec_prefix.
11206test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11207
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208# Transform confdefs.h into DEFS.
11209# Protect against shell expansion while executing Makefile rules.
11210# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011211#
11212# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040011213# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011214# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011215ac_script='
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216:mline
11217/\\$/{
11218 N
11219 s,\\\n,,
11220 b mline
11221}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011222t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011223:clear
11224s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011225t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011226s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011227t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040011228b any
11229:quote
11230s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11231s/\[/\\&/g
11232s/\]/\\&/g
11233s/\$/$$/g
11234H
11235:any
11236${
11237 g
11238 s/^\n//
11239 s/\n/ /g
11240 p
11241}
11242'
11243DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011244
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011246ac_libobjs=
11247ac_ltlibobjs=
11248for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11249 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11253 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011256done
11257LIBOBJS=$ac_libobjs
11258
11259LTLIBOBJS=$ac_ltlibobjs
11260
11261
11262
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011263
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011264: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011265ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011266ac_clean_files_save=$ac_clean_files
11267ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011268{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011269$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011270as_write_fail=0
11271cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011272#! $SHELL
11273# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011274# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011275# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011276# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278debug=false
11279ac_cs_recheck=false
11280ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011281
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011282SHELL=\${CONFIG_SHELL-$SHELL}
11283export SHELL
11284_ASEOF
11285cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11286## -------------------- ##
11287## M4sh Initialization. ##
11288## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011289
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011290# Be more Bourne compatible
11291DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011292if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011293 emulate sh
11294 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011295 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011296 # is contrary to our usage. Disable this feature.
11297 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011298 setopt NO_GLOB_SUBST
11299else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011300 case `(set -o) 2>/dev/null` in #(
11301 *posix*) :
11302 set -o posix ;; #(
11303 *) :
11304 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011305esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011306fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011307
11308
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011309as_nl='
11310'
11311export as_nl
11312# Printing a long string crashes Solaris 7 /usr/bin/printf.
11313as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11314as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11315as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011316# Prefer a ksh shell builtin over an external printf program on Solaris,
11317# but without wasting forks for bash or zsh.
11318if test -z "$BASH_VERSION$ZSH_VERSION" \
11319 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11320 as_echo='print -r --'
11321 as_echo_n='print -rn --'
11322elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011323 as_echo='printf %s\n'
11324 as_echo_n='printf %s'
11325else
11326 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11327 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11328 as_echo_n='/usr/ucb/echo -n'
11329 else
11330 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11331 as_echo_n_body='eval
11332 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011333 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011334 *"$as_nl"*)
11335 expr "X$arg" : "X\\(.*\\)$as_nl";
11336 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11337 esac;
11338 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11339 '
11340 export as_echo_n_body
11341 as_echo_n='sh -c $as_echo_n_body as_echo'
11342 fi
11343 export as_echo_body
11344 as_echo='sh -c $as_echo_body as_echo'
11345fi
11346
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347# The user is always right.
11348if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011349 PATH_SEPARATOR=:
11350 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11351 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11352 PATH_SEPARATOR=';'
11353 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011354fi
11355
Theodore Ts'oe1052142006-10-21 21:46:47 -040011356
11357# IFS
11358# We need space, tab and new line, in precisely that order. Quoting is
11359# there to prevent editors from complaining about space-tab.
11360# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11361# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362IFS=" "" $as_nl"
11363
11364# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011365case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011366 *[\\/]* ) as_myself=$0 ;;
11367 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011368for as_dir in $PATH
11369do
11370 IFS=$as_save_IFS
11371 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011372 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11373 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011374IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376 ;;
11377esac
11378# We did not find ourselves, most probably we were run as `sh COMMAND'
11379# in which case we are not to be found in the path.
11380if test "x$as_myself" = x; then
11381 as_myself=$0
11382fi
11383if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011384 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011385 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011386fi
11387
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011388# Unset variables that we do not need and which cause bugs (e.g. in
11389# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11390# suppresses any "Segmentation fault" message there. '((' could
11391# trigger a bug in pdksh 5.2.14.
11392for as_var in BASH_ENV ENV MAIL MAILPATH
11393do eval test x\${$as_var+set} = xset \
11394 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011395done
11396PS1='$ '
11397PS2='> '
11398PS4='+ '
11399
11400# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011401LC_ALL=C
11402export LC_ALL
11403LANGUAGE=C
11404export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011405
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011406# CDPATH.
11407(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11408
11409
11410# as_fn_error ERROR [LINENO LOG_FD]
11411# ---------------------------------
11412# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11413# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11414# script with status $?, using 1 if that was 0.
11415as_fn_error ()
11416{
11417 as_status=$?; test $as_status -eq 0 && as_status=1
11418 if test "$3"; then
11419 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11420 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11421 fi
11422 $as_echo "$as_me: error: $1" >&2
11423 as_fn_exit $as_status
11424} # as_fn_error
11425
11426
11427# as_fn_set_status STATUS
11428# -----------------------
11429# Set $? to STATUS, without forking.
11430as_fn_set_status ()
11431{
11432 return $1
11433} # as_fn_set_status
11434
11435# as_fn_exit STATUS
11436# -----------------
11437# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11438as_fn_exit ()
11439{
11440 set +e
11441 as_fn_set_status $1
11442 exit $1
11443} # as_fn_exit
11444
11445# as_fn_unset VAR
11446# ---------------
11447# Portably unset VAR.
11448as_fn_unset ()
11449{
11450 { eval $1=; unset $1;}
11451}
11452as_unset=as_fn_unset
11453# as_fn_append VAR VALUE
11454# ----------------------
11455# Append the text in VALUE to the end of the definition contained in VAR. Take
11456# advantage of any shell optimizations that allow amortized linear growth over
11457# repeated appends, instead of the typical quadratic growth present in naive
11458# implementations.
11459if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11460 eval 'as_fn_append ()
11461 {
11462 eval $1+=\$2
11463 }'
11464else
11465 as_fn_append ()
11466 {
11467 eval $1=\$$1\$2
11468 }
11469fi # as_fn_append
11470
11471# as_fn_arith ARG...
11472# ------------------
11473# Perform arithmetic evaluation on the ARGs, and store the result in the
11474# global $as_val. Take advantage of shells that can avoid forks. The arguments
11475# must be portable across $(()) and expr.
11476if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11477 eval 'as_fn_arith ()
11478 {
11479 as_val=$(( $* ))
11480 }'
11481else
11482 as_fn_arith ()
11483 {
11484 as_val=`expr "$@" || test $? -eq 1`
11485 }
11486fi # as_fn_arith
11487
11488
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489if expr a : '\(a\)' >/dev/null 2>&1 &&
11490 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11491 as_expr=expr
11492else
11493 as_expr=false
11494fi
11495
11496if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11497 as_basename=basename
11498else
11499 as_basename=false
11500fi
11501
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011502if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11503 as_dirname=dirname
11504else
11505 as_dirname=false
11506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011507
Theodore Ts'oe1052142006-10-21 21:46:47 -040011508as_me=`$as_basename -- "$0" ||
11509$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11510 X"$0" : 'X\(//\)$' \| \
11511 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011512$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011513 sed '/^.*\/\([^/][^/]*\)\/*$/{
11514 s//\1/
11515 q
11516 }
11517 /^X\/\(\/\/\)$/{
11518 s//\1/
11519 q
11520 }
11521 /^X\/\(\/\).*/{
11522 s//\1/
11523 q
11524 }
11525 s/.*/./; q'`
11526
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011527# Avoid depending upon Character Ranges.
11528as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11529as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11530as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11531as_cr_digits='0123456789'
11532as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533
11534ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011535case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011537 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011538 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011539 xy) ECHO_C='\c';;
11540 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11541 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011542 esac;;
11543*)
11544 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011546
11547rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011548if test -d conf$$.dir; then
11549 rm -f conf$$.dir/conf$$.file
11550else
11551 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011552 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011554if (echo >conf$$.file) 2>/dev/null; then
11555 if ln -s conf$$.file conf$$ 2>/dev/null; then
11556 as_ln_s='ln -s'
11557 # ... but there are two gotchas:
11558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11560 # In both cases, we have to default to `cp -p'.
11561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11562 as_ln_s='cp -p'
11563 elif ln conf$$.file conf$$ 2>/dev/null; then
11564 as_ln_s=ln
11565 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011566 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011567 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568else
11569 as_ln_s='cp -p'
11570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11572rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011573
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011574
11575# as_fn_mkdir_p
11576# -------------
11577# Create "$as_dir" as a directory, including parents if necessary.
11578as_fn_mkdir_p ()
11579{
11580
11581 case $as_dir in #(
11582 -*) as_dir=./$as_dir;;
11583 esac
11584 test -d "$as_dir" || eval $as_mkdir_p || {
11585 as_dirs=
11586 while :; do
11587 case $as_dir in #(
11588 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11589 *) as_qdir=$as_dir;;
11590 esac
11591 as_dirs="'$as_qdir' $as_dirs"
11592 as_dir=`$as_dirname -- "$as_dir" ||
11593$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11594 X"$as_dir" : 'X\(//\)[^/]' \| \
11595 X"$as_dir" : 'X\(//\)$' \| \
11596 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11597$as_echo X"$as_dir" |
11598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11599 s//\1/
11600 q
11601 }
11602 /^X\(\/\/\)[^/].*/{
11603 s//\1/
11604 q
11605 }
11606 /^X\(\/\/\)$/{
11607 s//\1/
11608 q
11609 }
11610 /^X\(\/\).*/{
11611 s//\1/
11612 q
11613 }
11614 s/.*/./; q'`
11615 test -d "$as_dir" && break
11616 done
11617 test -z "$as_dirs" || eval "mkdir $as_dirs"
11618 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11619
11620
11621} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011623 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624else
11625 test -d ./-p && rmdir ./-p
11626 as_mkdir_p=false
11627fi
11628
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011629if test -x / >/dev/null 2>&1; then
11630 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011631else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011632 if ls -dL / >/dev/null 2>&1; then
11633 as_ls_L_option=L
11634 else
11635 as_ls_L_option=
11636 fi
11637 as_test_x='
11638 eval sh -c '\''
11639 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011641 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011642 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011643 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011644 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011645 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011646 ???[sx]*):;;*)false;;esac;fi
11647 '\'' sh
11648 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011649fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011650as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651
11652# Sed expression to map a string onto a valid CPP name.
11653as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11654
11655# Sed expression to map a string onto a valid variable name.
11656as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11657
11658
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011659exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011660## ----------------------------------- ##
11661## Main body of $CONFIG_STATUS script. ##
11662## ----------------------------------- ##
11663_ASEOF
11664test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11667# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669# values after options handling.
11670ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011671This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011672generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673
11674 CONFIG_FILES = $CONFIG_FILES
11675 CONFIG_HEADERS = $CONFIG_HEADERS
11676 CONFIG_LINKS = $CONFIG_LINKS
11677 CONFIG_COMMANDS = $CONFIG_COMMANDS
11678 $ $0 $@
11679
Theodore Ts'oe1052142006-10-21 21:46:47 -040011680on `(hostname || uname -n) 2>/dev/null | sed 1q`
11681"
11682
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011683_ACEOF
11684
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011685case $ac_config_files in *"
11686"*) set x $ac_config_files; shift; ac_config_files=$*;;
11687esac
11688
11689
11690
11691cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011693config_files="$ac_config_files"
11694config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011695
Theodore Ts'oe1052142006-10-21 21:46:47 -040011696_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011700\`$as_me' instantiates files and other configuration actions
11701from templates according to the current configuration. Unless the files
11702and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011705
11706 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011707 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011708 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011709 -q, --quiet, --silent
11710 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711 -d, --debug don't remove temporary files
11712 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011713 --file=FILE[:TEMPLATE]
11714 instantiate the configuration file FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011715
11716Configuration files:
11717$config_files
11718
11719Configuration commands:
11720$config_commands
11721
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723
Theodore Ts'oe1052142006-10-21 21:46:47 -040011724_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011726ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011727ac_cs_version="\\
11728config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011729configured by $0, generated by GNU Autoconf 2.65,
11730 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011732Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733This config.status script is free software; the Free Software Foundation
11734gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011735
11736ac_pwd='$ac_pwd'
11737srcdir='$srcdir'
11738INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011739AWK='$AWK'
11740test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011741_ACEOF
11742
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11744# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745ac_need_defaults=:
11746while test $# != 0
11747do
11748 case $1 in
11749 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011750 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11751 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752 ac_shift=:
11753 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011754 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755 ac_option=$1
11756 ac_optarg=$2
11757 ac_shift=shift
11758 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011759 esac
11760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011761 case $ac_option in
11762 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011763 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11764 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011765 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011766 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011767 --config | --confi | --conf | --con | --co | --c )
11768 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011769 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011770 debug=: ;;
11771 --file | --fil | --fi | --f )
11772 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011773 case $ac_optarg in
11774 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11775 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011778 --he | --h | --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011779 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11782 ac_cs_silent=: ;;
11783
11784 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011785 -*) as_fn_error "unrecognized option: \`$1'
11786Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011787
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011788 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011789 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011790
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011791 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011792 shift
11793done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011795ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011796
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797if $ac_cs_silent; then
11798 exec 6>/dev/null
11799 ac_configure_extra_args="$ac_configure_extra_args --silent"
11800fi
11801
11802_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011803cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011804if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011805 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11806 shift
11807 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11808 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011811fi
11812
11813_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011814cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011815exec 5>>config.log
11816{
11817 echo
11818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11819## Running $as_me. ##
11820_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011821 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011823
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011825cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011826#
Theodore Ts'oe1052142006-10-21 21:46:47 -040011827# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011829# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011830 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011831 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011832 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011833 # Capture the value of LINGUAS because we need it to compute CATALOGS.
11834 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011836
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011837_ACEOF
11838
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011839cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011840
11841# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842for ac_config_target in $ac_config_targets
11843do
Theodore Ts'oe1052142006-10-21 21:46:47 -040011844 case $ac_config_target in
11845 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
11846 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
11847
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011848 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011849 esac
11850done
11851
Theodore Ts'oe1052142006-10-21 21:46:47 -040011852
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011853# If the user did not use the arguments to specify the items to instantiate,
11854# then the envvar interface is used. Set only those that are not.
11855# We use the long form for the default assignment because of an extremely
11856# bizarre bug on SunOS 4.1.3.
11857if $ac_need_defaults; then
11858 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11859 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11860fi
11861
11862# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865# Hook for its removal unless debugging.
11866# Note that there is a small window in which the directory will not be cleaned:
11867# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011868$debug ||
11869{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011870 tmp=
11871 trap 'exit_status=$?
11872 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11873' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011874 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876# Create a (secure) tmp directory for tmp files.
11877
11878{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011879 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880 test -n "$tmp" && test -d "$tmp"
11881} ||
11882{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011883 tmp=./conf$$-$RANDOM
11884 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011885} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011887# Set up the scripts for CONFIG_FILES section.
11888# No need to generate them if there are no CONFIG_FILES.
11889# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011891
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011892if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
11893 ac_cs_awk_getline=:
11894 ac_cs_awk_pipe_init=
11895 ac_cs_awk_read_file='
11896 while ((getline aline < (F[key])) > 0)
11897 print(aline)
11898 close(F[key])'
11899 ac_cs_awk_pipe_fini=
11900else
11901 ac_cs_awk_getline=false
11902 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
11903 ac_cs_awk_read_file='
11904 print "|#_!!_#|"
11905 print "cat " F[key] " &&"
11906 '$ac_cs_awk_pipe_init
11907 # The final `:' finishes the AND list.
11908 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
11909fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011910ac_cr=`echo X | tr X '\015'`
11911# On cygwin, bash can eat \r inside `` if the user requested igncr.
11912# But we know of no other shell where ac_cr would be empty at this
11913# point, so we can use a bashism as a fallback.
11914if test "x$ac_cr" = x; then
11915 eval ac_cr=\$\'\\r\'
11916fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11918if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011919 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920else
11921 ac_cs_awk_cr=$ac_cr
11922fi
11923
11924echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925_ACEOF
11926
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011927# Create commands to substitute file output variables.
11928{
11929 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
11930 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
11931 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
11932 echo "_ACAWK" &&
11933 echo "_ACEOF"
11934} >conf$$files.sh &&
11935. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011937rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011938
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011939{
11940 echo "cat >conf$$subs.awk <<_ACEOF" &&
11941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11942 echo "_ACEOF"
11943} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011944 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011945ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011946ac_delim='%!_!# '
11947for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011948 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011949 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011950
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11952 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011953 break
11954 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011955 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040011956 else
11957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011960rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040011961
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11963cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040011964_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965sed -n '
11966h
11967s/^/S["/; s/!.*/"]=/
11968p
11969g
11970s/^[^!]*!//
11971:repl
11972t repl
11973s/'"$ac_delim"'$//
11974t delim
11975:nl
11976h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011977s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978t more1
11979s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11980p
11981n
11982b repl
11983:more1
11984s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11985p
11986g
11987s/.\{148\}//
11988t nl
11989:delim
11990h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011991s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011992t more2
11993s/["\\]/\\&/g; s/^/"/; s/$/"/
11994p
11995b
11996:more2
11997s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11998p
11999g
12000s/.\{148\}//
12001t delim
12002' <conf$$subs.awk | sed '
12003/^[^""]/{
12004 N
12005 s/\n//
12006}
12007' >>$CONFIG_STATUS || ac_write_fail=1
12008rm -f conf$$subs.awk
12009cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12010_ACAWK
12011cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12012 for (key in S) S_is_set[key] = 1
12013 FS = ""
12014 \$ac_cs_awk_pipe_init
12015}
12016{
12017 line = $ 0
12018 nfields = split(line, field, "@")
12019 substed = 0
12020 len = length(field[1])
12021 for (i = 2; i < nfields; i++) {
12022 key = field[i]
12023 keylen = length(key)
12024 if (S_is_set[key]) {
12025 value = S[key]
12026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12027 len += length(value) + length(field[++i])
12028 substed = 1
12029 } else
12030 len += 1 + keylen
12031 }
12032 if (nfields == 3 && !substed) {
12033 key = field[2]
12034 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12035 \$ac_cs_awk_read_file
12036 next
12037 }
12038 }
12039 print line
12040}
12041\$ac_cs_awk_pipe_fini
12042_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012044cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12045if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12046 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12047else
12048 cat
12049fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012052
12053# VPATH may cause trouble with some makes, so we remove $(srcdir),
12054# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12055# trailing colons and then remove the whole line if VPATH becomes empty
12056# (actually we leave an empty line to preserve line numbers).
12057if test "x$srcdir" = x.; then
12058 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12059s/:*\$(srcdir):*/:/
12060s/:*\${srcdir}:*/:/
12061s/:*@srcdir@:*/:/
12062s/^\([^=]*=[ ]*\):*/\1/
12063s/:*$//
12064s/^[^=]*=[ ]*$//
12065}'
12066fi
12067
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012069fi # test -n "$CONFIG_FILES"
12070
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012072eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12073shift
12074for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012075do
12076 case $ac_tag in
12077 :[FHLC]) ac_mode=$ac_tag; continue;;
12078 esac
12079 case $ac_mode$ac_tag in
12080 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012081 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082 :[FH]-) ac_tag=-:-;;
12083 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12084 esac
12085 ac_save_IFS=$IFS
12086 IFS=:
12087 set x $ac_tag
12088 IFS=$ac_save_IFS
12089 shift
12090 ac_file=$1
12091 shift
12092
12093 case $ac_mode in
12094 :L) ac_source=$1;;
12095 :[FH])
12096 ac_file_inputs=
12097 for ac_f
12098 do
12099 case $ac_f in
12100 -) ac_f="$tmp/stdin";;
12101 *) # Look for the file first in the build tree, then in the source tree
12102 # (if the path is not absolute). The absolute path cannot be DOS-style,
12103 # because $ac_f cannot contain `:'.
12104 test -f "$ac_f" ||
12105 case $ac_f in
12106 [\\/$]*) false;;
12107 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12108 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012110 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012111 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012112 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113 done
12114
12115 # Let's still pretend it is `configure' which instantiates (i.e., don't
12116 # use $as_me), people would be surprised to read:
12117 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118 configure_input='Generated from '`
12119 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12120 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012121 if test x"$ac_file" != x-; then
12122 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012124$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012125 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012126 # Neutralize special characters interpreted by sed in replacement strings.
12127 case $configure_input in #(
12128 *\&* | *\|* | *\\* )
12129 ac_sed_conf_input=`$as_echo "$configure_input" |
12130 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12131 *) ac_sed_conf_input=$configure_input;;
12132 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012133
12134 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012136 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137 esac
12138 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139 esac
12140
Theodore Ts'oe1052142006-10-21 21:46:47 -040012141 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12143 X"$ac_file" : 'X\(//\)[^/]' \| \
12144 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12148 s//\1/
12149 q
12150 }
12151 /^X\(\/\/\)[^/].*/{
12152 s//\1/
12153 q
12154 }
12155 /^X\(\/\/\)$/{
12156 s//\1/
12157 q
12158 }
12159 /^X\(\/\).*/{
12160 s//\1/
12161 q
12162 }
12163 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012164 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012165 ac_builddir=.
12166
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167case "$ac_dir" in
12168.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12169*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012170 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012171 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012172 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173 case $ac_top_builddir_sub in
12174 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12175 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12176 esac ;;
12177esac
12178ac_abs_top_builddir=$ac_pwd
12179ac_abs_builddir=$ac_pwd$ac_dir_suffix
12180# for backward compatibility:
12181ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182
12183case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012184 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012185 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012186 ac_top_srcdir=$ac_top_builddir_sub
12187 ac_abs_top_srcdir=$ac_pwd ;;
12188 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012190 ac_top_srcdir=$srcdir
12191 ac_abs_top_srcdir=$srcdir ;;
12192 *) # Relative name.
12193 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12194 ac_top_srcdir=$ac_top_build_prefix$srcdir
12195 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012197ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199
Theodore Ts'oe1052142006-10-21 21:46:47 -040012200 case $ac_mode in
12201 :F)
12202 #
12203 # CONFIG_FILE
12204 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012205
12206 case $INSTALL in
12207 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012208 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012213# If the template does not know about datarootdir, expand it.
12214# FIXME: This hack should be removed a few years after 2.60.
12215ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012216ac_sed_dataroot='
12217/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218 p
12219 q
12220}
12221/@datadir@/p
12222/@docdir@/p
12223/@infodir@/p
12224/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012225/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012226case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012227*datarootdir*) ac_datarootdir_seen=yes;;
12228*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012230$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012231_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012233 ac_datarootdir_hack='
12234 s&@datadir@&$datadir&g
12235 s&@docdir@&$docdir&g
12236 s&@infodir@&$infodir&g
12237 s&@localedir@&$localedir&g
12238 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012239 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012240esac
12241_ACEOF
12242
12243# Neutralize VPATH when `$srcdir' = `.'.
12244# Shell code in configure.ac might set extrasub.
12245# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12247ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248$extrasub
12249_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251:t
12252/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012253s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012254s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012256s&@srcdir@&$ac_srcdir&;t t
12257s&@abs_srcdir@&$ac_abs_srcdir&;t t
12258s&@top_srcdir@&$ac_top_srcdir&;t t
12259s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12260s&@builddir@&$ac_builddir&;t t
12261s&@abs_builddir@&$ac_abs_builddir&;t t
12262s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12263s&@INSTALL@&$ac_INSTALL&;t t
12264$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012265"
12266eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12267if $ac_cs_awk_getline; then
12268 $AWK -f "$tmp/subs.awk"
12269else
12270 $AWK -f "$tmp/subs.awk" | $SHELL
12271fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012272 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012273
Theodore Ts'oe1052142006-10-21 21:46:47 -040012274test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12275 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12276 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012280which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012281
Theodore Ts'oe1052142006-10-21 21:46:47 -040012282 rm -f "$tmp/stdin"
12283 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012284 -) cat "$tmp/out" && rm -f "$tmp/out";;
12285 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12286 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012287 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012288 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289
12290
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012291 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012292$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012293 ;;
12294 esac
12295
12296
12297 case $ac_file$ac_mode in
12298 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012299 for ac_file in $CONFIG_FILES; do
12300 # Support "outfile[:infile[:infile...]]"
12301 case "$ac_file" in
12302 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012303 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012304 # PO directories have a Makefile.in generated from Makefile.in.in.
12305 case "$ac_file" in */Makefile.in)
12306 # Adjust a relative srcdir.
12307 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12308 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12309 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12310 # In autoconf-2.13 it is called $ac_given_srcdir.
12311 # In autoconf-2.50 it is called $srcdir.
12312 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12313 case "$ac_given_srcdir" in
12314 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12315 /*) top_srcdir="$ac_given_srcdir" ;;
12316 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12317 esac
12318 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12319 rm -f "$ac_dir/POTFILES"
12320 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12321 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 -050012322 POMAKEFILEDEPS="POTFILES.in"
12323 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012324 # on $ac_dir but don't depend on user-specified configuration
12325 # parameters.
12326 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12327 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012329 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12330 fi
12331 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12332 # Hide the ALL_LINGUAS assigment from automake.
12333 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012334 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12335 else
12336 # The set of available languages was given in configure.in.
12337 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012338 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012339 # Compute POFILES
12340 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12341 # Compute UPDATEPOFILES
12342 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12343 # Compute DUMMYPOFILES
12344 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12345 # Compute GMOFILES
12346 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012347 case "$ac_given_srcdir" in
12348 .) srcdirpre= ;;
12349 *) srcdirpre='$(srcdir)/' ;;
12350 esac
12351 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012352 UPDATEPOFILES=
12353 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012354 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012355 for lang in $ALL_LINGUAS; do
12356 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012357 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12358 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012359 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012360 done
12361 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12362 # environment variable.
12363 INST_LINGUAS=
12364 if test -n "$ALL_LINGUAS"; then
12365 for presentlang in $ALL_LINGUAS; do
12366 useit=no
12367 if test "%UNSET%" != "$LINGUAS"; then
12368 desiredlanguages="$LINGUAS"
12369 else
12370 desiredlanguages="$ALL_LINGUAS"
12371 fi
12372 for desiredlang in $desiredlanguages; do
12373 # Use the presentlang catalog if desiredlang is
12374 # a. equal to presentlang, or
12375 # b. a variant of presentlang (because in this case,
12376 # presentlang can be used as a fallback for messages
12377 # which are not translated in the desiredlang catalog).
12378 case "$desiredlang" in
12379 "$presentlang"*) useit=yes;;
12380 esac
12381 done
12382 if test $useit = yes; then
12383 INST_LINGUAS="$INST_LINGUAS $presentlang"
12384 fi
12385 done
12386 fi
12387 CATALOGS=
12388 if test -n "$INST_LINGUAS"; then
12389 for lang in $INST_LINGUAS; do
12390 CATALOGS="$CATALOGS $lang.gmo"
12391 done
12392 fi
12393 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012394 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 -040012395 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12396 if test -f "$f"; then
12397 case "$f" in
12398 *.orig | *.bak | *~) ;;
12399 *) cat "$f" >> "$ac_dir/Makefile" ;;
12400 esac
12401 fi
12402 done
12403 fi
12404 ;;
12405 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012406 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012407
Theodore Ts'oe1052142006-10-21 21:46:47 -040012408 esac
12409done # for ac_tag
12410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012412as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012413_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012414ac_clean_files=$ac_clean_files_save
12415
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012416test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012417 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419
12420# configure is writing to config.log, and then calls config.status.
12421# config.status does its own redirection, appending to config.log.
12422# Unfortunately, on DOS this fails, as config.log is still kept open
12423# by configure, so config.status won't be able to write to it; its
12424# output is simply discarded. So we exec the FD to /dev/null,
12425# effectively closing config.log, so it can be properly (re)opened and
12426# appended to by config.status. When coming back to configure, we
12427# need to make the FD available again.
12428if test "$no_create" != yes; then
12429 ac_cs_success=:
12430 ac_config_status_args=
12431 test "$silent" = yes &&
12432 ac_config_status_args="$ac_config_status_args --quiet"
12433 exec 5>/dev/null
12434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12435 exec 5>>config.log
12436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12437 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012438 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012440if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012442$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12443fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012444
Theodore Ts'oee683a12005-02-05 15:53:56 -050012445if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi