blob: 35dd5ce6b0306615fe98eba1788c36327bd5562a [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
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400599INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100600DO_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
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400657EGREP
658GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100659RANLIB
660MSGMERGE
661XGETTEXT
662GMSGFMT
663MSGFMT
664USE_NLS
665MKINSTALLDIRS
666INSTALL_DATA
667INSTALL_SCRIPT
668INSTALL_PROGRAM
669SET_MAKE
670VERSION
671PACKAGE
672GETTEXT_PACKAGE
673UUIDD_CMT
674E2INITRD_MAN
675E2INITRD_PROG
676FSCK_MAN
677FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500678DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100679RESIZER_CMT
680IMAGER_CMT
681DEBUGFS_CMT
Aditya Kalif239fef2011-07-20 11:40:02 -0700682QUOTA_CMT
683DEPPROFILED_LIBQUOTA
684PROFILED_LIBQUOTA
685DEPSTATIC_LIBQUOTA
686STATIC_LIBQUOTA
687DEPLIBQUOTA
688LIBQUOTA
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100689BLKID_CMT
690DEPPROFILED_LIBBLKID
691PROFILED_LIBBLKID
692DEPSTATIC_LIBBLKID
693STATIC_LIBBLKID
694DEPLIBBLKID
695LIBBLKID
696UUID_CMT
697DEPPROFILED_LIBUUID
698PROFILED_LIBUUID
699DEPSTATIC_LIBUUID
700STATIC_LIBUUID
701DEPLIBUUID
702LIBUUID
703PKG_CONFIG
704TEST_IO_CMT
705PRIVATE_LIBS_CMT
706LDFLAG_DYNAMIC
707PROFILED_LIB_EXT
708STATIC_LIB_EXT
709LIB_EXT
710CHECKER_CMT
711PROFILE_CMT
712BSDLIB_CMT
713ELF_CMT
714HTREE_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400715Q
716E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400717LINK_BUILD_FLAGS
718LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400721RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500722DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723OBJEXT
724EXEEXT
725ac_ct_CC
726CPPFLAGS
727LDFLAGS
728CFLAGS
729CC
730host_os
731host_vendor
732host_cpu
733host
734build_os
735build_vendor
736build_cpu
737build
738E2FSPROGS_PKGVER
739E2FSPROGS_VERSION
740E2FSPROGS_DAY
741E2FSPROGS_MONTH
742E2FSPROGS_YEAR
743target_alias
744host_alias
745build_alias
746LIBS
747ECHO_T
748ECHO_N
749ECHO_C
750DEFS
751mandir
752localedir
753libdir
754psdir
755pdfdir
756dvidir
757htmldir
758infodir
759docdir
760oldincludedir
761includedir
762localstatedir
763sharedstatedir
764sysconfdir
765datadir
766datarootdir
767libexecdir
768sbindir
769bindir
770program_transform_name
771prefix
772exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500773PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100774PACKAGE_BUGREPORT
775PACKAGE_STRING
776PACKAGE_VERSION
777PACKAGE_TARNAME
778PACKAGE_NAME
779PATH_SEPARATOR
780SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400781ac_subst_files='MCONFIG
782MAKEFILE_ELF
783MAKEFILE_BSDLIB
784MAKEFILE_PROFILE
785MAKEFILE_CHECKER
786MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400787ASM_TYPES_HEADER
788PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100789ac_user_opts='
790enable_option_checking
791with_diet_libc
792with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100793with_ccopts
794with_ldopts
795with_root_prefix
796enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400797enable_symlink_install
798enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400799enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100800enable_compression
801enable_htree
802enable_elf_shlibs
803enable_bsd_shlibs
804enable_profile
805enable_checker
806enable_jbd_debug
807enable_blkid_debug
808enable_testio_debug
809enable_libuuid
810enable_libblkid
Aditya Kalif239fef2011-07-20 11:40:02 -0700811enable_libquota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100812enable_debugfs
813enable_imager
814enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500815enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100816enable_fsck
817enable_e2initrd_helper
818enable_tls
819enable_uuidd
820enable_nls
821with_gnu_ld
822enable_rpath
823with_libiconv_prefix
824with_included_gettext
825with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400826with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100827'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400828 ac_precious_vars='build_alias
829host_alias
830target_alias
831CC
832CFLAGS
833LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400834LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400835CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400836CPP
837PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400838
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000839
840# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500841ac_init_help=
842ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100843ac_unrecognized_opts=
844ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000845# The variables have the same names as the options, with
846# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500847cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000850no_recursion=
851prefix=NONE
852program_prefix=NONE
853program_suffix=NONE
854program_transform_name=s,x,x,
855silent=
856site=
857srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000858verbose=
859x_includes=NONE
860x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500861
862# Installation directory options.
863# These are left unexpanded so users can "make install exec_prefix=/foo"
864# and all the variables that are supposed to be based on exec_prefix
865# by default will actually change.
866# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400867# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000868bindir='${exec_prefix}/bin'
869sbindir='${exec_prefix}/sbin'
870libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400871datarootdir='${prefix}/share'
872datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000873sysconfdir='${prefix}/etc'
874sharedstatedir='${prefix}/com'
875localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000876includedir='${prefix}/include'
877oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400878docdir='${datarootdir}/doc/${PACKAGE}'
879infodir='${datarootdir}/info'
880htmldir='${docdir}'
881dvidir='${docdir}'
882pdfdir='${docdir}'
883psdir='${docdir}'
884libdir='${exec_prefix}/lib'
885localedir='${datarootdir}/locale'
886mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000887
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000888ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400889ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890for ac_option
891do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000892 # If the previous option needs an argument, assign it.
893 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400894 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 ac_prev=
896 continue
897 fi
898
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899 case $ac_option in
900 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
901 *) ac_optarg=yes ;;
902 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000903
904 # Accept the important Cygnus configure options, so we can diagnose typos.
905
Theodore Ts'oe1052142006-10-21 21:46:47 -0400906 case $ac_dashdash$ac_option in
907 --)
908 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
911 ac_prev=bindir ;;
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000914
915 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500925 cache_file=$ac_optarg ;;
926
927 --config-cache | -C)
928 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929
Theodore Ts'oe1052142006-10-21 21:46:47 -0400930 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000931 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500933 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
941
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000942 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000944 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500946 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
950 *"
951"enable_$ac_useropt"
952"*) ;;
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
955 esac
956 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400957
958 -docdir | --docdir | --docdi | --doc | --do)
959 ac_prev=docdir ;;
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
961 docdir=$ac_optarg ;;
962
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
964 ac_prev=dvidir ;;
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
966 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000967
968 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000970 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500972 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
976 *"
977"enable_$ac_useropt"
978"*) ;;
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
981 esac
982 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000983
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
995 with_gas=yes ;;
996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 -help | --help | --hel | --he | -h)
998 ac_init_help=long ;;
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001003
1004 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001005 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001007 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001008
Theodore Ts'oe1052142006-10-21 21:46:47 -04001009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1010 ac_prev=htmldir ;;
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1012 | --ht=*)
1013 htmldir=$ac_optarg ;;
1014
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001020 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001021
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1023 ac_prev=infodir ;;
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001025 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001026
1027 -libdir | --libdir | --libdi | --libd)
1028 ac_prev=libdir ;;
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001030 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001031
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001037 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001038
Theodore Ts'oe1052142006-10-21 21:46:47 -04001039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1043
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001044 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001045 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001049 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001050
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1052 ac_prev=mandir ;;
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001054 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001055
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1058 with_fp=no ;;
1059
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001061 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001062 no_create=yes ;;
1063
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 no_recursion=yes ;;
1067
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001076
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1078 ac_prev=prefix ;;
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001087 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001088
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001095
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001111 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112
Theodore Ts'oe1052142006-10-21 21:46:47 -04001113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1114 ac_prev=pdfdir ;;
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1117
1118 -psdir | --psdir | --psdi | --psd | --ps)
1119 ac_prev=psdir ;;
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 psdir=$ac_optarg ;;
1122
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1125 silent=yes ;;
1126
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1128 ac_prev=sbindir ;;
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1130 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001132
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1136 | --sha | --sh)
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1141 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001142 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001143
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001144 -site | --site | --sit)
1145 ac_prev=site ;;
1146 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1150 ac_prev=srcdir ;;
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001153
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001160
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001164 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001165
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 verbose=yes ;;
1168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001171
1172 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001176 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1180 *"
1181"with_$ac_useropt"
1182"*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001187
1188 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001192 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1196 *"
1197"with_$ac_useropt"
1198"*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001203
1204 --x)
1205 # Obsolete; use --with-x.
1206 with_x=yes ;;
1207
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001213 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001214
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001220 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001222 -*) as_fn_error "unrecognized option: \`$ac_option'
1223Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224 ;;
1225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001226 *=*)
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1232 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001233 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234 export $ac_envvar ;;
1235
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001236 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242 ;;
1243
1244 esac
1245done
1246
1247if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001249 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001250fi
1251
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001252if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1254 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001255 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1257 esac
1258fi
1259
1260# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001261for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001265do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001266 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001267 # Remove trailing slashes.
1268 case $ac_val in
1269 */ )
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1272 esac
1273 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001274 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001277 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001278 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001279done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281# There might be people who depend on the old broken behavior: `$host'
1282# used to hold the argument of --host etc.
1283# FIXME: To remove some day.
1284build=$build_alias
1285host=$host_alias
1286target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001288# FIXME: To remove some day.
1289if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001292 $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 -05001293 If a cross compiler is detected then cross compile mode will be used." >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1295 cross_compiling=yes
1296 fi
1297fi
1298
1299ac_tool_prefix=
1300test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301
1302test "$silent" = yes && exec 6>/dev/null
1303
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304
Theodore Ts'oe1052142006-10-21 21:46:47 -04001305ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306ac_ls_di=`ls -di .` &&
1307ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001308 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001309test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001310 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001311
1312
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001313# Find the source files, if location was not specified.
1314if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001316 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)[^/].*/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\/\)$/{
1332 s//\1/
1333 q
1334 }
1335 /^X\(\/\).*/{
1336 s//\1/
1337 q
1338 }
1339 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001340 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001341 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001342 srcdir=..
1343 fi
1344else
1345 ac_srcdir_defaulted=no
1346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001347if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001349 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001350fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001351ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1352ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001354 pwd)`
1355# When building in place, set srcdir=.
1356if test "$ac_abs_confdir" = "$ac_pwd"; then
1357 srcdir=.
1358fi
1359# Remove unnecessary trailing slashes from srcdir.
1360# Double slashes in file names in object file debugging info
1361# mess up M-x gdb in Emacs.
1362case $srcdir in
1363*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364esac
1365for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1370done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001372#
1373# Report the --help message.
1374#
1375if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1378 cat <<_ACEOF
1379\`configure' configures this package to adapt to many kinds of systems.
1380
1381Usage: $0 [OPTION]... [VAR=VALUE]...
1382
1383To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384VAR=VALUE. See below for descriptions of some of the useful variables.
1385
1386Defaults for the options are specified in brackets.
1387
1388Configuration:
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001399Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001401 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001403 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001404
1405By default, \`make install' will install all the files in
1406\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408for instance \`--prefix=\$HOME'.
1409
1410For better control, use the options below.
1411
1412Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432_ACEOF
1433
1434 cat <<\_ACEOF
1435
1436System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439_ACEOF
1440fi
1441
1442if test -n "$ac_init_help"; then
1443
1444 cat <<\_ACEOF
1445
1446Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001447 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001450 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001451 --enable-symlink-install use symlinks when installing instead of hard links
1452 --enable-symlink-build use symlinks while building instead of hard links
1453 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001454 --enable-compression enable EXPERIMENTAL compression support
1455 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001456 --enable-elf-shlibs select ELF shared libraries
1457 --enable-bsd-shlibs select BSD shared libraries
1458 --enable-profile build profiling libraries
1459 --enable-checker build checker libraries
1460 --enable-jbd-debug enable journal debugging
1461 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001462 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001463 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001464 --disable-libblkid do not build private blkid library
Aditya Kalif239fef2011-07-20 11:40:02 -07001465 --disable-libquota do not build private quota library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001466 --disable-debugfs disable support of debugfs program
1467 --disable-imager disable support of e2image program
1468 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001469 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 --enable-fsck build fsck wrapper program
1471 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001472 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001473 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474 --disable-nls do not use Native Language Support
1475 --disable-rpath do not hardcode runtime library paths
1476
1477Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001480 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001481 --with-cc no longer supported, use CC= instead
1482 --with-ccopts no longer supported, use CFLAGS= instead
1483 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1485 --with-gnu-ld assume the C compiler uses GNU ld default=no
1486 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1487 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1488 --with-included-gettext use the GNU gettext library included here
1489 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1490 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001491 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001492
1493Some influential environment variables:
1494 CC C compiler command
1495 CFLAGS C compiler flags
1496 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1497 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001498 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001499 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001500 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001501 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001502 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001503
1504Use these variables to override the choices made by `configure' or to help
1505it to find libraries and programs with nonstandard names/locations.
1506
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001507Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001509ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001510fi
1511
1512if test "$ac_init_help" = "recursive"; then
1513 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001514 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001515 test -d "$ac_dir" ||
1516 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518 ac_builddir=.
1519
Theodore Ts'oe1052142006-10-21 21:46:47 -04001520case "$ac_dir" in
1521.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001523 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001524 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001525 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530esac
1531ac_abs_top_builddir=$ac_pwd
1532ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533# for backward compatibility:
1534ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535
1536case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001537 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001538 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001550ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551
Theodore Ts'oe1052142006-10-21 21:46:47 -04001552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001561 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 done
1565fi
1566
Theodore Ts'oe1052142006-10-21 21:46:47 -04001567test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568if $ac_init_version; then
1569 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001570configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001571generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001573Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574This configure script is free software; the Free Software Foundation
1575gives unlimited permission to copy, distribute and modify it.
1576_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001577 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001579
1580## ------------------------ ##
1581## Autoconf initialization. ##
1582## ------------------------ ##
1583
1584# ac_fn_c_try_compile LINENO
1585# --------------------------
1586# Try to compile conftest.$ac_ext, and return whether this succeeded.
1587ac_fn_c_try_compile ()
1588{
1589 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590 rm -f conftest.$ac_objext
1591 if { { ac_try="$ac_compile"
1592case "(($ac_try" in
1593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594 *) ac_try_echo=$ac_try;;
1595esac
1596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597$as_echo "$ac_try_echo"; } >&5
1598 (eval "$ac_compile") 2>conftest.err
1599 ac_status=$?
1600 if test -s conftest.err; then
1601 grep -v '^ *+' conftest.err >conftest.er1
1602 cat conftest.er1 >&5
1603 mv -f conftest.er1 conftest.err
1604 fi
1605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606 test $ac_status = 0; } && {
1607 test -z "$ac_c_werror_flag" ||
1608 test ! -s conftest.err
1609 } && test -s conftest.$ac_objext; then :
1610 ac_retval=0
1611else
1612 $as_echo "$as_me: failed program was:" >&5
1613sed 's/^/| /' conftest.$ac_ext >&5
1614
1615 ac_retval=1
1616fi
1617 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001618 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001619
1620} # ac_fn_c_try_compile
1621
1622# ac_fn_c_try_link LINENO
1623# -----------------------
1624# Try to link conftest.$ac_ext, and return whether this succeeded.
1625ac_fn_c_try_link ()
1626{
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest$ac_exeext
1629 if { { ac_try="$ac_link"
1630case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633esac
1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635$as_echo "$ac_try_echo"; } >&5
1636 (eval "$ac_link") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest$ac_exeext && {
1648 test "$cross_compiling" = yes ||
1649 $as_test_x conftest$ac_exeext
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660 # interfere with the next link command; also delete a directory that is
1661 # left behind by Apple's compiler. We do this before executing the actions.
1662 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001664 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001665
1666} # ac_fn_c_try_link
1667
1668# ac_fn_c_try_cpp LINENO
1669# ----------------------
1670# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1671ac_fn_c_try_cpp ()
1672{
1673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1674 if { { ac_try="$ac_cpp conftest.$ac_ext"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } >/dev/null && {
1690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 }; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699fi
1700 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001701 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001702
1703} # ac_fn_c_try_cpp
1704
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001705# ac_fn_c_try_run LINENO
1706# ----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1708# that executables *can* be run.
1709ac_fn_c_try_run ()
1710{
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>&5
1720 ac_status=$?
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1723 { { case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_try") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; }; }; then :
1733 ac_retval=0
1734else
1735 $as_echo "$as_me: program exited with status $ac_status" >&5
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=$ac_status
1740fi
1741 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743 as_fn_set_status $ac_retval
1744
1745} # ac_fn_c_try_run
1746
1747# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1748# -------------------------------------------
1749# Tests whether TYPE exists after having included INCLUDES, setting cache
1750# variable VAR accordingly.
1751ac_fn_c_check_type ()
1752{
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1755$as_echo_n "checking for $2... " >&6; }
1756if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1757 $as_echo_n "(cached) " >&6
1758else
1759 eval "$3=no"
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761/* end confdefs.h. */
1762$4
1763int
1764main ()
1765{
1766if (sizeof ($2))
1767 return 0;
1768 ;
1769 return 0;
1770}
1771_ACEOF
1772if ac_fn_c_try_compile "$LINENO"; then :
1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776int
1777main ()
1778{
1779if (sizeof (($2)))
1780 return 0;
1781 ;
1782 return 0;
1783}
1784_ACEOF
1785if ac_fn_c_try_compile "$LINENO"; then :
1786
1787else
1788 eval "$3=yes"
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1798
1799} # ac_fn_c_check_type
1800
1801# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists and can be compiled using the include files in
1804# INCLUDES, setting the cache variable VAR accordingly.
1805ac_fn_c_check_header_compile ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
1810if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1811 $as_echo_n "(cached) " >&6
1812else
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814/* end confdefs.h. */
1815$4
1816#include <$2>
1817_ACEOF
1818if ac_fn_c_try_compile "$LINENO"; then :
1819 eval "$3=yes"
1820else
1821 eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827$as_echo "$ac_res" >&6; }
1828 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829
1830} # ac_fn_c_check_header_compile
1831
1832# ac_fn_c_check_func LINENO FUNC VAR
1833# ----------------------------------
1834# Tests whether FUNC exists, setting the cache variable VAR accordingly
1835ac_fn_c_check_func ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839$as_echo_n "checking for $2... " >&6; }
1840if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h. */
1845/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1847#define $2 innocuous_$2
1848
1849/* System header to define __stub macros and hopefully few prototypes,
1850 which can conflict with char $2 (); below.
1851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1852 <limits.h> exists even on freestanding compilers. */
1853
1854#ifdef __STDC__
1855# include <limits.h>
1856#else
1857# include <assert.h>
1858#endif
1859
1860#undef $2
1861
1862/* Override any GCC internal prototype to avoid an error.
1863 Use char because int might match the return type of a GCC
1864 builtin and then its argument prototype would still apply. */
1865#ifdef __cplusplus
1866extern "C"
1867#endif
1868char $2 ();
1869/* The GNU C library defines this for functions which it implements
1870 to always fail with ENOSYS. Some functions are actually named
1871 something starting with __ and the normal name is an alias. */
1872#if defined __stub_$2 || defined __stub___$2
1873choke me
1874#endif
1875
1876int
1877main ()
1878{
1879return $2 ();
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_link "$LINENO"; then :
1885 eval "$3=yes"
1886else
1887 eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext \
1890 conftest$ac_exeext conftest.$ac_ext
1891fi
1892eval ac_res=\$$3
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894$as_echo "$ac_res" >&6; }
1895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1896
1897} # ac_fn_c_check_func
1898
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001899# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1900# -------------------------------------------------------
1901# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1902# the include files in INCLUDES and setting the cache variable VAR
1903# accordingly.
1904ac_fn_c_check_header_mongrel ()
1905{
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909$as_echo_n "checking for $2... " >&6; }
1910if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1911 $as_echo_n "(cached) " >&6
1912fi
1913eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916else
1917 # Is the header compilable?
1918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1919$as_echo_n "checking $2 usability... " >&6; }
1920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1921/* end confdefs.h. */
1922$4
1923#include <$2>
1924_ACEOF
1925if ac_fn_c_try_compile "$LINENO"; then :
1926 ac_header_compiler=yes
1927else
1928 ac_header_compiler=no
1929fi
1930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1932$as_echo "$ac_header_compiler" >&6; }
1933
1934# Is the header present?
1935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1936$as_echo_n "checking $2 presence... " >&6; }
1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_cpp "$LINENO"; then :
1942 ac_header_preproc=yes
1943else
1944 ac_header_preproc=no
1945fi
1946rm -f conftest.err conftest.$ac_ext
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1948$as_echo "$ac_header_preproc" >&6; }
1949
1950# So? What about this header?
1951case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1952 yes:no: )
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1954$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1956$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1957 ;;
1958 no:yes:* )
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1960$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1962$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1964$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1966$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1968$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1969 ;;
1970esac
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972$as_echo_n "checking for $2... " >&6; }
1973if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974 $as_echo_n "(cached) " >&6
1975else
1976 eval "$3=\$ac_header_compiler"
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981fi
1982 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1983
1984} # ac_fn_c_check_header_mongrel
1985
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1987# --------------------------------------------
1988# Tries to find the compile-time value of EXPR in a program that includes
1989# INCLUDES, setting VAR accordingly. Returns whether the value could be
1990# computed
1991ac_fn_c_compute_int ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 if test "$cross_compiling" = yes; then
1995 # Depending upon the size, compute the lo and hi bounds.
1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1997/* end confdefs.h. */
1998$4
1999int
2000main ()
2001{
2002static int test_array [1 - 2 * !(($2) >= 0)];
2003test_array [0] = 0
2004
2005 ;
2006 return 0;
2007}
2008_ACEOF
2009if ac_fn_c_try_compile "$LINENO"; then :
2010 ac_lo=0 ac_mid=0
2011 while :; do
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013/* end confdefs.h. */
2014$4
2015int
2016main ()
2017{
2018static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2019test_array [0] = 0
2020
2021 ;
2022 return 0;
2023}
2024_ACEOF
2025if ac_fn_c_try_compile "$LINENO"; then :
2026 ac_hi=$ac_mid; break
2027else
2028 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2029 if test $ac_lo -le $ac_mid; then
2030 ac_lo= ac_hi=
2031 break
2032 fi
2033 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036 done
2037else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040$4
2041int
2042main ()
2043{
2044static int test_array [1 - 2 * !(($2) < 0)];
2045test_array [0] = 0
2046
2047 ;
2048 return 0;
2049}
2050_ACEOF
2051if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_hi=-1 ac_mid=-1
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055/* end confdefs.h. */
2056$4
2057int
2058main ()
2059{
2060static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2061test_array [0] = 0
2062
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=$ac_mid; break
2069else
2070 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2071 if test $ac_mid -le $ac_hi; then
2072 ac_lo= ac_hi=
2073 break
2074 fi
2075 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2076fi
2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 done
2079else
2080 ac_lo= ac_hi=
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085# Binary search between lo and hi bounds.
2086while test "x$ac_lo" != "x$ac_hi"; do
2087 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091int
2092main ()
2093{
2094static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2095test_array [0] = 0
2096
2097 ;
2098 return 0;
2099}
2100_ACEOF
2101if ac_fn_c_try_compile "$LINENO"; then :
2102 ac_hi=$ac_mid
2103else
2104 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2105fi
2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107done
2108case $ac_lo in #((
2109?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2110'') ac_retval=1 ;;
2111esac
2112 else
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114/* end confdefs.h. */
2115$4
2116static long int longval () { return $2; }
2117static unsigned long int ulongval () { return $2; }
2118#include <stdio.h>
2119#include <stdlib.h>
2120int
2121main ()
2122{
2123
2124 FILE *f = fopen ("conftest.val", "w");
2125 if (! f)
2126 return 1;
2127 if (($2) < 0)
2128 {
2129 long int i = longval ();
2130 if (i != ($2))
2131 return 1;
2132 fprintf (f, "%ld", i);
2133 }
2134 else
2135 {
2136 unsigned long int i = ulongval ();
2137 if (i != ($2))
2138 return 1;
2139 fprintf (f, "%lu", i);
2140 }
2141 /* Do not output a trailing newline, as this causes \r\n confusion
2142 on some platforms. */
2143 return ferror (f) || fclose (f) != 0;
2144
2145 ;
2146 return 0;
2147}
2148_ACEOF
2149if ac_fn_c_try_run "$LINENO"; then :
2150 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2151else
2152 ac_retval=1
2153fi
2154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2155 conftest.$ac_objext conftest.beam conftest.$ac_ext
2156rm -f conftest.val
2157
2158 fi
2159 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002160 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002161
2162} # ac_fn_c_compute_int
2163
2164# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2165# ----------------------------------------------------
2166# Tries to find if the field MEMBER exists in type AGGR, after including
2167# INCLUDES, setting cache variable VAR accordingly.
2168ac_fn_c_check_member ()
2169{
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2172$as_echo_n "checking for $2.$3... " >&6; }
2173if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2174 $as_echo_n "(cached) " >&6
2175else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$5
2179int
2180main ()
2181{
2182static $2 ac_aggr;
2183if (ac_aggr.$3)
2184return 0;
2185 ;
2186 return 0;
2187}
2188_ACEOF
2189if ac_fn_c_try_compile "$LINENO"; then :
2190 eval "$4=yes"
2191else
2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194$5
2195int
2196main ()
2197{
2198static $2 ac_aggr;
2199if (sizeof ac_aggr.$3)
2200return 0;
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206 eval "$4=yes"
2207else
2208 eval "$4=no"
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213fi
2214eval ac_res=\$$4
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2216$as_echo "$ac_res" >&6; }
2217 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218
2219} # ac_fn_c_check_member
2220
2221# ac_fn_c_check_decl LINENO SYMBOL VAR
2222# ------------------------------------
2223# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2224ac_fn_c_check_decl ()
2225{
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2228$as_echo_n "checking whether $2 is declared... " >&6; }
2229if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2230 $as_echo_n "(cached) " >&6
2231else
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234$4
2235int
2236main ()
2237{
2238#ifndef $2
2239 (void) $2;
2240#endif
2241
2242 ;
2243 return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247 eval "$3=yes"
2248else
2249 eval "$3=no"
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252fi
2253eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255$as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257
2258} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002259cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002260This file contains any messages produced by compilers while
2261running configure, to aid debugging if configure makes a mistake.
2262
2263It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002264generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002265
2266 $ $0 $@
2267
2268_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002269exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002270{
2271cat <<_ASUNAME
2272## --------- ##
2273## Platform. ##
2274## --------- ##
2275
2276hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2277uname -m = `(uname -m) 2>/dev/null || echo unknown`
2278uname -r = `(uname -r) 2>/dev/null || echo unknown`
2279uname -s = `(uname -s) 2>/dev/null || echo unknown`
2280uname -v = `(uname -v) 2>/dev/null || echo unknown`
2281
2282/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2283/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2284
2285/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2286/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2287/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002288/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002289/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2290/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2291/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2292
2293_ASUNAME
2294
2295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296for as_dir in $PATH
2297do
2298 IFS=$as_save_IFS
2299 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002300 $as_echo "PATH: $as_dir"
2301 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002302IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002303
2304} >&5
2305
2306cat >&5 <<_ACEOF
2307
2308
2309## ----------- ##
2310## Core tests. ##
2311## ----------- ##
2312
2313_ACEOF
2314
2315
2316# Keep a trace of the command line.
2317# Strip out --no-create and --no-recursion so they do not pile up.
2318# Strip out --silent because we don't want to record it for future runs.
2319# Also quote any args containing shell meta-characters.
2320# Make two passes to allow for proper duplicate-argument suppression.
2321ac_configure_args=
2322ac_configure_args0=
2323ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002324ac_must_keep_next=false
2325for ac_pass in 1 2
2326do
2327 for ac_arg
2328 do
2329 case $ac_arg in
2330 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2331 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2332 | -silent | --silent | --silen | --sile | --sil)
2333 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002334 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002335 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002336 esac
2337 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002338 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002340 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002341 if test $ac_must_keep_next = true; then
2342 ac_must_keep_next=false # Got value, back to normal.
2343 else
2344 case $ac_arg in
2345 *=* | --config-cache | -C | -disable-* | --disable-* \
2346 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2347 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2348 | -with-* | --with-* | -without-* | --without-* | --x)
2349 case "$ac_configure_args0 " in
2350 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2351 esac
2352 ;;
2353 -* ) ac_must_keep_next=true ;;
2354 esac
2355 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002356 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002357 ;;
2358 esac
2359 done
2360done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002361{ ac_configure_args0=; unset ac_configure_args0;}
2362{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002363
2364# When interrupted or exit'd, cleanup temporary files, and complete
2365# config.log. We remove comments because anyway the quotes in there
2366# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002367# WARNING: Use '\'' to represent an apostrophe within the trap.
2368# 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 -05002369trap 'exit_status=$?
2370 # Save into config.log some information that might help in debugging.
2371 {
2372 echo
2373
2374 cat <<\_ASBOX
2375## ---------------- ##
2376## Cache variables. ##
2377## ---------------- ##
2378_ASBOX
2379 echo
2380 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002381(
2382 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2383 eval ac_val=\$$ac_var
2384 case $ac_val in #(
2385 *${as_nl}*)
2386 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002387 *_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 +01002388$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002389 esac
2390 case $ac_var in #(
2391 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002392 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002393 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394 esac ;;
2395 esac
2396 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2399 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002400 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002401 "s/'\''/'\''\\\\'\'''\''/g;
2402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2403 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002404 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002406 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002407 esac |
2408 sort
2409)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002410 echo
2411
2412 cat <<\_ASBOX
2413## ----------------- ##
2414## Output variables. ##
2415## ----------------- ##
2416_ASBOX
2417 echo
2418 for ac_var in $ac_subst_vars
2419 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002420 eval ac_val=\$$ac_var
2421 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002423 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002424 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002425 done | sort
2426 echo
2427
2428 if test -n "$ac_subst_files"; then
2429 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430## ------------------- ##
2431## File substitutions. ##
2432## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433_ASBOX
2434 echo
2435 for ac_var in $ac_subst_files
2436 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 eval ac_val=\$$ac_var
2438 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002441 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442 done | sort
2443 echo
2444 fi
2445
2446 if test -s confdefs.h; then
2447 cat <<\_ASBOX
2448## ----------- ##
2449## confdefs.h. ##
2450## ----------- ##
2451_ASBOX
2452 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002453 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002454 echo
2455 fi
2456 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002457 $as_echo "$as_me: caught signal $ac_signal"
2458 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002460 rm -f core *.core core.conftest.* &&
2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002463' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466done
2467ac_signal=0
2468
2469# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002470rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002472$as_echo "/* confdefs.h */" > confdefs.h
2473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002474# Predefined preprocessor variables.
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_NAME "$PACKAGE_NAME"
2478_ACEOF
2479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482_ACEOF
2483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_VERSION "$PACKAGE_VERSION"
2486_ACEOF
2487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_STRING "$PACKAGE_STRING"
2490_ACEOF
2491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494_ACEOF
2495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_URL "$PACKAGE_URL"
2498_ACEOF
2499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500
2501# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002502# Prefer an explicitly selected file to automatically selected ones.
2503ac_site_file1=NONE
2504ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002508 ac_site_file1=$prefix/share/config.site
2509 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002511 ac_site_file1=$ac_default_prefix/share/config.site
2512 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002513fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002515do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002516 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002517 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002518 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002519$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002521 . "$ac_site_file"
2522 fi
2523done
2524
2525if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002526 # Some versions of bash will fail to source /dev/null (special files
2527 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2528 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002529 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002530$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002531 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002532 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2533 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 esac
2535 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002537 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002538$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002539 >$cache_file
2540fi
2541
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002542as_fn_append ac_header_list " stdlib.h"
2543as_fn_append ac_header_list " unistd.h"
2544as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545# Check that the precious variables saved in the cache have kept the same
2546# value.
2547ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002548for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2550 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2552 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 case $ac_old_set,$ac_new_set in
2554 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002555 { $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 +01002556$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 -05002557 ac_cache_corrupted=: ;;
2558 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559 { $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 +01002560$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561 ac_cache_corrupted=: ;;
2562 ,);;
2563 *)
2564 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002565 # differences in whitespace do not lead to failure.
2566 ac_old_val_w=`echo x $ac_old_val`
2567 ac_new_val_w=`echo x $ac_new_val`
2568 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002569 { $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 +01002570$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2571 ac_cache_corrupted=:
2572 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002573 { $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 +01002574$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2575 eval $ac_var=\$ac_old_val
2576 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002577 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002578$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002579 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002580$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581 fi;;
2582 esac
2583 # Pass precious variables to config.status.
2584 if test "$ac_new_set" = set; then
2585 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002586 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587 *) ac_arg=$ac_var=$ac_new_val ;;
2588 esac
2589 case " $ac_configure_args " in
2590 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002591 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592 esac
2593 fi
2594done
2595if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002596 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002597$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002598 { $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 +01002599$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002600 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002601fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002602## -------------------- ##
2603## Main body of script. ##
2604## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002605
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002606ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002607ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2610ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612
2613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002616 for ac_t in install-sh install.sh shtool; do
2617 if test -f "$ac_dir/$ac_t"; then
2618 ac_aux_dir=$ac_dir
2619 ac_install_sh="$ac_aux_dir/$ac_t -c"
2620 break 2
2621 fi
2622 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623done
2624if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002625 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 +00002626fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002627
2628# These three variables are undocumented and unsupported,
2629# and are intended to be withdrawn in a future Autoconf release.
2630# They can cause serious problems if a builder's source tree is in a directory
2631# whose full name contains unusual characters.
2632ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2633ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2634ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2635
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002636
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002637ac_config_headers="$ac_config_headers lib/config.h"
2638
2639
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002640MCONFIG=./MCONFIG
2641
Theodore Ts'o74becf31997-04-26 14:37:06 +00002642BINARY_TYPE=bin
2643E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2644 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2645DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2646 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002647E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002648MONTH=`echo $DATE | awk -F- '{print $2}'`
2649YEAR=`echo $DATE | awk -F- '{print $3}'`
2650
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002651if expr $YEAR ">" 1900 > /dev/null ; then
2652 E2FSPROGS_YEAR=$YEAR
2653elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002654 E2FSPROGS_YEAR=19$YEAR
2655else
2656 E2FSPROGS_YEAR=20$YEAR
2657fi
2658
2659case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002660Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2661Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2662Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2663Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2664May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2665Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2666Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2667Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2668Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2669Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2670Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2671Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002672*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002673$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002674esac
2675
Andreas Dilger927566a2006-11-12 19:41:25 -05002676base_ver=`echo $E2FSPROGS_VERSION | \
2677 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002678
2679date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2680
2681case $E2FSPROGS_VERSION in
2682*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002683 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002684 ;;
2685*)
2686 E2FSPROGS_PKGVER="$base_ver"
2687 ;;
2688esac
2689
2690unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691{ $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 +01002692$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002694$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002695
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002696
2697
2698
Andreas Dilger927566a2006-11-12 19:41:25 -05002699
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002700# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002701$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002705$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002706if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002707 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002708else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002709 ac_build_alias=$build_alias
2710test "x$ac_build_alias" = x &&
2711 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2712test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002713 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002714ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002715 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002716
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002717fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002719$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002720case $ac_cv_build in
2721*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002722*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002723esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002724build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002725ac_save_IFS=$IFS; IFS='-'
2726set x $ac_cv_build
2727shift
2728build_cpu=$1
2729build_vendor=$2
2730shift; shift
2731# Remember, the first character of IFS is used to create $*,
2732# except with old shells:
2733build_os=$*
2734IFS=$ac_save_IFS
2735case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002736
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002737
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002739$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002740if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002741 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002742else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002743 if test "x$host_alias" = x; then
2744 ac_cv_host=$ac_cv_build
2745else
2746 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002747 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002748fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002750fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002752$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002753case $ac_cv_host in
2754*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002755*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002756esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002757host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002758ac_save_IFS=$IFS; IFS='-'
2759set x $ac_cv_host
2760shift
2761host_cpu=$1
2762host_vendor=$2
2763shift; shift
2764# Remember, the first character of IFS is used to create $*,
2765# except with old shells:
2766host_os=$*
2767IFS=$ac_save_IFS
2768case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002769
2770
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002771DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002772ac_ext=c
2773ac_cpp='$CPP $CPPFLAGS'
2774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2776ac_compiler_gnu=$ac_cv_c_compiler_gnu
2777if test -n "$ac_tool_prefix"; then
2778 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2779set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002781$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002782if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002783 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002784else
2785 if test -n "$CC"; then
2786 ac_cv_prog_CC="$CC" # Let the user override the test.
2787else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2789for as_dir in $PATH
2790do
2791 IFS=$as_save_IFS
2792 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002793 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002794 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 -05002795 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002797 break 2
2798 fi
2799done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002800 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002801IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002802
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002803fi
2804fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002805CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002806if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002808$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002809else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002811$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002812fi
2813
Theodore Ts'oe1052142006-10-21 21:46:47 -04002814
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002815fi
2816if test -z "$ac_cv_prog_CC"; then
2817 ac_ct_CC=$CC
2818 # Extract the first word of "gcc", so it can be a program name with args.
2819set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002823 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824else
2825 if test -n "$ac_ct_CC"; then
2826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2827else
2828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2829for as_dir in $PATH
2830do
2831 IFS=$as_save_IFS
2832 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002833 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002834 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 -05002835 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002837 break 2
2838 fi
2839done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002840 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842
2843fi
2844fi
2845ac_ct_CC=$ac_cv_prog_ac_ct_CC
2846if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002848$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002849else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002851$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002852fi
2853
Theodore Ts'oe1052142006-10-21 21:46:47 -04002854 if test "x$ac_ct_CC" = x; then
2855 CC=""
2856 else
2857 case $cross_compiling:$ac_tool_warned in
2858yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002859{ $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 +01002860$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002861ac_tool_warned=yes ;;
2862esac
2863 CC=$ac_ct_CC
2864 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002865else
2866 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002867fi
2868
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002869if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002870 if test -n "$ac_tool_prefix"; then
2871 # 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 -05002872set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002875if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002876 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002877else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002886 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002887 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 -05002888 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890 break 2
2891 fi
2892done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002894IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895
2896fi
2897fi
2898CC=$ac_cv_prog_CC
2899if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002901$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002904$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905fi
2906
Theodore Ts'oe1052142006-10-21 21:46:47 -04002907
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002908 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002909fi
2910if test -z "$CC"; then
2911 # Extract the first word of "cc", so it can be a program name with args.
2912set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002914$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002915if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002916 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002917else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002921 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925 IFS=$as_save_IFS
2926 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002928 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 -05002929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2930 ac_prog_rejected=yes
2931 continue
2932 fi
2933 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935 break 2
2936 fi
2937done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002939IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002940
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002941if test $ac_prog_rejected = yes; then
2942 # We found a bogon in the path, so make sure we never use it.
2943 set dummy $ac_cv_prog_CC
2944 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002946 # We chose a different compiler from the bogus one.
2947 # However, it has the same basename, so the bogon will be chosen
2948 # first if we set CC to just the basename; use the full file name.
2949 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002951 fi
2952fi
2953fi
2954fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002956if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002958$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002959else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002961$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002962fi
2963
Theodore Ts'oe1052142006-10-21 21:46:47 -04002964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965fi
2966if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002968 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969 do
2970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2971set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002973$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002974if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002975 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002976else
2977 if test -n "$CC"; then
2978 ac_cv_prog_CC="$CC" # Let the user override the test.
2979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2981for as_dir in $PATH
2982do
2983 IFS=$as_save_IFS
2984 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002985 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002986 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 -05002987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002989 break 2
2990 fi
2991done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002992 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002993IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002994
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002995fi
2996fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002998if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003000$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003001else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003003$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003004fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005
Theodore Ts'oe1052142006-10-21 21:46:47 -04003006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007 test -n "$CC" && break
3008 done
3009fi
3010if test -z "$CC"; then
3011 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003012 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013do
3014 # Extract the first word of "$ac_prog", so it can be a program name with args.
3015set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003018if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003019 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020else
3021 if test -n "$ac_ct_CC"; then
3022 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3023else
3024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3025for as_dir in $PATH
3026do
3027 IFS=$as_save_IFS
3028 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003030 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 -05003031 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003034 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003036 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038
3039fi
3040fi
3041ac_ct_CC=$ac_cv_prog_ac_ct_CC
3042if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003044$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003045else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003048fi
3049
Theodore Ts'oe1052142006-10-21 21:46:47 -04003050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003051 test -n "$ac_ct_CC" && break
3052done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003053
Theodore Ts'oe1052142006-10-21 21:46:47 -04003054 if test "x$ac_ct_CC" = x; then
3055 CC=""
3056 else
3057 case $cross_compiling:$ac_tool_warned in
3058yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059{ $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 +01003060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003061ac_tool_warned=yes ;;
3062esac
3063 CC=$ac_ct_CC
3064 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003066
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003068
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003069
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003071$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003072as_fn_error "no acceptable C compiler found in \$PATH
3073See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003074
3075# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003077set X $ac_compile
3078ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003079for ac_option in --version -v -V -qversion; do
3080 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003081case "(($ac_try" in
3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3083 *) ac_try_echo=$ac_try;;
3084esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3086$as_echo "$ac_try_echo"; } >&5
3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003089 if test -s conftest.err; then
3090 sed '10a\
3091... rest of stderr output deleted ...
3092 10q' conftest.err >conftest.er1
3093 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003094 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003095 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }
3098done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103int
3104main ()
3105{
3106
3107 ;
3108 return 0;
3109}
3110_ACEOF
3111ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113# Try to create an executable without -o first, disregard a.out.
3114# It will help us diagnose broken compilers, and finding out an intuition
3115# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3117$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003118ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3119
3120# The possible output files:
3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3122
Theodore Ts'oe1052142006-10-21 21:46:47 -04003123ac_rmfiles=
3124for ac_file in $ac_files
3125do
3126 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003128 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3129 esac
3130done
3131rm -f $ac_rmfiles
3132
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003133if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003134case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003140 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003141 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3143 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003144 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3145# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3146# in a Makefile. We should not override ac_cv_exeext if it was cached,
3147# so that the user can short-circuit this test for compilers unknown to
3148# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003149for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003150do
3151 test -f "$ac_file" || continue
3152 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003153 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154 ;;
3155 [ab].out )
3156 # We found the default executable, but exeext='' is most
3157 # certainly right.
3158 break;;
3159 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003160 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003161 then :; else
3162 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3163 fi
3164 # We set ac_cv_exeext here because the later test for it is not
3165 # safe: cross compilers may not add the suffix if given an `-o'
3166 # argument, so we may need to know it at that point already.
3167 # Even if this section looks crufty: it has the advantage of
3168 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169 break;;
3170 * )
3171 break;;
3172 esac
3173done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003174test "$ac_cv_exeext" = no && ac_cv_exeext=
3175
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003177 ac_file=''
3178fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003179if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181$as_echo "no" >&6; }
3182$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183sed 's/^/| /' conftest.$ac_ext >&5
3184
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003187{ as_fn_set_status 77
3188as_fn_error "C compiler cannot create executables
3189See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003190else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3195$as_echo_n "checking for C compiler default output file name... " >&6; }
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3197$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003199
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003200rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003201ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003203$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003204if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003211 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003212 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3214 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003215 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3216# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3217# work properly (i.e., refer to `conftest.exe'), while it won't with
3218# `rm'.
3219for ac_file in conftest.exe conftest conftest.*; do
3220 test -f "$ac_file" || continue
3221 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003223 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003224 break;;
3225 * ) break;;
3226 esac
3227done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003228else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003231as_fn_error "cannot compute suffix of executables: cannot compile and link
3232See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003233fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003234rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003236$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003237
3238rm -f conftest.$ac_ext
3239EXEEXT=$ac_cv_exeext
3240ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242/* end confdefs.h. */
3243#include <stdio.h>
3244int
3245main ()
3246{
3247FILE *f = fopen ("conftest.out", "w");
3248 return ferror (f) || fclose (f) != 0;
3249
3250 ;
3251 return 0;
3252}
3253_ACEOF
3254ac_clean_files="$ac_clean_files conftest.out"
3255# Check that the compiler produces executables we can run. If not, either
3256# the compiler is broken, or we cross compile.
3257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3258$as_echo_n "checking whether we are cross compiling... " >&6; }
3259if test "$cross_compiling" != yes; then
3260 { { ac_try="$ac_link"
3261case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264esac
3265eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266$as_echo "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 if { ac_try='./conftest$ac_cv_exeext'
3272 { { case "(($ac_try" in
3273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3275esac
3276eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3277$as_echo "$ac_try_echo"; } >&5
3278 (eval "$ac_try") 2>&5
3279 ac_status=$?
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }; }; then
3282 cross_compiling=no
3283 else
3284 if test "$cross_compiling" = maybe; then
3285 cross_compiling=yes
3286 else
3287 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3288$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3289as_fn_error "cannot run C compiled programs.
3290If you meant to cross compile, use \`--host'.
3291See \`config.log' for more details." "$LINENO" 5; }
3292 fi
3293 fi
3294fi
3295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3296$as_echo "$cross_compiling" >&6; }
3297
3298rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3299ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003301$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003302if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003303 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003306/* end confdefs.h. */
3307
3308int
3309main ()
3310{
3311
3312 ;
3313 return 0;
3314}
3315_ACEOF
3316rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003317if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003318case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003322eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003324 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003325 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003328 for ac_file in conftest.o conftest.obj conftest.*; do
3329 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3333 break;;
3334 esac
3335done
3336else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003337 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003338sed 's/^/| /' conftest.$ac_ext >&5
3339
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003340{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003342as_fn_error "cannot compute suffix of object files: cannot compile
3343See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345rm -f conftest.$ac_cv_objext conftest.$ac_ext
3346fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003348$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349OBJEXT=$ac_cv_objext
3350ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003351{ $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 +01003352$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003353if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003354 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003357/* end confdefs.h. */
3358
3359int
3360main ()
3361{
3362#ifndef __GNUC__
3363 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003364#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003366 ;
3367 return 0;
3368}
3369_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003370if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003371 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003372else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003373 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003374fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003376ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003378fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003380$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3381if test $ac_compiler_gnu = yes; then
3382 GCC=yes
3383else
3384 GCC=
3385fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003386ac_test_CFLAGS=${CFLAGS+set}
3387ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003389$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003390if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003391 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003392else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003393 ac_save_c_werror_flag=$ac_c_werror_flag
3394 ac_c_werror_flag=yes
3395 ac_cv_prog_cc_g=no
3396 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003398/* end confdefs.h. */
3399
3400int
3401main ()
3402{
3403
3404 ;
3405 return 0;
3406}
3407_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003408if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003409 ac_cv_prog_cc_g=yes
3410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003411 CFLAGS=""
3412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003413/* end confdefs.h. */
3414
3415int
3416main ()
3417{
3418
3419 ;
3420 return 0;
3421}
3422_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003423if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425else
3426 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003429/* end confdefs.h. */
3430
3431int
3432main ()
3433{
3434
3435 ;
3436 return 0;
3437}
3438_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003439if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003440 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003450$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003451if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003452 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003453elif test $ac_cv_prog_cc_g = yes; then
3454 if test "$GCC" = yes; then
3455 CFLAGS="-g -O2"
3456 else
3457 CFLAGS="-g"
3458 fi
3459else
3460 if test "$GCC" = yes; then
3461 CFLAGS="-O2"
3462 else
3463 CFLAGS=
3464 fi
3465fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003468if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003469 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003471 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003472ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474/* end confdefs.h. */
3475#include <stdarg.h>
3476#include <stdio.h>
3477#include <sys/types.h>
3478#include <sys/stat.h>
3479/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3480struct buf { int x; };
3481FILE * (*rcsopen) (struct buf *, struct stat *, int);
3482static char *e (p, i)
3483 char **p;
3484 int i;
3485{
3486 return p[i];
3487}
3488static char *f (char * (*g) (char **, int), char **p, ...)
3489{
3490 char *s;
3491 va_list v;
3492 va_start (v,p);
3493 s = g (p, va_arg (v,int));
3494 va_end (v);
3495 return s;
3496}
3497
3498/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3499 function prototypes and stuff, but not '\xHH' hex character constants.
3500 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003501 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3503 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003504 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3506
Theodore Ts'oe1052142006-10-21 21:46:47 -04003507/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3508 inside strings and character constants. */
3509#define FOO(x) 'x'
3510int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003512int test (int i, double x);
3513struct s1 {int (*f) (int a);};
3514struct s2 {int (*f) (double a);};
3515int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3516int argc;
3517char **argv;
3518int
3519main ()
3520{
3521return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3522 ;
3523 return 0;
3524}
3525_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003526for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3527 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528do
3529 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003530 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003531 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003532fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003533rm -f core conftest.err conftest.$ac_objext
3534 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003536rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003537CC=$ac_save_CC
3538
3539fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003540# AC_CACHE_VAL
3541case "x$ac_cv_prog_cc_c89" in
3542 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003544$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003547$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003548 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003551$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003554
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003555fi
3556
3557ac_ext=c
3558ac_cpp='$CPP $CPPFLAGS'
3559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3561ac_compiler_gnu=$ac_cv_c_compiler_gnu
3562
3563
3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3565$as_echo_n "checking for dlopen in -ldl... " >&6; }
3566if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3567 $as_echo_n "(cached) " >&6
3568else
3569 ac_check_lib_save_LIBS=$LIBS
3570LIBS="-ldl $LIBS"
3571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574/* Override any GCC internal prototype to avoid an error.
3575 Use char because int might match the return type of a GCC
3576 builtin and then its argument prototype would still apply. */
3577#ifdef __cplusplus
3578extern "C"
3579#endif
3580char dlopen ();
3581int
3582main ()
3583{
3584return dlopen ();
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_link "$LINENO"; then :
3590 ac_cv_lib_dl_dlopen=yes
3591else
3592 ac_cv_lib_dl_dlopen=no
3593fi
3594rm -f core conftest.err conftest.$ac_objext \
3595 conftest$ac_exeext conftest.$ac_ext
3596LIBS=$ac_check_lib_save_LIBS
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3599$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3600if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3601 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003603$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3604
3605fi
3606
3607
3608WITH_DIET_LIBC=
3609
3610# Check whether --with-diet-libc was given.
3611if test "${with_diet_libc+set}" = set; then :
3612 withval=$with_diet_libc; CC="diet cc -nostdinc"
3613WITH_DIET_LIBC=yes
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3615$as_echo "CC=$CC" >&6; }
3616fi
3617
3618# Check whether --with-cc was given.
3619if test "${with_cc+set}" = set; then :
3620 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3621fi
3622
3623
3624# Check whether --with-ccopts was given.
3625if test "${with_ccopts+set}" = set; then :
3626 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3627fi
3628
3629
3630# Check whether --with-ldopts was given.
3631if test "${with_ldopts+set}" = set; then :
3632 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3633fi
3634
3635ac_ext=c
3636ac_cpp='$CPP $CPPFLAGS'
3637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640if test -n "$ac_tool_prefix"; then
3641 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3642set dummy ${ac_tool_prefix}gcc; ac_word=$2
3643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644$as_echo_n "checking for $ac_word... " >&6; }
3645if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3647else
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3650else
3651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3652for as_dir in $PATH
3653do
3654 IFS=$as_save_IFS
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 break 2
3661 fi
3662done
3663 done
3664IFS=$as_save_IFS
3665
3666fi
3667fi
3668CC=$ac_cv_prog_CC
3669if test -n "$CC"; then
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3671$as_echo "$CC" >&6; }
3672else
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674$as_echo "no" >&6; }
3675fi
3676
3677
3678fi
3679if test -z "$ac_cv_prog_CC"; then
3680 ac_ct_CC=$CC
3681 # Extract the first word of "gcc", so it can be a program name with args.
3682set dummy gcc; ac_word=$2
3683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684$as_echo_n "checking for $ac_word... " >&6; }
3685if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3687else
3688 if test -n "$ac_ct_CC"; then
3689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3690else
3691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692for as_dir in $PATH
3693do
3694 IFS=$as_save_IFS
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_ac_ct_CC="gcc"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3700 break 2
3701 fi
3702done
3703 done
3704IFS=$as_save_IFS
3705
3706fi
3707fi
3708ac_ct_CC=$ac_cv_prog_ac_ct_CC
3709if test -n "$ac_ct_CC"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3711$as_echo "$ac_ct_CC" >&6; }
3712else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714$as_echo "no" >&6; }
3715fi
3716
3717 if test "x$ac_ct_CC" = x; then
3718 CC=""
3719 else
3720 case $cross_compiling:$ac_tool_warned in
3721yes:)
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3724ac_tool_warned=yes ;;
3725esac
3726 CC=$ac_ct_CC
3727 fi
3728else
3729 CC="$ac_cv_prog_CC"
3730fi
3731
3732if test -z "$CC"; then
3733 if test -n "$ac_tool_prefix"; then
3734 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3735set dummy ${ac_tool_prefix}cc; ac_word=$2
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737$as_echo_n "checking for $ac_word... " >&6; }
3738if test "${ac_cv_prog_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743else
3744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745for as_dir in $PATH
3746do
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_CC="${ac_tool_prefix}cc"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3754 fi
3755done
3756 done
3757IFS=$as_save_IFS
3758
3759fi
3760fi
3761CC=$ac_cv_prog_CC
3762if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764$as_echo "$CC" >&6; }
3765else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767$as_echo "no" >&6; }
3768fi
3769
3770
3771 fi
3772fi
3773if test -z "$CC"; then
3774 # Extract the first word of "cc", so it can be a program name with args.
3775set dummy cc; ac_word=$2
3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777$as_echo_n "checking for $ac_word... " >&6; }
3778if test "${ac_cv_prog_CC+set}" = set; then :
3779 $as_echo_n "(cached) " >&6
3780else
3781 if test -n "$CC"; then
3782 ac_cv_prog_CC="$CC" # Let the user override the test.
3783else
3784 ac_prog_rejected=no
3785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3786for as_dir in $PATH
3787do
3788 IFS=$as_save_IFS
3789 test -z "$as_dir" && as_dir=.
3790 for ac_exec_ext in '' $ac_executable_extensions; do
3791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3792 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3793 ac_prog_rejected=yes
3794 continue
3795 fi
3796 ac_cv_prog_CC="cc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
3800done
3801 done
3802IFS=$as_save_IFS
3803
3804if test $ac_prog_rejected = yes; then
3805 # We found a bogon in the path, so make sure we never use it.
3806 set dummy $ac_cv_prog_CC
3807 shift
3808 if test $# != 0; then
3809 # We chose a different compiler from the bogus one.
3810 # However, it has the same basename, so the bogon will be chosen
3811 # first if we set CC to just the basename; use the full file name.
3812 shift
3813 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3814 fi
3815fi
3816fi
3817fi
3818CC=$ac_cv_prog_CC
3819if test -n "$CC"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3821$as_echo "$CC" >&6; }
3822else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824$as_echo "no" >&6; }
3825fi
3826
3827
3828fi
3829if test -z "$CC"; then
3830 if test -n "$ac_tool_prefix"; then
3831 for ac_prog in cl.exe
3832 do
3833 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3834set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836$as_echo_n "checking for $ac_word... " >&6; }
3837if test "${ac_cv_prog_CC+set}" = set; then :
3838 $as_echo_n "(cached) " >&6
3839else
3840 if test -n "$CC"; then
3841 ac_cv_prog_CC="$CC" # Let the user override the test.
3842else
3843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844for as_dir in $PATH
3845do
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3850 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3853 fi
3854done
3855 done
3856IFS=$as_save_IFS
3857
3858fi
3859fi
3860CC=$ac_cv_prog_CC
3861if test -n "$CC"; then
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3863$as_echo "$CC" >&6; }
3864else
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866$as_echo "no" >&6; }
3867fi
3868
3869
3870 test -n "$CC" && break
3871 done
3872fi
3873if test -z "$CC"; then
3874 ac_ct_CC=$CC
3875 for ac_prog in cl.exe
3876do
3877 # Extract the first word of "$ac_prog", so it can be a program name with args.
3878set dummy $ac_prog; ac_word=$2
3879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880$as_echo_n "checking for $ac_word... " >&6; }
3881if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3882 $as_echo_n "(cached) " >&6
3883else
3884 if test -n "$ac_ct_CC"; then
3885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3886else
3887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888for as_dir in $PATH
3889do
3890 IFS=$as_save_IFS
3891 test -z "$as_dir" && as_dir=.
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894 ac_cv_prog_ac_ct_CC="$ac_prog"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899 done
3900IFS=$as_save_IFS
3901
3902fi
3903fi
3904ac_ct_CC=$ac_cv_prog_ac_ct_CC
3905if test -n "$ac_ct_CC"; then
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3907$as_echo "$ac_ct_CC" >&6; }
3908else
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3910$as_echo "no" >&6; }
3911fi
3912
3913
3914 test -n "$ac_ct_CC" && break
3915done
3916
3917 if test "x$ac_ct_CC" = x; then
3918 CC=""
3919 else
3920 case $cross_compiling:$ac_tool_warned in
3921yes:)
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3924ac_tool_warned=yes ;;
3925esac
3926 CC=$ac_ct_CC
3927 fi
3928fi
3929
3930fi
3931
3932
3933test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3935as_fn_error "no acceptable C compiler found in \$PATH
3936See \`config.log' for more details." "$LINENO" 5; }
3937
3938# Provide some information about the compiler.
3939$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3940set X $ac_compile
3941ac_compiler=$2
3942for ac_option in --version -v -V -qversion; do
3943 { { ac_try="$ac_compiler $ac_option >&5"
3944case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947esac
3948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949$as_echo "$ac_try_echo"; } >&5
3950 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3951 ac_status=$?
3952 if test -s conftest.err; then
3953 sed '10a\
3954... rest of stderr output deleted ...
3955 10q' conftest.err >conftest.er1
3956 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003957 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003958 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960 test $ac_status = 0; }
3961done
3962
3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3964$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3965if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3966 $as_echo_n "(cached) " >&6
3967else
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3969/* end confdefs.h. */
3970
3971int
3972main ()
3973{
3974#ifndef __GNUC__
3975 choke me
3976#endif
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_compiler_gnu=yes
3984else
3985 ac_compiler_gnu=no
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988ac_cv_c_compiler_gnu=$ac_compiler_gnu
3989
3990fi
3991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3992$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3993if test $ac_compiler_gnu = yes; then
3994 GCC=yes
3995else
3996 GCC=
3997fi
3998ac_test_CFLAGS=${CFLAGS+set}
3999ac_save_CFLAGS=$CFLAGS
4000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4001$as_echo_n "checking whether $CC accepts -g... " >&6; }
4002if test "${ac_cv_prog_cc_g+set}" = set; then :
4003 $as_echo_n "(cached) " >&6
4004else
4005 ac_save_c_werror_flag=$ac_c_werror_flag
4006 ac_c_werror_flag=yes
4007 ac_cv_prog_cc_g=no
4008 CFLAGS="-g"
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 ac_cv_prog_cc_g=yes
4022else
4023 CFLAGS=""
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025/* end confdefs.h. */
4026
4027int
4028main ()
4029{
4030
4031 ;
4032 return 0;
4033}
4034_ACEOF
4035if ac_fn_c_try_compile "$LINENO"; then :
4036
4037else
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 CFLAGS="-g"
4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051if ac_fn_c_try_compile "$LINENO"; then :
4052 ac_cv_prog_cc_g=yes
4053fi
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 ac_c_werror_flag=$ac_save_c_werror_flag
4060fi
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4062$as_echo "$ac_cv_prog_cc_g" >&6; }
4063if test "$ac_test_CFLAGS" = set; then
4064 CFLAGS=$ac_save_CFLAGS
4065elif test $ac_cv_prog_cc_g = yes; then
4066 if test "$GCC" = yes; then
4067 CFLAGS="-g -O2"
4068 else
4069 CFLAGS="-g"
4070 fi
4071else
4072 if test "$GCC" = yes; then
4073 CFLAGS="-O2"
4074 else
4075 CFLAGS=
4076 fi
4077fi
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4079$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4080if test "${ac_cv_prog_cc_c89+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082else
4083 ac_cv_prog_cc_c89=no
4084ac_save_CC=$CC
4085cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087#include <stdarg.h>
4088#include <stdio.h>
4089#include <sys/types.h>
4090#include <sys/stat.h>
4091/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4092struct buf { int x; };
4093FILE * (*rcsopen) (struct buf *, struct stat *, int);
4094static char *e (p, i)
4095 char **p;
4096 int i;
4097{
4098 return p[i];
4099}
4100static char *f (char * (*g) (char **, int), char **p, ...)
4101{
4102 char *s;
4103 va_list v;
4104 va_start (v,p);
4105 s = g (p, va_arg (v,int));
4106 va_end (v);
4107 return s;
4108}
4109
4110/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4111 function prototypes and stuff, but not '\xHH' hex character constants.
4112 These don't provoke an error unfortunately, instead are silently treated
4113 as 'x'. The following induces an error, until -std is added to get
4114 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4115 array size at least. It's necessary to write '\x00'==0 to get something
4116 that's true only with -std. */
4117int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118
4119/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4120 inside strings and character constants. */
4121#define FOO(x) 'x'
4122int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123
4124int test (int i, double x);
4125struct s1 {int (*f) (int a);};
4126struct s2 {int (*f) (double a);};
4127int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4128int argc;
4129char **argv;
4130int
4131main ()
4132{
4133return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4139 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140do
4141 CC="$ac_save_CC $ac_arg"
4142 if ac_fn_c_try_compile "$LINENO"; then :
4143 ac_cv_prog_cc_c89=$ac_arg
4144fi
4145rm -f core conftest.err conftest.$ac_objext
4146 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147done
4148rm -f conftest.$ac_ext
4149CC=$ac_save_CC
4150
4151fi
4152# AC_CACHE_VAL
4153case "x$ac_cv_prog_cc_c89" in
4154 x)
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4156$as_echo "none needed" >&6; } ;;
4157 xno)
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4159$as_echo "unsupported" >&6; } ;;
4160 *)
4161 CC="$CC $ac_cv_prog_cc_c89"
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4163$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164esac
4165if test "x$ac_cv_prog_cc_c89" != xno; then :
4166
4167fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004168
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004169ac_ext=c
4170ac_cpp='$CPP $CPPFLAGS'
4171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004175if test "$GCC" = yes; then
4176 RDYNAMIC="-rdynamic"
4177
4178fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004179ac_ext=c
4180ac_cpp='$CPP $CPPFLAGS'
4181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004185$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004186# On Suns, sometimes $CPP names a directory.
4187if test -n "$CPP" && test -d "$CPP"; then
4188 CPP=
4189fi
4190if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004191 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004192 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004193else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004194 # Double quotes because CPP needs to be expanded
4195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4196 do
4197 ac_preproc_ok=false
4198for ac_c_preproc_warn_flag in '' yes
4199do
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004204 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004205 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
4209# include <limits.h>
4210#else
4211# include <assert.h>
4212#endif
4213 Syntax error
4214_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004215if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004216
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004217else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004218 # Broken: fails on valid input.
4219continue
4220fi
4221rm -f conftest.err conftest.$ac_ext
4222
Theodore Ts'oe1052142006-10-21 21:46:47 -04004223 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004224 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004226/* end confdefs.h. */
4227#include <ac_nonexistent.h>
4228_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004229if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004230 # Broken: success on invalid input.
4231continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004232else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004233 # Passes both tests.
4234ac_preproc_ok=:
4235break
4236fi
4237rm -f conftest.err conftest.$ac_ext
4238
4239done
4240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004242if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004243 break
4244fi
4245
4246 done
4247 ac_cv_prog_CPP=$CPP
4248
4249fi
4250 CPP=$ac_cv_prog_CPP
4251else
4252 ac_cv_prog_CPP=$CPP
4253fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004255$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004256ac_preproc_ok=false
4257for ac_c_preproc_warn_flag in '' yes
4258do
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
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#ifdef __STDC__
4268# include <limits.h>
4269#else
4270# include <assert.h>
4271#endif
4272 Syntax error
4273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004274if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004276else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004277 # Broken: fails on valid input.
4278continue
4279fi
4280rm -f conftest.err conftest.$ac_ext
4281
Theodore Ts'oe1052142006-10-21 21:46:47 -04004282 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285/* end confdefs.h. */
4286#include <ac_nonexistent.h>
4287_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004288if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289 # Broken: success on invalid input.
4290continue
4291else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004292 # Passes both tests.
4293ac_preproc_ok=:
4294break
4295fi
4296rm -f conftest.err conftest.$ac_ext
4297
4298done
4299# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004301if $ac_preproc_ok; then :
4302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004306as_fn_error "C preprocessor \"$CPP\" fails sanity check
4307See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004308fi
4309
4310ac_ext=c
4311ac_cpp='$CPP $CPPFLAGS'
4312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314ac_compiler_gnu=$ac_cv_c_compiler_gnu
4315
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004317$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004318if test "$GCC" = yes
4319then
4320 case "$host_cpu" in
4321 alpha) addcflags="-mieee" ;;
4322 esac
4323fi
4324if test "x$addcflags" != x
4325then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004327$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004328 CFLAGS="$addcflags $CFLAGS"
4329else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004331$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004332fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004333LIB_EXT=.a
4334STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004335PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004338if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004339 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004340else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004341 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004342fi
4343# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004344if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004345 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004346then
4347 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004349$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004350else
4351 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004353$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004354fi
4355
4356else
4357 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004359$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004360
Theodore Ts'oe1052142006-10-21 21:46:47 -04004361fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004362
Theodore Ts'oe1052142006-10-21 21:46:47 -04004363
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004364# Check whether --enable-symlink-install was given.
4365if test "${enable_symlink_install+set}" = set; then :
4366 enableval=$enable_symlink_install; if test "$enableval" = "no"
4367then
4368 LINK_INSTALL_FLAGS=-f
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4370$as_echo "Disabling symlinks for install" >&6; }
4371else
4372 LINK_INSTALL_FLAGS=-sf
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4374$as_echo "Enabling symlinks for install" >&6; }
4375fi
4376
4377else
4378 LINK_INSTALL_FLAGS=-f
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4380$as_echo "Disabling symlinks for install" >&6; }
4381
4382fi
4383
4384
4385# Check whether --enable-symlink-build was given.
4386if test "${enable_symlink_build+set}" = set; then :
4387 enableval=$enable_symlink_build; if test "$enableval" = "no"
4388then
4389 LINK_BUILD_FLAGS=
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4391$as_echo "Disabling symlinks for build" >&6; }
4392else
4393 LINK_BUILD_FLAGS=-s
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4395$as_echo "Enabling symlinks for build" >&6; }
4396fi
4397
4398else
4399 LINK_BUILD_FLAGS=
4400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4401$as_echo "Disabling symlinks for build" >&6; }
4402
4403fi
4404
4405
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004406# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004407if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004408 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4409then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004411$as_echo "Disabling verbose make commands" >&6; }
4412 E=@echo
4413 Q=@
4414else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004416$as_echo "Enabling verbose make commands" >&6; }
4417 E=@\\#
4418 Q=
4419fi
4420
4421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004423$as_echo "Disabling verbose make commands" >&6; }
4424E=@echo
4425Q=@
4426
4427fi
4428
4429
4430
Theodore Ts'oe1052142006-10-21 21:46:47 -04004431# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004432if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004433 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004434then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004436$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004437else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004438
4439$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004440
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004442$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004444$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004445fi
4446
4447else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004449$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004450
Theodore Ts'oe1052142006-10-21 21:46:47 -04004451fi
4452
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004453
Theodore Ts'oe1052142006-10-21 21:46:47 -04004454# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004455if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004456 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004457then
4458 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004460$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004461else
4462 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004463 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004466$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004467fi
4468
4469else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004470 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004471$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004472
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004474$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004475
Theodore Ts'oe1052142006-10-21 21:46:47 -04004476fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004477
Theodore Ts'oe1052142006-10-21 21:46:47 -04004478
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004479E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004480LDFLAG_DYNAMIC=
4481PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004482# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004483if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004484 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004485then
4486 ELF_CMT=#
4487 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004489$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004491 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004492 ELF_CMT=
4493 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004494 case "$host_os" in
4495 solaris2.*)
4496 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4497 ;;
4498 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004499 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004500 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004501 PRIVATE_LIBS_CMT=#
4502 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004504$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004505fi
4506
4507else
4508 MAKEFILE_ELF=/dev/null
4509ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004511$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004512
Theodore Ts'oe1052142006-10-21 21:46:47 -04004513fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004514
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004515
Theodore Ts'oe1052142006-10-21 21:46:47 -04004516
4517# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004518if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004519 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004520then
4521 BSDLIB_CMT=#
4522 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004524$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004525else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004526 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004527 BSDLIB_CMT=
4528 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004529 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004530 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004531 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004532 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4533 LIB_EXT=.dylib
4534 ;;
4535 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004537$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004538fi
4539
4540else
4541 MAKEFILE_BSDLIB=/dev/null
4542BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004544$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004545
Theodore Ts'oe1052142006-10-21 21:46:47 -04004546fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004547
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004548
Theodore Ts'oe1052142006-10-21 21:46:47 -04004549
4550# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004551if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004552 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004553then
4554 PROFILE_CMT=#
4555 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004557$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004558else
4559 PROFILE_CMT=
4560 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4561 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004563$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004564fi
4565
4566else
4567 PROFILE_CMT=#
4568MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004570$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004571
Theodore Ts'oe1052142006-10-21 21:46:47 -04004572fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004573
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004574
Theodore Ts'oe1052142006-10-21 21:46:47 -04004575
4576# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004577if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004579then
4580 CHECKER_CMT=#
4581 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004583$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004584else
4585 CHECKER_CMT=
4586 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004588$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004589fi
4590
4591else
4592 CHECKER_CMT=#
4593MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004595$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004596
Theodore Ts'oe1052142006-10-21 21:46:47 -04004597fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004598
4599
4600
4601
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004602
Theodore Ts'oe1052142006-10-21 21:46:47 -04004603
Theodore Ts'o55da9872008-09-02 23:12:38 -04004604
4605
Theodore Ts'oe1052142006-10-21 21:46:47 -04004606# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004607if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004608 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004609then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004611$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004612else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004613
4614$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004615
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004617$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004618fi
4619
4620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004622$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004623
Theodore Ts'oe1052142006-10-21 21:46:47 -04004624fi
4625
4626# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004627if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004628 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004629then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004631$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004632else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004633
4634$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004635
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004637$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004638fi
4639
4640else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004642$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004643
Theodore Ts'oe1052142006-10-21 21:46:47 -04004644fi
4645
4646# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004647if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004648 enableval=$enable_testio_debug;
4649if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004650then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004652$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004653 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004654else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004655 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004656 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004657
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004659$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004660fi
4661
4662else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004664$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004665$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004666
4667TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004668
Theodore Ts'oe1052142006-10-21 21:46:47 -04004669fi
4670
Theodore Ts'oaf773652008-09-01 11:27:27 -04004671
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004672
4673
4674if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4675 if test -n "$ac_tool_prefix"; then
4676 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4677set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004679$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004681 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004682else
4683 case $PKG_CONFIG in
4684 [\\/]* | ?:[\\/]*)
4685 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4686 ;;
4687 *)
4688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689for as_dir in $PATH
4690do
4691 IFS=$as_save_IFS
4692 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004693 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4695 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004697 break 2
4698 fi
4699done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004700 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004701IFS=$as_save_IFS
4702
4703 ;;
4704esac
4705fi
4706PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4707if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004709$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004710else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004712$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004713fi
4714
4715
4716fi
4717if test -z "$ac_cv_path_PKG_CONFIG"; then
4718 ac_pt_PKG_CONFIG=$PKG_CONFIG
4719 # Extract the first word of "pkg-config", so it can be a program name with args.
4720set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004722$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004723if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004724 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004725else
4726 case $ac_pt_PKG_CONFIG in
4727 [\\/]* | ?:[\\/]*)
4728 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4729 ;;
4730 *)
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732for as_dir in $PATH
4733do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004736 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004740 break 2
4741 fi
4742done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004743 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004744IFS=$as_save_IFS
4745
4746 ;;
4747esac
4748fi
4749ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4750if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004752$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004753else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004755$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004756fi
4757
4758 if test "x$ac_pt_PKG_CONFIG" = x; then
4759 PKG_CONFIG=""
4760 else
4761 case $cross_compiling:$ac_tool_warned in
4762yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004763{ $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 +01004764$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004765ac_tool_warned=yes ;;
4766esac
4767 PKG_CONFIG=$ac_pt_PKG_CONFIG
4768 fi
4769else
4770 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4771fi
4772
4773fi
4774if test -n "$PKG_CONFIG"; then
4775 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776 { $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 +01004777$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004778 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004780$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004781 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004783$as_echo "no" >&6; }
4784 PKG_CONFIG=""
4785 fi
4786
4787fi
4788LIBUUID=
4789DEPLIBUUID=
4790STATIC_LIBUUID=
4791DEPSTATIC_LIBUUID=
4792PROFILED_LIBUUID=
4793DEPPROFILED_LIBUUID=
4794UUID_CMT=
4795# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004796if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004797 enableval=$enable_libuuid; if test "$enableval" = "no"
4798then
4799 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004800 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004801 fi
4802
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004804$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004805if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004806 $as_echo_n "(cached) " >&6
4807else
4808 ac_check_lib_save_LIBS=$LIBS
4809LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004811/* end confdefs.h. */
4812
4813/* Override any GCC internal prototype to avoid an error.
4814 Use char because int might match the return type of a GCC
4815 builtin and then its argument prototype would still apply. */
4816#ifdef __cplusplus
4817extern "C"
4818#endif
4819char uuid_generate ();
4820int
4821main ()
4822{
4823return uuid_generate ();
4824 ;
4825 return 0;
4826}
4827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004828if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004829 ac_cv_lib_uuid_uuid_generate=yes
4830else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004831 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004832fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004833rm -f core conftest.err conftest.$ac_objext \
4834 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004835LIBS=$ac_check_lib_save_LIBS
4836fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004838$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004839if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004840 LIBUUID=`$PKG_CONFIG --libs uuid`;
4841 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004843 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004844fi
4845
4846 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004848$as_echo "Disabling private uuid library" >&6; }
4849else
4850 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4851 DEPLIBUUID=$LIBUUID
4852 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4853 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4854 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4855 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004857$as_echo "Enabling private uuid library" >&6; }
4858fi
4859
4860else
4861 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4862DEPLIBUUID=$LIBUUID
4863STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4864DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4865PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4866DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004868$as_echo "Enabling private uuid library by default" >&6; }
4869
4870fi
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4882 if test -n "$ac_tool_prefix"; then
4883 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4884set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004886$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004888 $as_echo_n "(cached) " >&6
4889else
4890 case $PKG_CONFIG in
4891 [\\/]* | ?:[\\/]*)
4892 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4893 ;;
4894 *)
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004904 break 2
4905 fi
4906done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004907 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004908IFS=$as_save_IFS
4909
4910 ;;
4911esac
4912fi
4913PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4914if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004916$as_echo "$PKG_CONFIG" >&6; }
4917else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004919$as_echo "no" >&6; }
4920fi
4921
4922
4923fi
4924if test -z "$ac_cv_path_PKG_CONFIG"; then
4925 ac_pt_PKG_CONFIG=$PKG_CONFIG
4926 # Extract the first word of "pkg-config", so it can be a program name with args.
4927set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004929$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004930if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004931 $as_echo_n "(cached) " >&6
4932else
4933 case $ac_pt_PKG_CONFIG in
4934 [\\/]* | ?:[\\/]*)
4935 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4936 ;;
4937 *)
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939for as_dir in $PATH
4940do
4941 IFS=$as_save_IFS
4942 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4945 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004947 break 2
4948 fi
4949done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004951IFS=$as_save_IFS
4952
4953 ;;
4954esac
4955fi
4956ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4957if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004959$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4960else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004962$as_echo "no" >&6; }
4963fi
4964
4965 if test "x$ac_pt_PKG_CONFIG" = x; then
4966 PKG_CONFIG=""
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970{ $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 +01004971$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972ac_tool_warned=yes ;;
4973esac
4974 PKG_CONFIG=$ac_pt_PKG_CONFIG
4975 fi
4976else
4977 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4978fi
4979
4980fi
4981if test -n "$PKG_CONFIG"; then
4982 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983 { $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 +01004984$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4985 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004987$as_echo "yes" >&6; }
4988 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004991 PKG_CONFIG=""
4992 fi
4993
4994fi
4995LIBBLKID=
4996DEPLIBBLKID=
4997STATIC_LIBBLKID=
4998DEPSTATIC_LIBBLKID=
4999PROFILED_LIBBLKID=
5000DEPPROFILED_LIBBLKID=
5001BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005002
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005003# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005004if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005005 enableval=$enable_libblkid; if test "$enableval" = "no"
5006then
5007 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005008 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005009 fi
5010
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005012$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005013if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005014 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005015else
5016 ac_check_lib_save_LIBS=$LIBS
5017LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005019/* end confdefs.h. */
5020
5021/* Override any GCC internal prototype to avoid an error.
5022 Use char because int might match the return type of a GCC
5023 builtin and then its argument prototype would still apply. */
5024#ifdef __cplusplus
5025extern "C"
5026#endif
5027char blkid_get_cache ();
5028int
5029main ()
5030{
5031return blkid_get_cache ();
5032 ;
5033 return 0;
5034}
5035_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005036if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005037 ac_cv_lib_blkid_blkid_get_cache=yes
5038else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005039 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005040fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005041rm -f core conftest.err conftest.$ac_objext \
5042 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005043LIBS=$ac_check_lib_save_LIBS
5044fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005046$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005047if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005048 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5049 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5050else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005051 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005052fi
5053
5054 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005056$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005057else
5058 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5059 DEPLIBBLKID=$LIBBLKID
5060 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5061 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5062 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5063 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005065
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005067$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005068fi
5069
5070else
5071 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5072DEPLIBBLKID=$LIBBLKID
5073STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5074DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5075PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5076DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005078
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005080$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005081
5082fi
5083
5084
5085
5086
5087
5088
5089
5090
Aditya Kalif239fef2011-07-20 11:40:02 -07005091
5092
5093if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5096set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098$as_echo_n "checking for $ac_word... " >&6; }
5099if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5101else
5102 case $PKG_CONFIG in
5103 [\\/]* | ?:[\\/]*)
5104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5105 ;;
5106 *)
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108for as_dir in $PATH
5109do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_exec_ext in '' $ac_executable_extensions; do
5113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116 break 2
5117 fi
5118done
5119 done
5120IFS=$as_save_IFS
5121
5122 ;;
5123esac
5124fi
5125PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5126if test -n "$PKG_CONFIG"; then
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5128$as_echo "$PKG_CONFIG" >&6; }
5129else
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5131$as_echo "no" >&6; }
5132fi
5133
5134
5135fi
5136if test -z "$ac_cv_path_PKG_CONFIG"; then
5137 ac_pt_PKG_CONFIG=$PKG_CONFIG
5138 # Extract the first word of "pkg-config", so it can be a program name with args.
5139set dummy pkg-config; ac_word=$2
5140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5141$as_echo_n "checking for $ac_word... " >&6; }
5142if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5143 $as_echo_n "(cached) " >&6
5144else
5145 case $ac_pt_PKG_CONFIG in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162 done
5163IFS=$as_save_IFS
5164
5165 ;;
5166esac
5167fi
5168ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5169if test -n "$ac_pt_PKG_CONFIG"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5171$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5172else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174$as_echo "no" >&6; }
5175fi
5176
5177 if test "x$ac_pt_PKG_CONFIG" = x; then
5178 PKG_CONFIG=""
5179 else
5180 case $cross_compiling:$ac_tool_warned in
5181yes:)
5182{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5183$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5184ac_tool_warned=yes ;;
5185esac
5186 PKG_CONFIG=$ac_pt_PKG_CONFIG
5187 fi
5188else
5189 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5190fi
5191
5192fi
5193if test -n "$PKG_CONFIG"; then
5194 _pkg_min_version=0.9.0
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5196$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5197 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5199$as_echo "yes" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202$as_echo "no" >&6; }
5203 PKG_CONFIG=""
5204 fi
5205
5206fi
5207LIBQUOTA=
5208DEPLIBQUOTA=
5209STATIC_LIBQUOTA=
5210DEPSTATIC_LIBQUOTA=
5211PROFILED_LIBQUOTA=
5212DEPPROFILED_LIBQUOTA=
5213QUOTA_CMT=
5214# Check whether --enable-libquota was given.
5215if test "${enable_libquota+set}" = set; then :
5216 enableval=$enable_libquota; if test "$enableval" = "no"
5217then
5218 if test -z "$PKG_CONFIG"; then
5219 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5220 fi
5221
5222 as_ac_Lib=`$as_echo "ac_cv_lib_quota_LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5223 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\`" | $as_tr_sh`
5224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5225 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota" >&5
5226$as_echo_n "checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5227 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota... " >&6; }
5228if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
5229 $as_echo_n "(cached) " >&6
5230else
5231 ac_check_lib_save_LIBS=$LIBS
5232LIBS="-lquota $LIBS"
5233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5234/* end confdefs.h. */
5235
5236/* Override any GCC internal prototype to avoid an error.
5237 Use char because int might match the return type of a GCC
5238 builtin and then its argument prototype would still apply. */
5239#ifdef __cplusplus
5240extern "C"
5241#endif
5242char LIBQUOTA=`$PKG_CONFIG --libs quota`;
5243 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5244int
5245main ()
5246{
5247return LIBQUOTA=`$PKG_CONFIG --libs quota`;
5248 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5249 ;
5250 return 0;
5251}
5252_ACEOF
5253if ac_fn_c_try_link "$LINENO"; then :
5254 eval "$as_ac_Lib=yes"
5255else
5256 eval "$as_ac_Lib=no"
5257fi
5258rm -f core conftest.err conftest.$ac_objext \
5259 conftest$ac_exeext conftest.$ac_ext
5260LIBS=$ac_check_lib_save_LIBS
5261fi
5262eval ac_res=\$$as_ac_Lib
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5264$as_echo "$ac_res" >&6; }
5265eval as_val=\$$as_ac_Lib
5266 if test "x$as_val" = x""yes; then :
5267 as_fn_error "external quota library not found" "$LINENO" 5
5268else
5269 $LIBQUOTA
5270fi
5271
5272 QUOTA_CMT=#
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private quota library" >&5
5274$as_echo "Disabling private quota library" >&6; }
5275else
5276 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5277 DEPLIBQUOTA=$LIBQUOTA
5278 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5279 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5280 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5281 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library" >&5
5283$as_echo "Enabling private quota library" >&6; }
5284fi
5285
5286else
5287 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5288DEPLIBQUOTA=$LIBQUOTA
5289STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5290DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5291PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5292DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library by default" >&5
5294$as_echo "Enabling private quota library by default" >&6; }
5295
5296fi
5297
5298
5299
5300
5301
5302
5303
5304
Theodore Ts'oe1052142006-10-21 21:46:47 -04005305# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005306if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005307 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005308then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005310$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005311 DEBUGFS_CMT="#"
5312else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005313 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005315$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005316fi
5317
5318else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005320$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005321DEBUGFS_CMT=
5322
Theodore Ts'oe1052142006-10-21 21:46:47 -04005323fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005324
Theodore Ts'oe1052142006-10-21 21:46:47 -04005325
5326# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005327if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005328 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005329then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005331$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005332 IMAGER_CMT="#"
5333else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005334 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005336$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005337fi
5338
5339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005341$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005342IMAGER_CMT=
5343
Theodore Ts'oe1052142006-10-21 21:46:47 -04005344fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005345
Theodore Ts'oe1052142006-10-21 21:46:47 -04005346
5347# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005348if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005349 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005350then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005352$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005353 RESIZER_CMT="#"
5354else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005355 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005357$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005358fi
5359
5360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005362$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005363RESIZER_CMT=
5364
Theodore Ts'oe1052142006-10-21 21:46:47 -04005365fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005366
Theodore Ts'oe1052142006-10-21 21:46:47 -04005367
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005368# Check whether --enable-defrag was given.
5369if test "${enable_defrag+set}" = set; then :
5370 enableval=$enable_defrag; if test "$enableval" = "no"
5371then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5373$as_echo "Disabling e4defrag support" >&6; }
5374 DEFRAG_CMT="#"
5375else
5376 DEFRAG_CMT=
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5378$as_echo "Enabling e4defrag support" >&6; }
5379fi
5380
5381else
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5383$as_echo "Enabling e4defrag support by default" >&6; }
5384DEFRAG_CMT=
5385
5386fi
5387
5388
Theodore Ts'oe1052142006-10-21 21:46:47 -04005389# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005391 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005392then
5393 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005395$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005396else
5397 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005400fi
5401
5402else
5403 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005404 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005405 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005407$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005408 ;;
5409 *)
5410 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005413esac
5414
Theodore Ts'oe1052142006-10-21 21:46:47 -04005415fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005416
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005417
Theodore Ts'oe1052142006-10-21 21:46:47 -04005418
5419# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005420if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005421 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005422then
5423 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005425$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005426else
5427 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005429$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005430fi
5431
5432else
5433 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005436
Theodore Ts'oe1052142006-10-21 21:46:47 -04005437fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005438
5439
Theodore Ts'oe1052142006-10-21 21:46:47 -04005440
Theodore Ts'o32493942007-12-31 10:45:01 -05005441# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005442if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005443 enableval=$enable_tls; if test "$enableval" = "no"
5444then
5445 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005447$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005448else
5449 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005452fi
5453
5454else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005455 if test -n "$WITH_DIET_LIBC"
5456then
5457 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005458 { $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 +01005459$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005460else
5461 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005463$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005464fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005465
5466fi
5467
5468if test "$try_tls" = "yes"
5469then
5470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005472$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005473 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005475else
5476
5477 ax_tls_keywords="__thread __declspec(thread) none"
5478 for ax_tls_keyword in $ax_tls_keywords; do
5479 case $ax_tls_keyword in
5480 none) ac_cv_tls=none ; break ;;
5481 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005483/* end confdefs.h. */
5484#include <stdlib.h>
5485 static void
5486 foo(void) {
5487 static $ax_tls_keyword int bar;
5488 exit(1);
5489 }
5490int
5491main ()
5492{
5493
5494 ;
5495 return 0;
5496}
5497_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005499 ac_cv_tls=$ax_tls_keyword ; break
5500else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005501 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005502
5503fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505 esac
5506 done
5507
5508fi
5509
5510
5511 if test "$ac_cv_tls" != "none"; then
5512
5513cat >>confdefs.h <<_ACEOF
5514#define TLS $ac_cv_tls
5515_ACEOF
5516
5517 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005519$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005520
5521fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005522
Theodore Ts'o5610f992007-12-31 11:16:56 -05005523# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005524if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005525 enableval=$enable_uuidd; if test "$enableval" = "no"
5526then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005528$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005529 UUIDD_CMT="#"
5530else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005531 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005532
5533 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005535$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005536fi
5537
5538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005540
5541UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005543$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005544
5545fi
5546
5547
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005548MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005550GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005551PACKAGE=e2fsprogs
5552VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005553VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005556#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005557_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005558
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005560cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005561#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005562_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005563
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005564
5565
5566
5567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005569$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5570set x ${MAKE-make}
5571ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005572if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005573 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005574else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005575 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005576SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005577all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005578 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005580# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005581case `${MAKE-make} -f conftest.make 2>/dev/null` in
5582 *@@@%%%=?*=@@@%%%*)
5583 eval ac_cv_prog_make_${ac_make}_set=yes;;
5584 *)
5585 eval ac_cv_prog_make_${ac_make}_set=no;;
5586esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005587rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005589if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005591$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005592 SET_MAKE=
5593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005595$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005596 SET_MAKE="MAKE=${MAKE-make}"
5597fi
5598
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005599# Find a good install program. We prefer a C program (faster),
5600# so one script is as good as another. But avoid the broken or
5601# incompatible versions:
5602# SysV /etc/install, /usr/sbin/install
5603# SunOS /usr/etc/install
5604# IRIX /sbin/install
5605# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005606# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5608# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005610# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005611# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005612# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005614$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005615if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005616if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005617 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005618else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622 IFS=$as_save_IFS
5623 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005624 # Account for people who put trailing slashes in PATH elements.
5625case $as_dir/ in #((
5626 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005628 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005629 /usr/ucb/* ) ;;
5630 *)
5631 # OSF1 and SCO ODT 3.0 have their own names for install.
5632 # Don't use installbsd from OSF since it installs stuff as root
5633 # by default.
5634 for ac_prog in ginstall scoinst install; do
5635 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005636 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 -04005637 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005638 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005639 # AIX install. It has an incompatible calling convention.
5640 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005641 elif test $ac_prog = install &&
5642 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5643 # program-specific install script used by HP pwplus--don't use.
5644 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005645 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005646 rm -rf conftest.one conftest.two conftest.dir
5647 echo one > conftest.one
5648 echo two > conftest.two
5649 mkdir conftest.dir
5650 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5651 test -s conftest.one && test -s conftest.two &&
5652 test -s conftest.dir/conftest.one &&
5653 test -s conftest.dir/conftest.two
5654 then
5655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5656 break 3
5657 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005658 fi
5659 fi
5660 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005661 done
5662 ;;
5663esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005665 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005666IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005667
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005668rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005669
5670fi
5671 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005673 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005674 # As a last resort, use the slow shell script. Don't cache a
5675 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005676 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005678 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005679 fi
5680fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005682$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005683
5684# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5685# It thinks the first close brace ends the variable substitution.
5686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005689
5690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5691
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005692
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005693 MKINSTALLDIRS=
5694 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005695 case "$ac_aux_dir" in
5696 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5697 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5698 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005699 fi
5700 if test -z "$MKINSTALLDIRS"; then
5701 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5702 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005703
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005704
5705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005707$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005708 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005709if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005710 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005711else
5712 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005713fi
5714
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005716$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005717
5718
5719
5720
5721
5722
5723# Prepare PATH_SEPARATOR.
5724# The user is always right.
5725if test "${PATH_SEPARATOR+set}" != set; then
5726 echo "#! /bin/sh" >conf$$.sh
5727 echo "exit 0" >>conf$$.sh
5728 chmod +x conf$$.sh
5729 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5730 PATH_SEPARATOR=';'
5731 else
5732 PATH_SEPARATOR=:
5733 fi
5734 rm -f conf$$.sh
5735fi
5736
5737# Find out how to test for executable files. Don't use a zero-byte file,
5738# as systems may use methods other than mode bits to determine executability.
5739cat >conf$$.file <<_ASEOF
5740#! /bin/sh
5741exit 0
5742_ASEOF
5743chmod +x conf$$.file
5744if test -x conf$$.file >/dev/null 2>&1; then
5745 ac_executable_p="test -x"
5746else
5747 ac_executable_p="test -f"
5748fi
5749rm -f conf$$.file
5750
5751# Extract the first word of "msgfmt", so it can be a program name with args.
5752set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005754$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005756 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005757else
5758 case "$MSGFMT" in
5759 [\\/]* | ?:[\\/]*)
5760 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5761 ;;
5762 *)
5763 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5764 for ac_dir in $PATH; do
5765 IFS="$ac_save_IFS"
5766 test -z "$ac_dir" && ac_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5769 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5770 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5771 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5772 break 2
5773 fi
5774 fi
5775 done
5776 done
5777 IFS="$ac_save_IFS"
5778 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5779 ;;
5780esac
5781fi
5782MSGFMT="$ac_cv_path_MSGFMT"
5783if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005785$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005786else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005788$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005789fi
5790
5791 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5792set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005795if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005796 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797else
5798 case $GMSGFMT in
5799 [\\/]* | ?:[\\/]*)
5800 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5801 ;;
5802 *)
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804for as_dir in $PATH
5805do
5806 IFS=$as_save_IFS
5807 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005808 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005809 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 -05005810 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005812 break 2
5813 fi
5814done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005816IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005817
5818 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5819 ;;
5820esac
5821fi
5822GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005823if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005826else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005828$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005829fi
5830
5831
5832
Theodore Ts'oe1052142006-10-21 21:46:47 -04005833
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005834# Prepare PATH_SEPARATOR.
5835# The user is always right.
5836if test "${PATH_SEPARATOR+set}" != set; then
5837 echo "#! /bin/sh" >conf$$.sh
5838 echo "exit 0" >>conf$$.sh
5839 chmod +x conf$$.sh
5840 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5841 PATH_SEPARATOR=';'
5842 else
5843 PATH_SEPARATOR=:
5844 fi
5845 rm -f conf$$.sh
5846fi
5847
5848# Find out how to test for executable files. Don't use a zero-byte file,
5849# as systems may use methods other than mode bits to determine executability.
5850cat >conf$$.file <<_ASEOF
5851#! /bin/sh
5852exit 0
5853_ASEOF
5854chmod +x conf$$.file
5855if test -x conf$$.file >/dev/null 2>&1; then
5856 ac_executable_p="test -x"
5857else
5858 ac_executable_p="test -f"
5859fi
5860rm -f conf$$.file
5861
5862# Extract the first word of "xgettext", so it can be a program name with args.
5863set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005865$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005867 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005868else
5869 case "$XGETTEXT" in
5870 [\\/]* | ?:[\\/]*)
5871 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5872 ;;
5873 *)
5874 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5875 for ac_dir in $PATH; do
5876 IFS="$ac_save_IFS"
5877 test -z "$ac_dir" && ac_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5880 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5881 (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
5882 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5883 break 2
5884 fi
5885 fi
5886 done
5887 done
5888 IFS="$ac_save_IFS"
5889 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5890 ;;
5891esac
5892fi
5893XGETTEXT="$ac_cv_path_XGETTEXT"
5894if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005896$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005897else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900fi
5901
5902 rm -f messages.po
5903
5904
5905# Prepare PATH_SEPARATOR.
5906# The user is always right.
5907if test "${PATH_SEPARATOR+set}" != set; then
5908 echo "#! /bin/sh" >conf$$.sh
5909 echo "exit 0" >>conf$$.sh
5910 chmod +x conf$$.sh
5911 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5912 PATH_SEPARATOR=';'
5913 else
5914 PATH_SEPARATOR=:
5915 fi
5916 rm -f conf$$.sh
5917fi
5918
5919# Find out how to test for executable files. Don't use a zero-byte file,
5920# as systems may use methods other than mode bits to determine executability.
5921cat >conf$$.file <<_ASEOF
5922#! /bin/sh
5923exit 0
5924_ASEOF
5925chmod +x conf$$.file
5926if test -x conf$$.file >/dev/null 2>&1; then
5927 ac_executable_p="test -x"
5928else
5929 ac_executable_p="test -f"
5930fi
5931rm -f conf$$.file
5932
5933# Extract the first word of "msgmerge", so it can be a program name with args.
5934set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005936$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005937if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005938 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939else
5940 case "$MSGMERGE" in
5941 [\\/]* | ?:[\\/]*)
5942 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5943 ;;
5944 *)
5945 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5946 for ac_dir in $PATH; do
5947 IFS="$ac_save_IFS"
5948 test -z "$ac_dir" && ac_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5951 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5952 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5953 break 2
5954 fi
5955 fi
5956 done
5957 done
5958 IFS="$ac_save_IFS"
5959 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5960 ;;
5961esac
5962fi
5963MSGMERGE="$ac_cv_path_MSGMERGE"
5964if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005966$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005967else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005969$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005970fi
5971
5972
5973 if test "$GMSGFMT" != ":"; then
5974 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5975 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5976 : ;
5977 else
5978 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005979 { $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 +01005980$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005981 GMSGFMT=":"
5982 fi
5983 fi
5984
5985 if test "$XGETTEXT" != ":"; then
5986 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5987 (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
5988 : ;
5989 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005990 { $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 +01005991$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992 XGETTEXT=":"
5993 fi
5994 rm -f messages.po
5995 fi
5996
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998
5999
6000if test -n "$ac_tool_prefix"; then
6001 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6002set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006004$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006005if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006006 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006007else
6008 if test -n "$RANLIB"; then
6009 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012for as_dir in $PATH
6013do
6014 IFS=$as_save_IFS
6015 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006016 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006017 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 -05006018 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020 break 2
6021 fi
6022done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006023 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006024IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025
6026fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027fi
6028RANLIB=$ac_cv_prog_RANLIB
6029if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006031$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006034$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006036
Theodore Ts'oe1052142006-10-21 21:46:47 -04006037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038fi
6039if test -z "$ac_cv_prog_RANLIB"; then
6040 ac_ct_RANLIB=$RANLIB
6041 # Extract the first word of "ranlib", so it can be a program name with args.
6042set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006044$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006045if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006046 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047else
6048 if test -n "$ac_ct_RANLIB"; then
6049 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6050else
6051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052for as_dir in $PATH
6053do
6054 IFS=$as_save_IFS
6055 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006056 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006057 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 -05006058 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060 break 2
6061 fi
6062done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006064IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006066fi
6067fi
6068ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6069if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006071$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006072else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006074$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006075fi
6076
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077 if test "x$ac_ct_RANLIB" = x; then
6078 RANLIB=":"
6079 else
6080 case $cross_compiling:$ac_tool_warned in
6081yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006082{ $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 +01006083$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006084ac_tool_warned=yes ;;
6085esac
6086 RANLIB=$ac_ct_RANLIB
6087 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006088else
6089 RANLIB="$ac_cv_prog_RANLIB"
6090fi
6091
6092
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006094$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006095if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006096 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006097else
6098 ac_check_lib_save_LIBS=$LIBS
6099LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101/* end confdefs.h. */
6102
Theodore Ts'oe1052142006-10-21 21:46:47 -04006103/* Override any GCC internal prototype to avoid an error.
6104 Use char because int might match the return type of a GCC
6105 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006106#ifdef __cplusplus
6107extern "C"
6108#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109char strerror ();
6110int
6111main ()
6112{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006113return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114 ;
6115 return 0;
6116}
6117_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006118if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119 ac_cv_lib_cposix_strerror=yes
6120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006121 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006123rm -f core conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125LIBS=$ac_check_lib_save_LIBS
6126fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006128$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006129if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130 LIBS="$LIBS -lcposix"
6131fi
6132
6133
6134
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006135
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6137$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6138if test "${ac_cv_path_GREP+set}" = set; then :
6139 $as_echo_n "(cached) " >&6
6140else
6141 if test -z "$GREP"; then
6142 ac_path_GREP_found=false
6143 # Loop through the user's path and test for each of PROGNAME-LIST
6144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6146do
6147 IFS=$as_save_IFS
6148 test -z "$as_dir" && as_dir=.
6149 for ac_prog in grep ggrep; do
6150 for ac_exec_ext in '' $ac_executable_extensions; do
6151 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6152 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6153# Check for GNU ac_path_GREP and select it if it is found.
6154 # Check for GNU $ac_path_GREP
6155case `"$ac_path_GREP" --version 2>&1` in
6156*GNU*)
6157 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6158*)
6159 ac_count=0
6160 $as_echo_n 0123456789 >"conftest.in"
6161 while :
6162 do
6163 cat "conftest.in" "conftest.in" >"conftest.tmp"
6164 mv "conftest.tmp" "conftest.in"
6165 cp "conftest.in" "conftest.nl"
6166 $as_echo 'GREP' >> "conftest.nl"
6167 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6169 as_fn_arith $ac_count + 1 && ac_count=$as_val
6170 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6171 # Best one so far, save it but keep looking for a better one
6172 ac_cv_path_GREP="$ac_path_GREP"
6173 ac_path_GREP_max=$ac_count
6174 fi
6175 # 10*(2^10) chars as input seems more than enough
6176 test $ac_count -gt 10 && break
6177 done
6178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6179esac
6180
6181 $ac_path_GREP_found && break 3
6182 done
6183 done
6184 done
6185IFS=$as_save_IFS
6186 if test -z "$ac_cv_path_GREP"; then
6187 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6188 fi
6189else
6190 ac_cv_path_GREP=$GREP
6191fi
6192
6193fi
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6195$as_echo "$ac_cv_path_GREP" >&6; }
6196 GREP="$ac_cv_path_GREP"
6197
6198
6199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6200$as_echo_n "checking for egrep... " >&6; }
6201if test "${ac_cv_path_EGREP+set}" = set; then :
6202 $as_echo_n "(cached) " >&6
6203else
6204 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6205 then ac_cv_path_EGREP="$GREP -E"
6206 else
6207 if test -z "$EGREP"; then
6208 ac_path_EGREP_found=false
6209 # Loop through the user's path and test for each of PROGNAME-LIST
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_prog in egrep; do
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6218 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6219# Check for GNU ac_path_EGREP and select it if it is found.
6220 # Check for GNU $ac_path_EGREP
6221case `"$ac_path_EGREP" --version 2>&1` in
6222*GNU*)
6223 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6224*)
6225 ac_count=0
6226 $as_echo_n 0123456789 >"conftest.in"
6227 while :
6228 do
6229 cat "conftest.in" "conftest.in" >"conftest.tmp"
6230 mv "conftest.tmp" "conftest.in"
6231 cp "conftest.in" "conftest.nl"
6232 $as_echo 'EGREP' >> "conftest.nl"
6233 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6234 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6235 as_fn_arith $ac_count + 1 && ac_count=$as_val
6236 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6237 # Best one so far, save it but keep looking for a better one
6238 ac_cv_path_EGREP="$ac_path_EGREP"
6239 ac_path_EGREP_max=$ac_count
6240 fi
6241 # 10*(2^10) chars as input seems more than enough
6242 test $ac_count -gt 10 && break
6243 done
6244 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6245esac
6246
6247 $ac_path_EGREP_found && break 3
6248 done
6249 done
6250 done
6251IFS=$as_save_IFS
6252 if test -z "$ac_cv_path_EGREP"; then
6253 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6254 fi
6255else
6256 ac_cv_path_EGREP=$EGREP
6257fi
6258
6259 fi
6260fi
6261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6262$as_echo "$ac_cv_path_EGREP" >&6; }
6263 EGREP="$ac_cv_path_EGREP"
6264
6265
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6267$as_echo_n "checking for ANSI C header files... " >&6; }
6268if test "${ac_cv_header_stdc+set}" = set; then :
6269 $as_echo_n "(cached) " >&6
6270else
6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6272/* end confdefs.h. */
6273#include <stdlib.h>
6274#include <stdarg.h>
6275#include <string.h>
6276#include <float.h>
6277
6278int
6279main ()
6280{
6281
6282 ;
6283 return 0;
6284}
6285_ACEOF
6286if ac_fn_c_try_compile "$LINENO"; then :
6287 ac_cv_header_stdc=yes
6288else
6289 ac_cv_header_stdc=no
6290fi
6291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6292
6293if test $ac_cv_header_stdc = yes; then
6294 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6296/* end confdefs.h. */
6297#include <string.h>
6298
6299_ACEOF
6300if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6301 $EGREP "memchr" >/dev/null 2>&1; then :
6302
6303else
6304 ac_cv_header_stdc=no
6305fi
6306rm -f conftest*
6307
6308fi
6309
6310if test $ac_cv_header_stdc = yes; then
6311 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6313/* end confdefs.h. */
6314#include <stdlib.h>
6315
6316_ACEOF
6317if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6318 $EGREP "free" >/dev/null 2>&1; then :
6319
6320else
6321 ac_cv_header_stdc=no
6322fi
6323rm -f conftest*
6324
6325fi
6326
6327if test $ac_cv_header_stdc = yes; then
6328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6329 if test "$cross_compiling" = yes; then :
6330 :
6331else
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h. */
6334#include <ctype.h>
6335#include <stdlib.h>
6336#if ((' ' & 0x0FF) == 0x020)
6337# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6338# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6339#else
6340# define ISLOWER(c) \
6341 (('a' <= (c) && (c) <= 'i') \
6342 || ('j' <= (c) && (c) <= 'r') \
6343 || ('s' <= (c) && (c) <= 'z'))
6344# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6345#endif
6346
6347#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6348int
6349main ()
6350{
6351 int i;
6352 for (i = 0; i < 256; i++)
6353 if (XOR (islower (i), ISLOWER (i))
6354 || toupper (i) != TOUPPER (i))
6355 return 2;
6356 return 0;
6357}
6358_ACEOF
6359if ac_fn_c_try_run "$LINENO"; then :
6360
6361else
6362 ac_cv_header_stdc=no
6363fi
6364rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6365 conftest.$ac_objext conftest.beam conftest.$ac_ext
6366fi
6367
6368fi
6369fi
6370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6371$as_echo "$ac_cv_header_stdc" >&6; }
6372if test $ac_cv_header_stdc = yes; then
6373
6374$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6375
6376fi
6377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006379$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006380if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006381 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384/* end confdefs.h. */
6385
6386int
6387main ()
6388{
6389/* FIXME: Include the comments suggested by Paul. */
6390#ifndef __cplusplus
6391 /* Ultrix mips cc rejects this. */
6392 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006393 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006394 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006395 char const *const *pcpcc;
6396 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397 /* NEC SVR4.0.2 mips cc rejects this. */
6398 struct point {int x, y;};
6399 static struct point const zero = {0,0};
6400 /* AIX XL C 1.02.0.0 rejects this.
6401 It does not let you subtract one const X* pointer from another in
6402 an arm of an if-expression whose if-part is not a constant
6403 expression */
6404 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006405 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006406 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006407 ++pcpcc;
6408 ppc = (char**) pcpcc;
6409 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410 { /* SCO 3.2v4 cc rejects this. */
6411 char *t;
6412 char const *s = 0 ? (char *) 0 : (char const *) 0;
6413
6414 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006415 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416 }
6417 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6418 int x[] = {25, 17};
6419 const int *foo = &x[0];
6420 ++foo;
6421 }
6422 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6423 typedef const int *iptr;
6424 iptr p = 0;
6425 ++p;
6426 }
6427 { /* AIX XL C 1.02.0.0 rejects this saying
6428 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6429 struct s { int j; const int *ap[3]; };
6430 struct s *b; b->j = 5;
6431 }
6432 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6433 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006434 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006436 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006437#endif
6438
6439 ;
6440 return 0;
6441}
6442_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006443if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006444 ac_cv_c_const=yes
6445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006446 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006451$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452if test $ac_cv_c_const = no; then
6453
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006454$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006455
6456fi
6457
6458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006460$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006461if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006462 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465/* end confdefs.h. */
6466
6467int
6468main ()
6469{
6470signed char x;
6471 ;
6472 return 0;
6473}
6474_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006475if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476 bh_cv_c_signed=yes
6477else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006478 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006483$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484 if test $bh_cv_c_signed = no; then
6485
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006486$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487
6488 fi
6489
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006491$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006492if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006493 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494else
6495 ac_cv_c_inline=no
6496for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498/* end confdefs.h. */
6499#ifndef __cplusplus
6500typedef int foo_t;
6501static $ac_kw foo_t static_foo () {return 0; }
6502$ac_kw foo_t foo () {return 0; }
6503#endif
6504
6505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006506if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006507 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6510 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006511done
6512
6513fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006515$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006516
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006518 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006519 *)
6520 case $ac_cv_c_inline in
6521 no) ac_val=;;
6522 *) ac_val=$ac_cv_c_inline;;
6523 esac
6524 cat >>confdefs.h <<_ACEOF
6525#ifndef __cplusplus
6526#define inline $ac_val
6527#endif
6528_ACEOF
6529 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006530esac
6531
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006532# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6533for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6534 inttypes.h stdint.h unistd.h
6535do :
6536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6537ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6538"
6539eval as_val=\$$as_ac_Header
6540 if test "x$as_val" = x""yes; then :
6541 cat >>confdefs.h <<_ACEOF
6542#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6543_ACEOF
6544
6545fi
6546
6547done
6548
6549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006550ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6551if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006552
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006554
6555cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006556#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006557_ACEOF
6558
6559fi
6560
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6562if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564else
6565
6566cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006567#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568_ACEOF
6569
6570fi
6571
6572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006574$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006575if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006579/* end confdefs.h. */
6580long long ll = 1LL; int i = 63;
6581int
6582main ()
6583{
6584long long llmax = (long long) -1;
6585 return ll << i | ll >> i | llmax / ll | llmax % ll;
6586 ;
6587 return 0;
6588}
6589_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006590if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591 ac_cv_type_long_long=yes
6592else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006595rm -f core conftest.err conftest.$ac_objext \
6596 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006599$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006600 if test $ac_cv_type_long_long = yes; then
6601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006602$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603
6604 fi
6605
6606
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006608$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006610 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611else
6612 if test "$GCC" = yes; then
6613 gt_cv_c_long_double=yes
6614 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616/* end confdefs.h. */
6617
6618 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6619 long double foo = 0.0;
6620 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6621 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6622
6623int
6624main ()
6625{
6626
6627 ;
6628 return 0;
6629}
6630_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006632 gt_cv_c_long_double=yes
6633else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006634 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637 fi
6638fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006640$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641 if test $gt_cv_c_long_double = yes; then
6642
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006643$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644
6645 fi
6646
6647
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006649$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006651 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006654/* end confdefs.h. */
6655#include <stddef.h>
6656 wchar_t foo = (wchar_t)'\0';
6657int
6658main ()
6659{
6660
6661 ;
6662 return 0;
6663}
6664_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006665if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 gt_cv_c_wchar_t=yes
6667else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006673$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674 if test $gt_cv_c_wchar_t = yes; then
6675
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006676$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677
6678 fi
6679
6680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006683if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006687/* end confdefs.h. */
6688#include <wchar.h>
6689 wint_t foo = (wchar_t)'\0';
6690int
6691main ()
6692{
6693
6694 ;
6695 return 0;
6696}
6697_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006698if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699 gt_cv_c_wint_t=yes
6700else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006701 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006706$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006707 if test $gt_cv_c_wint_t = yes; then
6708
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006709$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710
6711 fi
6712
6713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006715$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006716if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006717 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720/* end confdefs.h. */
6721#include <sys/types.h>
6722#include <inttypes.h>
6723int
6724main ()
6725{
6726uintmax_t i = (uintmax_t) -1;
6727 ;
6728 return 0;
6729}
6730_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006731if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732 jm_ac_cv_header_inttypes_h=yes
6733else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006734 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006737fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006739$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740 if test $jm_ac_cv_header_inttypes_h = yes; then
6741
6742cat >>confdefs.h <<_ACEOF
6743#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6744_ACEOF
6745
6746 fi
6747
6748
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006750$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006751if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006752 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006755/* end confdefs.h. */
6756#include <sys/types.h>
6757#include <stdint.h>
6758int
6759main ()
6760{
6761uintmax_t i = (uintmax_t) -1;
6762 ;
6763 return 0;
6764}
6765_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006766if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006767 jm_ac_cv_header_stdint_h=yes
6768else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006769 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006774$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775 if test $jm_ac_cv_header_stdint_h = yes; then
6776
6777cat >>confdefs.h <<_ACEOF
6778#define HAVE_STDINT_H_WITH_UINTMAX 1
6779_ACEOF
6780
6781 fi
6782
6783
6784
6785
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006787$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006788if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006789 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006792/* end confdefs.h. */
6793
6794#include <stddef.h>
6795#include <stdlib.h>
6796#if HAVE_STDINT_H_WITH_UINTMAX
6797#include <stdint.h>
6798#endif
6799#if HAVE_INTTYPES_H_WITH_UINTMAX
6800#include <inttypes.h>
6801#endif
6802
6803int
6804main ()
6805{
6806intmax_t x = -1;
6807 ;
6808 return 0;
6809}
6810_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006811if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812 gt_cv_c_intmax_t=yes
6813else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006814 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006819$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006820 if test $gt_cv_c_intmax_t = yes; then
6821
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006822$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006823
6824 fi
6825
6826
6827
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006829$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006830if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006831 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832else
6833
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006834 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006837/* end confdefs.h. */
6838
6839#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6840 notposix
6841#endif
6842
6843_ACEOF
6844if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006845 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846 gt_cv_func_printf_posix="guessing no"
6847else
6848 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006850rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852
6853else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006855/* end confdefs.h. */
6856
6857#include <stdio.h>
6858#include <string.h>
6859/* The string "%2$d %1$d", with dollar characters protected from the shell's
6860 dollar expansion (possibly an autoconf bug). */
6861static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6862static char buf[100];
6863int main ()
6864{
6865 sprintf (buf, format, 33, 55);
6866 return (strcmp (buf, "55 33") != 0);
6867}
6868_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006869if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006870 gt_cv_func_printf_posix=yes
6871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006872 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006873fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6875 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006876fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006877
Theodore Ts'oe1052142006-10-21 21:46:47 -04006878
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006879fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006881$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882 case $gt_cv_func_printf_posix in
6883 *yes)
6884
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006886
6887 ;;
6888 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006889
6890# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6891# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006893$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006895 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006899#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900int
6901main ()
6902{
6903char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006904 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905 ;
6906 return 0;
6907}
6908_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006909if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006911else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006912 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006913fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914rm -f core conftest.err conftest.$ac_objext \
6915 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006918$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006919if test $ac_cv_working_alloca_h = yes; then
6920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006921$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006922
6923fi
6924
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006926$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006927if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006928 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006931/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932#ifdef __GNUC__
6933# define alloca __builtin_alloca
6934#else
6935# ifdef _MSC_VER
6936# include <malloc.h>
6937# define alloca _alloca
6938# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006939# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006940# include <alloca.h>
6941# else
6942# ifdef _AIX
6943 #pragma alloca
6944# else
6945# ifndef alloca /* predefined by HP cc +Olibcalls */
6946char *alloca ();
6947# endif
6948# endif
6949# endif
6950# endif
6951#endif
6952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953int
6954main ()
6955{
6956char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006957 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006958 ;
6959 return 0;
6960}
6961_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006962if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006963 ac_cv_func_alloca_works=yes
6964else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006965 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006967rm -f core conftest.err conftest.$ac_objext \
6968 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006971$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006973if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006976
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6979# that cause trouble. Some versions do not even contain alloca or
6980# contain a buggy version. If you still want to use their alloca,
6981# use ar to extract alloca.o from them instead of compiling alloca.c.
6982
Theodore Ts'oe1052142006-10-21 21:46:47 -04006983ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006985$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986
6987
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006989$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006990if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006991 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006994/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006995#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996webecray
6997#else
6998wenotbecray
6999#endif
7000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007003 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004 ac_cv_os_cray=yes
7005else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006 ac_cv_os_cray=no
7007fi
7008rm -f conftest*
7009
7010fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007012$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007013if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007014 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7017eval as_val=\$$as_ac_var
7018 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007019
7020cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007021#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007025fi
7026
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007028fi
7029
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007031$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007032if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007033 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007035 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036 ac_cv_c_stack_direction=0
7037else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007040$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007042find_stack_direction ()
7043{
7044 static char *addr = 0;
7045 auto char dummy;
7046 if (addr == 0)
7047 {
7048 addr = &dummy;
7049 return find_stack_direction ();
7050 }
7051 else
7052 return (&dummy > addr) ? 1 : -1;
7053}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054
7055int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056main ()
7057{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007058 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007059}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007060_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007061if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007062 ac_cv_c_stack_direction=1
7063else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007065fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007066rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7067 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007072$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075_ACEOF
7076
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007077
7078fi
7079
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007080
7081
7082
7083 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007084do :
7085 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007086ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7087"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007088eval as_val=\$$as_ac_Header
7089 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007091#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092_ACEOF
7093
7094fi
7095
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007096done
7097
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007098
7099
7100
7101
7102
7103
7104
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007105for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007106do :
7107 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7108if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007110#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007111_ACEOF
7112
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007113fi
7114done
7115
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007117$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007118if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007119 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007122 ac_cv_func_mmap_fixed_mapped=no
7123else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125/* end confdefs.h. */
7126$ac_includes_default
7127/* malloc might have been renamed as rpl_malloc. */
7128#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007129
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130/* Thanks to Mike Haertel and Jim Avera for this test.
7131 Here is a matrix of mmap possibilities:
7132 mmap private not fixed
7133 mmap private fixed at somewhere currently unmapped
7134 mmap private fixed at somewhere already mapped
7135 mmap shared not fixed
7136 mmap shared fixed at somewhere currently unmapped
7137 mmap shared fixed at somewhere already mapped
7138 For private mappings, we should verify that changes cannot be read()
7139 back from the file, nor mmap's back from the file at a different
7140 address. (There have been systems where private was not correctly
7141 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143 like early versions of FreeBSD and possibly contemporary NetBSD.)
7144 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007145 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007146
7147 Grep wants private fixed already mapped.
7148 The main things grep needs to know about mmap are:
7149 * does it exist and is it safe to write into the mmap'd area
7150 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007151
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007152#include <fcntl.h>
7153#include <sys/mman.h>
7154
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007155#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156char *malloc ();
7157#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007159/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007160#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007161# ifdef _SC_PAGESIZE
7162# define getpagesize() sysconf(_SC_PAGESIZE)
7163# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007164# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007165# include <sys/param.h>
7166# ifdef EXEC_PAGESIZE
7167# define getpagesize() EXEC_PAGESIZE
7168# else /* no EXEC_PAGESIZE */
7169# ifdef NBPG
7170# define getpagesize() NBPG * CLSIZE
7171# ifndef CLSIZE
7172# define CLSIZE 1
7173# endif /* no CLSIZE */
7174# else /* no NBPG */
7175# ifdef NBPC
7176# define getpagesize() NBPC
7177# else /* no NBPC */
7178# ifdef PAGESIZE
7179# define getpagesize() PAGESIZE
7180# endif /* PAGESIZE */
7181# endif /* no NBPC */
7182# endif /* no NBPG */
7183# endif /* no EXEC_PAGESIZE */
7184# else /* no HAVE_SYS_PARAM_H */
7185# define getpagesize() 8192 /* punt totally */
7186# endif /* no HAVE_SYS_PARAM_H */
7187# endif /* no _SC_PAGESIZE */
7188
7189#endif /* no HAVE_GETPAGESIZE */
7190
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007191int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007195 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007197 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007200
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 /* First, make a file with some known garbage in it. */
7202 data = (char *) malloc (pagesize);
7203 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007204 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007205 for (i = 0; i < pagesize; ++i)
7206 *(data + i) = rand ();
7207 umask (0);
7208 fd = creat ("conftest.mmap", 0600);
7209 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007210 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007212 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007214
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007215 /* Next, check that the tail of a page is zero-filled. File must have
7216 non-zero length, otherwise we risk SIGBUS for entire page. */
7217 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7218 if (fd2 < 0)
7219 return 4;
7220 cdata2 = "";
7221 if (write (fd2, cdata2, 1) != 1)
7222 return 5;
7223 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7224 if (data2 == MAP_FAILED)
7225 return 6;
7226 for (i = 0; i < pagesize; ++i)
7227 if (*(data2 + i))
7228 return 7;
7229 close (fd2);
7230 if (munmap (data2, pagesize))
7231 return 8;
7232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 /* Next, try to mmap the file at a fixed address which already has
7234 something else allocated at it. If we can, also make sure that
7235 we see the same garbage. */
7236 fd = open ("conftest.mmap", O_RDWR);
7237 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007238 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7240 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007241 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242 for (i = 0; i < pagesize; ++i)
7243 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007244 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 /* Finally, make sure that changes to the mapped area do not
7247 percolate back to the file as seen by read(). (This is a bug on
7248 some variants of i386 svr4.0.) */
7249 for (i = 0; i < pagesize; ++i)
7250 *(data2 + i) = *(data2 + i) + 1;
7251 data3 = (char *) malloc (pagesize);
7252 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007253 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007255 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256 for (i = 0; i < pagesize; ++i)
7257 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007258 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007260 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007261}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007263if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007264 ac_cv_func_mmap_fixed_mapped=yes
7265else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007266 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007267fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7269 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007271
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007272fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007274$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007275if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007276
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007277$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007278
7279fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007280rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007281
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283 { $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 +01007284$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 -05007285if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007286 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007287else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007290
7291#include <features.h>
7292#ifdef __GNU_LIBRARY__
7293 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7294 Lucky GNU user
7295 #endif
7296#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297
7298_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007299if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007300 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301 ac_cv_gnu_library_2_1=yes
7302else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007303 ac_cv_gnu_library_2_1=no
7304fi
7305rm -f conftest*
7306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007307
7308
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007309fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007311$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007312
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007313 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007314
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007315
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007316
7317
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007319$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007320if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007321 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007322else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007324 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007325
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007326 # Guess based on the CPU.
7327 case "$host_cpu" in
7328 alpha* | i3456786 | m68k | s390*)
7329 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7330 *)
7331 gt_cv_int_divbyzero_sigfpe="guessing no";;
7332 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007334else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007336/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007337
7338#include <stdlib.h>
7339#include <signal.h>
7340
7341static void
7342#ifdef __cplusplus
7343sigfpe_handler (int sig)
7344#else
7345sigfpe_handler (sig) int sig;
7346#endif
7347{
7348 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7349 exit (sig != SIGFPE);
7350}
7351
7352int x = 1;
7353int y = 0;
7354int z;
7355int nan;
7356
7357int main ()
7358{
7359 signal (SIGFPE, sigfpe_handler);
7360/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7361#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7362 signal (SIGTRAP, sigfpe_handler);
7363#endif
7364/* Linux/SPARC yields signal SIGILL. */
7365#if defined (__sparc__) && defined (__linux__)
7366 signal (SIGILL, sigfpe_handler);
7367#endif
7368
7369 z = x / y;
7370 nan = y / y;
7371 exit (1);
7372}
7373
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007375if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007376 gt_cv_int_divbyzero_sigfpe=yes
7377else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007378 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007379fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7381 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007382fi
7383
Theodore Ts'oe1052142006-10-21 21:46:47 -04007384
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007385fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007387$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007388 case "$gt_cv_int_divbyzero_sigfpe" in
7389 *yes) value=1;;
7390 *) value=0;;
7391 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007392
7393cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007394#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007396
7397
7398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007400$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007401if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007402 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007405/* end confdefs.h. */
7406unsigned long long ull = 1ULL; int i = 63;
7407int
7408main ()
7409{
7410unsigned long long ullmax = (unsigned long long) -1;
7411 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7412 ;
7413 return 0;
7414}
7415_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007416if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417 ac_cv_type_unsigned_long_long=yes
7418else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007419 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007420fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007421rm -f core conftest.err conftest.$ac_objext \
7422 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007423fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007425$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426 if test $ac_cv_type_unsigned_long_long = yes; then
7427
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007428$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007429
7430 fi
7431
7432
7433
7434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007435 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 -05007436
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007437 test $ac_cv_type_unsigned_long_long = yes \
7438 && ac_type='unsigned long long' \
7439 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440
7441cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007442#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443_ACEOF
7444
7445 else
7446
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007447$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007448
7449 fi
7450
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007453$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007454if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007455 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007456else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007460#include <sys/types.h>
7461#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462int
7463main ()
7464{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007466 ;
7467 return 0;
7468}
7469_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007470if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471 gt_cv_header_inttypes_h=yes
7472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007473 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476
7477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007479$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007480 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007481
7482cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007485
7486 fi
7487
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007490 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007491 { $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 +01007492$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007493if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007494 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007495else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007498/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007499#include <inttypes.h>
7500#ifdef PRId32
7501char *p = PRId32;
7502#endif
7503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007504int
7505main ()
7506{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508 ;
7509 return 0;
7510}
7511_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007512if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007513 gt_cv_inttypes_pri_broken=no
7514else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007515 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518
7519fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007521$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007522 fi
7523 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524
7525cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007526#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007527_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007528
7529 fi
7530
7531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007532 for ac_header in stdint.h
7533do :
7534 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7535if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007537#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007538_ACEOF
7539
7540fi
7541
7542done
7543
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007545$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548/* end confdefs.h. */
7549
7550#include <limits.h>
7551#if HAVE_STDINT_H
7552#include <stdint.h>
7553#endif
7554#ifdef SIZE_MAX
7555Found it
7556#endif
7557
7558_ACEOF
7559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007560 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007561 result=yes
7562fi
7563rm -f conftest*
7564
7565 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007566 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 -05007567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007569 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007571
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007572
7573 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007576 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007578
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007579
7580 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007583 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007584fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007585
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007589/* end confdefs.h. */
7590#include <stddef.h>
7591 extern size_t foo;
7592 extern unsigned long foo;
7593
7594int
7595main ()
7596{
7597
7598 ;
7599 return 0;
7600}
7601_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007602if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007606 fi
7607 if test -z "$result"; then
7608 if test "$fits_in_uint" = 1; then
7609 result="$res_hi$res_lo"U
7610 else
7611 result="$res_hi$res_lo"UL
7612 fi
7613 else
7614 result='~(size_t)0'
7615 fi
7616 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007618$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007619 if test "$result" != yes; then
7620
7621cat >>confdefs.h <<_ACEOF
7622#define SIZE_MAX $result
7623_ACEOF
7624
7625 fi
7626
7627
7628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007629 for ac_header in stdint.h
7630do :
7631 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7632if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007634#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635_ACEOF
7636
7637fi
7638
7639done
7640
7641
7642
7643 if test "X$prefix" = "XNONE"; then
7644 acl_final_prefix="$ac_default_prefix"
7645 else
7646 acl_final_prefix="$prefix"
7647 fi
7648 if test "X$exec_prefix" = "XNONE"; then
7649 acl_final_exec_prefix='${prefix}'
7650 else
7651 acl_final_exec_prefix="$exec_prefix"
7652 fi
7653 acl_save_prefix="$prefix"
7654 prefix="$acl_final_prefix"
7655 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7656 prefix="$acl_save_prefix"
7657
7658
Theodore Ts'oe1052142006-10-21 21:46:47 -04007659# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007660if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007661 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662else
7663 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007664fi
7665
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666# Prepare PATH_SEPARATOR.
7667# The user is always right.
7668if test "${PATH_SEPARATOR+set}" != set; then
7669 echo "#! /bin/sh" >conf$$.sh
7670 echo "exit 0" >>conf$$.sh
7671 chmod +x conf$$.sh
7672 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7673 PATH_SEPARATOR=';'
7674 else
7675 PATH_SEPARATOR=:
7676 fi
7677 rm -f conf$$.sh
7678fi
7679ac_prog=ld
7680if test "$GCC" = yes; then
7681 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007683$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684 case $host in
7685 *-*-mingw*)
7686 # gcc leaves a trailing carriage return which upsets mingw
7687 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7688 *)
7689 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7690 esac
7691 case $ac_prog in
7692 # Accept absolute paths.
7693 [\\/]* | [A-Za-z]:[\\/]*)
7694 re_direlt='/[^/][^/]*/\.\./'
7695 # Canonicalize the path of ld
7696 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7697 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7698 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7699 done
7700 test -z "$LD" && LD="$ac_prog"
7701 ;;
7702 "")
7703 # If it fails, then pretend we aren't using GCC.
7704 ac_prog=ld
7705 ;;
7706 *)
7707 # If it is relative, then search for the first ld in PATH.
7708 with_gnu_ld=unknown
7709 ;;
7710 esac
7711elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007713$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007714else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007716$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007717fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007718if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007719 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007720else
7721 if test -z "$LD"; then
7722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7723 for ac_dir in $PATH; do
7724 test -z "$ac_dir" && ac_dir=.
7725 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7726 acl_cv_path_LD="$ac_dir/$ac_prog"
7727 # Check to see if the program is GNU ld. I'd rather use --version,
7728 # but apparently some GNU ld's only accept -v.
7729 # Break only if it was the GNU/non-GNU ld that we prefer.
7730 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7731 *GNU* | *'with BFD'*)
7732 test "$with_gnu_ld" != no && break ;;
7733 *)
7734 test "$with_gnu_ld" != yes && break ;;
7735 esac
7736 fi
7737 done
7738 IFS="$ac_save_ifs"
7739else
7740 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7741fi
7742fi
7743
7744LD="$acl_cv_path_LD"
7745if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007747$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007748else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007750$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007751fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007752test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007754$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007755if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007756 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007757else
7758 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7759case `$LD -v 2>&1 </dev/null` in
7760*GNU* | *'with BFD'*)
7761 acl_cv_prog_gnu_ld=yes ;;
7762*)
7763 acl_cv_prog_gnu_ld=no ;;
7764esac
7765fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007767$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007768with_gnu_ld=$acl_cv_prog_gnu_ld
7769
7770
7771
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007773$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007774if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007775 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007776else
7777
7778 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7779 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7780 . ./conftest.sh
7781 rm -f ./conftest.sh
7782 acl_cv_rpath=done
7783
7784fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007786$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007787 wl="$acl_cv_wl"
7788 libext="$acl_cv_libext"
7789 shlibext="$acl_cv_shlibext"
7790 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7791 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7792 hardcode_direct="$acl_cv_hardcode_direct"
7793 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007794 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007795if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007796 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007797else
7798 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007799fi
7800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801
7802
7803
7804
7805
7806
7807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007808 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007809
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007810 acl_save_prefix="$prefix"
7811 prefix="$acl_final_prefix"
7812 acl_save_exec_prefix="$exec_prefix"
7813 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007815 eval additional_includedir=\"$includedir\"
7816 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007817
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007818 exec_prefix="$acl_save_exec_prefix"
7819 prefix="$acl_save_prefix"
7820
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007821
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007823if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007824 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007825 if test "X$withval" = "Xno"; then
7826 use_additional=no
7827 else
7828 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007829
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007830 acl_save_prefix="$prefix"
7831 prefix="$acl_final_prefix"
7832 acl_save_exec_prefix="$exec_prefix"
7833 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007834
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007835 eval additional_includedir=\"$includedir\"
7836 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007837
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007838 exec_prefix="$acl_save_exec_prefix"
7839 prefix="$acl_save_prefix"
7840
7841 else
7842 additional_includedir="$withval/include"
7843 additional_libdir="$withval/lib"
7844 fi
7845 fi
7846
Theodore Ts'oe1052142006-10-21 21:46:47 -04007847fi
7848
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007849 LIBICONV=
7850 LTLIBICONV=
7851 INCICONV=
7852 rpathdirs=
7853 ltrpathdirs=
7854 names_already_handled=
7855 names_next_round='iconv '
7856 while test -n "$names_next_round"; do
7857 names_this_round="$names_next_round"
7858 names_next_round=
7859 for name in $names_this_round; do
7860 already_handled=
7861 for n in $names_already_handled; do
7862 if test "$n" = "$name"; then
7863 already_handled=yes
7864 break
7865 fi
7866 done
7867 if test -z "$already_handled"; then
7868 names_already_handled="$names_already_handled $name"
7869 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7870 eval value=\"\$HAVE_LIB$uppername\"
7871 if test -n "$value"; then
7872 if test "$value" = yes; then
7873 eval value=\"\$LIB$uppername\"
7874 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7875 eval value=\"\$LTLIB$uppername\"
7876 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7877 else
7878 :
7879 fi
7880 else
7881 found_dir=
7882 found_la=
7883 found_so=
7884 found_a=
7885 if test $use_additional = yes; then
7886 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7887 found_dir="$additional_libdir"
7888 found_so="$additional_libdir/lib$name.$shlibext"
7889 if test -f "$additional_libdir/lib$name.la"; then
7890 found_la="$additional_libdir/lib$name.la"
7891 fi
7892 else
7893 if test -f "$additional_libdir/lib$name.$libext"; then
7894 found_dir="$additional_libdir"
7895 found_a="$additional_libdir/lib$name.$libext"
7896 if test -f "$additional_libdir/lib$name.la"; then
7897 found_la="$additional_libdir/lib$name.la"
7898 fi
7899 fi
7900 fi
7901 fi
7902 if test "X$found_dir" = "X"; then
7903 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007905 acl_save_prefix="$prefix"
7906 prefix="$acl_final_prefix"
7907 acl_save_exec_prefix="$exec_prefix"
7908 exec_prefix="$acl_final_exec_prefix"
7909 eval x=\"$x\"
7910 exec_prefix="$acl_save_exec_prefix"
7911 prefix="$acl_save_prefix"
7912
7913 case "$x" in
7914 -L*)
7915 dir=`echo "X$x" | sed -e 's/^X-L//'`
7916 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7917 found_dir="$dir"
7918 found_so="$dir/lib$name.$shlibext"
7919 if test -f "$dir/lib$name.la"; then
7920 found_la="$dir/lib$name.la"
7921 fi
7922 else
7923 if test -f "$dir/lib$name.$libext"; then
7924 found_dir="$dir"
7925 found_a="$dir/lib$name.$libext"
7926 if test -f "$dir/lib$name.la"; then
7927 found_la="$dir/lib$name.la"
7928 fi
7929 fi
7930 fi
7931 ;;
7932 esac
7933 if test "X$found_dir" != "X"; then
7934 break
7935 fi
7936 done
7937 fi
7938 if test "X$found_dir" != "X"; then
7939 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7940 if test "X$found_so" != "X"; then
7941 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7943 else
7944 haveit=
7945 for x in $ltrpathdirs; do
7946 if test "X$x" = "X$found_dir"; then
7947 haveit=yes
7948 break
7949 fi
7950 done
7951 if test -z "$haveit"; then
7952 ltrpathdirs="$ltrpathdirs $found_dir"
7953 fi
7954 if test "$hardcode_direct" = yes; then
7955 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7956 else
7957 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7959 haveit=
7960 for x in $rpathdirs; do
7961 if test "X$x" = "X$found_dir"; then
7962 haveit=yes
7963 break
7964 fi
7965 done
7966 if test -z "$haveit"; then
7967 rpathdirs="$rpathdirs $found_dir"
7968 fi
7969 else
7970 haveit=
7971 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007972
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007973 acl_save_prefix="$prefix"
7974 prefix="$acl_final_prefix"
7975 acl_save_exec_prefix="$exec_prefix"
7976 exec_prefix="$acl_final_exec_prefix"
7977 eval x=\"$x\"
7978 exec_prefix="$acl_save_exec_prefix"
7979 prefix="$acl_save_prefix"
7980
7981 if test "X$x" = "X-L$found_dir"; then
7982 haveit=yes
7983 break
7984 fi
7985 done
7986 if test -z "$haveit"; then
7987 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7988 fi
7989 if test "$hardcode_minus_L" != no; then
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7991 else
7992 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7993 fi
7994 fi
7995 fi
7996 fi
7997 else
7998 if test "X$found_a" != "X"; then
7999 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8000 else
8001 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8002 fi
8003 fi
8004 additional_includedir=
8005 case "$found_dir" in
8006 */lib | */lib/)
8007 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8008 additional_includedir="$basedir/include"
8009 ;;
8010 esac
8011 if test "X$additional_includedir" != "X"; then
8012 if test "X$additional_includedir" != "X/usr/include"; then
8013 haveit=
8014 if test "X$additional_includedir" = "X/usr/local/include"; then
8015 if test -n "$GCC"; then
8016 case $host_os in
8017 linux*) haveit=yes;;
8018 esac
8019 fi
8020 fi
8021 if test -z "$haveit"; then
8022 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008023
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008024 acl_save_prefix="$prefix"
8025 prefix="$acl_final_prefix"
8026 acl_save_exec_prefix="$exec_prefix"
8027 exec_prefix="$acl_final_exec_prefix"
8028 eval x=\"$x\"
8029 exec_prefix="$acl_save_exec_prefix"
8030 prefix="$acl_save_prefix"
8031
8032 if test "X$x" = "X-I$additional_includedir"; then
8033 haveit=yes
8034 break
8035 fi
8036 done
8037 if test -z "$haveit"; then
8038 if test -d "$additional_includedir"; then
8039 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8040 fi
8041 fi
8042 fi
8043 fi
8044 fi
8045 if test -n "$found_la"; then
8046 save_libdir="$libdir"
8047 case "$found_la" in
8048 */* | *\\*) . "$found_la" ;;
8049 *) . "./$found_la" ;;
8050 esac
8051 libdir="$save_libdir"
8052 for dep in $dependency_libs; do
8053 case "$dep" in
8054 -L*)
8055 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8056 if test "X$additional_libdir" != "X/usr/lib"; then
8057 haveit=
8058 if test "X$additional_libdir" = "X/usr/local/lib"; then
8059 if test -n "$GCC"; then
8060 case $host_os in
8061 linux*) haveit=yes;;
8062 esac
8063 fi
8064 fi
8065 if test -z "$haveit"; then
8066 haveit=
8067 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008068
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008069 acl_save_prefix="$prefix"
8070 prefix="$acl_final_prefix"
8071 acl_save_exec_prefix="$exec_prefix"
8072 exec_prefix="$acl_final_exec_prefix"
8073 eval x=\"$x\"
8074 exec_prefix="$acl_save_exec_prefix"
8075 prefix="$acl_save_prefix"
8076
8077 if test "X$x" = "X-L$additional_libdir"; then
8078 haveit=yes
8079 break
8080 fi
8081 done
8082 if test -z "$haveit"; then
8083 if test -d "$additional_libdir"; then
8084 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8085 fi
8086 fi
8087 haveit=
8088 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008089
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008090 acl_save_prefix="$prefix"
8091 prefix="$acl_final_prefix"
8092 acl_save_exec_prefix="$exec_prefix"
8093 exec_prefix="$acl_final_exec_prefix"
8094 eval x=\"$x\"
8095 exec_prefix="$acl_save_exec_prefix"
8096 prefix="$acl_save_prefix"
8097
8098 if test "X$x" = "X-L$additional_libdir"; then
8099 haveit=yes
8100 break
8101 fi
8102 done
8103 if test -z "$haveit"; then
8104 if test -d "$additional_libdir"; then
8105 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8106 fi
8107 fi
8108 fi
8109 fi
8110 ;;
8111 -R*)
8112 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8113 if test "$enable_rpath" != no; then
8114 haveit=
8115 for x in $rpathdirs; do
8116 if test "X$x" = "X$dir"; then
8117 haveit=yes
8118 break
8119 fi
8120 done
8121 if test -z "$haveit"; then
8122 rpathdirs="$rpathdirs $dir"
8123 fi
8124 haveit=
8125 for x in $ltrpathdirs; do
8126 if test "X$x" = "X$dir"; then
8127 haveit=yes
8128 break
8129 fi
8130 done
8131 if test -z "$haveit"; then
8132 ltrpathdirs="$ltrpathdirs $dir"
8133 fi
8134 fi
8135 ;;
8136 -l*)
8137 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8138 ;;
8139 *.la)
8140 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8141 ;;
8142 *)
8143 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8145 ;;
8146 esac
8147 done
8148 fi
8149 else
8150 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8151 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8152 fi
8153 fi
8154 fi
8155 done
8156 done
8157 if test "X$rpathdirs" != "X"; then
8158 if test -n "$hardcode_libdir_separator"; then
8159 alldirs=
8160 for found_dir in $rpathdirs; do
8161 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8162 done
8163 acl_save_libdir="$libdir"
8164 libdir="$alldirs"
8165 eval flag=\"$hardcode_libdir_flag_spec\"
8166 libdir="$acl_save_libdir"
8167 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8168 else
8169 for found_dir in $rpathdirs; do
8170 acl_save_libdir="$libdir"
8171 libdir="$found_dir"
8172 eval flag=\"$hardcode_libdir_flag_spec\"
8173 libdir="$acl_save_libdir"
8174 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8175 done
8176 fi
8177 fi
8178 if test "X$ltrpathdirs" != "X"; then
8179 for found_dir in $ltrpathdirs; do
8180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8181 done
8182 fi
8183
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008184
8185
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008186
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008187
8188
8189
8190
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008191 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8192if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008193
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008194else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008195
8196$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008197
8198
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008199fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008200
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008201 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 -04008202stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008203do :
8204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8205ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8206eval as_val=\$$as_ac_Header
8207 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008209#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008210_ACEOF
8211
8212fi
8213
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008214done
8215
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008216 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008217mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8218strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8219__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008220do :
8221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8222ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8223eval as_val=\$$as_ac_var
8224 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008225 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008226#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008227_ACEOF
8228
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008229fi
8230done
8231
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008233
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008235$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008236if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008237 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008238else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008240/* end confdefs.h. */
8241#include <stdio.h>
8242int
8243main ()
8244{
8245
8246#ifndef _snprintf
8247 char *p = (char *) _snprintf;
8248#endif
8249
8250 ;
8251 return 0;
8252}
8253_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008254if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008255 ac_cv_have_decl__snprintf=yes
8256else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008257 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008262$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263 if test $ac_cv_have_decl__snprintf = yes; then
8264 gt_value=1
8265 else
8266 gt_value=0
8267 fi
8268
8269cat >>confdefs.h <<_ACEOF
8270#define HAVE_DECL__SNPRINTF $gt_value
8271_ACEOF
8272
8273
8274
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008276$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008277if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008278 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008279else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008281/* end confdefs.h. */
8282#include <stdio.h>
8283int
8284main ()
8285{
8286
8287#ifndef _snwprintf
8288 char *p = (char *) _snwprintf;
8289#endif
8290
8291 ;
8292 return 0;
8293}
8294_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008295if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008296 ac_cv_have_decl__snwprintf=yes
8297else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008298 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008303$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008304 if test $ac_cv_have_decl__snwprintf = yes; then
8305 gt_value=1
8306 else
8307 gt_value=0
8308 fi
8309
8310cat >>confdefs.h <<_ACEOF
8311#define HAVE_DECL__SNWPRINTF $gt_value
8312_ACEOF
8313
8314
8315
8316
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008318$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008319if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008320 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008323/* end confdefs.h. */
8324#include <stdio.h>
8325int
8326main ()
8327{
8328
8329#ifndef feof_unlocked
8330 char *p = (char *) feof_unlocked;
8331#endif
8332
8333 ;
8334 return 0;
8335}
8336_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008337if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008338 ac_cv_have_decl_feof_unlocked=yes
8339else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008340 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008345$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346 if test $ac_cv_have_decl_feof_unlocked = yes; then
8347 gt_value=1
8348 else
8349 gt_value=0
8350 fi
8351
8352cat >>confdefs.h <<_ACEOF
8353#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8354_ACEOF
8355
8356
8357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008359$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008360if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008361 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008364/* end confdefs.h. */
8365#include <stdio.h>
8366int
8367main ()
8368{
8369
8370#ifndef fgets_unlocked
8371 char *p = (char *) fgets_unlocked;
8372#endif
8373
8374 ;
8375 return 0;
8376}
8377_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008378if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008379 ac_cv_have_decl_fgets_unlocked=yes
8380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008381 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008386$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8388 gt_value=1
8389 else
8390 gt_value=0
8391 fi
8392
8393cat >>confdefs.h <<_ACEOF
8394#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8395_ACEOF
8396
8397
8398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008400$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008401if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008402 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008405/* end confdefs.h. */
8406#include <stdio.h>
8407int
8408main ()
8409{
8410
8411#ifndef getc_unlocked
8412 char *p = (char *) getc_unlocked;
8413#endif
8414
8415 ;
8416 return 0;
8417}
8418_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008419if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008420 ac_cv_have_decl_getc_unlocked=yes
8421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008422 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008425fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008427$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008428 if test $ac_cv_have_decl_getc_unlocked = yes; then
8429 gt_value=1
8430 else
8431 gt_value=0
8432 fi
8433
8434cat >>confdefs.h <<_ACEOF
8435#define HAVE_DECL_GETC_UNLOCKED $gt_value
8436_ACEOF
8437
8438
8439
8440 case $gt_cv_func_printf_posix in
8441 *yes) HAVE_POSIX_PRINTF=1 ;;
8442 *) HAVE_POSIX_PRINTF=0 ;;
8443 esac
8444
8445 if test "$ac_cv_func_asprintf" = yes; then
8446 HAVE_ASPRINTF=1
8447 else
8448 HAVE_ASPRINTF=0
8449 fi
8450
8451 if test "$ac_cv_func_snprintf" = yes; then
8452 HAVE_SNPRINTF=1
8453 else
8454 HAVE_SNPRINTF=0
8455 fi
8456
8457 if test "$ac_cv_func_wprintf" = yes; then
8458 HAVE_WPRINTF=1
8459 else
8460 HAVE_WPRINTF=0
8461 fi
8462
8463
8464
8465
8466
8467
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008468
8469 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008471 for element in $INCICONV; do
8472 haveit=
8473 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8479 eval x=\"$x\"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8482
8483 if test "X$x" = "X$element"; then
8484 haveit=yes
8485 break
8486 fi
8487 done
8488 if test -z "$haveit"; then
8489 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8490 fi
8491 done
8492
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008495$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008496if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008497 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008498else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008499
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008500 am_cv_func_iconv="no, consider installing GNU libiconv"
8501 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008503/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008504#include <stdlib.h>
8505#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008506int
8507main ()
8508{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008509iconv_t cd = iconv_open("","");
8510 iconv(cd,NULL,NULL,NULL,NULL);
8511 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008512 ;
8513 return 0;
8514}
8515_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008516if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008517 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008518fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008519rm -f core conftest.err conftest.$ac_objext \
8520 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008521 if test "$am_cv_func_iconv" != yes; then
8522 am_save_LIBS="$LIBS"
8523 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008525/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008526#include <stdlib.h>
8527#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008528int
8529main ()
8530{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008531iconv_t cd = iconv_open("","");
8532 iconv(cd,NULL,NULL,NULL,NULL);
8533 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008534 ;
8535 return 0;
8536}
8537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008538if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008539 am_cv_lib_iconv=yes
8540 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008541fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008542rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008544 LIBS="$am_save_LIBS"
8545 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008546
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008549$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008550 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008551
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008552$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008553
8554 fi
8555 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008557$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008559$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008560 else
8561 CPPFLAGS="$am_save_CPPFLAGS"
8562 LIBICONV=
8563 LTLIBICONV=
8564 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008565
8566
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008567
8568 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008570$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008571 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008572 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008573else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008574
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008577
8578#include <stdlib.h>
8579#include <iconv.h>
8580extern
8581#ifdef __cplusplus
8582"C"
8583#endif
8584#if defined(__STDC__) || defined(__cplusplus)
8585size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8586#else
8587size_t iconv();
8588#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008590int
8591main ()
8592{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008594 ;
8595 return 0;
8596}
8597_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008598if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008599 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008600else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008601 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008604 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 +00008605fi
8606
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008607 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008609 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008610$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008611 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
8613cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008614#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008615_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008616
8617 fi
8618
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008619
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008621$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008622if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008623 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008624else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008627#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008628int
8629main ()
8630{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008631char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008632 ;
8633 return 0;
8634}
8635_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008636if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008637 am_cv_langinfo_codeset=yes
8638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008639 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008640fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008641rm -f core conftest.err conftest.$ac_objext \
8642 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008643
8644fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008646$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008647 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008648
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008649$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008651 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008652
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008653 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008654
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008656$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008657if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008658 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008659else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008661/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008662#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008663int
8664main ()
8665{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008666return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008667 ;
8668 return 0;
8669}
8670_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008671if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008672 am_cv_val_LC_MESSAGES=yes
8673else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008674 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008675fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008676rm -f core conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008678fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008680$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008681 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008683$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008684
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008685 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008686
8687 fi
8688
8689 for ac_prog in bison
8690do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008691 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008692set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008694$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008695if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008696 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008697else
8698 if test -n "$INTLBISON"; then
8699 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8700else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702for as_dir in $PATH
8703do
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008706 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008707 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 -05008708 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008710 break 2
8711 fi
8712done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008713 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008714IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008715
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008716fi
8717fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008718INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008719if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008721$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008722else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008724$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008725fi
8726
Theodore Ts'oe1052142006-10-21 21:46:47 -04008727
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008728 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008729done
8730
8731 if test -z "$INTLBISON"; then
8732 ac_verc_fail=yes
8733 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008735$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008736 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8737 case $ac_prog_version in
8738 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8739 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8740 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8741 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8742 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008744$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008745 fi
8746 if test $ac_verc_fail = yes; then
8747 INTLBISON=:
8748 fi
8749
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008750
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008751
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008752
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008753
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008754
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008755
8756
8757
8758
8759
8760
8761
8762
8763
8764
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008766$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008767 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008768if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008769 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008770else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008771 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008772fi
8773
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008775$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008776
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778
8779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008780 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008781 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008782
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008783 LIBINTL=
8784 LTLIBINTL=
8785 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008786
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008787 if test "$USE_NLS" = "yes"; then
8788 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008789
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008791$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792
Theodore Ts'oe1052142006-10-21 21:46:47 -04008793# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008794if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008795 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008796else
8797 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008798fi
8799
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008801$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008802
8803 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8804 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008805
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
8807
8808
8809
8810
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008812$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008813if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008814 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008815else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008818#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008819extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008820extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008821int
8822main ()
8823{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008824bindtextdomain ("", "");
8825return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008826 ;
8827 return 0;
8828}
8829_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008830if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008831 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008832else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008833 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008834fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008835rm -f core conftest.err conftest.$ac_objext \
8836 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008837fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008839$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008840
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008841 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008842
8843
8844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008847 acl_save_prefix="$prefix"
8848 prefix="$acl_final_prefix"
8849 acl_save_exec_prefix="$exec_prefix"
8850 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008851
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 eval additional_includedir=\"$includedir\"
8853 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008854
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008855 exec_prefix="$acl_save_exec_prefix"
8856 prefix="$acl_save_prefix"
8857
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008858
Theodore Ts'oe1052142006-10-21 21:46:47 -04008859# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008860if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008861 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008862 if test "X$withval" = "Xno"; then
8863 use_additional=no
8864 else
8865 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008866
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008867 acl_save_prefix="$prefix"
8868 prefix="$acl_final_prefix"
8869 acl_save_exec_prefix="$exec_prefix"
8870 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008871
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008872 eval additional_includedir=\"$includedir\"
8873 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008874
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008875 exec_prefix="$acl_save_exec_prefix"
8876 prefix="$acl_save_prefix"
8877
8878 else
8879 additional_includedir="$withval/include"
8880 additional_libdir="$withval/lib"
8881 fi
8882 fi
8883
Theodore Ts'oe1052142006-10-21 21:46:47 -04008884fi
8885
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008886 LIBINTL=
8887 LTLIBINTL=
8888 INCINTL=
8889 rpathdirs=
8890 ltrpathdirs=
8891 names_already_handled=
8892 names_next_round='intl '
8893 while test -n "$names_next_round"; do
8894 names_this_round="$names_next_round"
8895 names_next_round=
8896 for name in $names_this_round; do
8897 already_handled=
8898 for n in $names_already_handled; do
8899 if test "$n" = "$name"; then
8900 already_handled=yes
8901 break
8902 fi
8903 done
8904 if test -z "$already_handled"; then
8905 names_already_handled="$names_already_handled $name"
8906 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8907 eval value=\"\$HAVE_LIB$uppername\"
8908 if test -n "$value"; then
8909 if test "$value" = yes; then
8910 eval value=\"\$LIB$uppername\"
8911 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8912 eval value=\"\$LTLIB$uppername\"
8913 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8914 else
8915 :
8916 fi
8917 else
8918 found_dir=
8919 found_la=
8920 found_so=
8921 found_a=
8922 if test $use_additional = yes; then
8923 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8924 found_dir="$additional_libdir"
8925 found_so="$additional_libdir/lib$name.$shlibext"
8926 if test -f "$additional_libdir/lib$name.la"; then
8927 found_la="$additional_libdir/lib$name.la"
8928 fi
8929 else
8930 if test -f "$additional_libdir/lib$name.$libext"; then
8931 found_dir="$additional_libdir"
8932 found_a="$additional_libdir/lib$name.$libext"
8933 if test -f "$additional_libdir/lib$name.la"; then
8934 found_la="$additional_libdir/lib$name.la"
8935 fi
8936 fi
8937 fi
8938 fi
8939 if test "X$found_dir" = "X"; then
8940 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008941
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008942 acl_save_prefix="$prefix"
8943 prefix="$acl_final_prefix"
8944 acl_save_exec_prefix="$exec_prefix"
8945 exec_prefix="$acl_final_exec_prefix"
8946 eval x=\"$x\"
8947 exec_prefix="$acl_save_exec_prefix"
8948 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008949
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008950 case "$x" in
8951 -L*)
8952 dir=`echo "X$x" | sed -e 's/^X-L//'`
8953 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8954 found_dir="$dir"
8955 found_so="$dir/lib$name.$shlibext"
8956 if test -f "$dir/lib$name.la"; then
8957 found_la="$dir/lib$name.la"
8958 fi
8959 else
8960 if test -f "$dir/lib$name.$libext"; then
8961 found_dir="$dir"
8962 found_a="$dir/lib$name.$libext"
8963 if test -f "$dir/lib$name.la"; then
8964 found_la="$dir/lib$name.la"
8965 fi
8966 fi
8967 fi
8968 ;;
8969 esac
8970 if test "X$found_dir" != "X"; then
8971 break
8972 fi
8973 done
8974 fi
8975 if test "X$found_dir" != "X"; then
8976 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8977 if test "X$found_so" != "X"; then
8978 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8979 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8980 else
8981 haveit=
8982 for x in $ltrpathdirs; do
8983 if test "X$x" = "X$found_dir"; then
8984 haveit=yes
8985 break
8986 fi
8987 done
8988 if test -z "$haveit"; then
8989 ltrpathdirs="$ltrpathdirs $found_dir"
8990 fi
8991 if test "$hardcode_direct" = yes; then
8992 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8993 else
8994 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8996 haveit=
8997 for x in $rpathdirs; do
8998 if test "X$x" = "X$found_dir"; then
8999 haveit=yes
9000 break
9001 fi
9002 done
9003 if test -z "$haveit"; then
9004 rpathdirs="$rpathdirs $found_dir"
9005 fi
9006 else
9007 haveit=
9008 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009010 acl_save_prefix="$prefix"
9011 prefix="$acl_final_prefix"
9012 acl_save_exec_prefix="$exec_prefix"
9013 exec_prefix="$acl_final_exec_prefix"
9014 eval x=\"$x\"
9015 exec_prefix="$acl_save_exec_prefix"
9016 prefix="$acl_save_prefix"
9017
9018 if test "X$x" = "X-L$found_dir"; then
9019 haveit=yes
9020 break
9021 fi
9022 done
9023 if test -z "$haveit"; then
9024 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9025 fi
9026 if test "$hardcode_minus_L" != no; then
9027 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9028 else
9029 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9030 fi
9031 fi
9032 fi
9033 fi
9034 else
9035 if test "X$found_a" != "X"; then
9036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9037 else
9038 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9039 fi
9040 fi
9041 additional_includedir=
9042 case "$found_dir" in
9043 */lib | */lib/)
9044 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9045 additional_includedir="$basedir/include"
9046 ;;
9047 esac
9048 if test "X$additional_includedir" != "X"; then
9049 if test "X$additional_includedir" != "X/usr/include"; then
9050 haveit=
9051 if test "X$additional_includedir" = "X/usr/local/include"; then
9052 if test -n "$GCC"; then
9053 case $host_os in
9054 linux*) haveit=yes;;
9055 esac
9056 fi
9057 fi
9058 if test -z "$haveit"; then
9059 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009060
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009061 acl_save_prefix="$prefix"
9062 prefix="$acl_final_prefix"
9063 acl_save_exec_prefix="$exec_prefix"
9064 exec_prefix="$acl_final_exec_prefix"
9065 eval x=\"$x\"
9066 exec_prefix="$acl_save_exec_prefix"
9067 prefix="$acl_save_prefix"
9068
9069 if test "X$x" = "X-I$additional_includedir"; then
9070 haveit=yes
9071 break
9072 fi
9073 done
9074 if test -z "$haveit"; then
9075 if test -d "$additional_includedir"; then
9076 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9077 fi
9078 fi
9079 fi
9080 fi
9081 fi
9082 if test -n "$found_la"; then
9083 save_libdir="$libdir"
9084 case "$found_la" in
9085 */* | *\\*) . "$found_la" ;;
9086 *) . "./$found_la" ;;
9087 esac
9088 libdir="$save_libdir"
9089 for dep in $dependency_libs; do
9090 case "$dep" in
9091 -L*)
9092 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9093 if test "X$additional_libdir" != "X/usr/lib"; then
9094 haveit=
9095 if test "X$additional_libdir" = "X/usr/local/lib"; then
9096 if test -n "$GCC"; then
9097 case $host_os in
9098 linux*) haveit=yes;;
9099 esac
9100 fi
9101 fi
9102 if test -z "$haveit"; then
9103 haveit=
9104 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009105
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009106 acl_save_prefix="$prefix"
9107 prefix="$acl_final_prefix"
9108 acl_save_exec_prefix="$exec_prefix"
9109 exec_prefix="$acl_final_exec_prefix"
9110 eval x=\"$x\"
9111 exec_prefix="$acl_save_exec_prefix"
9112 prefix="$acl_save_prefix"
9113
9114 if test "X$x" = "X-L$additional_libdir"; then
9115 haveit=yes
9116 break
9117 fi
9118 done
9119 if test -z "$haveit"; then
9120 if test -d "$additional_libdir"; then
9121 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9122 fi
9123 fi
9124 haveit=
9125 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009126
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009127 acl_save_prefix="$prefix"
9128 prefix="$acl_final_prefix"
9129 acl_save_exec_prefix="$exec_prefix"
9130 exec_prefix="$acl_final_exec_prefix"
9131 eval x=\"$x\"
9132 exec_prefix="$acl_save_exec_prefix"
9133 prefix="$acl_save_prefix"
9134
9135 if test "X$x" = "X-L$additional_libdir"; then
9136 haveit=yes
9137 break
9138 fi
9139 done
9140 if test -z "$haveit"; then
9141 if test -d "$additional_libdir"; then
9142 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9143 fi
9144 fi
9145 fi
9146 fi
9147 ;;
9148 -R*)
9149 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9150 if test "$enable_rpath" != no; then
9151 haveit=
9152 for x in $rpathdirs; do
9153 if test "X$x" = "X$dir"; then
9154 haveit=yes
9155 break
9156 fi
9157 done
9158 if test -z "$haveit"; then
9159 rpathdirs="$rpathdirs $dir"
9160 fi
9161 haveit=
9162 for x in $ltrpathdirs; do
9163 if test "X$x" = "X$dir"; then
9164 haveit=yes
9165 break
9166 fi
9167 done
9168 if test -z "$haveit"; then
9169 ltrpathdirs="$ltrpathdirs $dir"
9170 fi
9171 fi
9172 ;;
9173 -l*)
9174 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9175 ;;
9176 *.la)
9177 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9178 ;;
9179 *)
9180 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9182 ;;
9183 esac
9184 done
9185 fi
9186 else
9187 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9188 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9189 fi
9190 fi
9191 fi
9192 done
9193 done
9194 if test "X$rpathdirs" != "X"; then
9195 if test -n "$hardcode_libdir_separator"; then
9196 alldirs=
9197 for found_dir in $rpathdirs; do
9198 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9199 done
9200 acl_save_libdir="$libdir"
9201 libdir="$alldirs"
9202 eval flag=\"$hardcode_libdir_flag_spec\"
9203 libdir="$acl_save_libdir"
9204 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9205 else
9206 for found_dir in $rpathdirs; do
9207 acl_save_libdir="$libdir"
9208 libdir="$found_dir"
9209 eval flag=\"$hardcode_libdir_flag_spec\"
9210 libdir="$acl_save_libdir"
9211 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9212 done
9213 fi
9214 fi
9215 if test "X$ltrpathdirs" != "X"; then
9216 for found_dir in $ltrpathdirs; do
9217 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9218 done
9219 fi
9220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009222$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009223if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009224 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009225else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009226 gt_save_CPPFLAGS="$CPPFLAGS"
9227 CPPFLAGS="$CPPFLAGS $INCINTL"
9228 gt_save_LIBS="$LIBS"
9229 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009232#include <libintl.h>
9233extern int _nl_msg_cat_cntr;
9234extern
9235#ifdef __cplusplus
9236"C"
9237#endif
9238const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009239int
9240main ()
9241{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009242bindtextdomain ("", "");
9243return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009244 ;
9245 return 0;
9246}
9247_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009248if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009249 gt_cv_func_gnugettext1_libintl=yes
9250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009251 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009252fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009253rm -f core conftest.err conftest.$ac_objext \
9254 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009255 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9256 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259#include <libintl.h>
9260extern int _nl_msg_cat_cntr;
9261extern
9262#ifdef __cplusplus
9263"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009264#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009265const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266int
9267main ()
9268{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009269bindtextdomain ("", "");
9270return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009271 ;
9272 return 0;
9273}
9274_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009275if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009276 LIBINTL="$LIBINTL $LIBICONV"
9277 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9278 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009281rm -f core conftest.err conftest.$ac_objext \
9282 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009283 fi
9284 CPPFLAGS="$gt_save_CPPFLAGS"
9285 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009288$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009289 fi
9290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9292 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293 && test "$PACKAGE" != gettext-runtime \
9294 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009295 gt_use_preinstalled_gnugettext=yes
9296 else
9297 LIBINTL=
9298 LTLIBINTL=
9299 INCINTL=
9300 fi
9301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009302
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009303 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9304 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009305 fi
9306 fi
9307
9308 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009309 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009310 USE_INCLUDED_LIBINTL=yes
9311 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9312 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9313 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009314 fi
9315
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009316 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9317 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9318 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009319 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009320
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009321
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009322 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9323 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009325$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009326
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009327 else
9328 USE_NLS=no
9329 fi
9330 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009333$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009335$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009336 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009338$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009339 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9340 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9341 gt_source="external libintl"
9342 else
9343 gt_source="libc"
9344 fi
9345 else
9346 gt_source="included intl directory"
9347 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009349$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009350 fi
9351
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009352 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009353
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009354 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9355 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009357$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009359$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009361 for element in $INCINTL; do
9362 haveit=
9363 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009364
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009365 acl_save_prefix="$prefix"
9366 prefix="$acl_final_prefix"
9367 acl_save_exec_prefix="$exec_prefix"
9368 exec_prefix="$acl_final_exec_prefix"
9369 eval x=\"$x\"
9370 exec_prefix="$acl_save_exec_prefix"
9371 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009372
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009373 if test "X$x" = "X$element"; then
9374 haveit=yes
9375 break
9376 fi
9377 done
9378 if test -z "$haveit"; then
9379 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9380 fi
9381 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009382
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009383 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009384
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009385
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009386$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387
9388
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009389$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009390
9391 fi
9392
9393 POSUB=po
9394 fi
9395
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009396
9397 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009398 BUILD_INCLUDED_LIBINTL=yes
9399 fi
9400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009401
9402
9403
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009405 nls_cv_header_intl=
9406 nls_cv_header_libgt=
9407
9408 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009409
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009410
9411 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009412
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009413
9414 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009415
9416
9417 if test "$USE_INCLUDED_LIBINTL" = yes; then
9418 INTLOBJS="\$(GETTOBJS)"
9419 fi
9420
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009421
9422 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009423
9424
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009425
9426 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009427
9428
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009429
9430
9431
9432
9433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009435$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9436set x ${MAKE-make}
9437ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009438if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009439 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009440else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009441 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009442SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009443all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009444 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009445_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009446# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009447case `${MAKE-make} -f conftest.make 2>/dev/null` in
9448 *@@@%%%=?*=@@@%%%*)
9449 eval ac_cv_prog_make_${ac_make}_set=yes;;
9450 *)
9451 eval ac_cv_prog_make_${ac_make}_set=no;;
9452esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009453rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009454fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009455if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009457$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009458 SET_MAKE=
9459else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009461$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009462 SET_MAKE="MAKE=${MAKE-make}"
9463fi
9464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009466$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009467if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009468 $as_echo_n "(cached) " >&6
9469else
9470 _cv_gnu_make_command='' ;
9471 for a in "$MAKE" make gmake gnumake ; do
9472 if test -z "$a" ; then continue ; fi ;
9473 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9474 _cv_gnu_make_command=$a ;
9475 break;
9476 fi
9477 done ;
9478
9479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009481$as_echo "$_cv_gnu_make_command" >&6; } ;
9482 if test "x$_cv_gnu_make_command" != "x" ; then
9483 ifGNUmake='' ;
9484 ifNotGNUmake='#' ;
9485 else
9486 ifGNUmake='#' ;
9487 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009489$as_echo "\"Not found\"" >&6; };
9490 fi
9491
9492
9493
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009494# Extract the first word of "ln", so it can be a program name with args.
9495set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009497$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009498if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009499 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009500else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 case $LN in
9502 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009503 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9504 ;;
9505 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507for as_dir in $PATH
9508do
9509 IFS=$as_save_IFS
9510 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009511 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009512 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 -05009513 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009515 break 2
9516 fi
9517done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009518 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009519IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009521 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9522 ;;
9523esac
9524fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009525LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009526if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009528$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009529else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009531$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009532fi
9533
Theodore Ts'oe1052142006-10-21 21:46:47 -04009534
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009536$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537LN_S=$as_ln_s
9538if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009540$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009543$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009544fi
9545
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009546# Extract the first word of "mv", so it can be a program name with args.
9547set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009550if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009551 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009553 case $MV in
9554 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009555 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9556 ;;
9557 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559for as_dir in $PATH
9560do
9561 IFS=$as_save_IFS
9562 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009563 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009564 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 -05009565 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567 break 2
9568 fi
9569done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009570 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009571IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009573 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9574 ;;
9575esac
9576fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009578if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009580$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009581else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009583$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009584fi
9585
Theodore Ts'oe1052142006-10-21 21:46:47 -04009586
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009587# Extract the first word of "cp", so it can be a program name with args.
9588set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009591if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009592 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009593else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594 case $CP in
9595 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009596 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9597 ;;
9598 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600for as_dir in $PATH
9601do
9602 IFS=$as_save_IFS
9603 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009605 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 -05009606 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009608 break 2
9609 fi
9610done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009611 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009612IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009614 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9615 ;;
9616esac
9617fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009619if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009621$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009624$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009625fi
9626
Theodore Ts'oe1052142006-10-21 21:46:47 -04009627
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009628# Extract the first word of "rm", so it can be a program name with args.
9629set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009631$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009634else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009635 case $RM in
9636 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009637 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9638 ;;
9639 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641for as_dir in $PATH
9642do
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009645 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009646 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 -05009647 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009649 break 2
9650 fi
9651done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009652 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009653IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009655 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9656 ;;
9657esac
9658fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009662$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009663else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009665$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009666fi
9667
Theodore Ts'oe1052142006-10-21 21:46:47 -04009668
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009669# Extract the first word of "chmod", so it can be a program name with args.
9670set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009672$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009673if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009674 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009675else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009676 case $CHMOD in
9677 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009678 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9679 ;;
9680 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9682for as_dir in $PATH
9683do
9684 IFS=$as_save_IFS
9685 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009686 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009687 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 -05009688 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009690 break 2
9691 fi
9692done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009693 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009694IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009696 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9697 ;;
9698esac
9699fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009700CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009701if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009703$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009704else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009706$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009707fi
9708
Theodore Ts'oe1052142006-10-21 21:46:47 -04009709
Theodore Ts'o32237012005-01-17 19:13:39 -05009710for ac_prog in gawk mawk nawk awk
9711do
9712 # Extract the first word of "$ac_prog", so it can be a program name with args.
9713set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009715$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009716if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009717 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009718else
Theodore Ts'o32237012005-01-17 19:13:39 -05009719 if test -n "$AWK"; then
9720 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9721else
9722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009723for as_dir in $PATH
9724do
9725 IFS=$as_save_IFS
9726 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009727 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009728 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 -05009729 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009731 break 2
9732 fi
9733done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009734 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009735IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009736
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009737fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009738fi
9739AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009740if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009742$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009743else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009745$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009746fi
9747
Theodore Ts'oe1052142006-10-21 21:46:47 -04009748
Theodore Ts'o32237012005-01-17 19:13:39 -05009749 test -n "$AWK" && break
9750done
9751
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009753$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009754if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009755 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009756else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009757 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9758 then ac_cv_path_EGREP="$GREP -E"
9759 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009761 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009762 # Loop through the user's path and test for each of PROGNAME-LIST
9763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009764for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9765do
9766 IFS=$as_save_IFS
9767 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009768 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009769 for ac_exec_ext in '' $ac_executable_extensions; do
9770 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9771 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9772# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009773 # Check for GNU $ac_path_EGREP
9774case `"$ac_path_EGREP" --version 2>&1` in
9775*GNU*)
9776 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9777*)
9778 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009779 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780 while :
9781 do
9782 cat "conftest.in" "conftest.in" >"conftest.tmp"
9783 mv "conftest.tmp" "conftest.in"
9784 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009785 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009786 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009788 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9790 # Best one so far, save it but keep looking for a better one
9791 ac_cv_path_EGREP="$ac_path_EGREP"
9792 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009793 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009794 # 10*(2^10) chars as input seems more than enough
9795 test $ac_count -gt 10 && break
9796 done
9797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9798esac
9799
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009800 $ac_path_EGREP_found && break 3
9801 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009803 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009804IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009805 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009806 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 +01009807 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009808else
9809 ac_cv_path_EGREP=$EGREP
9810fi
9811
Theodore Ts'oe1052142006-10-21 21:46:47 -04009812 fi
9813fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009815$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009816 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009817
9818
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009819# Extract the first word of "sed", so it can be a program name with args.
9820set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009823if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009824 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009825else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009826 case $SED in
9827 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009828 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9829 ;;
9830 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9832for as_dir in $PATH
9833do
9834 IFS=$as_save_IFS
9835 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009836 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009837 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 -05009838 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009840 break 2
9841 fi
9842done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009843 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009844IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009846 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9847 ;;
9848esac
9849fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009850SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009851if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009853$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009854else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009856$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009857fi
9858
Theodore Ts'oe1052142006-10-21 21:46:47 -04009859
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009860# Extract the first word of "perl", so it can be a program name with args.
9861set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009863$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009864if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009865 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009866else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009867 case $PERL in
9868 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009869 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9870 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009871 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873for as_dir in $PATH
9874do
9875 IFS=$as_save_IFS
9876 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009877 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009878 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 -05009879 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009881 break 2
9882 fi
9883done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009884 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009887 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9888 ;;
9889esac
9890fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009892if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009894$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009897$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009898fi
9899
Theodore Ts'oe1052142006-10-21 21:46:47 -04009900
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009901# Extract the first word of "ldconfig", so it can be a program name with args.
9902set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009904$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009905if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009906 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908 case $LDCONFIG in
9909 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009910 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9911 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009912 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914for as_dir in $PATH
9915do
9916 IFS=$as_save_IFS
9917 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009918 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009919 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 -05009920 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922 break 2
9923 fi
9924done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009925 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009926IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009927
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009928 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9929 ;;
9930esac
9931fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009933if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009935$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009936else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009938$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009939fi
9940
Theodore Ts'oe1052142006-10-21 21:46:47 -04009941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009942if test -n "$ac_tool_prefix"; then
9943 # 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 +00009944set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009946$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009947if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009948 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009949else
9950 if test -n "$AR"; then
9951 ac_cv_prog_AR="$AR" # Let the user override the test.
9952else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009958 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009959 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 -05009960 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009962 break 2
9963 fi
9964done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009965 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009966IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009967
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009968fi
9969fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009971if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009973$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009974else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009976$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009977fi
9978
Theodore Ts'oe1052142006-10-21 21:46:47 -04009979
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009981if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009982 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009983 # Extract the first word of "ar", so it can be a program name with args.
9984set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009986$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009987if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009988 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009989else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009990 if test -n "$ac_ct_AR"; then
9991 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009992else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009998 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009999 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 -050010000 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010002 break 2
10003 fi
10004done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010005 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010006IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010008fi
10009fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010010ac_ct_AR=$ac_cv_prog_ac_ct_AR
10011if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010013$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010016$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010017fi
10018
Theodore Ts'oe1052142006-10-21 21:46:47 -040010019 if test "x$ac_ct_AR" = x; then
10020 AR="ar"
10021 else
10022 case $cross_compiling:$ac_tool_warned in
10023yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010024{ $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 +010010025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010026ac_tool_warned=yes ;;
10027esac
10028 AR=$ac_ct_AR
10029 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010030else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010031 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010032fi
10033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010034if test -n "$ac_tool_prefix"; then
10035 # 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 +000010036set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010038$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010039if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010040 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010041else
10042 if test -n "$RANLIB"; then
10043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010050 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010051 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 -050010052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010054 break 2
10055 fi
10056done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010057 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010059
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010060fi
10061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010062RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010063if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010065$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010068$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010069fi
10070
Theodore Ts'oe1052142006-10-21 21:46:47 -040010071
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010072fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010073if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010074 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010075 # Extract the first word of "ranlib", so it can be a program name with args.
10076set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010078$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010079if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010080 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010081else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082 if test -n "$ac_ct_RANLIB"; then
10083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010084else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10086for as_dir in $PATH
10087do
10088 IFS=$as_save_IFS
10089 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010090 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010091 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 -050010092 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010094 break 2
10095 fi
10096done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010097 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010098IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010099
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010100fi
10101fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010102ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10103if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010105$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010106else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010108$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010109fi
10110
Theodore Ts'oe1052142006-10-21 21:46:47 -040010111 if test "x$ac_ct_RANLIB" = x; then
10112 RANLIB=":"
10113 else
10114 case $cross_compiling:$ac_tool_warned in
10115yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010116{ $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 +010010117$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010118ac_tool_warned=yes ;;
10119esac
10120 RANLIB=$ac_ct_RANLIB
10121 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010122else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010123 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010124fi
10125
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010126if test -n "$ac_tool_prefix"; then
10127 # 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 +000010128set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010130$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010131if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010132 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010133else
10134 if test -n "$STRIP"; then
10135 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10138for as_dir in $PATH
10139do
10140 IFS=$as_save_IFS
10141 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010142 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010143 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 -050010144 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010146 break 2
10147 fi
10148done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010149 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010151
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010152fi
10153fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010154STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010155if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010157$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010160$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010161fi
10162
Theodore Ts'oe1052142006-10-21 21:46:47 -040010163
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010166 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010167 # Extract the first word of "strip", so it can be a program name with args.
10168set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010170$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010171if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010172 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010173else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010174 if test -n "$ac_ct_STRIP"; then
10175 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010176else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10178for as_dir in $PATH
10179do
10180 IFS=$as_save_IFS
10181 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010182 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010183 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 -050010184 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010186 break 2
10187 fi
10188done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010189 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010190IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010191
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010192fi
10193fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010194ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10195if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010197$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010198else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010200$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010201fi
10202
Theodore Ts'oe1052142006-10-21 21:46:47 -040010203 if test "x$ac_ct_STRIP" = x; then
10204 STRIP=":"
10205 else
10206 case $cross_compiling:$ac_tool_warned in
10207yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010208{ $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 +010010209$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010210ac_tool_warned=yes ;;
10211esac
10212 STRIP=$ac_ct_STRIP
10213 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010215 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010216fi
10217
Manish Katiyar7321d942008-04-14 17:20:03 +053010218# Extract the first word of "makeinfo", so it can be a program name with args.
10219set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010221$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010222if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010223 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010224else
10225 if test -n "$MAKEINFO"; then
10226 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10227else
10228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010233 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10235 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010237 break 2
10238 fi
10239done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010240 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010241IFS=$as_save_IFS
10242
10243fi
10244fi
10245MAKEINFO=$ac_cv_prog_MAKEINFO
10246if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010248$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010249else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010251$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010252fi
10253
10254
10255if test "_$MAKEINFO" = "_"; then
10256 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10257else
10258 case "$MAKEINFO" in
10259 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010261*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010262$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010263*** Makeinfo is missing. Info documentation will not be built." >&2;}
10264 ;;
10265 *)
10266 ;;
10267 esac
10268fi
10269
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010270
Theodore Ts'o6c133521999-07-03 20:37:03 +000010271# See if we need a separate native compiler.
10272if test $cross_compiling = no; then
10273 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010274
Theodore Ts'o6c133521999-07-03 20:37:03 +000010275else
10276 for ac_prog in gcc cc
10277do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010278 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010279set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010281$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010282if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010283 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010284else
10285 if test -n "$BUILD_CC"; then
10286 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010290do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010291 IFS=$as_save_IFS
10292 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010293 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010294 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 -050010295 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010297 break 2
10298 fi
10299done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010300 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010301IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010303fi
10304fi
10305BUILD_CC=$ac_cv_prog_BUILD_CC
10306if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010308$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010309else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010311$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010312fi
10313
Theodore Ts'oe1052142006-10-21 21:46:47 -040010314
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010315 test -n "$BUILD_CC" && break
10316done
10317
10318fi
Lukas Czernerd2bfdc72011-09-15 23:44:59 -040010319for ac_header in dirent.h errno.h execinfo.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/falloc.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 -050010320do :
10321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10322ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10323eval as_val=\$$as_ac_Header
10324 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010325 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010326#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010327_ACEOF
10328
10329fi
10330
10331done
10332
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010333for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010334do :
10335 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10336ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010337#if HAVE_SYS_QUEUE_H
10338#include <sys/queue.h>
10339#endif
10340
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010341"
10342eval as_val=\$$as_ac_Header
10343 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010344 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010345#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010346_ACEOF
10347
10348fi
10349
10350done
10351
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010352for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010353do :
10354 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010355#if HAVE_SYS_TYPES_H
10356#include <sys/types.h>
10357#endif
10358#if HAVE_SYS_SOCKET
10359#include <sys/socket.h>
10360#endif
10361
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010362"
10363if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010364 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010365#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010366_ACEOF
10367
10368fi
10369
10370done
10371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010372for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010373do :
10374 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10375if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010376 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010377#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010378_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010380ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10381if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010382
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010383$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010384
10385fi
10386
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010387fi
10388done
10389
10390
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010391ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10392"
10393if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010394
10395$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010396
10397fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010399ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10400"
10401if test "x$ac_cv_type_ssize_t" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010402
10403$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010404
Theodore Ts'offf45482003-04-13 00:44:19 -040010405fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010406
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010407ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10408"
10409if test "x$ac_cv_have_decl_llseek" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010410
10411$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010412
10413fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010414
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010415ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010416 #define _LARGEFILE64_SOURCE
10417 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010418"
10419if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010420
10421$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010422
10423fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010424
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010425# The cast to long int works around a bug in the HP C Compiler
10426# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10427# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10428# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010430$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010431if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010432 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010434 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 -050010435
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010437 if test "$ac_cv_type_short" = yes; then
10438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010440{ as_fn_set_status 77
10441as_fn_error "cannot compute sizeof (short)
10442See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010443 else
10444 ac_cv_sizeof_short=0
10445 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010447
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010448fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010450$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010451
10452
10453
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010454cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010455#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010456_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010457
10458
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010459# The cast to long int works around a bug in the HP C Compiler
10460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10462# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010464$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010465if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010466 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010467else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010468 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 -050010469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010471 if test "$ac_cv_type_int" = yes; then
10472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010474{ as_fn_set_status 77
10475as_fn_error "cannot compute sizeof (int)
10476See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010477 else
10478 ac_cv_sizeof_int=0
10479 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010482fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010484$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010485
10486
10487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010488cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010489#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010490_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010491
10492
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010493# The cast to long int works around a bug in the HP C Compiler
10494# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10495# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10496# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010498$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010499if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010500 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010502 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 -050010503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010504else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010505 if test "$ac_cv_type_long" = yes; then
10506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010508{ as_fn_set_status 77
10509as_fn_error "cannot compute sizeof (long)
10510See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010511 else
10512 ac_cv_sizeof_long=0
10513 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010516fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010518$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010519
10520
10521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010523#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010524_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010525
10526
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010527# The cast to long int works around a bug in the HP C Compiler
10528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10530# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010532$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010534 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010536 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 -050010537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010539 if test "$ac_cv_type_long_long" = yes; then
10540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010542{ as_fn_set_status 77
10543as_fn_error "cannot compute sizeof (long long)
10544See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010545 else
10546 ac_cv_sizeof_long_long=0
10547 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010549
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010550fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010552$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010553
10554
10555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010557#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010558_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010559
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010560
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010561SIZEOF_SHORT=$ac_cv_sizeof_short
10562SIZEOF_INT=$ac_cv_sizeof_int
10563SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010564SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10565
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010566
10567
10568
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010570$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010571if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010572 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010573else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010574 ac_cv_c_bigendian=unknown
10575 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010577/* end confdefs.h. */
10578#ifndef __APPLE_CC__
10579 not a universal capable compiler
10580 #endif
10581 typedef int dummy;
10582
10583_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010584if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010585
10586 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010587 # there are at least two -arch flags with different values.
10588 ac_arch=
10589 ac_prev=
10590 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10591 if test -n "$ac_prev"; then
10592 case $ac_word in
10593 i?86 | x86_64 | ppc | ppc64)
10594 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10595 ac_arch=$ac_word
10596 else
10597 ac_cv_c_bigendian=universal
10598 break
10599 fi
10600 ;;
10601 esac
10602 ac_prev=
10603 elif test "x$ac_word" = "x-arch"; then
10604 ac_prev=arch
10605 fi
10606 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010607fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 if test $ac_cv_c_bigendian = unknown; then
10610 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010612/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010613#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010614 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010616int
10617main ()
10618{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010619#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10620 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10621 && LITTLE_ENDIAN)
10622 bogus endian macros
10623 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010624
10625 ;
10626 return 0;
10627}
10628_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010629if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010630 # It does; now see whether it defined to BIG_ENDIAN or not.
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'o877eb6d2001-06-11 06:54:13 +000010633#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010634 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010636int
10637main ()
10638{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010639#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010640 not big endian
10641 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010642
10643 ;
10644 return 0;
10645}
10646_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010647if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010648 ac_cv_c_bigendian=yes
10649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010650 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010653fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10655 fi
10656 if test $ac_cv_c_bigendian = unknown; then
10657 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010659/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010660#include <limits.h>
10661
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010662int
10663main ()
10664{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010665#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10666 bogus endian macros
10667 #endif
10668
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010669 ;
10670 return 0;
10671}
10672_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010673if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010674 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010676/* end confdefs.h. */
10677#include <limits.h>
10678
10679int
10680main ()
10681{
10682#ifndef _BIG_ENDIAN
10683 not big endian
10684 #endif
10685
10686 ;
10687 return 0;
10688}
10689_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010690if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010691 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010692else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010693 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010694fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010696fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10698 fi
10699 if test $ac_cv_c_bigendian = unknown; then
10700 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010701 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010702 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010704/* end confdefs.h. */
10705short int ascii_mm[] =
10706 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10707 short int ascii_ii[] =
10708 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10709 int use_ascii (int i) {
10710 return ascii_mm[i] + ascii_ii[i];
10711 }
10712 short int ebcdic_ii[] =
10713 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10714 short int ebcdic_mm[] =
10715 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10716 int use_ebcdic (int i) {
10717 return ebcdic_mm[i] + ebcdic_ii[i];
10718 }
10719 extern int foo;
10720
10721int
10722main ()
10723{
10724return use_ascii (foo) == use_ebcdic (foo);
10725 ;
10726 return 0;
10727}
10728_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010729if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010730 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10731 ac_cv_c_bigendian=yes
10732 fi
10733 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10734 if test "$ac_cv_c_bigendian" = unknown; then
10735 ac_cv_c_bigendian=no
10736 else
10737 # finding both strings is unlikely to happen, but who knows?
10738 ac_cv_c_bigendian=unknown
10739 fi
10740 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010746$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747int
10748main ()
10749{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010750
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010751 /* Are we little or big endian? From Harbison&Steele. */
10752 union
10753 {
10754 long int l;
10755 char c[sizeof (long int)];
10756 } u;
10757 u.l = 1;
10758 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010759
10760 ;
10761 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010762}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010764if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010765 ac_cv_c_bigendian=no
10766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010767 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010769rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10770 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010771fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010772
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010773 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010774fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010776$as_echo "$ac_cv_c_bigendian" >&6; }
10777 case $ac_cv_c_bigendian in #(
10778 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010780;; #(
10781 no)
10782 ;; #(
10783 universal)
10784
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010785$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010786
10787 ;; #(
10788 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010789 as_fn_error "unknown endianness
10790 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010791 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010792
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010793BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010794ASM_TYPES_HEADER=./asm_types.h
10795
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010796echo "/* These defines are needed for the public ext2fs.h header file */" \
10797 > public_config.h
10798if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10799 uniq tmp_config.$$ >> public_config.h
10800else
10801 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10802fi
10803if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10804 uniq tmp_config.$$ >> public_config.h
10805else
10806 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10807fi
10808rm -f tmp_config.$$
10809PUBLIC_CONFIG_HEADER=./public_config.h
10810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010812do :
10813 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10814if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010816#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817_ACEOF
10818
10819fi
10820
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010821done
10822
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010823ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10824if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825
10826cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010827#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828_ACEOF
10829
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010831fi
10832
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010833{ $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 +010010834$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010835if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010836 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010839/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010840#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010841int
10842main ()
10843{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010844struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845 ;
10846 return 0;
10847}
10848_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010849if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010850 e2fsprogs_cv_struct_st_flags=yes
10851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010852 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10855fi
10856
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010858$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010859if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010861$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010862 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010863 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010866/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010867#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010868int
10869main ()
10870{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010871struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010872 ;
10873 return 0;
10874}
10875_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010876if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010877 e2fsprogs_cv_struct_st_flags_immut=yes
10878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010879 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010880fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010881rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10882fi
10883
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010885$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010886 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010887
10888$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010889
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010890 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010891fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010892ac_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 -050010893 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010894"
10895if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010896
10897cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010898#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010900
10901fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010902
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010903if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010905$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010906if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010907 $as_echo_n "(cached) " >&6
10908else
10909 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010911/* end confdefs.h. */
10912
10913/* Override any GCC internal prototype to avoid an error.
10914 Use char because int might match the return type of a GCC
10915 builtin and then its argument prototype would still apply. */
10916#ifdef __cplusplus
10917extern "C"
10918#endif
10919char blkid_probe_all ();
10920int
10921main ()
10922{
10923return blkid_probe_all ();
10924 ;
10925 return 0;
10926}
10927_ACEOF
10928for ac_lib in '' blkid; do
10929 if test -z "$ac_lib"; then
10930 ac_res="none required"
10931 else
10932 ac_res=-l$ac_lib
10933 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10934 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010935 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010936 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010937fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010938rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext
10940 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010941 break
10942fi
10943done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010944if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10945
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010946else
10947 ac_cv_search_blkid_probe_all=no
10948fi
10949rm conftest.$ac_ext
10950LIBS=$ac_func_search_save_LIBS
10951fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010953$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10954ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010955if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010956 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10957
10958fi
10959
10960fi
Theodore Ts'o9b3018a2011-08-11 14:56:49 -040010961for 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 backtrace
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010962do :
10963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10964ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10965eval as_val=\$$as_ac_var
10966 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010967 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010968#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010969_ACEOF
10970
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010971fi
10972done
10973
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010974SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010976$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010977if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010978 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010980 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010981LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010983/* end confdefs.h. */
10984
Theodore Ts'oe1052142006-10-21 21:46:47 -040010985/* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010988#ifdef __cplusplus
10989extern "C"
10990#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010991char socket ();
10992int
10993main ()
10994{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010995return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010996 ;
10997 return 0;
10998}
10999_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011000if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011001 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011002else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011003 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011004fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011005rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011007LIBS=$ac_check_lib_save_LIBS
11008fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011010$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011011if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011012 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011013fi
11014
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011015
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011017$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011018if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011019 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011023#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011024
11025_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011027 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028 ac_cv_have_optreset=yes
11029else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011030 ac_cv_have_optreset=no
11031fi
11032rm -f conftest*
11033
11034fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011036$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011037if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011038
11039$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011040
11041fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011042
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011043SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011044ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11045if test "x$ac_cv_func_sem_init" = x""yes; then :
11046
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011047else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011049$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011050if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011051 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011052else
11053 ac_check_lib_save_LIBS=$LIBS
11054LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011056/* end confdefs.h. */
11057
11058/* Override any GCC internal prototype to avoid an error.
11059 Use char because int might match the return type of a GCC
11060 builtin and then its argument prototype would still apply. */
11061#ifdef __cplusplus
11062extern "C"
11063#endif
11064char sem_init ();
11065int
11066main ()
11067{
11068return sem_init ();
11069 ;
11070 return 0;
11071}
11072_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011073if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011074 ac_cv_lib_pthread_sem_init=yes
11075else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011076 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011077fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078rm -f core conftest.err conftest.$ac_objext \
11079 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011080LIBS=$ac_check_lib_save_LIBS
11081fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011083$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011084if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11085 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011086
11087 SEM_INIT_LIB=-lpthread
11088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011090$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011091if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011092 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011093else
11094 ac_check_lib_save_LIBS=$LIBS
11095LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011097/* end confdefs.h. */
11098
11099/* Override any GCC internal prototype to avoid an error.
11100 Use char because int might match the return type of a GCC
11101 builtin and then its argument prototype would still apply. */
11102#ifdef __cplusplus
11103extern "C"
11104#endif
11105char sem_init ();
11106int
11107main ()
11108{
11109return sem_init ();
11110 ;
11111 return 0;
11112}
11113_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011114if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011115 ac_cv_lib_rt_sem_init=yes
11116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011117 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011119rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011121LIBS=$ac_check_lib_save_LIBS
11122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011124$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011125if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11126 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011127
11128 SEM_INIT_LIB=-lrt
11129else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011131$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011132if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011133 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011134else
11135 ac_check_lib_save_LIBS=$LIBS
11136LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011138/* end confdefs.h. */
11139
11140/* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11143#ifdef __cplusplus
11144extern "C"
11145#endif
11146char sem_init ();
11147int
11148main ()
11149{
11150return sem_init ();
11151 ;
11152 return 0;
11153}
11154_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011155if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011156 ac_cv_lib_posix4_sem_init=yes
11157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011158 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011159fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011160rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011162LIBS=$ac_check_lib_save_LIBS
11163fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011165$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011166if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11167 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011168
11169 SEM_INIT_LIB=-lposix4
11170fi
11171
11172fi
11173
11174fi
11175
11176fi
11177
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011179$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011180if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011181 UNI_DIFF_OPTS=-u
11182else
11183 UNI_DIFF_OPTS=-c
11184fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011186$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011187
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011188case "$host_os" in
11189linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011190
11191$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011192
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011193 ;;
11194esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011195LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011196CYGWIN_CMT="#"
11197UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011198case "$host_os" in
11199linux*)
11200 LINUX_CMT=
11201 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011202cygwin)
11203 CYGWIN_CMT=
11204 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011205 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011206esac
11207
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011208
11209
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011210case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011211linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011212 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11213 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011214 { $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 +010011215$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011216 fi
11217 ;;
11218esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011219case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011220linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011221 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011222 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011223 { $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 +010011224$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011225 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011227$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011228 mandir=/usr/share/man
11229 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011230 fi
11231;;
11232esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011233if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011234 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011235 root_prefix="$ac_default_prefix"
11236 else
11237 root_prefix="$prefix"
11238 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011239 root_bindir=$bindir
11240 root_sbindir=$sbindir
11241 root_libdir=$libdir
11242 root_sysconfdir=$sysconfdir
11243else
11244 root_bindir='${root_prefix}/bin'
11245 root_sbindir='${root_prefix}/sbin'
11246 root_libdir='${root_prefix}/lib'
11247 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011248fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011249if test "$bindir" != '${exec_prefix}/bin'; then
11250 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011252$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011253fi
11254if test "$sbindir" != '${exec_prefix}/sbin'; then
11255 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011257$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011258fi
11259if test "$libdir" != '${exec_prefix}/lib'; then
11260 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011262$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011263fi
11264if test "$sysconfdir" != '${prefix}/etc'; then
11265 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011267$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011268fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011269
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011270
11271
11272
11273
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011274
11275# Check whether --with-multiarch was given.
11276if test "${with_multiarch+set}" = set; then :
11277 withval=$with_multiarch; libdir=$libdir/$withval
11278root_libdir=$root_libdir/$withval
11279
11280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011282$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011283if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011284 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011285else
11286 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011289#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011290int
11291main ()
11292{
Theodore Ts'oae851481997-04-29 18:13:24 +000011293fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011294 ;
11295 return 0;
11296}
11297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011298if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011299 ac_cv_e2fsprogs_use_static=yes
11300else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011301 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011302fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011303rm -f core conftest.err conftest.$ac_objext \
11304 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011305LDFLAGS=$SAVE_LDFLAGS
11306fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011307
Theodore Ts'odefde781999-01-04 07:39:19 +000011308case "$host_os" in
11309solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011311;;
11312esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011314$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011315LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011316if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011317 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011318fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011319
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011320case "$host_os" in
11321darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011323$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011324
11325$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011326
11327 ;;
11328esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011329SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11330ET_DIR=`cd ${srcdir}/lib/et; pwd`
11331
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011332
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011333if test "$cross_compiling" = yes ; then
11334 DO_TEST_SUITE=
11335else
11336 DO_TEST_SUITE=check
11337fi
11338
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011339INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11340if test -n "$CPPFLAGS" ; then
11341 INCLUDES="$INCLUDES $CPPFLAGS"
11342fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011343if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011344 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011345fi
11346
Theodore Ts'odd947da2005-11-09 18:37:07 -040011347if test $cross_compiling = no; then
11348 BUILD_CFLAGS="$CFLAGS"
11349 BUILD_LDFLAGS="$LDFLAGS"
11350else
11351 BUILD_CFLAGS=
11352 BUILD_LDFLAGS=
11353fi
11354
11355
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011356test -d lib || mkdir lib
11357test -d include || mkdir include
11358test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011359test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011360for i in MCONFIG Makefile e2fsprogs.spec \
11361 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011362 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11363 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011364 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011365 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011366 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11367 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011368 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011369 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011370 resize/Makefile doc/Makefile intl/Makefile \
11371 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011372 if test -d `dirname ${srcdir}/$i` ; then
11373 outlist="$outlist $i"
11374 fi
11375done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376ac_config_files="$ac_config_files $outlist"
11377
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011378cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011379# This file is a shell script that caches the results of configure
11380# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011381# scripts and configure runs, see configure's option --config-cache.
11382# It is not useful on other systems. If it contains results you don't
11383# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011384#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385# config.status only pays attention to the cache file if you give it
11386# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011387#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388# `ac_cv_env_foo' variables (set or unset) will be overridden when
11389# loading this file, other *unset* `ac_cv_foo' will be assigned the
11390# following values.
11391
11392_ACEOF
11393
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011394# The following way of writing the cache mishandles newlines in values,
11395# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011396# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011397# Ultrix sh set writes to stderr and can't be redirected directly,
11398# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011399(
11400 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11401 eval ac_val=\$$ac_var
11402 case $ac_val in #(
11403 *${as_nl}*)
11404 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405 *_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 +010011406$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011407 esac
11408 case $ac_var in #(
11409 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011410 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011411 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011412 esac ;;
11413 esac
11414 done
11415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011417 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11418 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011419 # `set' does not quote correctly, so add quotes: double-quote
11420 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011421 sed -n \
11422 "s/'/'\\\\''/g;
11423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011424 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011425 *)
11426 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011427 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011428 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011429 esac |
11430 sort
11431) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011432 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011433 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011435 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11437 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011438 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11439 :end' >>confcache
11440if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11441 if test -w "$cache_file"; then
11442 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011443 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011444$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011445 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011446 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011447 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011448$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011449 fi
11450fi
11451rm -f confcache
11452
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011453test "x$prefix" = xNONE && prefix=$ac_default_prefix
11454# Let make expand exec_prefix.
11455test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11456
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011457DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011459ac_libobjs=
11460ac_ltlibobjs=
11461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11462 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011463 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011464 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011465 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11466 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011467 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11468 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469done
11470LIBOBJS=$ac_libobjs
11471
11472LTLIBOBJS=$ac_ltlibobjs
11473
11474
11475
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011476
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011477: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011478ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011479ac_clean_files_save=$ac_clean_files
11480ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011481{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011482$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011483as_write_fail=0
11484cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011485#! $SHELL
11486# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011488# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011489# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491debug=false
11492ac_cs_recheck=false
11493ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011495SHELL=\${CONFIG_SHELL-$SHELL}
11496export SHELL
11497_ASEOF
11498cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11499## -------------------- ##
11500## M4sh Initialization. ##
11501## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011502
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011503# Be more Bourne compatible
11504DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011505if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011506 emulate sh
11507 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011508 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509 # is contrary to our usage. Disable this feature.
11510 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011511 setopt NO_GLOB_SUBST
11512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011513 case `(set -o) 2>/dev/null` in #(
11514 *posix*) :
11515 set -o posix ;; #(
11516 *) :
11517 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011518esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011519fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011520
11521
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011522as_nl='
11523'
11524export as_nl
11525# Printing a long string crashes Solaris 7 /usr/bin/printf.
11526as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11527as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11528as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011529# Prefer a ksh shell builtin over an external printf program on Solaris,
11530# but without wasting forks for bash or zsh.
11531if test -z "$BASH_VERSION$ZSH_VERSION" \
11532 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11533 as_echo='print -r --'
11534 as_echo_n='print -rn --'
11535elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011536 as_echo='printf %s\n'
11537 as_echo_n='printf %s'
11538else
11539 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11540 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11541 as_echo_n='/usr/ucb/echo -n'
11542 else
11543 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11544 as_echo_n_body='eval
11545 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011546 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011547 *"$as_nl"*)
11548 expr "X$arg" : "X\\(.*\\)$as_nl";
11549 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11550 esac;
11551 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11552 '
11553 export as_echo_n_body
11554 as_echo_n='sh -c $as_echo_n_body as_echo'
11555 fi
11556 export as_echo_body
11557 as_echo='sh -c $as_echo_body as_echo'
11558fi
11559
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011560# The user is always right.
11561if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011562 PATH_SEPARATOR=:
11563 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11564 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11565 PATH_SEPARATOR=';'
11566 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567fi
11568
Theodore Ts'oe1052142006-10-21 21:46:47 -040011569
11570# IFS
11571# We need space, tab and new line, in precisely that order. Quoting is
11572# there to prevent editors from complaining about space-tab.
11573# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11574# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011575IFS=" "" $as_nl"
11576
11577# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011578case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011579 *[\\/]* ) as_myself=$0 ;;
11580 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581for as_dir in $PATH
11582do
11583 IFS=$as_save_IFS
11584 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11586 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011587IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588
Theodore Ts'oe1052142006-10-21 21:46:47 -040011589 ;;
11590esac
11591# We did not find ourselves, most probably we were run as `sh COMMAND'
11592# in which case we are not to be found in the path.
11593if test "x$as_myself" = x; then
11594 as_myself=$0
11595fi
11596if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011597 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011598 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599fi
11600
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011601# Unset variables that we do not need and which cause bugs (e.g. in
11602# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11603# suppresses any "Segmentation fault" message there. '((' could
11604# trigger a bug in pdksh 5.2.14.
11605for as_var in BASH_ENV ENV MAIL MAILPATH
11606do eval test x\${$as_var+set} = xset \
11607 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011608done
11609PS1='$ '
11610PS2='> '
11611PS4='+ '
11612
11613# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011614LC_ALL=C
11615export LC_ALL
11616LANGUAGE=C
11617export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011618
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011619# CDPATH.
11620(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11621
11622
11623# as_fn_error ERROR [LINENO LOG_FD]
11624# ---------------------------------
11625# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11626# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11627# script with status $?, using 1 if that was 0.
11628as_fn_error ()
11629{
11630 as_status=$?; test $as_status -eq 0 && as_status=1
11631 if test "$3"; then
11632 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11633 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11634 fi
11635 $as_echo "$as_me: error: $1" >&2
11636 as_fn_exit $as_status
11637} # as_fn_error
11638
11639
11640# as_fn_set_status STATUS
11641# -----------------------
11642# Set $? to STATUS, without forking.
11643as_fn_set_status ()
11644{
11645 return $1
11646} # as_fn_set_status
11647
11648# as_fn_exit STATUS
11649# -----------------
11650# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11651as_fn_exit ()
11652{
11653 set +e
11654 as_fn_set_status $1
11655 exit $1
11656} # as_fn_exit
11657
11658# as_fn_unset VAR
11659# ---------------
11660# Portably unset VAR.
11661as_fn_unset ()
11662{
11663 { eval $1=; unset $1;}
11664}
11665as_unset=as_fn_unset
11666# as_fn_append VAR VALUE
11667# ----------------------
11668# Append the text in VALUE to the end of the definition contained in VAR. Take
11669# advantage of any shell optimizations that allow amortized linear growth over
11670# repeated appends, instead of the typical quadratic growth present in naive
11671# implementations.
11672if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11673 eval 'as_fn_append ()
11674 {
11675 eval $1+=\$2
11676 }'
11677else
11678 as_fn_append ()
11679 {
11680 eval $1=\$$1\$2
11681 }
11682fi # as_fn_append
11683
11684# as_fn_arith ARG...
11685# ------------------
11686# Perform arithmetic evaluation on the ARGs, and store the result in the
11687# global $as_val. Take advantage of shells that can avoid forks. The arguments
11688# must be portable across $(()) and expr.
11689if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11690 eval 'as_fn_arith ()
11691 {
11692 as_val=$(( $* ))
11693 }'
11694else
11695 as_fn_arith ()
11696 {
11697 as_val=`expr "$@" || test $? -eq 1`
11698 }
11699fi # as_fn_arith
11700
11701
Theodore Ts'oe1052142006-10-21 21:46:47 -040011702if expr a : '\(a\)' >/dev/null 2>&1 &&
11703 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11704 as_expr=expr
11705else
11706 as_expr=false
11707fi
11708
11709if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11710 as_basename=basename
11711else
11712 as_basename=false
11713fi
11714
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011715if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11716 as_dirname=dirname
11717else
11718 as_dirname=false
11719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720
Theodore Ts'oe1052142006-10-21 21:46:47 -040011721as_me=`$as_basename -- "$0" ||
11722$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11723 X"$0" : 'X\(//\)$' \| \
11724 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011725$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011726 sed '/^.*\/\([^/][^/]*\)\/*$/{
11727 s//\1/
11728 q
11729 }
11730 /^X\/\(\/\/\)$/{
11731 s//\1/
11732 q
11733 }
11734 /^X\/\(\/\).*/{
11735 s//\1/
11736 q
11737 }
11738 s/.*/./; q'`
11739
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011740# Avoid depending upon Character Ranges.
11741as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11742as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11743as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11744as_cr_digits='0123456789'
11745as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746
11747ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011748case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011750 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011752 xy) ECHO_C='\c';;
11753 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11754 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011755 esac;;
11756*)
11757 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011758esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011759
11760rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011761if test -d conf$$.dir; then
11762 rm -f conf$$.dir/conf$$.file
11763else
11764 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011765 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011766fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011767if (echo >conf$$.file) 2>/dev/null; then
11768 if ln -s conf$$.file conf$$ 2>/dev/null; then
11769 as_ln_s='ln -s'
11770 # ... but there are two gotchas:
11771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11773 # In both cases, we have to default to `cp -p'.
11774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11775 as_ln_s='cp -p'
11776 elif ln conf$$.file conf$$ 2>/dev/null; then
11777 as_ln_s=ln
11778 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011779 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011780 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011781else
11782 as_ln_s='cp -p'
11783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11785rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011787
11788# as_fn_mkdir_p
11789# -------------
11790# Create "$as_dir" as a directory, including parents if necessary.
11791as_fn_mkdir_p ()
11792{
11793
11794 case $as_dir in #(
11795 -*) as_dir=./$as_dir;;
11796 esac
11797 test -d "$as_dir" || eval $as_mkdir_p || {
11798 as_dirs=
11799 while :; do
11800 case $as_dir in #(
11801 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11802 *) as_qdir=$as_dir;;
11803 esac
11804 as_dirs="'$as_qdir' $as_dirs"
11805 as_dir=`$as_dirname -- "$as_dir" ||
11806$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11807 X"$as_dir" : 'X\(//\)[^/]' \| \
11808 X"$as_dir" : 'X\(//\)$' \| \
11809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11810$as_echo X"$as_dir" |
11811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11812 s//\1/
11813 q
11814 }
11815 /^X\(\/\/\)[^/].*/{
11816 s//\1/
11817 q
11818 }
11819 /^X\(\/\/\)$/{
11820 s//\1/
11821 q
11822 }
11823 /^X\(\/\).*/{
11824 s//\1/
11825 q
11826 }
11827 s/.*/./; q'`
11828 test -d "$as_dir" && break
11829 done
11830 test -z "$as_dirs" || eval "mkdir $as_dirs"
11831 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11832
11833
11834} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011835if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011836 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011837else
11838 test -d ./-p && rmdir ./-p
11839 as_mkdir_p=false
11840fi
11841
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011842if test -x / >/dev/null 2>&1; then
11843 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011844else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011845 if ls -dL / >/dev/null 2>&1; then
11846 as_ls_L_option=L
11847 else
11848 as_ls_L_option=
11849 fi
11850 as_test_x='
11851 eval sh -c '\''
11852 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011854 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011855 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011856 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011857 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011858 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011859 ???[sx]*):;;*)false;;esac;fi
11860 '\'' sh
11861 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011862fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011863as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011864
11865# Sed expression to map a string onto a valid CPP name.
11866as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11867
11868# Sed expression to map a string onto a valid variable name.
11869as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11870
11871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011873## ----------------------------------- ##
11874## Main body of $CONFIG_STATUS script. ##
11875## ----------------------------------- ##
11876_ASEOF
11877test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011878
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11880# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882# values after options handling.
11883ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011885generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886
11887 CONFIG_FILES = $CONFIG_FILES
11888 CONFIG_HEADERS = $CONFIG_HEADERS
11889 CONFIG_LINKS = $CONFIG_LINKS
11890 CONFIG_COMMANDS = $CONFIG_COMMANDS
11891 $ $0 $@
11892
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893on `(hostname || uname -n) 2>/dev/null | sed 1q`
11894"
11895
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011896_ACEOF
11897
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011898case $ac_config_files in *"
11899"*) set x $ac_config_files; shift; ac_config_files=$*;;
11900esac
11901
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011902case $ac_config_headers in *"
11903"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11904esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011905
11906
11907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011908# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011909config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011910config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011911config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912
Theodore Ts'oe1052142006-10-21 21:46:47 -040011913_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011914
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011917\`$as_me' instantiates files and other configuration actions
11918from templates according to the current configuration. Unless the files
11919and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011920
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011921Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922
11923 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011924 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011925 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011926 -q, --quiet, --silent
11927 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928 -d, --debug don't remove temporary files
11929 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011930 --file=FILE[:TEMPLATE]
11931 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011932 --header=FILE[:TEMPLATE]
11933 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934
11935Configuration files:
11936$config_files
11937
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011938Configuration headers:
11939$config_headers
11940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941Configuration commands:
11942$config_commands
11943
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011944Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945
Theodore Ts'oe1052142006-10-21 21:46:47 -040011946_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011948ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011949ac_cs_version="\\
11950config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011951configured by $0, generated by GNU Autoconf 2.65,
11952 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955This config.status script is free software; the Free Software Foundation
11956gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957
11958ac_pwd='$ac_pwd'
11959srcdir='$srcdir'
11960INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011961AWK='$AWK'
11962test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963_ACEOF
11964
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11966# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011967ac_need_defaults=:
11968while test $# != 0
11969do
11970 case $1 in
11971 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011972 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11973 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974 ac_shift=:
11975 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 ac_option=$1
11978 ac_optarg=$2
11979 ac_shift=shift
11980 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011981 esac
11982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983 case $ac_option in
11984 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011985 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11986 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011987 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011988 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011989 --config | --confi | --conf | --con | --co | --c )
11990 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011991 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992 debug=: ;;
11993 --file | --fil | --fi | --f )
11994 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011995 case $ac_optarg in
11996 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11997 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011998 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011999 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012000 --header | --heade | --head | --hea )
12001 $ac_shift
12002 case $ac_optarg in
12003 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12004 esac
12005 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12006 ac_need_defaults=false;;
12007 --he | --h)
12008 # Conflict between --help and --header
12009 as_fn_error "ambiguous option: \`$1'
12010Try \`$0 --help' for more information.";;
12011 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012012 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12015 ac_cs_silent=: ;;
12016
12017 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012018 -*) as_fn_error "unrecognized option: \`$1'
12019Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012021 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012022 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012024 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025 shift
12026done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012030if $ac_cs_silent; then
12031 exec 6>/dev/null
12032 ac_configure_extra_args="$ac_configure_extra_args --silent"
12033fi
12034
12035_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012036cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012038 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12039 shift
12040 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12041 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012042 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012043 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044fi
12045
12046_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012048exec 5>>config.log
12049{
12050 echo
12051 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12052## Running $as_me. ##
12053_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012054 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012055} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056
Theodore Ts'oe1052142006-10-21 21:46:47 -040012057_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012060# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012062# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012063 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012064 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012066 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12067 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012068
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070_ACEOF
12071
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012073
12074# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075for ac_config_target in $ac_config_targets
12076do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012078 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012079 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12080 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12081
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012082 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 esac
12084done
12085
Theodore Ts'oe1052142006-10-21 21:46:47 -040012086
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012087# If the user did not use the arguments to specify the items to instantiate,
12088# then the envvar interface is used. Set only those that are not.
12089# We use the long form for the default assignment because of an extremely
12090# bizarre bug on SunOS 4.1.3.
12091if $ac_need_defaults; then
12092 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012093 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12095fi
12096
12097# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012098# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012099# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100# Hook for its removal unless debugging.
12101# Note that there is a small window in which the directory will not be cleaned:
12102# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103$debug ||
12104{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105 tmp=
12106 trap 'exit_status=$?
12107 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12108' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111# Create a (secure) tmp directory for tmp files.
12112
12113{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115 test -n "$tmp" && test -d "$tmp"
12116} ||
12117{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012118 tmp=./conf$$-$RANDOM
12119 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012120} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012122# Set up the scripts for CONFIG_FILES section.
12123# No need to generate them if there are no CONFIG_FILES.
12124# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012125if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12128 ac_cs_awk_getline=:
12129 ac_cs_awk_pipe_init=
12130 ac_cs_awk_read_file='
12131 while ((getline aline < (F[key])) > 0)
12132 print(aline)
12133 close(F[key])'
12134 ac_cs_awk_pipe_fini=
12135else
12136 ac_cs_awk_getline=false
12137 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12138 ac_cs_awk_read_file='
12139 print "|#_!!_#|"
12140 print "cat " F[key] " &&"
12141 '$ac_cs_awk_pipe_init
12142 # The final `:' finishes the AND list.
12143 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12144fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145ac_cr=`echo X | tr X '\015'`
12146# On cygwin, bash can eat \r inside `` if the user requested igncr.
12147# But we know of no other shell where ac_cr would be empty at this
12148# point, so we can use a bashism as a fallback.
12149if test "x$ac_cr" = x; then
12150 eval ac_cr=\$\'\\r\'
12151fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012152ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12153if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012154 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012155else
12156 ac_cs_awk_cr=$ac_cr
12157fi
12158
12159echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160_ACEOF
12161
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012162# Create commands to substitute file output variables.
12163{
12164 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12165 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12166 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12167 echo "_ACAWK" &&
12168 echo "_ACEOF"
12169} >conf$$files.sh &&
12170. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012171 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012172rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174{
12175 echo "cat >conf$$subs.awk <<_ACEOF" &&
12176 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12177 echo "_ACEOF"
12178} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012179 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012180ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012181ac_delim='%!_!# '
12182for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012183 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012184 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12187 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012188 break
12189 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012191 else
12192 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012194done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012195rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012196
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012197cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12198cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012200sed -n '
12201h
12202s/^/S["/; s/!.*/"]=/
12203p
12204g
12205s/^[^!]*!//
12206:repl
12207t repl
12208s/'"$ac_delim"'$//
12209t delim
12210:nl
12211h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012212s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012213t more1
12214s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12215p
12216n
12217b repl
12218:more1
12219s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12220p
12221g
12222s/.\{148\}//
12223t nl
12224:delim
12225h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012226s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012227t more2
12228s/["\\]/\\&/g; s/^/"/; s/$/"/
12229p
12230b
12231:more2
12232s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12233p
12234g
12235s/.\{148\}//
12236t delim
12237' <conf$$subs.awk | sed '
12238/^[^""]/{
12239 N
12240 s/\n//
12241}
12242' >>$CONFIG_STATUS || ac_write_fail=1
12243rm -f conf$$subs.awk
12244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12245_ACAWK
12246cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12247 for (key in S) S_is_set[key] = 1
12248 FS = ""
12249 \$ac_cs_awk_pipe_init
12250}
12251{
12252 line = $ 0
12253 nfields = split(line, field, "@")
12254 substed = 0
12255 len = length(field[1])
12256 for (i = 2; i < nfields; i++) {
12257 key = field[i]
12258 keylen = length(key)
12259 if (S_is_set[key]) {
12260 value = S[key]
12261 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12262 len += length(value) + length(field[++i])
12263 substed = 1
12264 } else
12265 len += 1 + keylen
12266 }
12267 if (nfields == 3 && !substed) {
12268 key = field[2]
12269 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12270 \$ac_cs_awk_read_file
12271 next
12272 }
12273 }
12274 print line
12275}
12276\$ac_cs_awk_pipe_fini
12277_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012279cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12280if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12281 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12282else
12283 cat
12284fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012286_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012287
12288# VPATH may cause trouble with some makes, so we remove $(srcdir),
12289# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12290# trailing colons and then remove the whole line if VPATH becomes empty
12291# (actually we leave an empty line to preserve line numbers).
12292if test "x$srcdir" = x.; then
12293 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12294s/:*\$(srcdir):*/:/
12295s/:*\${srcdir}:*/:/
12296s/:*@srcdir@:*/:/
12297s/^\([^=]*=[ ]*\):*/\1/
12298s/:*$//
12299s/^[^=]*=[ ]*$//
12300}'
12301fi
12302
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304fi # test -n "$CONFIG_FILES"
12305
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012306# Set up the scripts for CONFIG_HEADERS section.
12307# No need to generate them if there are no CONFIG_HEADERS.
12308# This happens for instance with `./config.status Makefile'.
12309if test -n "$CONFIG_HEADERS"; then
12310cat >"$tmp/defines.awk" <<\_ACAWK ||
12311BEGIN {
12312_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012313
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012314# Transform confdefs.h into an awk script `defines.awk', embedded as
12315# here-document in config.status, that substitutes the proper values into
12316# config.h.in to produce config.h.
12317
12318# Create a delimiter string that does not exist in confdefs.h, to ease
12319# handling of long lines.
12320ac_delim='%!_!# '
12321for ac_last_try in false false :; do
12322 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12323 if test -z "$ac_t"; then
12324 break
12325 elif $ac_last_try; then
12326 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12327 else
12328 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12329 fi
12330done
12331
12332# For the awk script, D is an array of macro values keyed by name,
12333# likewise P contains macro parameters if any. Preserve backslash
12334# newline sequences.
12335
12336ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12337sed -n '
12338s/.\{148\}/&'"$ac_delim"'/g
12339t rset
12340:rset
12341s/^[ ]*#[ ]*define[ ][ ]*/ /
12342t def
12343d
12344:def
12345s/\\$//
12346t bsnl
12347s/["\\]/\\&/g
12348s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12349D["\1"]=" \3"/p
12350s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12351d
12352:bsnl
12353s/["\\]/\\&/g
12354s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12355D["\1"]=" \3\\\\\\n"\\/p
12356t cont
12357s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12358t cont
12359d
12360:cont
12361n
12362s/.\{148\}/&'"$ac_delim"'/g
12363t clear
12364:clear
12365s/\\$//
12366t bsnlc
12367s/["\\]/\\&/g; s/^/"/; s/$/"/p
12368d
12369:bsnlc
12370s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12371b cont
12372' <confdefs.h | sed '
12373s/'"$ac_delim"'/"\\\
12374"/g' >>$CONFIG_STATUS || ac_write_fail=1
12375
12376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12377 for (key in D) D_is_set[key] = 1
12378 FS = ""
12379}
12380/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12381 line = \$ 0
12382 split(line, arg, " ")
12383 if (arg[1] == "#") {
12384 defundef = arg[2]
12385 mac1 = arg[3]
12386 } else {
12387 defundef = substr(arg[1], 2)
12388 mac1 = arg[2]
12389 }
12390 split(mac1, mac2, "(") #)
12391 macro = mac2[1]
12392 prefix = substr(line, 1, index(line, defundef) - 1)
12393 if (D_is_set[macro]) {
12394 # Preserve the white space surrounding the "#".
12395 print prefix "define", macro P[macro] D[macro]
12396 next
12397 } else {
12398 # Replace #undef with comments. This is necessary, for example,
12399 # in the case of _POSIX_SOURCE, which is predefined and required
12400 # on some systems where configure will not decide to define it.
12401 if (defundef == "undef") {
12402 print "/*", prefix defundef, macro, "*/"
12403 next
12404 }
12405 }
12406}
12407{ print }
12408_ACAWK
12409_ACEOF
12410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12411 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12412fi # test -n "$CONFIG_HEADERS"
12413
12414
12415eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012416shift
12417for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012418do
12419 case $ac_tag in
12420 :[FHLC]) ac_mode=$ac_tag; continue;;
12421 esac
12422 case $ac_mode$ac_tag in
12423 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012424 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012425 :[FH]-) ac_tag=-:-;;
12426 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12427 esac
12428 ac_save_IFS=$IFS
12429 IFS=:
12430 set x $ac_tag
12431 IFS=$ac_save_IFS
12432 shift
12433 ac_file=$1
12434 shift
12435
12436 case $ac_mode in
12437 :L) ac_source=$1;;
12438 :[FH])
12439 ac_file_inputs=
12440 for ac_f
12441 do
12442 case $ac_f in
12443 -) ac_f="$tmp/stdin";;
12444 *) # Look for the file first in the build tree, then in the source tree
12445 # (if the path is not absolute). The absolute path cannot be DOS-style,
12446 # because $ac_f cannot contain `:'.
12447 test -f "$ac_f" ||
12448 case $ac_f in
12449 [\\/$]*) false;;
12450 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12451 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012452 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012453 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012454 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012455 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012456 done
12457
12458 # Let's still pretend it is `configure' which instantiates (i.e., don't
12459 # use $as_me), people would be surprised to read:
12460 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012461 configure_input='Generated from '`
12462 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12463 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012464 if test x"$ac_file" != x-; then
12465 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012466 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012467$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012468 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012469 # Neutralize special characters interpreted by sed in replacement strings.
12470 case $configure_input in #(
12471 *\&* | *\|* | *\\* )
12472 ac_sed_conf_input=`$as_echo "$configure_input" |
12473 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12474 *) ac_sed_conf_input=$configure_input;;
12475 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012476
12477 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012479 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480 esac
12481 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482 esac
12483
Theodore Ts'oe1052142006-10-21 21:46:47 -040012484 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012485$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12486 X"$ac_file" : 'X\(//\)[^/]' \| \
12487 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012488 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012489$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12491 s//\1/
12492 q
12493 }
12494 /^X\(\/\/\)[^/].*/{
12495 s//\1/
12496 q
12497 }
12498 /^X\(\/\/\)$/{
12499 s//\1/
12500 q
12501 }
12502 /^X\(\/\).*/{
12503 s//\1/
12504 q
12505 }
12506 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012507 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012508 ac_builddir=.
12509
Theodore Ts'oe1052142006-10-21 21:46:47 -040012510case "$ac_dir" in
12511.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12512*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012513 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012514 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012515 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012516 case $ac_top_builddir_sub in
12517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12519 esac ;;
12520esac
12521ac_abs_top_builddir=$ac_pwd
12522ac_abs_builddir=$ac_pwd$ac_dir_suffix
12523# for backward compatibility:
12524ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012525
12526case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012527 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012529 ac_top_srcdir=$ac_top_builddir_sub
12530 ac_abs_top_srcdir=$ac_pwd ;;
12531 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012533 ac_top_srcdir=$srcdir
12534 ac_abs_top_srcdir=$srcdir ;;
12535 *) # Relative name.
12536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12537 ac_top_srcdir=$ac_top_build_prefix$srcdir
12538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012542
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543 case $ac_mode in
12544 :F)
12545 #
12546 # CONFIG_FILE
12547 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012548
12549 case $INSTALL in
12550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012554
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012556# If the template does not know about datarootdir, expand it.
12557# FIXME: This hack should be removed a few years after 2.60.
12558ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012559ac_sed_dataroot='
12560/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561 p
12562 q
12563}
12564/@datadir@/p
12565/@docdir@/p
12566/@infodir@/p
12567/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012568/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012569case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012570*datarootdir*) ac_datarootdir_seen=yes;;
12571*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012572 { $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 +010012573$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012574_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012576 ac_datarootdir_hack='
12577 s&@datadir@&$datadir&g
12578 s&@docdir@&$docdir&g
12579 s&@infodir@&$infodir&g
12580 s&@localedir@&$localedir&g
12581 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012582 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012583esac
12584_ACEOF
12585
12586# Neutralize VPATH when `$srcdir' = `.'.
12587# Shell code in configure.ac might set extrasub.
12588# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12590ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012591$extrasub
12592_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012593cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594:t
12595/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012596s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012597s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012598s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012599s&@srcdir@&$ac_srcdir&;t t
12600s&@abs_srcdir@&$ac_abs_srcdir&;t t
12601s&@top_srcdir@&$ac_top_srcdir&;t t
12602s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12603s&@builddir@&$ac_builddir&;t t
12604s&@abs_builddir@&$ac_abs_builddir&;t t
12605s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12606s&@INSTALL@&$ac_INSTALL&;t t
12607$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012608"
12609eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12610if $ac_cs_awk_getline; then
12611 $AWK -f "$tmp/subs.awk"
12612else
12613 $AWK -f "$tmp/subs.awk" | $SHELL
12614fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012615 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616
Theodore Ts'oe1052142006-10-21 21:46:47 -040012617test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12618 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012620 { $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 -040012621which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012622$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012623which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012624
Theodore Ts'oe1052142006-10-21 21:46:47 -040012625 rm -f "$tmp/stdin"
12626 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012627 -) cat "$tmp/out" && rm -f "$tmp/out";;
12628 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12629 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012630 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012631 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012632 :H)
12633 #
12634 # CONFIG_HEADER
12635 #
12636 if test x"$ac_file" != x-; then
12637 {
12638 $as_echo "/* $configure_input */" \
12639 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12640 } >"$tmp/config.h" \
12641 || as_fn_error "could not create $ac_file" "$LINENO" 5
12642 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12644$as_echo "$as_me: $ac_file is unchanged" >&6;}
12645 else
12646 rm -f "$ac_file"
12647 mv "$tmp/config.h" "$ac_file" \
12648 || as_fn_error "could not create $ac_file" "$LINENO" 5
12649 fi
12650 else
12651 $as_echo "/* $configure_input */" \
12652 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12653 || as_fn_error "could not create -" "$LINENO" 5
12654 fi
12655 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012656
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012657 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012658$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012659 ;;
12660 esac
12661
12662
12663 case $ac_file$ac_mode in
12664 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012665 for ac_file in $CONFIG_FILES; do
12666 # Support "outfile[:infile[:infile...]]"
12667 case "$ac_file" in
12668 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012669 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012670 # PO directories have a Makefile.in generated from Makefile.in.in.
12671 case "$ac_file" in */Makefile.in)
12672 # Adjust a relative srcdir.
12673 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12674 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12675 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12676 # In autoconf-2.13 it is called $ac_given_srcdir.
12677 # In autoconf-2.50 it is called $srcdir.
12678 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12679 case "$ac_given_srcdir" in
12680 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12681 /*) top_srcdir="$ac_given_srcdir" ;;
12682 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12683 esac
12684 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12685 rm -f "$ac_dir/POTFILES"
12686 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12687 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 -050012688 POMAKEFILEDEPS="POTFILES.in"
12689 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012690 # on $ac_dir but don't depend on user-specified configuration
12691 # parameters.
12692 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12693 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012695 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12696 fi
12697 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12698 # Hide the ALL_LINGUAS assigment from automake.
12699 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012700 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12701 else
12702 # The set of available languages was given in configure.in.
12703 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012704 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012705 # Compute POFILES
12706 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12707 # Compute UPDATEPOFILES
12708 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12709 # Compute DUMMYPOFILES
12710 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12711 # Compute GMOFILES
12712 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012713 case "$ac_given_srcdir" in
12714 .) srcdirpre= ;;
12715 *) srcdirpre='$(srcdir)/' ;;
12716 esac
12717 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012718 UPDATEPOFILES=
12719 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012721 for lang in $ALL_LINGUAS; do
12722 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012723 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12724 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012725 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012726 done
12727 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12728 # environment variable.
12729 INST_LINGUAS=
12730 if test -n "$ALL_LINGUAS"; then
12731 for presentlang in $ALL_LINGUAS; do
12732 useit=no
12733 if test "%UNSET%" != "$LINGUAS"; then
12734 desiredlanguages="$LINGUAS"
12735 else
12736 desiredlanguages="$ALL_LINGUAS"
12737 fi
12738 for desiredlang in $desiredlanguages; do
12739 # Use the presentlang catalog if desiredlang is
12740 # a. equal to presentlang, or
12741 # b. a variant of presentlang (because in this case,
12742 # presentlang can be used as a fallback for messages
12743 # which are not translated in the desiredlang catalog).
12744 case "$desiredlang" in
12745 "$presentlang"*) useit=yes;;
12746 esac
12747 done
12748 if test $useit = yes; then
12749 INST_LINGUAS="$INST_LINGUAS $presentlang"
12750 fi
12751 done
12752 fi
12753 CATALOGS=
12754 if test -n "$INST_LINGUAS"; then
12755 for lang in $INST_LINGUAS; do
12756 CATALOGS="$CATALOGS $lang.gmo"
12757 done
12758 fi
12759 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760 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 -040012761 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12762 if test -f "$f"; then
12763 case "$f" in
12764 *.orig | *.bak | *~) ;;
12765 *) cat "$f" >> "$ac_dir/Makefile" ;;
12766 esac
12767 fi
12768 done
12769 fi
12770 ;;
12771 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012772 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012773
Theodore Ts'oe1052142006-10-21 21:46:47 -040012774 esac
12775done # for ac_tag
12776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012779_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780ac_clean_files=$ac_clean_files_save
12781
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012782test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012783 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012785
12786# configure is writing to config.log, and then calls config.status.
12787# config.status does its own redirection, appending to config.log.
12788# Unfortunately, on DOS this fails, as config.log is still kept open
12789# by configure, so config.status won't be able to write to it; its
12790# output is simply discarded. So we exec the FD to /dev/null,
12791# effectively closing config.log, so it can be properly (re)opened and
12792# appended to by config.status. When coming back to configure, we
12793# need to make the FD available again.
12794if test "$no_create" != yes; then
12795 ac_cs_success=:
12796 ac_config_status_args=
12797 test "$silent" = yes &&
12798 ac_config_status_args="$ac_config_status_args --quiet"
12799 exec 5>/dev/null
12800 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12801 exec 5>>config.log
12802 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12803 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012804 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012806if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012808$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12809fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012810
Theodore Ts'oee683a12005-02-05 15:53:56 -050012811if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi