blob: 667845fc369003e6e1d2357daa08619c64e44ed3 [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
826'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400827 ac_precious_vars='build_alias
828host_alias
829target_alias
830CC
831CFLAGS
832LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400833LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400834CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400835CPP
836PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400837
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838
839# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500840ac_init_help=
841ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100842ac_unrecognized_opts=
843ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000844# The variables have the same names as the options, with
845# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500846cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000847exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849no_recursion=
850prefix=NONE
851program_prefix=NONE
852program_suffix=NONE
853program_transform_name=s,x,x,
854silent=
855site=
856srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000857verbose=
858x_includes=NONE
859x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500860
861# Installation directory options.
862# These are left unexpanded so users can "make install exec_prefix=/foo"
863# and all the variables that are supposed to be based on exec_prefix
864# by default will actually change.
865# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400866# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000867bindir='${exec_prefix}/bin'
868sbindir='${exec_prefix}/sbin'
869libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870datarootdir='${prefix}/share'
871datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000872sysconfdir='${prefix}/etc'
873sharedstatedir='${prefix}/com'
874localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000875includedir='${prefix}/include'
876oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400877docdir='${datarootdir}/doc/${PACKAGE}'
878infodir='${datarootdir}/info'
879htmldir='${docdir}'
880dvidir='${docdir}'
881pdfdir='${docdir}'
882psdir='${docdir}'
883libdir='${exec_prefix}/lib'
884localedir='${datarootdir}/locale'
885mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000886
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000887ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400888ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000889for ac_option
890do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400893 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000894 ac_prev=
895 continue
896 fi
897
Theodore Ts'oe1052142006-10-21 21:46:47 -0400898 case $ac_option in
899 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
900 *) ac_optarg=yes ;;
901 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
Theodore Ts'oe1052142006-10-21 21:46:47 -0400905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000913
914 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500915 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928
Theodore Ts'oe1052142006-10-21 21:46:47 -0400929 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000930 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500932 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000933
Theodore Ts'oe1052142006-10-21 21:46:47 -0400934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000941 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000943 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500945 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000966
967 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000969 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500971 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500990 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
1003 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001004 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001005 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001007
Theodore Ts'oe1052142006-10-21 21:46:47 -04001008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001024 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001029 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001036 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001037
Theodore Ts'oe1052142006-10-21 21:46:47 -04001038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001043 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001044 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001048 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001053 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001054
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001060 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001075
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001086 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001111
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001130 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001141 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001142
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001159
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001161 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001163 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001170
1171 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001173 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001175 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001186
1187 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001189 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001191 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001219 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001221 -*) as_fn_error "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001223 ;;
1224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
1230 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1231 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001232 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 export $ac_envvar ;;
1234
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001235 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001248 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249fi
1250
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001254 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001264do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001265 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001273 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001276 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001277 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001278done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
1282# FIXME: To remove some day.
1283build=$build_alias
1284host=$host_alias
1285target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001287# FIXME: To remove some day.
1288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001291 $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 -05001292 If a cross compiler is detected then cross compile mode will be used." >&2
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
1302
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001303
Theodore Ts'oe1052142006-10-21 21:46:47 -04001304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001307 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001309 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001310
1311
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001315 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001339 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001340 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001341 srcdir=..
1342 fi
1343else
1344 ac_srcdir_defaulted=no
1345fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001348 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001353 pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378\`configure' configures this package to adapt to many kinds of systems.
1379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001400 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001402 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001431_ACEOF
1432
1433 cat <<\_ACEOF
1434
1435System types:
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1438_ACEOF
1439fi
1440
1441if test -n "$ac_init_help"; then
1442
1443 cat <<\_ACEOF
1444
1445Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001446 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001449 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001450 --enable-symlink-install use symlinks when installing instead of hard links
1451 --enable-symlink-build use symlinks while building instead of hard links
1452 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001453 --enable-compression enable EXPERIMENTAL compression support
1454 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001455 --enable-elf-shlibs select ELF shared libraries
1456 --enable-bsd-shlibs select BSD shared libraries
1457 --enable-profile build profiling libraries
1458 --enable-checker build checker libraries
1459 --enable-jbd-debug enable journal debugging
1460 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001461 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001462 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001463 --disable-libblkid do not build private blkid library
Aditya Kalif239fef2011-07-20 11:40:02 -07001464 --disable-libquota do not build private quota library
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465 --disable-debugfs disable support of debugfs program
1466 --disable-imager disable support of e2image program
1467 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001468 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469 --enable-fsck build fsck wrapper program
1470 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001471 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001472 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --disable-nls do not use Native Language Support
1474 --disable-rpath do not hardcode runtime library paths
1475
1476Optional Packages:
1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001479 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001480 --with-cc no longer supported, use CC= instead
1481 --with-ccopts no longer supported, use CFLAGS= instead
1482 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1484 --with-gnu-ld assume the C compiler uses GNU ld default=no
1485 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1486 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1487 --with-included-gettext use the GNU gettext library included here
1488 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1489 --without-libintl-prefix don't search for libintl in includedir and libdir
1490
1491Some influential environment variables:
1492 CC C compiler command
1493 CFLAGS C compiler flags
1494 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1495 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001496 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001497 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001498 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001499 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001500 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001501
1502Use these variables to override the choices made by `configure' or to help
1503it to find libraries and programs with nonstandard names/locations.
1504
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001505Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001506_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001507ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508fi
1509
1510if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001513 test -d "$ac_dir" ||
1514 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1515 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001516 ac_builddir=.
1517
Theodore Ts'oe1052142006-10-21 21:46:47 -04001518case "$ac_dir" in
1519.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001521 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001522 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001523 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001524 case $ac_top_builddir_sub in
1525 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1527 esac ;;
1528esac
1529ac_abs_top_builddir=$ac_pwd
1530ac_abs_builddir=$ac_pwd$ac_dir_suffix
1531# for backward compatibility:
1532ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001533
1534case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001535 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001537 ac_top_srcdir=$ac_top_builddir_sub
1538 ac_abs_top_srcdir=$ac_pwd ;;
1539 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001541 ac_top_srcdir=$srcdir
1542 ac_abs_top_srcdir=$srcdir ;;
1543 *) # Relative name.
1544 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1545 ac_top_srcdir=$ac_top_build_prefix$srcdir
1546 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001548ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549
Theodore Ts'oe1052142006-10-21 21:46:47 -04001550 cd "$ac_dir" || { ac_status=$?; continue; }
1551 # Check for guested configure.
1552 if test -f "$ac_srcdir/configure.gnu"; then
1553 echo &&
1554 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1555 elif test -f "$ac_srcdir/configure"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001559 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001560 fi || ac_status=$?
1561 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 done
1563fi
1564
Theodore Ts'oe1052142006-10-21 21:46:47 -04001565test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001566if $ac_init_version; then
1567 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001568configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001569generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001571Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572This configure script is free software; the Free Software Foundation
1573gives unlimited permission to copy, distribute and modify it.
1574_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001575 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001577
1578## ------------------------ ##
1579## Autoconf initialization. ##
1580## ------------------------ ##
1581
1582# ac_fn_c_try_compile LINENO
1583# --------------------------
1584# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585ac_fn_c_try_compile ()
1586{
1587 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588 rm -f conftest.$ac_objext
1589 if { { ac_try="$ac_compile"
1590case "(($ac_try" in
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1593esac
1594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595$as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_compile") 2>conftest.err
1597 ac_status=$?
1598 if test -s conftest.err; then
1599 grep -v '^ *+' conftest.err >conftest.er1
1600 cat conftest.er1 >&5
1601 mv -f conftest.er1 conftest.err
1602 fi
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } && {
1605 test -z "$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1607 } && test -s conftest.$ac_objext; then :
1608 ac_retval=0
1609else
1610 $as_echo "$as_me: failed program was:" >&5
1611sed 's/^/| /' conftest.$ac_ext >&5
1612
1613 ac_retval=1
1614fi
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001616 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001617
1618} # ac_fn_c_try_compile
1619
1620# ac_fn_c_try_link LINENO
1621# -----------------------
1622# Try to link conftest.$ac_ext, and return whether this succeeded.
1623ac_fn_c_try_link ()
1624{
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext conftest$ac_exeext
1627 if { { ac_try="$ac_link"
1628case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631esac
1632eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633$as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_link") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest$ac_exeext && {
1646 test "$cross_compiling" = yes ||
1647 $as_test_x conftest$ac_exeext
1648 }; then :
1649 ac_retval=0
1650else
1651 $as_echo "$as_me: failed program was:" >&5
1652sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1
1655fi
1656 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1657 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1658 # interfere with the next link command; also delete a directory that is
1659 # left behind by Apple's compiler. We do this before executing the actions.
1660 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001662 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001663
1664} # ac_fn_c_try_link
1665
1666# ac_fn_c_try_cpp LINENO
1667# ----------------------
1668# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1669ac_fn_c_try_cpp ()
1670{
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 if { { ac_try="$ac_cpp conftest.$ac_ext"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } >/dev/null && {
1688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 }; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001699 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001700
1701} # ac_fn_c_try_cpp
1702
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001703# ac_fn_c_try_run LINENO
1704# ----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1706# that executables *can* be run.
1707ac_fn_c_try_run ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>&5
1718 ac_status=$?
1719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1721 { { case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_try") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; }; }; then :
1731 ac_retval=0
1732else
1733 $as_echo "$as_me: program exited with status $ac_status" >&5
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=$ac_status
1738fi
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 as_fn_set_status $ac_retval
1742
1743} # ac_fn_c_try_run
1744
1745# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1746# -------------------------------------------
1747# Tests whether TYPE exists after having included INCLUDES, setting cache
1748# variable VAR accordingly.
1749ac_fn_c_check_type ()
1750{
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753$as_echo_n "checking for $2... " >&6; }
1754if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1755 $as_echo_n "(cached) " >&6
1756else
1757 eval "$3=no"
1758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759/* end confdefs.h. */
1760$4
1761int
1762main ()
1763{
1764if (sizeof ($2))
1765 return 0;
1766 ;
1767 return 0;
1768}
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773$4
1774int
1775main ()
1776{
1777if (sizeof (($2)))
1778 return 0;
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783if ac_fn_c_try_compile "$LINENO"; then :
1784
1785else
1786 eval "$3=yes"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791fi
1792eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
1797} # ac_fn_c_check_type
1798
1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists and can be compiled using the include files in
1802# INCLUDES, setting the cache variable VAR accordingly.
1803ac_fn_c_check_header_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818else
1819 eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_header_compile
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845#define $2 innocuous_$2
1846
1847/* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1851
1852#ifdef __STDC__
1853# include <limits.h>
1854#else
1855# include <assert.h>
1856#endif
1857
1858#undef $2
1859
1860/* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1863#ifdef __cplusplus
1864extern "C"
1865#endif
1866char $2 ();
1867/* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870#if defined __stub_$2 || defined __stub___$2
1871choke me
1872#endif
1873
1874int
1875main ()
1876{
1877return $2 ();
1878 ;
1879 return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_link "$LINENO"; then :
1883 eval "$3=yes"
1884else
1885 eval "$3=no"
1886fi
1887rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895} # ac_fn_c_check_func
1896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001897# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1900# the include files in INCLUDES and setting the cache variable VAR
1901# accordingly.
1902ac_fn_c_check_header_mongrel ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1907$as_echo_n "checking for $2... " >&6; }
1908if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914else
1915 # Is the header compilable?
1916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1917$as_echo_n "checking $2 usability... " >&6; }
1918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919/* end confdefs.h. */
1920$4
1921#include <$2>
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 ac_header_compiler=yes
1925else
1926 ac_header_compiler=no
1927fi
1928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1930$as_echo "$ac_header_compiler" >&6; }
1931
1932# Is the header present?
1933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1934$as_echo_n "checking $2 presence... " >&6; }
1935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936/* end confdefs.h. */
1937#include <$2>
1938_ACEOF
1939if ac_fn_c_try_cpp "$LINENO"; then :
1940 ac_header_preproc=yes
1941else
1942 ac_header_preproc=no
1943fi
1944rm -f conftest.err conftest.$ac_ext
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1946$as_echo "$ac_header_preproc" >&6; }
1947
1948# So? What about this header?
1949case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1950 yes:no: )
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1952$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1954$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1955 ;;
1956 no:yes:* )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1958$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1960$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1962$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1964$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1966$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 ;;
1968esac
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973else
1974 eval "$3=\$ac_header_compiler"
1975fi
1976eval ac_res=\$$3
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1978$as_echo "$ac_res" >&6; }
1979fi
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981
1982} # ac_fn_c_check_header_mongrel
1983
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001984# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1985# --------------------------------------------
1986# Tries to find the compile-time value of EXPR in a program that includes
1987# INCLUDES, setting VAR accordingly. Returns whether the value could be
1988# computed
1989ac_fn_c_compute_int ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if test "$cross_compiling" = yes; then
1993 # Depending upon the size, compute the lo and hi bounds.
1994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1995/* end confdefs.h. */
1996$4
1997int
1998main ()
1999{
2000static int test_array [1 - 2 * !(($2) >= 0)];
2001test_array [0] = 0
2002
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_lo=0 ac_mid=0
2009 while :; do
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2017test_array [0] = 0
2018
2019 ;
2020 return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024 ac_hi=$ac_mid; break
2025else
2026 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2027 if test $ac_lo -le $ac_mid; then
2028 ac_lo= ac_hi=
2029 break
2030 fi
2031 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034 done
2035else
2036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2037/* end confdefs.h. */
2038$4
2039int
2040main ()
2041{
2042static int test_array [1 - 2 * !(($2) < 0)];
2043test_array [0] = 0
2044
2045 ;
2046 return 0;
2047}
2048_ACEOF
2049if ac_fn_c_try_compile "$LINENO"; then :
2050 ac_hi=-1 ac_mid=-1
2051 while :; do
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$4
2055int
2056main ()
2057{
2058static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2059test_array [0] = 0
2060
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_compile "$LINENO"; then :
2066 ac_lo=$ac_mid; break
2067else
2068 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2069 if test $ac_mid -le $ac_hi; then
2070 ac_lo= ac_hi=
2071 break
2072 fi
2073 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2074fi
2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 done
2077else
2078 ac_lo= ac_hi=
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083# Binary search between lo and hi bounds.
2084while test "x$ac_lo" != "x$ac_hi"; do
2085 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2087/* end confdefs.h. */
2088$4
2089int
2090main ()
2091{
2092static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2093test_array [0] = 0
2094
2095 ;
2096 return 0;
2097}
2098_ACEOF
2099if ac_fn_c_try_compile "$LINENO"; then :
2100 ac_hi=$ac_mid
2101else
2102 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2103fi
2104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105done
2106case $ac_lo in #((
2107?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2108'') ac_retval=1 ;;
2109esac
2110 else
2111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2112/* end confdefs.h. */
2113$4
2114static long int longval () { return $2; }
2115static unsigned long int ulongval () { return $2; }
2116#include <stdio.h>
2117#include <stdlib.h>
2118int
2119main ()
2120{
2121
2122 FILE *f = fopen ("conftest.val", "w");
2123 if (! f)
2124 return 1;
2125 if (($2) < 0)
2126 {
2127 long int i = longval ();
2128 if (i != ($2))
2129 return 1;
2130 fprintf (f, "%ld", i);
2131 }
2132 else
2133 {
2134 unsigned long int i = ulongval ();
2135 if (i != ($2))
2136 return 1;
2137 fprintf (f, "%lu", i);
2138 }
2139 /* Do not output a trailing newline, as this causes \r\n confusion
2140 on some platforms. */
2141 return ferror (f) || fclose (f) != 0;
2142
2143 ;
2144 return 0;
2145}
2146_ACEOF
2147if ac_fn_c_try_run "$LINENO"; then :
2148 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2149else
2150 ac_retval=1
2151fi
2152rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2153 conftest.$ac_objext conftest.beam conftest.$ac_ext
2154rm -f conftest.val
2155
2156 fi
2157 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002158 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002159
2160} # ac_fn_c_compute_int
2161
2162# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2163# ----------------------------------------------------
2164# Tries to find if the field MEMBER exists in type AGGR, after including
2165# INCLUDES, setting cache variable VAR accordingly.
2166ac_fn_c_check_member ()
2167{
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2170$as_echo_n "checking for $2.$3... " >&6; }
2171if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2172 $as_echo_n "(cached) " >&6
2173else
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$5
2177int
2178main ()
2179{
2180static $2 ac_aggr;
2181if (ac_aggr.$3)
2182return 0;
2183 ;
2184 return 0;
2185}
2186_ACEOF
2187if ac_fn_c_try_compile "$LINENO"; then :
2188 eval "$4=yes"
2189else
2190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2191/* end confdefs.h. */
2192$5
2193int
2194main ()
2195{
2196static $2 ac_aggr;
2197if (sizeof ac_aggr.$3)
2198return 0;
2199 ;
2200 return 0;
2201}
2202_ACEOF
2203if ac_fn_c_try_compile "$LINENO"; then :
2204 eval "$4=yes"
2205else
2206 eval "$4=no"
2207fi
2208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209fi
2210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211fi
2212eval ac_res=\$$4
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214$as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2216
2217} # ac_fn_c_check_member
2218
2219# ac_fn_c_check_decl LINENO SYMBOL VAR
2220# ------------------------------------
2221# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2222ac_fn_c_check_decl ()
2223{
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2226$as_echo_n "checking whether $2 is declared... " >&6; }
2227if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2228 $as_echo_n "(cached) " >&6
2229else
2230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2231/* end confdefs.h. */
2232$4
2233int
2234main ()
2235{
2236#ifndef $2
2237 (void) $2;
2238#endif
2239
2240 ;
2241 return 0;
2242}
2243_ACEOF
2244if ac_fn_c_try_compile "$LINENO"; then :
2245 eval "$3=yes"
2246else
2247 eval "$3=no"
2248fi
2249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250fi
2251eval ac_res=\$$3
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253$as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255
2256} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002258This file contains any messages produced by compilers while
2259running configure, to aid debugging if configure makes a mistake.
2260
2261It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002262generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002263
2264 $ $0 $@
2265
2266_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268{
2269cat <<_ASUNAME
2270## --------- ##
2271## Platform. ##
2272## --------- ##
2273
2274hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2275uname -m = `(uname -m) 2>/dev/null || echo unknown`
2276uname -r = `(uname -r) 2>/dev/null || echo unknown`
2277uname -s = `(uname -s) 2>/dev/null || echo unknown`
2278uname -v = `(uname -v) 2>/dev/null || echo unknown`
2279
2280/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2281/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2282
2283/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2284/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2285/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002286/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002287/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2288/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2289/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2290
2291_ASUNAME
2292
2293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294for as_dir in $PATH
2295do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002298 $as_echo "PATH: $as_dir"
2299 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002300IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002301
2302} >&5
2303
2304cat >&5 <<_ACEOF
2305
2306
2307## ----------- ##
2308## Core tests. ##
2309## ----------- ##
2310
2311_ACEOF
2312
2313
2314# Keep a trace of the command line.
2315# Strip out --no-create and --no-recursion so they do not pile up.
2316# Strip out --silent because we don't want to record it for future runs.
2317# Also quote any args containing shell meta-characters.
2318# Make two passes to allow for proper duplicate-argument suppression.
2319ac_configure_args=
2320ac_configure_args0=
2321ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002322ac_must_keep_next=false
2323for ac_pass in 1 2
2324do
2325 for ac_arg
2326 do
2327 case $ac_arg in
2328 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2329 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2330 | -silent | --silent | --silen | --sile | --sil)
2331 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002332 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002333 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002334 esac
2335 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002336 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002337 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002338 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002339 if test $ac_must_keep_next = true; then
2340 ac_must_keep_next=false # Got value, back to normal.
2341 else
2342 case $ac_arg in
2343 *=* | --config-cache | -C | -disable-* | --disable-* \
2344 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2345 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2346 | -with-* | --with-* | -without-* | --without-* | --x)
2347 case "$ac_configure_args0 " in
2348 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 esac
2350 ;;
2351 -* ) ac_must_keep_next=true ;;
2352 esac
2353 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002354 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002355 ;;
2356 esac
2357 done
2358done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002359{ ac_configure_args0=; unset ac_configure_args0;}
2360{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361
2362# When interrupted or exit'd, cleanup temporary files, and complete
2363# config.log. We remove comments because anyway the quotes in there
2364# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002365# WARNING: Use '\'' to represent an apostrophe within the trap.
2366# 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 -05002367trap 'exit_status=$?
2368 # Save into config.log some information that might help in debugging.
2369 {
2370 echo
2371
2372 cat <<\_ASBOX
2373## ---------------- ##
2374## Cache variables. ##
2375## ---------------- ##
2376_ASBOX
2377 echo
2378 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002379(
2380 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2381 eval ac_val=\$$ac_var
2382 case $ac_val in #(
2383 *${as_nl}*)
2384 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002385 *_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 +01002386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002387 esac
2388 case $ac_var in #(
2389 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002391 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392 esac ;;
2393 esac
2394 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2397 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002398 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002399 "s/'\''/'\''\\\\'\'''\''/g;
2400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2401 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002402 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002404 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002405 esac |
2406 sort
2407)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002408 echo
2409
2410 cat <<\_ASBOX
2411## ----------------- ##
2412## Output variables. ##
2413## ----------------- ##
2414_ASBOX
2415 echo
2416 for ac_var in $ac_subst_vars
2417 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002418 eval ac_val=\$$ac_var
2419 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002420 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002421 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002422 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002423 done | sort
2424 echo
2425
2426 if test -n "$ac_subst_files"; then
2427 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002428## ------------------- ##
2429## File substitutions. ##
2430## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431_ASBOX
2432 echo
2433 for ac_var in $ac_subst_files
2434 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002435 eval ac_val=\$$ac_var
2436 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002438 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002439 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002440 done | sort
2441 echo
2442 fi
2443
2444 if test -s confdefs.h; then
2445 cat <<\_ASBOX
2446## ----------- ##
2447## confdefs.h. ##
2448## ----------- ##
2449_ASBOX
2450 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002452 echo
2453 fi
2454 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002455 $as_echo "$as_me: caught signal $ac_signal"
2456 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002457 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002458 rm -f core *.core core.conftest.* &&
2459 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002461' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002462for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002463 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464done
2465ac_signal=0
2466
2467# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002468rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002470$as_echo "/* confdefs.h */" > confdefs.h
2471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472# Predefined preprocessor variables.
2473
2474cat >>confdefs.h <<_ACEOF
2475#define PACKAGE_NAME "$PACKAGE_NAME"
2476_ACEOF
2477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478cat >>confdefs.h <<_ACEOF
2479#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2480_ACEOF
2481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482cat >>confdefs.h <<_ACEOF
2483#define PACKAGE_VERSION "$PACKAGE_VERSION"
2484_ACEOF
2485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486cat >>confdefs.h <<_ACEOF
2487#define PACKAGE_STRING "$PACKAGE_STRING"
2488_ACEOF
2489
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002490cat >>confdefs.h <<_ACEOF
2491#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2492_ACEOF
2493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002494cat >>confdefs.h <<_ACEOF
2495#define PACKAGE_URL "$PACKAGE_URL"
2496_ACEOF
2497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002498
2499# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002500# Prefer an explicitly selected file to automatically selected ones.
2501ac_site_file1=NONE
2502ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002504 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506 ac_site_file1=$prefix/share/config.site
2507 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002509 ac_site_file1=$ac_default_prefix/share/config.site
2510 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002511fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002512for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002514 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002515 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002516 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002517$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002519 . "$ac_site_file"
2520 fi
2521done
2522
2523if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002524 # Some versions of bash will fail to source /dev/null (special files
2525 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2526 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002528$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002530 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2531 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002532 esac
2533 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002534else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002535 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002536$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 >$cache_file
2538fi
2539
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002540as_fn_append ac_header_list " stdlib.h"
2541as_fn_append ac_header_list " unistd.h"
2542as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543# Check that the precious variables saved in the cache have kept the same
2544# value.
2545ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002546for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002547 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2548 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002549 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2550 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 case $ac_old_set,$ac_new_set in
2552 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002553 { $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 +01002554$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 -05002555 ac_cache_corrupted=: ;;
2556 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002557 { $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 +01002558$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559 ac_cache_corrupted=: ;;
2560 ,);;
2561 *)
2562 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002563 # differences in whitespace do not lead to failure.
2564 ac_old_val_w=`echo x $ac_old_val`
2565 ac_new_val_w=`echo x $ac_new_val`
2566 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002567 { $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 +01002568$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2569 ac_cache_corrupted=:
2570 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002571 { $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 +01002572$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2573 eval $ac_var=\$ac_old_val
2574 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002575 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002576$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002577 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002578$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002579 fi;;
2580 esac
2581 # Pass precious variables to config.status.
2582 if test "$ac_new_set" = set; then
2583 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002584 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585 *) ac_arg=$ac_var=$ac_new_val ;;
2586 esac
2587 case " $ac_configure_args " in
2588 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002589 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590 esac
2591 fi
2592done
2593if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002594 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002596 { $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 +01002597$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002598 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002599fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002600## -------------------- ##
2601## Main body of script. ##
2602## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002603
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002604ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002605ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2608ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002609
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002610
2611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002614 for ac_t in install-sh install.sh shtool; do
2615 if test -f "$ac_dir/$ac_t"; then
2616 ac_aux_dir=$ac_dir
2617 ac_install_sh="$ac_aux_dir/$ac_t -c"
2618 break 2
2619 fi
2620 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002621done
2622if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 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 +00002624fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002625
2626# These three variables are undocumented and unsupported,
2627# and are intended to be withdrawn in a future Autoconf release.
2628# They can cause serious problems if a builder's source tree is in a directory
2629# whose full name contains unusual characters.
2630ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2631ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2632ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2633
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002634
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002635ac_config_headers="$ac_config_headers lib/config.h"
2636
2637
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002638MCONFIG=./MCONFIG
2639
Theodore Ts'o74becf31997-04-26 14:37:06 +00002640BINARY_TYPE=bin
2641E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2642 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2643DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2644 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002645E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002646MONTH=`echo $DATE | awk -F- '{print $2}'`
2647YEAR=`echo $DATE | awk -F- '{print $3}'`
2648
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002649if expr $YEAR ">" 1900 > /dev/null ; then
2650 E2FSPROGS_YEAR=$YEAR
2651elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002652 E2FSPROGS_YEAR=19$YEAR
2653else
2654 E2FSPROGS_YEAR=20$YEAR
2655fi
2656
2657case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002658Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2659Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2660Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2661Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2662May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2663Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2664Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2665Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2666Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2667Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2668Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2669Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002670*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002671$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002672esac
2673
Andreas Dilger927566a2006-11-12 19:41:25 -05002674base_ver=`echo $E2FSPROGS_VERSION | \
2675 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002676
2677date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2678
2679case $E2FSPROGS_VERSION in
2680*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002681 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002682 ;;
2683*)
2684 E2FSPROGS_PKGVER="$base_ver"
2685 ;;
2686esac
2687
2688unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689{ $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 +01002690$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002692$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002693
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002694
2695
2696
Andreas Dilger927566a2006-11-12 19:41:25 -05002697
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002698# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002699$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002700 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002701
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002703$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002704if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002705 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002706else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002707 ac_build_alias=$build_alias
2708test "x$ac_build_alias" = x &&
2709 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2710test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002711 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002712ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002713 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002714
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002715fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002717$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002718case $ac_cv_build in
2719*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002720*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002721esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002722build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002723ac_save_IFS=$IFS; IFS='-'
2724set x $ac_cv_build
2725shift
2726build_cpu=$1
2727build_vendor=$2
2728shift; shift
2729# Remember, the first character of IFS is used to create $*,
2730# except with old shells:
2731build_os=$*
2732IFS=$ac_save_IFS
2733case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002734
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002737$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002738if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002739 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002741 if test "x$host_alias" = x; then
2742 ac_cv_host=$ac_cv_build
2743else
2744 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002745 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002746fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002747
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002748fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002750$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002751case $ac_cv_host in
2752*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002753*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002754esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002755host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002756ac_save_IFS=$IFS; IFS='-'
2757set x $ac_cv_host
2758shift
2759host_cpu=$1
2760host_vendor=$2
2761shift; shift
2762# Remember, the first character of IFS is used to create $*,
2763# except with old shells:
2764host_os=$*
2765IFS=$ac_save_IFS
2766case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002767
2768
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002769DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775if test -n "$ac_tool_prefix"; then
2776 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2777set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002779$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002780if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002781 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002782else
2783 if test -n "$CC"; then
2784 ac_cv_prog_CC="$CC" # Let the user override the test.
2785else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2787for as_dir in $PATH
2788do
2789 IFS=$as_save_IFS
2790 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002791 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002792 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 -05002793 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002795 break 2
2796 fi
2797done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002798 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002799IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002800
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002801fi
2802fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002803CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002804if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002806$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002807else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002809$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002810fi
2811
Theodore Ts'oe1052142006-10-21 21:46:47 -04002812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002813fi
2814if test -z "$ac_cv_prog_CC"; then
2815 ac_ct_CC=$CC
2816 # Extract the first word of "gcc", so it can be a program name with args.
2817set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002819$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002820if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002821 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002822else
2823 if test -n "$ac_ct_CC"; then
2824 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2825else
2826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827for as_dir in $PATH
2828do
2829 IFS=$as_save_IFS
2830 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002831 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002832 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 -05002833 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835 break 2
2836 fi
2837done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002838 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002839IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840
2841fi
2842fi
2843ac_ct_CC=$ac_cv_prog_ac_ct_CC
2844if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002846$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002847else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002849$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002850fi
2851
Theodore Ts'oe1052142006-10-21 21:46:47 -04002852 if test "x$ac_ct_CC" = x; then
2853 CC=""
2854 else
2855 case $cross_compiling:$ac_tool_warned in
2856yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002857{ $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 +01002858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002859ac_tool_warned=yes ;;
2860esac
2861 CC=$ac_ct_CC
2862 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002863else
2864 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002865fi
2866
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002867if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002868 if test -n "$ac_tool_prefix"; then
2869 # 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 -05002870set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002872$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002873if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002875else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880for as_dir in $PATH
2881do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002884 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002885 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 -05002886 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888 break 2
2889 fi
2890done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002891 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002892IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002893
2894fi
2895fi
2896CC=$ac_cv_prog_CC
2897if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002899$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002902$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903fi
2904
Theodore Ts'oe1052142006-10-21 21:46:47 -04002905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907fi
2908if test -z "$CC"; then
2909 # Extract the first word of "cc", so it can be a program name with args.
2910set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002912$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002914 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002915else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002919 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002925 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002926 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 -05002927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2928 ac_prog_rejected=yes
2929 continue
2930 fi
2931 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933 break 2
2934 fi
2935done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002936 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002937IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002939if test $ac_prog_rejected = yes; then
2940 # We found a bogon in the path, so make sure we never use it.
2941 set dummy $ac_cv_prog_CC
2942 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002944 # We chose a different compiler from the bogus one.
2945 # However, it has the same basename, so the bogon will be chosen
2946 # first if we set CC to just the basename; use the full file name.
2947 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002949 fi
2950fi
2951fi
2952fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002953CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002954if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002957else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002959$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002960fi
2961
Theodore Ts'oe1052142006-10-21 21:46:47 -04002962
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963fi
2964if test -z "$CC"; then
2965 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002966 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 do
2968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2969set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002971$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002973 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002974else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002983 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002984 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 -05002985 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002987 break 2
2988 fi
2989done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002991IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002992
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002993fi
2994fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002996if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002998$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002999else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003001$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003002fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003
Theodore Ts'oe1052142006-10-21 21:46:47 -04003004
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003005 test -n "$CC" && break
3006 done
3007fi
3008if test -z "$CC"; then
3009 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011do
3012 # Extract the first word of "$ac_prog", so it can be a program name with args.
3013set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003015$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003017 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018else
3019 if test -n "$ac_ct_CC"; then
3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3021else
3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003027 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003028 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 -05003029 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003032 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003034 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003035IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036
3037fi
3038fi
3039ac_ct_CC=$ac_cv_prog_ac_ct_CC
3040if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003042$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003045$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003046fi
3047
Theodore Ts'oe1052142006-10-21 21:46:47 -04003048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049 test -n "$ac_ct_CC" && break
3050done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003051
Theodore Ts'oe1052142006-10-21 21:46:47 -04003052 if test "x$ac_ct_CC" = x; then
3053 CC=""
3054 else
3055 case $cross_compiling:$ac_tool_warned in
3056yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003057{ $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 +01003058$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003059ac_tool_warned=yes ;;
3060esac
3061 CC=$ac_ct_CC
3062 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003063fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003064
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003066
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003067
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003068test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003069$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070as_fn_error "no acceptable C compiler found in \$PATH
3071See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072
3073# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003074$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003075set X $ac_compile
3076ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003077for ac_option in --version -v -V -qversion; do
3078 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003079case "(($ac_try" in
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3082esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084$as_echo "$ac_try_echo"; } >&5
3085 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087 if test -s conftest.err; then
3088 sed '10a\
3089... rest of stderr output deleted ...
3090 10q' conftest.err >conftest.er1
3091 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003093 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3095 test $ac_status = 0; }
3096done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003100
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101int
3102main ()
3103{
3104
3105 ;
3106 return 0;
3107}
3108_ACEOF
3109ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003110ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111# Try to create an executable without -o first, disregard a.out.
3112# It will help us diagnose broken compilers, and finding out an intuition
3113# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3115$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003116ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3117
3118# The possible output files:
3119ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3120
Theodore Ts'oe1052142006-10-21 21:46:47 -04003121ac_rmfiles=
3122for ac_file in $ac_files
3123do
3124 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3127 esac
3128done
3129rm -f $ac_rmfiles
3130
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003131if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003136eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003138 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003139 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003142 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3143# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3144# in a Makefile. We should not override ac_cv_exeext if it was cached,
3145# so that the user can short-circuit this test for compilers unknown to
3146# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003147for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003148do
3149 test -f "$ac_file" || continue
3150 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152 ;;
3153 [ab].out )
3154 # We found the default executable, but exeext='' is most
3155 # certainly right.
3156 break;;
3157 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003158 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003159 then :; else
3160 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3161 fi
3162 # We set ac_cv_exeext here because the later test for it is not
3163 # safe: cross compilers may not add the suffix if given an `-o'
3164 # argument, so we may need to know it at that point already.
3165 # Even if this section looks crufty: it has the advantage of
3166 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003167 break;;
3168 * )
3169 break;;
3170 esac
3171done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003172test "$ac_cv_exeext" = no && ac_cv_exeext=
3173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003174else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003175 ac_file=''
3176fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003177if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3179$as_echo "no" >&6; }
3180$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003181sed 's/^/| /' conftest.$ac_ext >&5
3182
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185{ as_fn_set_status 77
3186as_fn_error "C compiler cannot create executables
3187See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003188else
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3190$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003191fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3193$as_echo_n "checking for C compiler default output file name... " >&6; }
3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3195$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003198rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003199ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003201$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003203case "(($ac_try" in
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3206esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3208$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003209 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003210 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3212 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003213 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3214# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3215# work properly (i.e., refer to `conftest.exe'), while it won't with
3216# `rm'.
3217for ac_file in conftest.exe conftest conftest.*; do
3218 test -f "$ac_file" || continue
3219 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003222 break;;
3223 * ) break;;
3224 esac
3225done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003226else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003228$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003229as_fn_error "cannot compute suffix of executables: cannot compile and link
3230See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003232rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003234$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003235
3236rm -f conftest.$ac_ext
3237EXEEXT=$ac_cv_exeext
3238ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240/* end confdefs.h. */
3241#include <stdio.h>
3242int
3243main ()
3244{
3245FILE *f = fopen ("conftest.out", "w");
3246 return ferror (f) || fclose (f) != 0;
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252ac_clean_files="$ac_clean_files conftest.out"
3253# Check that the compiler produces executables we can run. If not, either
3254# the compiler is broken, or we cross compile.
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3256$as_echo_n "checking whether we are cross compiling... " >&6; }
3257if test "$cross_compiling" != yes; then
3258 { { ac_try="$ac_link"
3259case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_link") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }
3269 if { ac_try='./conftest$ac_cv_exeext'
3270 { { case "(($ac_try" in
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3273esac
3274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3275$as_echo "$ac_try_echo"; } >&5
3276 (eval "$ac_try") 2>&5
3277 ac_status=$?
3278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3279 test $ac_status = 0; }; }; then
3280 cross_compiling=no
3281 else
3282 if test "$cross_compiling" = maybe; then
3283 cross_compiling=yes
3284 else
3285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287as_fn_error "cannot run C compiled programs.
3288If you meant to cross compile, use \`--host'.
3289See \`config.log' for more details." "$LINENO" 5; }
3290 fi
3291 fi
3292fi
3293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3294$as_echo "$cross_compiling" >&6; }
3295
3296rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3297ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003299$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003300if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003301 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003304/* end confdefs.h. */
3305
3306int
3307main ()
3308{
3309
3310 ;
3311 return 0;
3312}
3313_ACEOF
3314rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003315if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003316case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;;
3319esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003322 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3325 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003326 for ac_file in conftest.o conftest.obj conftest.*; do
3327 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3331 break;;
3332 esac
3333done
3334else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003335 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336sed 's/^/| /' conftest.$ac_ext >&5
3337
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003338{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003340as_fn_error "cannot compute suffix of object files: cannot compile
3341See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343rm -f conftest.$ac_cv_objext conftest.$ac_ext
3344fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003346$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003347OBJEXT=$ac_cv_objext
3348ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003349{ $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 +01003350$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003351if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003352 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355/* end confdefs.h. */
3356
3357int
3358main ()
3359{
3360#ifndef __GNUC__
3361 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003362#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364 ;
3365 return 0;
3366}
3367_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003368if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003369 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003370else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003371 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003372fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003374ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003376fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003378$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3379if test $ac_compiler_gnu = yes; then
3380 GCC=yes
3381else
3382 GCC=
3383fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003384ac_test_CFLAGS=${CFLAGS+set}
3385ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003387$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003388if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003389 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003390else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003391 ac_save_c_werror_flag=$ac_c_werror_flag
3392 ac_c_werror_flag=yes
3393 ac_cv_prog_cc_g=no
3394 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003396/* end confdefs.h. */
3397
3398int
3399main ()
3400{
3401
3402 ;
3403 return 0;
3404}
3405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003406if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003407 ac_cv_prog_cc_g=yes
3408else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003409 CFLAGS=""
3410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003411/* end confdefs.h. */
3412
3413int
3414main ()
3415{
3416
3417 ;
3418 return 0;
3419}
3420_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003421if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003423else
3424 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003425 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003427/* end confdefs.h. */
3428
3429int
3430main ()
3431{
3432
3433 ;
3434 return 0;
3435}
3436_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003437if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003438 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003439fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003441fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3445 ac_c_werror_flag=$ac_save_c_werror_flag
3446fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003448$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003449if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003451elif test $ac_cv_prog_cc_g = yes; then
3452 if test "$GCC" = yes; then
3453 CFLAGS="-g -O2"
3454 else
3455 CFLAGS="-g"
3456 fi
3457else
3458 if test "$GCC" = yes; then
3459 CFLAGS="-O2"
3460 else
3461 CFLAGS=
3462 fi
3463fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003465$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003466if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003469 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003471cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003472/* end confdefs.h. */
3473#include <stdarg.h>
3474#include <stdio.h>
3475#include <sys/types.h>
3476#include <sys/stat.h>
3477/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3478struct buf { int x; };
3479FILE * (*rcsopen) (struct buf *, struct stat *, int);
3480static char *e (p, i)
3481 char **p;
3482 int i;
3483{
3484 return p[i];
3485}
3486static char *f (char * (*g) (char **, int), char **p, ...)
3487{
3488 char *s;
3489 va_list v;
3490 va_start (v,p);
3491 s = g (p, va_arg (v,int));
3492 va_end (v);
3493 return s;
3494}
3495
3496/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3497 function prototypes and stuff, but not '\xHH' hex character constants.
3498 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003499 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003500 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3501 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003502 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3504
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3506 inside strings and character constants. */
3507#define FOO(x) 'x'
3508int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003510int test (int i, double x);
3511struct s1 {int (*f) (int a);};
3512struct s2 {int (*f) (double a);};
3513int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3514int argc;
3515char **argv;
3516int
3517main ()
3518{
3519return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3520 ;
3521 return 0;
3522}
3523_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3525 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003526do
3527 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003529 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003530fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003531rm -f core conftest.err conftest.$ac_objext
3532 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003533done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003534rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003535CC=$ac_save_CC
3536
3537fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003538# AC_CACHE_VAL
3539case "x$ac_cv_prog_cc_c89" in
3540 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003542$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003545$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003546 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003547 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003549$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003550esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003551if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553fi
3554
3555ac_ext=c
3556ac_cpp='$CPP $CPPFLAGS'
3557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
3561
3562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3563$as_echo_n "checking for dlopen in -ldl... " >&6; }
3564if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3565 $as_echo_n "(cached) " >&6
3566else
3567 ac_check_lib_save_LIBS=$LIBS
3568LIBS="-ldl $LIBS"
3569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h. */
3571
3572/* Override any GCC internal prototype to avoid an error.
3573 Use char because int might match the return type of a GCC
3574 builtin and then its argument prototype would still apply. */
3575#ifdef __cplusplus
3576extern "C"
3577#endif
3578char dlopen ();
3579int
3580main ()
3581{
3582return dlopen ();
3583 ;
3584 return 0;
3585}
3586_ACEOF
3587if ac_fn_c_try_link "$LINENO"; then :
3588 ac_cv_lib_dl_dlopen=yes
3589else
3590 ac_cv_lib_dl_dlopen=no
3591fi
3592rm -f core conftest.err conftest.$ac_objext \
3593 conftest$ac_exeext conftest.$ac_ext
3594LIBS=$ac_check_lib_save_LIBS
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3597$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3598if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3599 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003600
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003601$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3602
3603fi
3604
3605
3606WITH_DIET_LIBC=
3607
3608# Check whether --with-diet-libc was given.
3609if test "${with_diet_libc+set}" = set; then :
3610 withval=$with_diet_libc; CC="diet cc -nostdinc"
3611WITH_DIET_LIBC=yes
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3613$as_echo "CC=$CC" >&6; }
3614fi
3615
3616# Check whether --with-cc was given.
3617if test "${with_cc+set}" = set; then :
3618 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3619fi
3620
3621
3622# Check whether --with-ccopts was given.
3623if test "${with_ccopts+set}" = set; then :
3624 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3625fi
3626
3627
3628# Check whether --with-ldopts was given.
3629if test "${with_ldopts+set}" = set; then :
3630 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3631fi
3632
3633ac_ext=c
3634ac_cpp='$CPP $CPPFLAGS'
3635ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3636ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3637ac_compiler_gnu=$ac_cv_c_compiler_gnu
3638if test -n "$ac_tool_prefix"; then
3639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3640set dummy ${ac_tool_prefix}gcc; ac_word=$2
3641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3642$as_echo_n "checking for $ac_word... " >&6; }
3643if test "${ac_cv_prog_CC+set}" = set; then :
3644 $as_echo_n "(cached) " >&6
3645else
3646 if test -n "$CC"; then
3647 ac_cv_prog_CC="$CC" # Let the user override the test.
3648else
3649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650for as_dir in $PATH
3651do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 break 2
3659 fi
3660done
3661 done
3662IFS=$as_save_IFS
3663
3664fi
3665fi
3666CC=$ac_cv_prog_CC
3667if test -n "$CC"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3669$as_echo "$CC" >&6; }
3670else
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672$as_echo "no" >&6; }
3673fi
3674
3675
3676fi
3677if test -z "$ac_cv_prog_CC"; then
3678 ac_ct_CC=$CC
3679 # Extract the first word of "gcc", so it can be a program name with args.
3680set dummy gcc; ac_word=$2
3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3682$as_echo_n "checking for $ac_word... " >&6; }
3683if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3684 $as_echo_n "(cached) " >&6
3685else
3686 if test -n "$ac_ct_CC"; then
3687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3688else
3689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3690for as_dir in $PATH
3691do
3692 IFS=$as_save_IFS
3693 test -z "$as_dir" && as_dir=.
3694 for ac_exec_ext in '' $ac_executable_extensions; do
3695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3696 ac_cv_prog_ac_ct_CC="gcc"
3697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3698 break 2
3699 fi
3700done
3701 done
3702IFS=$as_save_IFS
3703
3704fi
3705fi
3706ac_ct_CC=$ac_cv_prog_ac_ct_CC
3707if test -n "$ac_ct_CC"; then
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3709$as_echo "$ac_ct_CC" >&6; }
3710else
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712$as_echo "no" >&6; }
3713fi
3714
3715 if test "x$ac_ct_CC" = x; then
3716 CC=""
3717 else
3718 case $cross_compiling:$ac_tool_warned in
3719yes:)
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722ac_tool_warned=yes ;;
3723esac
3724 CC=$ac_ct_CC
3725 fi
3726else
3727 CC="$ac_cv_prog_CC"
3728fi
3729
3730if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3733set dummy ${ac_tool_prefix}cc; ac_word=$2
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735$as_echo_n "checking for $ac_word... " >&6; }
3736if test "${ac_cv_prog_CC+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3738else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741else
3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743for as_dir in $PATH
3744do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3749 ac_cv_prog_CC="${ac_tool_prefix}cc"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753done
3754 done
3755IFS=$as_save_IFS
3756
3757fi
3758fi
3759CC=$ac_cv_prog_CC
3760if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762$as_echo "$CC" >&6; }
3763else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765$as_echo "no" >&6; }
3766fi
3767
3768
3769 fi
3770fi
3771if test -z "$CC"; then
3772 # Extract the first word of "cc", so it can be a program name with args.
3773set dummy cc; ac_word=$2
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775$as_echo_n "checking for $ac_word... " >&6; }
3776if test "${ac_cv_prog_CC+set}" = set; then :
3777 $as_echo_n "(cached) " >&6
3778else
3779 if test -n "$CC"; then
3780 ac_cv_prog_CC="$CC" # Let the user override the test.
3781else
3782 ac_prog_rejected=no
3783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3791 ac_prog_rejected=yes
3792 continue
3793 fi
3794 ac_cv_prog_CC="cc"
3795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 break 2
3797 fi
3798done
3799 done
3800IFS=$as_save_IFS
3801
3802if test $ac_prog_rejected = yes; then
3803 # We found a bogon in the path, so make sure we never use it.
3804 set dummy $ac_cv_prog_CC
3805 shift
3806 if test $# != 0; then
3807 # We chose a different compiler from the bogus one.
3808 # However, it has the same basename, so the bogon will be chosen
3809 # first if we set CC to just the basename; use the full file name.
3810 shift
3811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3812 fi
3813fi
3814fi
3815fi
3816CC=$ac_cv_prog_CC
3817if test -n "$CC"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3819$as_echo "$CC" >&6; }
3820else
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822$as_echo "no" >&6; }
3823fi
3824
3825
3826fi
3827if test -z "$CC"; then
3828 if test -n "$ac_tool_prefix"; then
3829 for ac_prog in cl.exe
3830 do
3831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3832set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834$as_echo_n "checking for $ac_word... " >&6; }
3835if test "${ac_cv_prog_CC+set}" = set; then :
3836 $as_echo_n "(cached) " >&6
3837else
3838 if test -n "$CC"; then
3839 ac_cv_prog_CC="$CC" # Let the user override the test.
3840else
3841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842for as_dir in $PATH
3843do
3844 IFS=$as_save_IFS
3845 test -z "$as_dir" && as_dir=.
3846 for ac_exec_ext in '' $ac_executable_extensions; do
3847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850 break 2
3851 fi
3852done
3853 done
3854IFS=$as_save_IFS
3855
3856fi
3857fi
3858CC=$ac_cv_prog_CC
3859if test -n "$CC"; then
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3861$as_echo "$CC" >&6; }
3862else
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864$as_echo "no" >&6; }
3865fi
3866
3867
3868 test -n "$CC" && break
3869 done
3870fi
3871if test -z "$CC"; then
3872 ac_ct_CC=$CC
3873 for ac_prog in cl.exe
3874do
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876set dummy $ac_prog; ac_word=$2
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878$as_echo_n "checking for $ac_word... " >&6; }
3879if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3880 $as_echo_n "(cached) " >&6
3881else
3882 if test -n "$ac_ct_CC"; then
3883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3884else
3885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886for as_dir in $PATH
3887do
3888 IFS=$as_save_IFS
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_prog_ac_ct_CC="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 break 2
3895 fi
3896done
3897 done
3898IFS=$as_save_IFS
3899
3900fi
3901fi
3902ac_ct_CC=$ac_cv_prog_ac_ct_CC
3903if test -n "$ac_ct_CC"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3905$as_echo "$ac_ct_CC" >&6; }
3906else
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908$as_echo "no" >&6; }
3909fi
3910
3911
3912 test -n "$ac_ct_CC" && break
3913done
3914
3915 if test "x$ac_ct_CC" = x; then
3916 CC=""
3917 else
3918 case $cross_compiling:$ac_tool_warned in
3919yes:)
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3922ac_tool_warned=yes ;;
3923esac
3924 CC=$ac_ct_CC
3925 fi
3926fi
3927
3928fi
3929
3930
3931test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933as_fn_error "no acceptable C compiler found in \$PATH
3934See \`config.log' for more details." "$LINENO" 5; }
3935
3936# Provide some information about the compiler.
3937$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3938set X $ac_compile
3939ac_compiler=$2
3940for ac_option in --version -v -V -qversion; do
3941 { { ac_try="$ac_compiler $ac_option >&5"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947$as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3949 ac_status=$?
3950 if test -s conftest.err; then
3951 sed '10a\
3952... rest of stderr output deleted ...
3953 10q' conftest.err >conftest.er1
3954 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003955 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003956 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }
3959done
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3962$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3963if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967/* end confdefs.h. */
3968
3969int
3970main ()
3971{
3972#ifndef __GNUC__
3973 choke me
3974#endif
3975
3976 ;
3977 return 0;
3978}
3979_ACEOF
3980if ac_fn_c_try_compile "$LINENO"; then :
3981 ac_compiler_gnu=yes
3982else
3983 ac_compiler_gnu=no
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986ac_cv_c_compiler_gnu=$ac_compiler_gnu
3987
3988fi
3989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3990$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3991if test $ac_compiler_gnu = yes; then
3992 GCC=yes
3993else
3994 GCC=
3995fi
3996ac_test_CFLAGS=${CFLAGS+set}
3997ac_save_CFLAGS=$CFLAGS
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3999$as_echo_n "checking whether $CC accepts -g... " >&6; }
4000if test "${ac_cv_prog_cc_g+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002else
4003 ac_save_c_werror_flag=$ac_c_werror_flag
4004 ac_c_werror_flag=yes
4005 ac_cv_prog_cc_g=no
4006 CFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008/* end confdefs.h. */
4009
4010int
4011main ()
4012{
4013
4014 ;
4015 return 0;
4016}
4017_ACEOF
4018if ac_fn_c_try_compile "$LINENO"; then :
4019 ac_cv_prog_cc_g=yes
4020else
4021 CFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h. */
4024
4025int
4026main ()
4027{
4028
4029 ;
4030 return 0;
4031}
4032_ACEOF
4033if ac_fn_c_try_compile "$LINENO"; then :
4034
4035else
4036 ac_c_werror_flag=$ac_save_c_werror_flag
4037 CFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h. */
4040
4041int
4042main ()
4043{
4044
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049if ac_fn_c_try_compile "$LINENO"; then :
4050 ac_cv_prog_cc_g=yes
4051fi
4052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053fi
4054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055fi
4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_c_werror_flag=$ac_save_c_werror_flag
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4060$as_echo "$ac_cv_prog_cc_g" >&6; }
4061if test "$ac_test_CFLAGS" = set; then
4062 CFLAGS=$ac_save_CFLAGS
4063elif test $ac_cv_prog_cc_g = yes; then
4064 if test "$GCC" = yes; then
4065 CFLAGS="-g -O2"
4066 else
4067 CFLAGS="-g"
4068 fi
4069else
4070 if test "$GCC" = yes; then
4071 CFLAGS="-O2"
4072 else
4073 CFLAGS=
4074 fi
4075fi
4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4077$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4078if test "${ac_cv_prog_cc_c89+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080else
4081 ac_cv_prog_cc_c89=no
4082ac_save_CC=$CC
4083cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h. */
4085#include <stdarg.h>
4086#include <stdio.h>
4087#include <sys/types.h>
4088#include <sys/stat.h>
4089/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4090struct buf { int x; };
4091FILE * (*rcsopen) (struct buf *, struct stat *, int);
4092static char *e (p, i)
4093 char **p;
4094 int i;
4095{
4096 return p[i];
4097}
4098static char *f (char * (*g) (char **, int), char **p, ...)
4099{
4100 char *s;
4101 va_list v;
4102 va_start (v,p);
4103 s = g (p, va_arg (v,int));
4104 va_end (v);
4105 return s;
4106}
4107
4108/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4109 function prototypes and stuff, but not '\xHH' hex character constants.
4110 These don't provoke an error unfortunately, instead are silently treated
4111 as 'x'. The following induces an error, until -std is added to get
4112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4113 array size at least. It's necessary to write '\x00'==0 to get something
4114 that's true only with -std. */
4115int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4116
4117/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4118 inside strings and character constants. */
4119#define FOO(x) 'x'
4120int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4121
4122int test (int i, double x);
4123struct s1 {int (*f) (int a);};
4124struct s2 {int (*f) (double a);};
4125int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4126int argc;
4127char **argv;
4128int
4129main ()
4130{
4131return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4138do
4139 CC="$ac_save_CC $ac_arg"
4140 if ac_fn_c_try_compile "$LINENO"; then :
4141 ac_cv_prog_cc_c89=$ac_arg
4142fi
4143rm -f core conftest.err conftest.$ac_objext
4144 test "x$ac_cv_prog_cc_c89" != "xno" && break
4145done
4146rm -f conftest.$ac_ext
4147CC=$ac_save_CC
4148
4149fi
4150# AC_CACHE_VAL
4151case "x$ac_cv_prog_cc_c89" in
4152 x)
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4154$as_echo "none needed" >&6; } ;;
4155 xno)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4157$as_echo "unsupported" >&6; } ;;
4158 *)
4159 CC="$CC $ac_cv_prog_cc_c89"
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4161$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4162esac
4163if test "x$ac_cv_prog_cc_c89" != xno; then :
4164
4165fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004166
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004167ac_ext=c
4168ac_cpp='$CPP $CPPFLAGS'
4169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4171ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004173if test "$GCC" = yes; then
4174 RDYNAMIC="-rdynamic"
4175
4176fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004177ac_ext=c
4178ac_cpp='$CPP $CPPFLAGS'
4179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004183$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004184# On Suns, sometimes $CPP names a directory.
4185if test -n "$CPP" && test -d "$CPP"; then
4186 CPP=
4187fi
4188if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004189 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004190 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004192 # Double quotes because CPP needs to be expanded
4193 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4194 do
4195 ac_preproc_ok=false
4196for ac_c_preproc_warn_flag in '' yes
4197do
4198 # Use a header file that comes with gcc, so configuring glibc
4199 # with a fresh cross-compiler works.
4200 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4201 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004202 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004203 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004205/* end confdefs.h. */
4206#ifdef __STDC__
4207# include <limits.h>
4208#else
4209# include <assert.h>
4210#endif
4211 Syntax error
4212_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004213if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004214
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004215else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004216 # Broken: fails on valid input.
4217continue
4218fi
4219rm -f conftest.err conftest.$ac_ext
4220
Theodore Ts'oe1052142006-10-21 21:46:47 -04004221 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004222 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004224/* end confdefs.h. */
4225#include <ac_nonexistent.h>
4226_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004227if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004228 # Broken: success on invalid input.
4229continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004230else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004231 # Passes both tests.
4232ac_preproc_ok=:
4233break
4234fi
4235rm -f conftest.err conftest.$ac_ext
4236
4237done
4238# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4239rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004240if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004241 break
4242fi
4243
4244 done
4245 ac_cv_prog_CPP=$CPP
4246
4247fi
4248 CPP=$ac_cv_prog_CPP
4249else
4250 ac_cv_prog_CPP=$CPP
4251fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004253$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004254ac_preproc_ok=false
4255for ac_c_preproc_warn_flag in '' yes
4256do
4257 # Use a header file that comes with gcc, so configuring glibc
4258 # with a fresh cross-compiler works.
4259 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4260 # <limits.h> exists even on freestanding compilers.
4261 # On the NeXT, cc -E runs the code through the compiler's parser,
4262 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004264/* end confdefs.h. */
4265#ifdef __STDC__
4266# include <limits.h>
4267#else
4268# include <assert.h>
4269#endif
4270 Syntax error
4271_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004272if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004274else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004275 # Broken: fails on valid input.
4276continue
4277fi
4278rm -f conftest.err conftest.$ac_ext
4279
Theodore Ts'oe1052142006-10-21 21:46:47 -04004280 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283/* end confdefs.h. */
4284#include <ac_nonexistent.h>
4285_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004286if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287 # Broken: success on invalid input.
4288continue
4289else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004290 # Passes both tests.
4291ac_preproc_ok=:
4292break
4293fi
4294rm -f conftest.err conftest.$ac_ext
4295
4296done
4297# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4298rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004299if $ac_preproc_ok; then :
4300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004304as_fn_error "C preprocessor \"$CPP\" fails sanity check
4305See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004306fi
4307
4308ac_ext=c
4309ac_cpp='$CPP $CPPFLAGS'
4310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4312ac_compiler_gnu=$ac_cv_c_compiler_gnu
4313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004315$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004316if test "$GCC" = yes
4317then
4318 case "$host_cpu" in
4319 alpha) addcflags="-mieee" ;;
4320 esac
4321fi
4322if test "x$addcflags" != x
4323then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004325$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004326 CFLAGS="$addcflags $CFLAGS"
4327else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004329$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004330fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004331LIB_EXT=.a
4332STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004333PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334
Theodore Ts'oe1052142006-10-21 21:46:47 -04004335# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004336if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004338else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004339 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004340fi
4341# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004342if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004343 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004344then
4345 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004347$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004348else
4349 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004351$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004352fi
4353
4354else
4355 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004357$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004358
Theodore Ts'oe1052142006-10-21 21:46:47 -04004359fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004360
Theodore Ts'oe1052142006-10-21 21:46:47 -04004361
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004362# Check whether --enable-symlink-install was given.
4363if test "${enable_symlink_install+set}" = set; then :
4364 enableval=$enable_symlink_install; if test "$enableval" = "no"
4365then
4366 LINK_INSTALL_FLAGS=-f
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4368$as_echo "Disabling symlinks for install" >&6; }
4369else
4370 LINK_INSTALL_FLAGS=-sf
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4372$as_echo "Enabling symlinks for install" >&6; }
4373fi
4374
4375else
4376 LINK_INSTALL_FLAGS=-f
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4378$as_echo "Disabling symlinks for install" >&6; }
4379
4380fi
4381
4382
4383# Check whether --enable-symlink-build was given.
4384if test "${enable_symlink_build+set}" = set; then :
4385 enableval=$enable_symlink_build; if test "$enableval" = "no"
4386then
4387 LINK_BUILD_FLAGS=
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4389$as_echo "Disabling symlinks for build" >&6; }
4390else
4391 LINK_BUILD_FLAGS=-s
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4393$as_echo "Enabling symlinks for build" >&6; }
4394fi
4395
4396else
4397 LINK_BUILD_FLAGS=
4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4399$as_echo "Disabling symlinks for build" >&6; }
4400
4401fi
4402
4403
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004404# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004406 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4407then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004409$as_echo "Disabling verbose make commands" >&6; }
4410 E=@echo
4411 Q=@
4412else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004414$as_echo "Enabling verbose make commands" >&6; }
4415 E=@\\#
4416 Q=
4417fi
4418
4419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004421$as_echo "Disabling verbose make commands" >&6; }
4422E=@echo
4423Q=@
4424
4425fi
4426
4427
4428
Theodore Ts'oe1052142006-10-21 21:46:47 -04004429# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004431 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004432then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004434$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004435else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004436
4437$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004440$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004442$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004443fi
4444
4445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004447$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004448
Theodore Ts'oe1052142006-10-21 21:46:47 -04004449fi
4450
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004451
Theodore Ts'oe1052142006-10-21 21:46:47 -04004452# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004453if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004454 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004455then
4456 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004458$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004459else
4460 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004461 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004464$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004465fi
4466
4467else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004468 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004469$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004472$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004473
Theodore Ts'oe1052142006-10-21 21:46:47 -04004474fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004475
Theodore Ts'oe1052142006-10-21 21:46:47 -04004476
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004477E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004478LDFLAG_DYNAMIC=
4479PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004480# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004481if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004482 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004483then
4484 ELF_CMT=#
4485 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004487$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004488else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004489 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004490 ELF_CMT=
4491 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004492 case "$host_os" in
4493 solaris2.*)
4494 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4495 ;;
4496 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004497 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004498 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004499 PRIVATE_LIBS_CMT=#
4500 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004502$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004503fi
4504
4505else
4506 MAKEFILE_ELF=/dev/null
4507ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004509$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004510
Theodore Ts'oe1052142006-10-21 21:46:47 -04004511fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004512
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004513
Theodore Ts'oe1052142006-10-21 21:46:47 -04004514
4515# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004516if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004517 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004518then
4519 BSDLIB_CMT=#
4520 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004522$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004523else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004524 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004525 BSDLIB_CMT=
4526 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004527 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004528 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004529 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004530 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4531 LIB_EXT=.dylib
4532 ;;
4533 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004535$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004536fi
4537
4538else
4539 MAKEFILE_BSDLIB=/dev/null
4540BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004542$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004543
Theodore Ts'oe1052142006-10-21 21:46:47 -04004544fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004545
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004546
Theodore Ts'oe1052142006-10-21 21:46:47 -04004547
4548# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004549if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004550 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004551then
4552 PROFILE_CMT=#
4553 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004555$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004556else
4557 PROFILE_CMT=
4558 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4559 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004561$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004562fi
4563
4564else
4565 PROFILE_CMT=#
4566MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004568$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004569
Theodore Ts'oe1052142006-10-21 21:46:47 -04004570fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004571
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004572
Theodore Ts'oe1052142006-10-21 21:46:47 -04004573
4574# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004575if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004577then
4578 CHECKER_CMT=#
4579 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004581$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004582else
4583 CHECKER_CMT=
4584 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004586$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004587fi
4588
4589else
4590 CHECKER_CMT=#
4591MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004593$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004594
Theodore Ts'oe1052142006-10-21 21:46:47 -04004595fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004596
4597
4598
4599
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004600
Theodore Ts'oe1052142006-10-21 21:46:47 -04004601
Theodore Ts'o55da9872008-09-02 23:12:38 -04004602
4603
Theodore Ts'oe1052142006-10-21 21:46:47 -04004604# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004605if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004606 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004607then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004609$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004610else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004611
4612$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004613
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004615$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004616fi
4617
4618else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004620$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004621
Theodore Ts'oe1052142006-10-21 21:46:47 -04004622fi
4623
4624# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004625if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004626 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004627then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004629$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004630else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004631
4632$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004633
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004635$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004636fi
4637
4638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004640$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004641
Theodore Ts'oe1052142006-10-21 21:46:47 -04004642fi
4643
4644# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004645if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004646 enableval=$enable_testio_debug;
4647if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004648then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004650$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004651 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004652else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004653 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004654 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004657$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004658fi
4659
4660else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004662$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004663$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004664
4665TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004666
Theodore Ts'oe1052142006-10-21 21:46:47 -04004667fi
4668
Theodore Ts'oaf773652008-09-01 11:27:27 -04004669
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004670
4671
4672if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4673 if test -n "$ac_tool_prefix"; then
4674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4675set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004677$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004678if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004679 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004680else
4681 case $PKG_CONFIG in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4684 ;;
4685 *)
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687for as_dir in $PATH
4688do
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004691 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004695 break 2
4696 fi
4697done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004698 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004699IFS=$as_save_IFS
4700
4701 ;;
4702esac
4703fi
4704PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4705if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004707$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004708else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004710$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004711fi
4712
4713
4714fi
4715if test -z "$ac_cv_path_PKG_CONFIG"; then
4716 ac_pt_PKG_CONFIG=$PKG_CONFIG
4717 # Extract the first word of "pkg-config", so it can be a program name with args.
4718set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004720$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004721if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004722 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004723else
4724 case $ac_pt_PKG_CONFIG in
4725 [\\/]* | ?:[\\/]*)
4726 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4727 ;;
4728 *)
4729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4730for as_dir in $PATH
4731do
4732 IFS=$as_save_IFS
4733 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004734 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4736 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004738 break 2
4739 fi
4740done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004741 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004742IFS=$as_save_IFS
4743
4744 ;;
4745esac
4746fi
4747ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4748if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004750$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004751else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004754fi
4755
4756 if test "x$ac_pt_PKG_CONFIG" = x; then
4757 PKG_CONFIG=""
4758 else
4759 case $cross_compiling:$ac_tool_warned in
4760yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004761{ $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 +01004762$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004763ac_tool_warned=yes ;;
4764esac
4765 PKG_CONFIG=$ac_pt_PKG_CONFIG
4766 fi
4767else
4768 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4769fi
4770
4771fi
4772if test -n "$PKG_CONFIG"; then
4773 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774 { $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 +01004775$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004776 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004778$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004779 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "no" >&6; }
4782 PKG_CONFIG=""
4783 fi
4784
4785fi
4786LIBUUID=
4787DEPLIBUUID=
4788STATIC_LIBUUID=
4789DEPSTATIC_LIBUUID=
4790PROFILED_LIBUUID=
4791DEPPROFILED_LIBUUID=
4792UUID_CMT=
4793# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004795 enableval=$enable_libuuid; if test "$enableval" = "no"
4796then
4797 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004798 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004799 fi
4800
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004802$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004803if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004804 $as_echo_n "(cached) " >&6
4805else
4806 ac_check_lib_save_LIBS=$LIBS
4807LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004808cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809/* end confdefs.h. */
4810
4811/* Override any GCC internal prototype to avoid an error.
4812 Use char because int might match the return type of a GCC
4813 builtin and then its argument prototype would still apply. */
4814#ifdef __cplusplus
4815extern "C"
4816#endif
4817char uuid_generate ();
4818int
4819main ()
4820{
4821return uuid_generate ();
4822 ;
4823 return 0;
4824}
4825_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004826if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004827 ac_cv_lib_uuid_uuid_generate=yes
4828else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004830fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004831rm -f core conftest.err conftest.$ac_objext \
4832 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004833LIBS=$ac_check_lib_save_LIBS
4834fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004836$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004837if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004838 LIBUUID=`$PKG_CONFIG --libs uuid`;
4839 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4840else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004841 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004842fi
4843
4844 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004846$as_echo "Disabling private uuid library" >&6; }
4847else
4848 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4849 DEPLIBUUID=$LIBUUID
4850 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4851 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4852 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4853 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004855$as_echo "Enabling private uuid library" >&6; }
4856fi
4857
4858else
4859 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4860DEPLIBUUID=$LIBUUID
4861STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4862DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4863PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4864DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004866$as_echo "Enabling private uuid library by default" >&6; }
4867
4868fi
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4880 if test -n "$ac_tool_prefix"; then
4881 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4882set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004884$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004885if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004886 $as_echo_n "(cached) " >&6
4887else
4888 case $PKG_CONFIG in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4891 ;;
4892 *)
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004898 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004902 break 2
4903 fi
4904done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004905 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004906IFS=$as_save_IFS
4907
4908 ;;
4909esac
4910fi
4911PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4912if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004914$as_echo "$PKG_CONFIG" >&6; }
4915else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004917$as_echo "no" >&6; }
4918fi
4919
4920
4921fi
4922if test -z "$ac_cv_path_PKG_CONFIG"; then
4923 ac_pt_PKG_CONFIG=$PKG_CONFIG
4924 # Extract the first word of "pkg-config", so it can be a program name with args.
4925set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004927$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004928if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004929 $as_echo_n "(cached) " >&6
4930else
4931 case $ac_pt_PKG_CONFIG in
4932 [\\/]* | ?:[\\/]*)
4933 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4934 ;;
4935 *)
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937for as_dir in $PATH
4938do
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004941 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004945 break 2
4946 fi
4947done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004948 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004949IFS=$as_save_IFS
4950
4951 ;;
4952esac
4953fi
4954ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4955if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004957$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4958else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004960$as_echo "no" >&6; }
4961fi
4962
4963 if test "x$ac_pt_PKG_CONFIG" = x; then
4964 PKG_CONFIG=""
4965 else
4966 case $cross_compiling:$ac_tool_warned in
4967yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004968{ $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 +01004969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4970ac_tool_warned=yes ;;
4971esac
4972 PKG_CONFIG=$ac_pt_PKG_CONFIG
4973 fi
4974else
4975 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4976fi
4977
4978fi
4979if test -n "$PKG_CONFIG"; then
4980 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004981 { $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 +01004982$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4983 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004985$as_echo "yes" >&6; }
4986 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004988$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004989 PKG_CONFIG=""
4990 fi
4991
4992fi
4993LIBBLKID=
4994DEPLIBBLKID=
4995STATIC_LIBBLKID=
4996DEPSTATIC_LIBBLKID=
4997PROFILED_LIBBLKID=
4998DEPPROFILED_LIBBLKID=
4999BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005000
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005001# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005002if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005003 enableval=$enable_libblkid; if test "$enableval" = "no"
5004then
5005 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005006 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005007 fi
5008
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005010$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005011if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005012 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005013else
5014 ac_check_lib_save_LIBS=$LIBS
5015LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005017/* end confdefs.h. */
5018
5019/* Override any GCC internal prototype to avoid an error.
5020 Use char because int might match the return type of a GCC
5021 builtin and then its argument prototype would still apply. */
5022#ifdef __cplusplus
5023extern "C"
5024#endif
5025char blkid_get_cache ();
5026int
5027main ()
5028{
5029return blkid_get_cache ();
5030 ;
5031 return 0;
5032}
5033_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005034if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005035 ac_cv_lib_blkid_blkid_get_cache=yes
5036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005037 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005038fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005039rm -f core conftest.err conftest.$ac_objext \
5040 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005041LIBS=$ac_check_lib_save_LIBS
5042fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005044$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005045if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005046 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5047 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005049 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005050fi
5051
5052 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005054$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005055else
5056 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5057 DEPLIBBLKID=$LIBBLKID
5058 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5059 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5060 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5061 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005063
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005066fi
5067
5068else
5069 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5070DEPLIBBLKID=$LIBBLKID
5071STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5072DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5073PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5074DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005075$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005076
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005078$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005079
5080fi
5081
5082
5083
5084
5085
5086
5087
5088
Aditya Kalif239fef2011-07-20 11:40:02 -07005089
5090
5091if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5092 if test -n "$ac_tool_prefix"; then
5093 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5094set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5096$as_echo_n "checking for $ac_word... " >&6; }
5097if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099else
5100 case $PKG_CONFIG in
5101 [\\/]* | ?:[\\/]*)
5102 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5103 ;;
5104 *)
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106for as_dir in $PATH
5107do
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5115 fi
5116done
5117 done
5118IFS=$as_save_IFS
5119
5120 ;;
5121esac
5122fi
5123PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5124if test -n "$PKG_CONFIG"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5126$as_echo "$PKG_CONFIG" >&6; }
5127else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129$as_echo "no" >&6; }
5130fi
5131
5132
5133fi
5134if test -z "$ac_cv_path_PKG_CONFIG"; then
5135 ac_pt_PKG_CONFIG=$PKG_CONFIG
5136 # Extract the first word of "pkg-config", so it can be a program name with args.
5137set dummy pkg-config; ac_word=$2
5138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139$as_echo_n "checking for $ac_word... " >&6; }
5140if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142else
5143 case $ac_pt_PKG_CONFIG in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5146 ;;
5147 *)
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149for as_dir in $PATH
5150do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159done
5160 done
5161IFS=$as_save_IFS
5162
5163 ;;
5164esac
5165fi
5166ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5167if test -n "$ac_pt_PKG_CONFIG"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5169$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5170else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172$as_echo "no" >&6; }
5173fi
5174
5175 if test "x$ac_pt_PKG_CONFIG" = x; then
5176 PKG_CONFIG=""
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179yes:)
5180{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182ac_tool_warned=yes ;;
5183esac
5184 PKG_CONFIG=$ac_pt_PKG_CONFIG
5185 fi
5186else
5187 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5188fi
5189
5190fi
5191if test -n "$PKG_CONFIG"; then
5192 _pkg_min_version=0.9.0
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5194$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5195 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5197$as_echo "yes" >&6; }
5198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200$as_echo "no" >&6; }
5201 PKG_CONFIG=""
5202 fi
5203
5204fi
5205LIBQUOTA=
5206DEPLIBQUOTA=
5207STATIC_LIBQUOTA=
5208DEPSTATIC_LIBQUOTA=
5209PROFILED_LIBQUOTA=
5210DEPPROFILED_LIBQUOTA=
5211QUOTA_CMT=
5212# Check whether --enable-libquota was given.
5213if test "${enable_libquota+set}" = set; then :
5214 enableval=$enable_libquota; if test "$enableval" = "no"
5215then
5216 if test -z "$PKG_CONFIG"; then
5217 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
5218 fi
5219
5220 as_ac_Lib=`$as_echo "ac_cv_lib_quota_LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5221 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\`" | $as_tr_sh`
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5223 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota" >&5
5224$as_echo_n "checking for LIBQUOTA=\`$PKG_CONFIG --libs quota\`;
5225 STATIC_LIBQUOTA=\`$PKG_CONFIG --static --libs quota\` in -lquota... " >&6; }
5226if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
5227 $as_echo_n "(cached) " >&6
5228else
5229 ac_check_lib_save_LIBS=$LIBS
5230LIBS="-lquota $LIBS"
5231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h. */
5233
5234/* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
5237#ifdef __cplusplus
5238extern "C"
5239#endif
5240char LIBQUOTA=`$PKG_CONFIG --libs quota`;
5241 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5242int
5243main ()
5244{
5245return LIBQUOTA=`$PKG_CONFIG --libs quota`;
5246 STATIC_LIBQUOTA=`$PKG_CONFIG --static --libs quota` ();
5247 ;
5248 return 0;
5249}
5250_ACEOF
5251if ac_fn_c_try_link "$LINENO"; then :
5252 eval "$as_ac_Lib=yes"
5253else
5254 eval "$as_ac_Lib=no"
5255fi
5256rm -f core conftest.err conftest.$ac_objext \
5257 conftest$ac_exeext conftest.$ac_ext
5258LIBS=$ac_check_lib_save_LIBS
5259fi
5260eval ac_res=\$$as_ac_Lib
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5262$as_echo "$ac_res" >&6; }
5263eval as_val=\$$as_ac_Lib
5264 if test "x$as_val" = x""yes; then :
5265 as_fn_error "external quota library not found" "$LINENO" 5
5266else
5267 $LIBQUOTA
5268fi
5269
5270 QUOTA_CMT=#
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private quota library" >&5
5272$as_echo "Disabling private quota library" >&6; }
5273else
5274 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5275 DEPLIBQUOTA=$LIBQUOTA
5276 STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5277 DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5278 PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5279 DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library" >&5
5281$as_echo "Enabling private quota library" >&6; }
5282fi
5283
5284else
5285 LIBQUOTA='$(LIB)/libquota'$LIB_EXT
5286DEPLIBQUOTA=$LIBQUOTA
5287STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5288DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5289PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5290DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
5291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private quota library by default" >&5
5292$as_echo "Enabling private quota library by default" >&6; }
5293
5294fi
5295
5296
5297
5298
5299
5300
5301
5302
Theodore Ts'oe1052142006-10-21 21:46:47 -04005303# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005304if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005305 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005306then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005308$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005309 DEBUGFS_CMT="#"
5310else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005311 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005313$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005314fi
5315
5316else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005318$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005319DEBUGFS_CMT=
5320
Theodore Ts'oe1052142006-10-21 21:46:47 -04005321fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005322
Theodore Ts'oe1052142006-10-21 21:46:47 -04005323
5324# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005325if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005326 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005327then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005329$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005330 IMAGER_CMT="#"
5331else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005332 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005334$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005335fi
5336
5337else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005339$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005340IMAGER_CMT=
5341
Theodore Ts'oe1052142006-10-21 21:46:47 -04005342fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005343
Theodore Ts'oe1052142006-10-21 21:46:47 -04005344
5345# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005346if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005348then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005350$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005351 RESIZER_CMT="#"
5352else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005353 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005355$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005356fi
5357
5358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005360$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005361RESIZER_CMT=
5362
Theodore Ts'oe1052142006-10-21 21:46:47 -04005363fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005364
Theodore Ts'oe1052142006-10-21 21:46:47 -04005365
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005366# Check whether --enable-defrag was given.
5367if test "${enable_defrag+set}" = set; then :
5368 enableval=$enable_defrag; if test "$enableval" = "no"
5369then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5371$as_echo "Disabling e4defrag support" >&6; }
5372 DEFRAG_CMT="#"
5373else
5374 DEFRAG_CMT=
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5376$as_echo "Enabling e4defrag support" >&6; }
5377fi
5378
5379else
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5381$as_echo "Enabling e4defrag support by default" >&6; }
5382DEFRAG_CMT=
5383
5384fi
5385
5386
Theodore Ts'oe1052142006-10-21 21:46:47 -04005387# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005388if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005389 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005390then
5391 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005394else
5395 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005397$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005398fi
5399
5400else
5401 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005402 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005403 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005405$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005406 ;;
5407 *)
5408 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005411esac
5412
Theodore Ts'oe1052142006-10-21 21:46:47 -04005413fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005414
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005415
Theodore Ts'oe1052142006-10-21 21:46:47 -04005416
5417# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005419 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005420then
5421 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005423$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005424else
5425 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005427$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005428fi
5429
5430else
5431 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005434
Theodore Ts'oe1052142006-10-21 21:46:47 -04005435fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005436
5437
Theodore Ts'oe1052142006-10-21 21:46:47 -04005438
Theodore Ts'o32493942007-12-31 10:45:01 -05005439# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005440if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005441 enableval=$enable_tls; if test "$enableval" = "no"
5442then
5443 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005445$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005446else
5447 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005449$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005450fi
5451
5452else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005453 if test -n "$WITH_DIET_LIBC"
5454then
5455 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005456 { $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 +01005457$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005458else
5459 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005462fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005463
5464fi
5465
5466if test "$try_tls" = "yes"
5467then
5468
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005470$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005471 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005472 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005473else
5474
5475 ax_tls_keywords="__thread __declspec(thread) none"
5476 for ax_tls_keyword in $ax_tls_keywords; do
5477 case $ax_tls_keyword in
5478 none) ac_cv_tls=none ; break ;;
5479 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005481/* end confdefs.h. */
5482#include <stdlib.h>
5483 static void
5484 foo(void) {
5485 static $ax_tls_keyword int bar;
5486 exit(1);
5487 }
5488int
5489main ()
5490{
5491
5492 ;
5493 return 0;
5494}
5495_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005496if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005497 ac_cv_tls=$ax_tls_keyword ; break
5498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005499 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005500
5501fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5503 esac
5504 done
5505
5506fi
5507
5508
5509 if test "$ac_cv_tls" != "none"; then
5510
5511cat >>confdefs.h <<_ACEOF
5512#define TLS $ac_cv_tls
5513_ACEOF
5514
5515 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005518
5519fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005520
Theodore Ts'o5610f992007-12-31 11:16:56 -05005521# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005522if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005523 enableval=$enable_uuidd; if test "$enableval" = "no"
5524then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005526$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005527 UUIDD_CMT="#"
5528else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005529 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005530
5531 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005533$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005534fi
5535
5536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005538
5539UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005541$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005542
5543fi
5544
5545
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005546MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005548GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005549PACKAGE=e2fsprogs
5550VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005551VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005552
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005553cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005554#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005555_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005556
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005558cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005559#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005560_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005561
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005562
5563
5564
5565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005567$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5568set x ${MAKE-make}
5569ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005570if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005571 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005572else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005573 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005574SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005575all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005576 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005577_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005578# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005579case `${MAKE-make} -f conftest.make 2>/dev/null` in
5580 *@@@%%%=?*=@@@%%%*)
5581 eval ac_cv_prog_make_${ac_make}_set=yes;;
5582 *)
5583 eval ac_cv_prog_make_${ac_make}_set=no;;
5584esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005585rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005586fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005587if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005589$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005590 SET_MAKE=
5591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005593$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005594 SET_MAKE="MAKE=${MAKE-make}"
5595fi
5596
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005597# Find a good install program. We prefer a C program (faster),
5598# so one script is as good as another. But avoid the broken or
5599# incompatible versions:
5600# SysV /etc/install, /usr/sbin/install
5601# SunOS /usr/etc/install
5602# IRIX /sbin/install
5603# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005605# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5606# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5607# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005608# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005609# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005610# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005612$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005613if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005614if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005615 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005616else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618for as_dir in $PATH
5619do
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005622 # Account for people who put trailing slashes in PATH elements.
5623case $as_dir/ in #((
5624 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005626 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005627 /usr/ucb/* ) ;;
5628 *)
5629 # OSF1 and SCO ODT 3.0 have their own names for install.
5630 # Don't use installbsd from OSF since it installs stuff as root
5631 # by default.
5632 for ac_prog in ginstall scoinst install; do
5633 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005634 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 -04005635 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005637 # AIX install. It has an incompatible calling convention.
5638 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639 elif test $ac_prog = install &&
5640 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5641 # program-specific install script used by HP pwplus--don't use.
5642 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005643 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005644 rm -rf conftest.one conftest.two conftest.dir
5645 echo one > conftest.one
5646 echo two > conftest.two
5647 mkdir conftest.dir
5648 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5649 test -s conftest.one && test -s conftest.two &&
5650 test -s conftest.dir/conftest.one &&
5651 test -s conftest.dir/conftest.two
5652 then
5653 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5654 break 3
5655 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005656 fi
5657 fi
5658 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 done
5660 ;;
5661esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005662
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005663 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005665
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005666rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005667
5668fi
5669 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005670 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005671 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005672 # As a last resort, use the slow shell script. Don't cache a
5673 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005674 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005675 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005676 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005677 fi
5678fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005680$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005681
5682# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5683# It thinks the first close brace ends the variable substitution.
5684test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5685
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005686test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005687
5688test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5689
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005690
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005691 MKINSTALLDIRS=
5692 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005693 case "$ac_aux_dir" in
5694 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5695 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5696 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005697 fi
5698 if test -z "$MKINSTALLDIRS"; then
5699 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5700 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005701
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005702
5703
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005705$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005707if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005708 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005709else
5710 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005711fi
5712
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005715
5716
5717
5718
5719
5720
5721# Prepare PATH_SEPARATOR.
5722# The user is always right.
5723if test "${PATH_SEPARATOR+set}" != set; then
5724 echo "#! /bin/sh" >conf$$.sh
5725 echo "exit 0" >>conf$$.sh
5726 chmod +x conf$$.sh
5727 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5728 PATH_SEPARATOR=';'
5729 else
5730 PATH_SEPARATOR=:
5731 fi
5732 rm -f conf$$.sh
5733fi
5734
5735# Find out how to test for executable files. Don't use a zero-byte file,
5736# as systems may use methods other than mode bits to determine executability.
5737cat >conf$$.file <<_ASEOF
5738#! /bin/sh
5739exit 0
5740_ASEOF
5741chmod +x conf$$.file
5742if test -x conf$$.file >/dev/null 2>&1; then
5743 ac_executable_p="test -x"
5744else
5745 ac_executable_p="test -f"
5746fi
5747rm -f conf$$.file
5748
5749# Extract the first word of "msgfmt", so it can be a program name with args.
5750set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005753if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005754 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005755else
5756 case "$MSGFMT" in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5759 ;;
5760 *)
5761 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5762 for ac_dir in $PATH; do
5763 IFS="$ac_save_IFS"
5764 test -z "$ac_dir" && ac_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5767 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5768 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5769 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5770 break 2
5771 fi
5772 fi
5773 done
5774 done
5775 IFS="$ac_save_IFS"
5776 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5777 ;;
5778esac
5779fi
5780MSGFMT="$ac_cv_path_MSGFMT"
5781if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005783$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005784else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005786$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787fi
5788
5789 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5790set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005795else
5796 case $GMSGFMT in
5797 [\\/]* | ?:[\\/]*)
5798 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5799 ;;
5800 *)
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802for as_dir in $PATH
5803do
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005806 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005807 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 -05005808 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005810 break 2
5811 fi
5812done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005813 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005814IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005815
5816 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5817 ;;
5818esac
5819fi
5820GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005821if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005823$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005826$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005827fi
5828
5829
5830
Theodore Ts'oe1052142006-10-21 21:46:47 -04005831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832# Prepare PATH_SEPARATOR.
5833# The user is always right.
5834if test "${PATH_SEPARATOR+set}" != set; then
5835 echo "#! /bin/sh" >conf$$.sh
5836 echo "exit 0" >>conf$$.sh
5837 chmod +x conf$$.sh
5838 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5839 PATH_SEPARATOR=';'
5840 else
5841 PATH_SEPARATOR=:
5842 fi
5843 rm -f conf$$.sh
5844fi
5845
5846# Find out how to test for executable files. Don't use a zero-byte file,
5847# as systems may use methods other than mode bits to determine executability.
5848cat >conf$$.file <<_ASEOF
5849#! /bin/sh
5850exit 0
5851_ASEOF
5852chmod +x conf$$.file
5853if test -x conf$$.file >/dev/null 2>&1; then
5854 ac_executable_p="test -x"
5855else
5856 ac_executable_p="test -f"
5857fi
5858rm -f conf$$.file
5859
5860# Extract the first word of "xgettext", so it can be a program name with args.
5861set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005863$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005864if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005865 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005866else
5867 case "$XGETTEXT" in
5868 [\\/]* | ?:[\\/]*)
5869 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5870 ;;
5871 *)
5872 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5873 for ac_dir in $PATH; do
5874 IFS="$ac_save_IFS"
5875 test -z "$ac_dir" && ac_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5878 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5879 (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
5880 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5881 break 2
5882 fi
5883 fi
5884 done
5885 done
5886 IFS="$ac_save_IFS"
5887 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5888 ;;
5889esac
5890fi
5891XGETTEXT="$ac_cv_path_XGETTEXT"
5892if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005894$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005897$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005898fi
5899
5900 rm -f messages.po
5901
5902
5903# Prepare PATH_SEPARATOR.
5904# The user is always right.
5905if test "${PATH_SEPARATOR+set}" != set; then
5906 echo "#! /bin/sh" >conf$$.sh
5907 echo "exit 0" >>conf$$.sh
5908 chmod +x conf$$.sh
5909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5910 PATH_SEPARATOR=';'
5911 else
5912 PATH_SEPARATOR=:
5913 fi
5914 rm -f conf$$.sh
5915fi
5916
5917# Find out how to test for executable files. Don't use a zero-byte file,
5918# as systems may use methods other than mode bits to determine executability.
5919cat >conf$$.file <<_ASEOF
5920#! /bin/sh
5921exit 0
5922_ASEOF
5923chmod +x conf$$.file
5924if test -x conf$$.file >/dev/null 2>&1; then
5925 ac_executable_p="test -x"
5926else
5927 ac_executable_p="test -f"
5928fi
5929rm -f conf$$.file
5930
5931# Extract the first word of "msgmerge", so it can be a program name with args.
5932set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005934$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005935if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005936 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005937else
5938 case "$MSGMERGE" in
5939 [\\/]* | ?:[\\/]*)
5940 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5941 ;;
5942 *)
5943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5944 for ac_dir in $PATH; do
5945 IFS="$ac_save_IFS"
5946 test -z "$ac_dir" && ac_dir=.
5947 for ac_exec_ext in '' $ac_executable_extensions; do
5948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5949 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5950 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5951 break 2
5952 fi
5953 fi
5954 done
5955 done
5956 IFS="$ac_save_IFS"
5957 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5958 ;;
5959esac
5960fi
5961MSGMERGE="$ac_cv_path_MSGMERGE"
5962if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005964$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005965else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005967$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968fi
5969
5970
5971 if test "$GMSGFMT" != ":"; then
5972 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5973 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5974 : ;
5975 else
5976 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005977 { $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 +01005978$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005979 GMSGFMT=":"
5980 fi
5981 fi
5982
5983 if test "$XGETTEXT" != ":"; then
5984 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5985 (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
5986 : ;
5987 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005988 { $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 +01005989$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005990 XGETTEXT=":"
5991 fi
5992 rm -f messages.po
5993 fi
5994
Theodore Ts'oe1052142006-10-21 21:46:47 -04005995 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996
5997
5998if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006002$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006003if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006004 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006005else
6006 if test -n "$RANLIB"; then
6007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010for as_dir in $PATH
6011do
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006014 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006015 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 -05006016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006018 break 2
6019 fi
6020done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006021 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006022IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006023
6024fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025fi
6026RANLIB=$ac_cv_prog_RANLIB
6027if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006029$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006032$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006034
Theodore Ts'oe1052142006-10-21 21:46:47 -04006035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006036fi
6037if test -z "$ac_cv_prog_RANLIB"; then
6038 ac_ct_RANLIB=$RANLIB
6039 # Extract the first word of "ranlib", so it can be a program name with args.
6040set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006042$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006044 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045else
6046 if test -n "$ac_ct_RANLIB"; then
6047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048else
6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050for as_dir in $PATH
6051do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006054 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006055 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 -05006056 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006058 break 2
6059 fi
6060done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006061 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006062IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006064fi
6065fi
6066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006069$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006072$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073fi
6074
Theodore Ts'oe1052142006-10-21 21:46:47 -04006075 if test "x$ac_ct_RANLIB" = x; then
6076 RANLIB=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006080{ $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 +01006081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082ac_tool_warned=yes ;;
6083esac
6084 RANLIB=$ac_ct_RANLIB
6085 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086else
6087 RANLIB="$ac_cv_prog_RANLIB"
6088fi
6089
6090
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006093if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006094 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006095else
6096 ac_check_lib_save_LIBS=$LIBS
6097LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006099/* end confdefs.h. */
6100
Theodore Ts'oe1052142006-10-21 21:46:47 -04006101/* Override any GCC internal prototype to avoid an error.
6102 Use char because int might match the return type of a GCC
6103 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104#ifdef __cplusplus
6105extern "C"
6106#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107char strerror ();
6108int
6109main ()
6110{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006111return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112 ;
6113 return 0;
6114}
6115_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006116if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006117 ac_cv_lib_cposix_strerror=yes
6118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006119 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006121rm -f core conftest.err conftest.$ac_objext \
6122 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006123LIBS=$ac_check_lib_save_LIBS
6124fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006126$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006127if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006128 LIBS="$LIBS -lcposix"
6129fi
6130
6131
6132
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006133
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6135$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6136if test "${ac_cv_path_GREP+set}" = set; then :
6137 $as_echo_n "(cached) " >&6
6138else
6139 if test -z "$GREP"; then
6140 ac_path_GREP_found=false
6141 # Loop through the user's path and test for each of PROGNAME-LIST
6142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6144do
6145 IFS=$as_save_IFS
6146 test -z "$as_dir" && as_dir=.
6147 for ac_prog in grep ggrep; do
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6150 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6151# Check for GNU ac_path_GREP and select it if it is found.
6152 # Check for GNU $ac_path_GREP
6153case `"$ac_path_GREP" --version 2>&1` in
6154*GNU*)
6155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6156*)
6157 ac_count=0
6158 $as_echo_n 0123456789 >"conftest.in"
6159 while :
6160 do
6161 cat "conftest.in" "conftest.in" >"conftest.tmp"
6162 mv "conftest.tmp" "conftest.in"
6163 cp "conftest.in" "conftest.nl"
6164 $as_echo 'GREP' >> "conftest.nl"
6165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6167 as_fn_arith $ac_count + 1 && ac_count=$as_val
6168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6169 # Best one so far, save it but keep looking for a better one
6170 ac_cv_path_GREP="$ac_path_GREP"
6171 ac_path_GREP_max=$ac_count
6172 fi
6173 # 10*(2^10) chars as input seems more than enough
6174 test $ac_count -gt 10 && break
6175 done
6176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6177esac
6178
6179 $ac_path_GREP_found && break 3
6180 done
6181 done
6182 done
6183IFS=$as_save_IFS
6184 if test -z "$ac_cv_path_GREP"; then
6185 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6186 fi
6187else
6188 ac_cv_path_GREP=$GREP
6189fi
6190
6191fi
6192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6193$as_echo "$ac_cv_path_GREP" >&6; }
6194 GREP="$ac_cv_path_GREP"
6195
6196
6197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6198$as_echo_n "checking for egrep... " >&6; }
6199if test "${ac_cv_path_EGREP+set}" = set; then :
6200 $as_echo_n "(cached) " >&6
6201else
6202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6203 then ac_cv_path_EGREP="$GREP -E"
6204 else
6205 if test -z "$EGREP"; then
6206 ac_path_EGREP_found=false
6207 # Loop through the user's path and test for each of PROGNAME-LIST
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6210do
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_prog in egrep; do
6214 for ac_exec_ext in '' $ac_executable_extensions; do
6215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6217# Check for GNU ac_path_EGREP and select it if it is found.
6218 # Check for GNU $ac_path_EGREP
6219case `"$ac_path_EGREP" --version 2>&1` in
6220*GNU*)
6221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6222*)
6223 ac_count=0
6224 $as_echo_n 0123456789 >"conftest.in"
6225 while :
6226 do
6227 cat "conftest.in" "conftest.in" >"conftest.tmp"
6228 mv "conftest.tmp" "conftest.in"
6229 cp "conftest.in" "conftest.nl"
6230 $as_echo 'EGREP' >> "conftest.nl"
6231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6233 as_fn_arith $ac_count + 1 && ac_count=$as_val
6234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6235 # Best one so far, save it but keep looking for a better one
6236 ac_cv_path_EGREP="$ac_path_EGREP"
6237 ac_path_EGREP_max=$ac_count
6238 fi
6239 # 10*(2^10) chars as input seems more than enough
6240 test $ac_count -gt 10 && break
6241 done
6242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6243esac
6244
6245 $ac_path_EGREP_found && break 3
6246 done
6247 done
6248 done
6249IFS=$as_save_IFS
6250 if test -z "$ac_cv_path_EGREP"; then
6251 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6252 fi
6253else
6254 ac_cv_path_EGREP=$EGREP
6255fi
6256
6257 fi
6258fi
6259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6260$as_echo "$ac_cv_path_EGREP" >&6; }
6261 EGREP="$ac_cv_path_EGREP"
6262
6263
6264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6265$as_echo_n "checking for ANSI C header files... " >&6; }
6266if test "${ac_cv_header_stdc+set}" = set; then :
6267 $as_echo_n "(cached) " >&6
6268else
6269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6270/* end confdefs.h. */
6271#include <stdlib.h>
6272#include <stdarg.h>
6273#include <string.h>
6274#include <float.h>
6275
6276int
6277main ()
6278{
6279
6280 ;
6281 return 0;
6282}
6283_ACEOF
6284if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_header_stdc=yes
6286else
6287 ac_cv_header_stdc=no
6288fi
6289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290
6291if test $ac_cv_header_stdc = yes; then
6292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h. */
6295#include <string.h>
6296
6297_ACEOF
6298if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6299 $EGREP "memchr" >/dev/null 2>&1; then :
6300
6301else
6302 ac_cv_header_stdc=no
6303fi
6304rm -f conftest*
6305
6306fi
6307
6308if test $ac_cv_header_stdc = yes; then
6309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311/* end confdefs.h. */
6312#include <stdlib.h>
6313
6314_ACEOF
6315if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6316 $EGREP "free" >/dev/null 2>&1; then :
6317
6318else
6319 ac_cv_header_stdc=no
6320fi
6321rm -f conftest*
6322
6323fi
6324
6325if test $ac_cv_header_stdc = yes; then
6326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6327 if test "$cross_compiling" = yes; then :
6328 :
6329else
6330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6331/* end confdefs.h. */
6332#include <ctype.h>
6333#include <stdlib.h>
6334#if ((' ' & 0x0FF) == 0x020)
6335# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6336# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6337#else
6338# define ISLOWER(c) \
6339 (('a' <= (c) && (c) <= 'i') \
6340 || ('j' <= (c) && (c) <= 'r') \
6341 || ('s' <= (c) && (c) <= 'z'))
6342# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6343#endif
6344
6345#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6346int
6347main ()
6348{
6349 int i;
6350 for (i = 0; i < 256; i++)
6351 if (XOR (islower (i), ISLOWER (i))
6352 || toupper (i) != TOUPPER (i))
6353 return 2;
6354 return 0;
6355}
6356_ACEOF
6357if ac_fn_c_try_run "$LINENO"; then :
6358
6359else
6360 ac_cv_header_stdc=no
6361fi
6362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6363 conftest.$ac_objext conftest.beam conftest.$ac_ext
6364fi
6365
6366fi
6367fi
6368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6369$as_echo "$ac_cv_header_stdc" >&6; }
6370if test $ac_cv_header_stdc = yes; then
6371
6372$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6373
6374fi
6375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006377$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006378if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006379 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382/* end confdefs.h. */
6383
6384int
6385main ()
6386{
6387/* FIXME: Include the comments suggested by Paul. */
6388#ifndef __cplusplus
6389 /* Ultrix mips cc rejects this. */
6390 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006391 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006393 char const *const *pcpcc;
6394 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006395 /* NEC SVR4.0.2 mips cc rejects this. */
6396 struct point {int x, y;};
6397 static struct point const zero = {0,0};
6398 /* AIX XL C 1.02.0.0 rejects this.
6399 It does not let you subtract one const X* pointer from another in
6400 an arm of an if-expression whose if-part is not a constant
6401 expression */
6402 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006403 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006405 ++pcpcc;
6406 ppc = (char**) pcpcc;
6407 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408 { /* SCO 3.2v4 cc rejects this. */
6409 char *t;
6410 char const *s = 0 ? (char *) 0 : (char const *) 0;
6411
6412 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006413 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006414 }
6415 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6416 int x[] = {25, 17};
6417 const int *foo = &x[0];
6418 ++foo;
6419 }
6420 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6421 typedef const int *iptr;
6422 iptr p = 0;
6423 ++p;
6424 }
6425 { /* AIX XL C 1.02.0.0 rejects this saying
6426 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6427 struct s { int j; const int *ap[3]; };
6428 struct s *b; b->j = 5;
6429 }
6430 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6431 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006432 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006433 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006434 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006435#endif
6436
6437 ;
6438 return 0;
6439}
6440_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006441if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006442 ac_cv_c_const=yes
6443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006444 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006449$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006450if test $ac_cv_c_const = no; then
6451
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006452$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453
6454fi
6455
6456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006458$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006459if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006460 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006461else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463/* end confdefs.h. */
6464
6465int
6466main ()
6467{
6468signed char x;
6469 ;
6470 return 0;
6471}
6472_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006473if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006474 bh_cv_c_signed=yes
6475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006476 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006479fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006481$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482 if test $bh_cv_c_signed = no; then
6483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485
6486 fi
6487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006489$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006490if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006491 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006492else
6493 ac_cv_c_inline=no
6494for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496/* end confdefs.h. */
6497#ifndef __cplusplus
6498typedef int foo_t;
6499static $ac_kw foo_t static_foo () {return 0; }
6500$ac_kw foo_t foo () {return 0; }
6501#endif
6502
6503_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006504if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006505 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509done
6510
6511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006513$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006515case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006516 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006517 *)
6518 case $ac_cv_c_inline in
6519 no) ac_val=;;
6520 *) ac_val=$ac_cv_c_inline;;
6521 esac
6522 cat >>confdefs.h <<_ACEOF
6523#ifndef __cplusplus
6524#define inline $ac_val
6525#endif
6526_ACEOF
6527 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006528esac
6529
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6531for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6532 inttypes.h stdint.h unistd.h
6533do :
6534 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6535ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6536"
6537eval as_val=\$$as_ac_Header
6538 if test "x$as_val" = x""yes; then :
6539 cat >>confdefs.h <<_ACEOF
6540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6541_ACEOF
6542
6543fi
6544
6545done
6546
6547
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006548ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6549if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006550
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552
6553cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006554#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006555_ACEOF
6556
6557fi
6558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6560if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562else
6563
6564cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006565#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566_ACEOF
6567
6568fi
6569
6570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006572$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006573if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006574 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577/* end confdefs.h. */
6578long long ll = 1LL; int i = 63;
6579int
6580main ()
6581{
6582long long llmax = (long long) -1;
6583 return ll << i | ll >> i | llmax / ll | llmax % ll;
6584 ;
6585 return 0;
6586}
6587_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006588if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006589 ac_cv_type_long_long=yes
6590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006591 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006592fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006593rm -f core conftest.err conftest.$ac_objext \
6594 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006595fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006597$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006598 if test $ac_cv_type_long_long = yes; then
6599
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006600$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601
6602 fi
6603
6604
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006606$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607if test "${gt_cv_c_long_double+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006608 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006609else
6610 if test "$GCC" = yes; then
6611 gt_cv_c_long_double=yes
6612 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006614/* end confdefs.h. */
6615
6616 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6617 long double foo = 0.0;
6618 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6619 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6620
6621int
6622main ()
6623{
6624
6625 ;
6626 return 0;
6627}
6628_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006630 gt_cv_c_long_double=yes
6631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006633fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635 fi
6636fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639 if test $gt_cv_c_long_double = yes; then
6640
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006641$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642
6643 fi
6644
6645
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006647$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006648if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006649 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006650else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006652/* end confdefs.h. */
6653#include <stddef.h>
6654 wchar_t foo = (wchar_t)'\0';
6655int
6656main ()
6657{
6658
6659 ;
6660 return 0;
6661}
6662_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006663if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 gt_cv_c_wchar_t=yes
6665else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006666 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006671$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672 if test $gt_cv_c_wchar_t = yes; then
6673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006674$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675
6676 fi
6677
6678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006680$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006685/* end confdefs.h. */
6686#include <wchar.h>
6687 wint_t foo = (wchar_t)'\0';
6688int
6689main ()
6690{
6691
6692 ;
6693 return 0;
6694}
6695_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006696if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697 gt_cv_c_wint_t=yes
6698else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006699 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006700fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006702fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006704$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006705 if test $gt_cv_c_wint_t = yes; then
6706
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006707$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708
6709 fi
6710
6711
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006713$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006714if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006715 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006718/* end confdefs.h. */
6719#include <sys/types.h>
6720#include <inttypes.h>
6721int
6722main ()
6723{
6724uintmax_t i = (uintmax_t) -1;
6725 ;
6726 return 0;
6727}
6728_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006729if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730 jm_ac_cv_header_inttypes_h=yes
6731else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006732 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006733fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006735fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006737$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738 if test $jm_ac_cv_header_inttypes_h = yes; then
6739
6740cat >>confdefs.h <<_ACEOF
6741#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6742_ACEOF
6743
6744 fi
6745
6746
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006748$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006749if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006750 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006751else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753/* end confdefs.h. */
6754#include <sys/types.h>
6755#include <stdint.h>
6756int
6757main ()
6758{
6759uintmax_t i = (uintmax_t) -1;
6760 ;
6761 return 0;
6762}
6763_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006764if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006765 jm_ac_cv_header_stdint_h=yes
6766else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006767 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006768fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006770fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006772$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006773 if test $jm_ac_cv_header_stdint_h = yes; then
6774
6775cat >>confdefs.h <<_ACEOF
6776#define HAVE_STDINT_H_WITH_UINTMAX 1
6777_ACEOF
6778
6779 fi
6780
6781
6782
6783
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006785$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006787 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006788else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790/* end confdefs.h. */
6791
6792#include <stddef.h>
6793#include <stdlib.h>
6794#if HAVE_STDINT_H_WITH_UINTMAX
6795#include <stdint.h>
6796#endif
6797#if HAVE_INTTYPES_H_WITH_UINTMAX
6798#include <inttypes.h>
6799#endif
6800
6801int
6802main ()
6803{
6804intmax_t x = -1;
6805 ;
6806 return 0;
6807}
6808_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006809if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006810 gt_cv_c_intmax_t=yes
6811else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006812 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006817$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818 if test $gt_cv_c_intmax_t = yes; then
6819
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006820$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821
6822 fi
6823
6824
6825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006827$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006829 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830else
6831
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006832 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835/* end confdefs.h. */
6836
6837#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6838 notposix
6839#endif
6840
6841_ACEOF
6842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006843 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844 gt_cv_func_printf_posix="guessing no"
6845else
6846 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006847fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006848rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006849
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850
6851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853/* end confdefs.h. */
6854
6855#include <stdio.h>
6856#include <string.h>
6857/* The string "%2$d %1$d", with dollar characters protected from the shell's
6858 dollar expansion (possibly an autoconf bug). */
6859static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6860static char buf[100];
6861int main ()
6862{
6863 sprintf (buf, format, 33, 55);
6864 return (strcmp (buf, "55 33") != 0);
6865}
6866_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006867if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868 gt_cv_func_printf_posix=yes
6869else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006870 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006871fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6873 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875
Theodore Ts'oe1052142006-10-21 21:46:47 -04006876
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006877fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006879$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880 case $gt_cv_func_printf_posix in
6881 *yes)
6882
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006883$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884
6885 ;;
6886 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006887
6888# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6889# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006891$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006892if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006893 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006897#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898int
6899main ()
6900{
6901char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006902 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903 ;
6904 return 0;
6905}
6906_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006907if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006908 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006909else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006910 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006911fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006912rm -f core conftest.err conftest.$ac_objext \
6913 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006914fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006916$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917if test $ac_cv_working_alloca_h = yes; then
6918
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006920
6921fi
6922
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006924$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006925if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006926 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006929/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930#ifdef __GNUC__
6931# define alloca __builtin_alloca
6932#else
6933# ifdef _MSC_VER
6934# include <malloc.h>
6935# define alloca _alloca
6936# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006937# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006938# include <alloca.h>
6939# else
6940# ifdef _AIX
6941 #pragma alloca
6942# else
6943# ifndef alloca /* predefined by HP cc +Olibcalls */
6944char *alloca ();
6945# endif
6946# endif
6947# endif
6948# endif
6949#endif
6950
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951int
6952main ()
6953{
6954char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006955 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956 ;
6957 return 0;
6958}
6959_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961 ac_cv_func_alloca_works=yes
6962else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006963 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006964fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006965rm -f core conftest.err conftest.$ac_objext \
6966 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006969$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006971if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006974
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006975else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6977# that cause trouble. Some versions do not even contain alloca or
6978# contain a buggy version. If you still want to use their alloca,
6979# use ar to extract alloca.o from them instead of compiling alloca.c.
6980
Theodore Ts'oe1052142006-10-21 21:46:47 -04006981ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006982
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006983$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984
6985
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006987$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006988if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006989 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006990else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006993#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006994webecray
6995#else
6996wenotbecray
6997#endif
6998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007001 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007002 ac_cv_os_cray=yes
7003else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004 ac_cv_os_cray=no
7005fi
7006rm -f conftest*
7007
7008fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007010$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007011if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007012 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007013 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7015eval as_val=\$$as_ac_var
7016 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007017
7018cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007019#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023fi
7024
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026fi
7027
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007029$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007031 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007033 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034 ac_cv_c_stack_direction=0
7035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007038$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040find_stack_direction ()
7041{
7042 static char *addr = 0;
7043 auto char dummy;
7044 if (addr == 0)
7045 {
7046 addr = &dummy;
7047 return find_stack_direction ();
7048 }
7049 else
7050 return (&dummy > addr) ? 1 : -1;
7051}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
7053int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054main ()
7055{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007056 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007059if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060 ac_cv_c_stack_direction=1
7061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007063fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7065 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007070$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073_ACEOF
7074
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007075
7076fi
7077
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007078
7079
7080
7081 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007082do :
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007084ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7085"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007086eval as_val=\$$as_ac_Header
7087 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007088 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007089#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090_ACEOF
7091
7092fi
7093
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094done
7095
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007096
7097
7098
7099
7100
7101
7102
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007103for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007104do :
7105 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7106if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007108#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109_ACEOF
7110
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007111fi
7112done
7113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007115$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007116if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007117 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007119 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007120 ac_cv_func_mmap_fixed_mapped=no
7121else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123/* end confdefs.h. */
7124$ac_includes_default
7125/* malloc might have been renamed as rpl_malloc. */
7126#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007127
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007128/* Thanks to Mike Haertel and Jim Avera for this test.
7129 Here is a matrix of mmap possibilities:
7130 mmap private not fixed
7131 mmap private fixed at somewhere currently unmapped
7132 mmap private fixed at somewhere already mapped
7133 mmap shared not fixed
7134 mmap shared fixed at somewhere currently unmapped
7135 mmap shared fixed at somewhere already mapped
7136 For private mappings, we should verify that changes cannot be read()
7137 back from the file, nor mmap's back from the file at a different
7138 address. (There have been systems where private was not correctly
7139 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007140 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141 like early versions of FreeBSD and possibly contemporary NetBSD.)
7142 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144
7145 Grep wants private fixed already mapped.
7146 The main things grep needs to know about mmap are:
7147 * does it exist and is it safe to write into the mmap'd area
7148 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007149
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007150#include <fcntl.h>
7151#include <sys/mman.h>
7152
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007153#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154char *malloc ();
7155#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007156
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007158#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007159# ifdef _SC_PAGESIZE
7160# define getpagesize() sysconf(_SC_PAGESIZE)
7161# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007162# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007163# include <sys/param.h>
7164# ifdef EXEC_PAGESIZE
7165# define getpagesize() EXEC_PAGESIZE
7166# else /* no EXEC_PAGESIZE */
7167# ifdef NBPG
7168# define getpagesize() NBPG * CLSIZE
7169# ifndef CLSIZE
7170# define CLSIZE 1
7171# endif /* no CLSIZE */
7172# else /* no NBPG */
7173# ifdef NBPC
7174# define getpagesize() NBPC
7175# else /* no NBPC */
7176# ifdef PAGESIZE
7177# define getpagesize() PAGESIZE
7178# endif /* PAGESIZE */
7179# endif /* no NBPC */
7180# endif /* no NBPG */
7181# endif /* no EXEC_PAGESIZE */
7182# else /* no HAVE_SYS_PARAM_H */
7183# define getpagesize() 8192 /* punt totally */
7184# endif /* no HAVE_SYS_PARAM_H */
7185# endif /* no _SC_PAGESIZE */
7186
7187#endif /* no HAVE_GETPAGESIZE */
7188
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007189int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007191{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007193 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007194 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007195 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007199 /* First, make a file with some known garbage in it. */
7200 data = (char *) malloc (pagesize);
7201 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007202 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 for (i = 0; i < pagesize; ++i)
7204 *(data + i) = rand ();
7205 umask (0);
7206 fd = creat ("conftest.mmap", 0600);
7207 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007208 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007209 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007210 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007212
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007213 /* Next, check that the tail of a page is zero-filled. File must have
7214 non-zero length, otherwise we risk SIGBUS for entire page. */
7215 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7216 if (fd2 < 0)
7217 return 4;
7218 cdata2 = "";
7219 if (write (fd2, cdata2, 1) != 1)
7220 return 5;
7221 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7222 if (data2 == MAP_FAILED)
7223 return 6;
7224 for (i = 0; i < pagesize; ++i)
7225 if (*(data2 + i))
7226 return 7;
7227 close (fd2);
7228 if (munmap (data2, pagesize))
7229 return 8;
7230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007231 /* Next, try to mmap the file at a fixed address which already has
7232 something else allocated at it. If we can, also make sure that
7233 we see the same garbage. */
7234 fd = open ("conftest.mmap", O_RDWR);
7235 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007236 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007237 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7238 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007239 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240 for (i = 0; i < pagesize; ++i)
7241 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007242 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007244 /* Finally, make sure that changes to the mapped area do not
7245 percolate back to the file as seen by read(). (This is a bug on
7246 some variants of i386 svr4.0.) */
7247 for (i = 0; i < pagesize; ++i)
7248 *(data2 + i) = *(data2 + i) + 1;
7249 data3 = (char *) malloc (pagesize);
7250 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007251 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007253 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254 for (i = 0; i < pagesize; ++i)
7255 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007256 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007258 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007259}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007260_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007261if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007262 ac_cv_func_mmap_fixed_mapped=yes
7263else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007264 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007265fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7267 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007268fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007272$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007273if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007274
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007275$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007276
7277fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007278rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007279
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007280
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007281 { $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 +01007282$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 -05007283if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007284 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007285else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007288
7289#include <features.h>
7290#ifdef __GNU_LIBRARY__
7291 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7292 Lucky GNU user
7293 #endif
7294#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295
7296_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007297if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007298 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007299 ac_cv_gnu_library_2_1=yes
7300else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301 ac_cv_gnu_library_2_1=no
7302fi
7303rm -f conftest*
7304
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007305
7306
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007307fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007309$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007310
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007311 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007312
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007314
7315
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007317$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007318if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007319 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007320else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007321
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007322 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007323
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007324 # Guess based on the CPU.
7325 case "$host_cpu" in
7326 alpha* | i3456786 | m68k | s390*)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7328 *)
7329 gt_cv_int_divbyzero_sigfpe="guessing no";;
7330 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007332else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007334/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007335
7336#include <stdlib.h>
7337#include <signal.h>
7338
7339static void
7340#ifdef __cplusplus
7341sigfpe_handler (int sig)
7342#else
7343sigfpe_handler (sig) int sig;
7344#endif
7345{
7346 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7347 exit (sig != SIGFPE);
7348}
7349
7350int x = 1;
7351int y = 0;
7352int z;
7353int nan;
7354
7355int main ()
7356{
7357 signal (SIGFPE, sigfpe_handler);
7358/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7359#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7360 signal (SIGTRAP, sigfpe_handler);
7361#endif
7362/* Linux/SPARC yields signal SIGILL. */
7363#if defined (__sparc__) && defined (__linux__)
7364 signal (SIGILL, sigfpe_handler);
7365#endif
7366
7367 z = x / y;
7368 nan = y / y;
7369 exit (1);
7370}
7371
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007372_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007373if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007374 gt_cv_int_divbyzero_sigfpe=yes
7375else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007376 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007377fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007378rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7379 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007380fi
7381
Theodore Ts'oe1052142006-10-21 21:46:47 -04007382
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007383fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007385$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007386 case "$gt_cv_int_divbyzero_sigfpe" in
7387 *yes) value=1;;
7388 *) value=0;;
7389 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390
7391cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007392#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007393_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007394
7395
7396
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007398$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007399if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007400 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007401else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007403/* end confdefs.h. */
7404unsigned long long ull = 1ULL; int i = 63;
7405int
7406main ()
7407{
7408unsigned long long ullmax = (unsigned long long) -1;
7409 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7410 ;
7411 return 0;
7412}
7413_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007414if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007415 ac_cv_type_unsigned_long_long=yes
7416else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007417 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007418fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007419rm -f core conftest.err conftest.$ac_objext \
7420 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007421fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007423$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007424 if test $ac_cv_type_unsigned_long_long = yes; then
7425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007426$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007427
7428 fi
7429
7430
7431
7432
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007433 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 -05007434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007435 test $ac_cv_type_unsigned_long_long = yes \
7436 && ac_type='unsigned long long' \
7437 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007438
7439cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007440#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441_ACEOF
7442
7443 else
7444
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007445$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007446
7447 fi
7448
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007451$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007452if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007453 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007454else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458#include <sys/types.h>
7459#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460int
7461main ()
7462{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464 ;
7465 return 0;
7466}
7467_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007468if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007469 gt_cv_header_inttypes_h=yes
7470else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007471 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474
7475fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007477$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007478 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007479
7480cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007481#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483
7484 fi
7485
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007488 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007489 { $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 +01007490$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007491if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007492 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007493else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007494
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007497#include <inttypes.h>
7498#ifdef PRId32
7499char *p = PRId32;
7500#endif
7501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007502int
7503main ()
7504{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506 ;
7507 return 0;
7508}
7509_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007510if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007511 gt_cv_inttypes_pri_broken=no
7512else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007513 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516
7517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007519$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007520 fi
7521 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007522
7523cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007524#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007525_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007526
7527 fi
7528
7529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530 for ac_header in stdint.h
7531do :
7532 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7533if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007535#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007536_ACEOF
7537
7538fi
7539
7540done
7541
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007543$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007544 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546/* end confdefs.h. */
7547
7548#include <limits.h>
7549#if HAVE_STDINT_H
7550#include <stdint.h>
7551#endif
7552#ifdef SIZE_MAX
7553Found it
7554#endif
7555
7556_ACEOF
7557if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007558 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007559 result=yes
7560fi
7561rm -f conftest*
7562
7563 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007564 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 -05007565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007567 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007570
7571 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007574 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007577
7578 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007581 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007583
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007585 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587/* end confdefs.h. */
7588#include <stddef.h>
7589 extern size_t foo;
7590 extern unsigned long foo;
7591
7592int
7593main ()
7594{
7595
7596 ;
7597 return 0;
7598}
7599_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007600if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007601 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007604 fi
7605 if test -z "$result"; then
7606 if test "$fits_in_uint" = 1; then
7607 result="$res_hi$res_lo"U
7608 else
7609 result="$res_hi$res_lo"UL
7610 fi
7611 else
7612 result='~(size_t)0'
7613 fi
7614 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007616$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617 if test "$result" != yes; then
7618
7619cat >>confdefs.h <<_ACEOF
7620#define SIZE_MAX $result
7621_ACEOF
7622
7623 fi
7624
7625
7626
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007627 for ac_header in stdint.h
7628do :
7629 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7630if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007632#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633_ACEOF
7634
7635fi
7636
7637done
7638
7639
7640
7641 if test "X$prefix" = "XNONE"; then
7642 acl_final_prefix="$ac_default_prefix"
7643 else
7644 acl_final_prefix="$prefix"
7645 fi
7646 if test "X$exec_prefix" = "XNONE"; then
7647 acl_final_exec_prefix='${prefix}'
7648 else
7649 acl_final_exec_prefix="$exec_prefix"
7650 fi
7651 acl_save_prefix="$prefix"
7652 prefix="$acl_final_prefix"
7653 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7654 prefix="$acl_save_prefix"
7655
7656
Theodore Ts'oe1052142006-10-21 21:46:47 -04007657# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007658if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007659 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660else
7661 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007662fi
7663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664# Prepare PATH_SEPARATOR.
7665# The user is always right.
7666if test "${PATH_SEPARATOR+set}" != set; then
7667 echo "#! /bin/sh" >conf$$.sh
7668 echo "exit 0" >>conf$$.sh
7669 chmod +x conf$$.sh
7670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7671 PATH_SEPARATOR=';'
7672 else
7673 PATH_SEPARATOR=:
7674 fi
7675 rm -f conf$$.sh
7676fi
7677ac_prog=ld
7678if test "$GCC" = yes; then
7679 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007681$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007682 case $host in
7683 *-*-mingw*)
7684 # gcc leaves a trailing carriage return which upsets mingw
7685 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7686 *)
7687 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7688 esac
7689 case $ac_prog in
7690 # Accept absolute paths.
7691 [\\/]* | [A-Za-z]:[\\/]*)
7692 re_direlt='/[^/][^/]*/\.\./'
7693 # Canonicalize the path of ld
7694 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7695 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7696 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7697 done
7698 test -z "$LD" && LD="$ac_prog"
7699 ;;
7700 "")
7701 # If it fails, then pretend we aren't using GCC.
7702 ac_prog=ld
7703 ;;
7704 *)
7705 # If it is relative, then search for the first ld in PATH.
7706 with_gnu_ld=unknown
7707 ;;
7708 esac
7709elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007711$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007712else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007714$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007716if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007717 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718else
7719 if test -z "$LD"; then
7720 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7721 for ac_dir in $PATH; do
7722 test -z "$ac_dir" && ac_dir=.
7723 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7724 acl_cv_path_LD="$ac_dir/$ac_prog"
7725 # Check to see if the program is GNU ld. I'd rather use --version,
7726 # but apparently some GNU ld's only accept -v.
7727 # Break only if it was the GNU/non-GNU ld that we prefer.
7728 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7729 *GNU* | *'with BFD'*)
7730 test "$with_gnu_ld" != no && break ;;
7731 *)
7732 test "$with_gnu_ld" != yes && break ;;
7733 esac
7734 fi
7735 done
7736 IFS="$ac_save_ifs"
7737else
7738 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7739fi
7740fi
7741
7742LD="$acl_cv_path_LD"
7743if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007745$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007748$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007749fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007750test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007752$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007753if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007754 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007755else
7756 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7757case `$LD -v 2>&1 </dev/null` in
7758*GNU* | *'with BFD'*)
7759 acl_cv_prog_gnu_ld=yes ;;
7760*)
7761 acl_cv_prog_gnu_ld=no ;;
7762esac
7763fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007765$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007766with_gnu_ld=$acl_cv_prog_gnu_ld
7767
7768
7769
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007771$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007772if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007773 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774else
7775
7776 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7777 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7778 . ./conftest.sh
7779 rm -f ./conftest.sh
7780 acl_cv_rpath=done
7781
7782fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007784$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007785 wl="$acl_cv_wl"
7786 libext="$acl_cv_libext"
7787 shlibext="$acl_cv_shlibext"
7788 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7789 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7790 hardcode_direct="$acl_cv_hardcode_direct"
7791 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007792 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007793if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007794 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007795else
7796 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007797fi
7798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007799
7800
7801
7802
7803
7804
7805
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007806 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007807
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007808 acl_save_prefix="$prefix"
7809 prefix="$acl_final_prefix"
7810 acl_save_exec_prefix="$exec_prefix"
7811 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007813 eval additional_includedir=\"$includedir\"
7814 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007815
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007816 exec_prefix="$acl_save_exec_prefix"
7817 prefix="$acl_save_prefix"
7818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007819
Theodore Ts'oe1052142006-10-21 21:46:47 -04007820# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007821if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007822 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007823 if test "X$withval" = "Xno"; then
7824 use_additional=no
7825 else
7826 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007827
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007828 acl_save_prefix="$prefix"
7829 prefix="$acl_final_prefix"
7830 acl_save_exec_prefix="$exec_prefix"
7831 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007832
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007833 eval additional_includedir=\"$includedir\"
7834 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007836 exec_prefix="$acl_save_exec_prefix"
7837 prefix="$acl_save_prefix"
7838
7839 else
7840 additional_includedir="$withval/include"
7841 additional_libdir="$withval/lib"
7842 fi
7843 fi
7844
Theodore Ts'oe1052142006-10-21 21:46:47 -04007845fi
7846
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007847 LIBICONV=
7848 LTLIBICONV=
7849 INCICONV=
7850 rpathdirs=
7851 ltrpathdirs=
7852 names_already_handled=
7853 names_next_round='iconv '
7854 while test -n "$names_next_round"; do
7855 names_this_round="$names_next_round"
7856 names_next_round=
7857 for name in $names_this_round; do
7858 already_handled=
7859 for n in $names_already_handled; do
7860 if test "$n" = "$name"; then
7861 already_handled=yes
7862 break
7863 fi
7864 done
7865 if test -z "$already_handled"; then
7866 names_already_handled="$names_already_handled $name"
7867 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7868 eval value=\"\$HAVE_LIB$uppername\"
7869 if test -n "$value"; then
7870 if test "$value" = yes; then
7871 eval value=\"\$LIB$uppername\"
7872 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7873 eval value=\"\$LTLIB$uppername\"
7874 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7875 else
7876 :
7877 fi
7878 else
7879 found_dir=
7880 found_la=
7881 found_so=
7882 found_a=
7883 if test $use_additional = yes; then
7884 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7885 found_dir="$additional_libdir"
7886 found_so="$additional_libdir/lib$name.$shlibext"
7887 if test -f "$additional_libdir/lib$name.la"; then
7888 found_la="$additional_libdir/lib$name.la"
7889 fi
7890 else
7891 if test -f "$additional_libdir/lib$name.$libext"; then
7892 found_dir="$additional_libdir"
7893 found_a="$additional_libdir/lib$name.$libext"
7894 if test -f "$additional_libdir/lib$name.la"; then
7895 found_la="$additional_libdir/lib$name.la"
7896 fi
7897 fi
7898 fi
7899 fi
7900 if test "X$found_dir" = "X"; then
7901 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007902
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007903 acl_save_prefix="$prefix"
7904 prefix="$acl_final_prefix"
7905 acl_save_exec_prefix="$exec_prefix"
7906 exec_prefix="$acl_final_exec_prefix"
7907 eval x=\"$x\"
7908 exec_prefix="$acl_save_exec_prefix"
7909 prefix="$acl_save_prefix"
7910
7911 case "$x" in
7912 -L*)
7913 dir=`echo "X$x" | sed -e 's/^X-L//'`
7914 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7915 found_dir="$dir"
7916 found_so="$dir/lib$name.$shlibext"
7917 if test -f "$dir/lib$name.la"; then
7918 found_la="$dir/lib$name.la"
7919 fi
7920 else
7921 if test -f "$dir/lib$name.$libext"; then
7922 found_dir="$dir"
7923 found_a="$dir/lib$name.$libext"
7924 if test -f "$dir/lib$name.la"; then
7925 found_la="$dir/lib$name.la"
7926 fi
7927 fi
7928 fi
7929 ;;
7930 esac
7931 if test "X$found_dir" != "X"; then
7932 break
7933 fi
7934 done
7935 fi
7936 if test "X$found_dir" != "X"; then
7937 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7938 if test "X$found_so" != "X"; then
7939 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7940 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7941 else
7942 haveit=
7943 for x in $ltrpathdirs; do
7944 if test "X$x" = "X$found_dir"; then
7945 haveit=yes
7946 break
7947 fi
7948 done
7949 if test -z "$haveit"; then
7950 ltrpathdirs="$ltrpathdirs $found_dir"
7951 fi
7952 if test "$hardcode_direct" = yes; then
7953 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7954 else
7955 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7956 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7957 haveit=
7958 for x in $rpathdirs; do
7959 if test "X$x" = "X$found_dir"; then
7960 haveit=yes
7961 break
7962 fi
7963 done
7964 if test -z "$haveit"; then
7965 rpathdirs="$rpathdirs $found_dir"
7966 fi
7967 else
7968 haveit=
7969 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007970
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007971 acl_save_prefix="$prefix"
7972 prefix="$acl_final_prefix"
7973 acl_save_exec_prefix="$exec_prefix"
7974 exec_prefix="$acl_final_exec_prefix"
7975 eval x=\"$x\"
7976 exec_prefix="$acl_save_exec_prefix"
7977 prefix="$acl_save_prefix"
7978
7979 if test "X$x" = "X-L$found_dir"; then
7980 haveit=yes
7981 break
7982 fi
7983 done
7984 if test -z "$haveit"; then
7985 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7986 fi
7987 if test "$hardcode_minus_L" != no; then
7988 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7989 else
7990 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7991 fi
7992 fi
7993 fi
7994 fi
7995 else
7996 if test "X$found_a" != "X"; then
7997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7998 else
7999 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8000 fi
8001 fi
8002 additional_includedir=
8003 case "$found_dir" in
8004 */lib | */lib/)
8005 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8006 additional_includedir="$basedir/include"
8007 ;;
8008 esac
8009 if test "X$additional_includedir" != "X"; then
8010 if test "X$additional_includedir" != "X/usr/include"; then
8011 haveit=
8012 if test "X$additional_includedir" = "X/usr/local/include"; then
8013 if test -n "$GCC"; then
8014 case $host_os in
8015 linux*) haveit=yes;;
8016 esac
8017 fi
8018 fi
8019 if test -z "$haveit"; then
8020 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008021
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008022 acl_save_prefix="$prefix"
8023 prefix="$acl_final_prefix"
8024 acl_save_exec_prefix="$exec_prefix"
8025 exec_prefix="$acl_final_exec_prefix"
8026 eval x=\"$x\"
8027 exec_prefix="$acl_save_exec_prefix"
8028 prefix="$acl_save_prefix"
8029
8030 if test "X$x" = "X-I$additional_includedir"; then
8031 haveit=yes
8032 break
8033 fi
8034 done
8035 if test -z "$haveit"; then
8036 if test -d "$additional_includedir"; then
8037 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8038 fi
8039 fi
8040 fi
8041 fi
8042 fi
8043 if test -n "$found_la"; then
8044 save_libdir="$libdir"
8045 case "$found_la" in
8046 */* | *\\*) . "$found_la" ;;
8047 *) . "./$found_la" ;;
8048 esac
8049 libdir="$save_libdir"
8050 for dep in $dependency_libs; do
8051 case "$dep" in
8052 -L*)
8053 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8054 if test "X$additional_libdir" != "X/usr/lib"; then
8055 haveit=
8056 if test "X$additional_libdir" = "X/usr/local/lib"; then
8057 if test -n "$GCC"; then
8058 case $host_os in
8059 linux*) haveit=yes;;
8060 esac
8061 fi
8062 fi
8063 if test -z "$haveit"; then
8064 haveit=
8065 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008066
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008067 acl_save_prefix="$prefix"
8068 prefix="$acl_final_prefix"
8069 acl_save_exec_prefix="$exec_prefix"
8070 exec_prefix="$acl_final_exec_prefix"
8071 eval x=\"$x\"
8072 exec_prefix="$acl_save_exec_prefix"
8073 prefix="$acl_save_prefix"
8074
8075 if test "X$x" = "X-L$additional_libdir"; then
8076 haveit=yes
8077 break
8078 fi
8079 done
8080 if test -z "$haveit"; then
8081 if test -d "$additional_libdir"; then
8082 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8083 fi
8084 fi
8085 haveit=
8086 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008087
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008088 acl_save_prefix="$prefix"
8089 prefix="$acl_final_prefix"
8090 acl_save_exec_prefix="$exec_prefix"
8091 exec_prefix="$acl_final_exec_prefix"
8092 eval x=\"$x\"
8093 exec_prefix="$acl_save_exec_prefix"
8094 prefix="$acl_save_prefix"
8095
8096 if test "X$x" = "X-L$additional_libdir"; then
8097 haveit=yes
8098 break
8099 fi
8100 done
8101 if test -z "$haveit"; then
8102 if test -d "$additional_libdir"; then
8103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8104 fi
8105 fi
8106 fi
8107 fi
8108 ;;
8109 -R*)
8110 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8111 if test "$enable_rpath" != no; then
8112 haveit=
8113 for x in $rpathdirs; do
8114 if test "X$x" = "X$dir"; then
8115 haveit=yes
8116 break
8117 fi
8118 done
8119 if test -z "$haveit"; then
8120 rpathdirs="$rpathdirs $dir"
8121 fi
8122 haveit=
8123 for x in $ltrpathdirs; do
8124 if test "X$x" = "X$dir"; then
8125 haveit=yes
8126 break
8127 fi
8128 done
8129 if test -z "$haveit"; then
8130 ltrpathdirs="$ltrpathdirs $dir"
8131 fi
8132 fi
8133 ;;
8134 -l*)
8135 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8136 ;;
8137 *.la)
8138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8139 ;;
8140 *)
8141 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8142 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8143 ;;
8144 esac
8145 done
8146 fi
8147 else
8148 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8149 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8150 fi
8151 fi
8152 fi
8153 done
8154 done
8155 if test "X$rpathdirs" != "X"; then
8156 if test -n "$hardcode_libdir_separator"; then
8157 alldirs=
8158 for found_dir in $rpathdirs; do
8159 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8160 done
8161 acl_save_libdir="$libdir"
8162 libdir="$alldirs"
8163 eval flag=\"$hardcode_libdir_flag_spec\"
8164 libdir="$acl_save_libdir"
8165 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8166 else
8167 for found_dir in $rpathdirs; do
8168 acl_save_libdir="$libdir"
8169 libdir="$found_dir"
8170 eval flag=\"$hardcode_libdir_flag_spec\"
8171 libdir="$acl_save_libdir"
8172 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8173 done
8174 fi
8175 fi
8176 if test "X$ltrpathdirs" != "X"; then
8177 for found_dir in $ltrpathdirs; do
8178 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8179 done
8180 fi
8181
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008182
8183
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008184
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008185
8186
8187
8188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008189 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8190if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008191
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008192else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008193
8194$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008195
8196
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008197fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008198
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008199 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 -04008200stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008201do :
8202 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8203ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8204eval as_val=\$$as_ac_Header
8205 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008206 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008207#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008208_ACEOF
8209
8210fi
8211
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008212done
8213
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008214 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008215mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8216strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8217__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008218do :
8219 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8220ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8221eval as_val=\$$as_ac_var
8222 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008223 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008224#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008225_ACEOF
8226
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008227fi
8228done
8229
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008230
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008231
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008233$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008234if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008235 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008236else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008238/* end confdefs.h. */
8239#include <stdio.h>
8240int
8241main ()
8242{
8243
8244#ifndef _snprintf
8245 char *p = (char *) _snprintf;
8246#endif
8247
8248 ;
8249 return 0;
8250}
8251_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008252if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008253 ac_cv_have_decl__snprintf=yes
8254else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008255 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008256fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008258fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008260$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008261 if test $ac_cv_have_decl__snprintf = yes; then
8262 gt_value=1
8263 else
8264 gt_value=0
8265 fi
8266
8267cat >>confdefs.h <<_ACEOF
8268#define HAVE_DECL__SNPRINTF $gt_value
8269_ACEOF
8270
8271
8272
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008274$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008275if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008276 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008277else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008279/* end confdefs.h. */
8280#include <stdio.h>
8281int
8282main ()
8283{
8284
8285#ifndef _snwprintf
8286 char *p = (char *) _snwprintf;
8287#endif
8288
8289 ;
8290 return 0;
8291}
8292_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008293if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008294 ac_cv_have_decl__snwprintf=yes
8295else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008296 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008297fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008299fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008301$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302 if test $ac_cv_have_decl__snwprintf = yes; then
8303 gt_value=1
8304 else
8305 gt_value=0
8306 fi
8307
8308cat >>confdefs.h <<_ACEOF
8309#define HAVE_DECL__SNWPRINTF $gt_value
8310_ACEOF
8311
8312
8313
8314
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008316$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008317if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008318 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008319else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008321/* end confdefs.h. */
8322#include <stdio.h>
8323int
8324main ()
8325{
8326
8327#ifndef feof_unlocked
8328 char *p = (char *) feof_unlocked;
8329#endif
8330
8331 ;
8332 return 0;
8333}
8334_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008335if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008336 ac_cv_have_decl_feof_unlocked=yes
8337else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008338 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008343$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344 if test $ac_cv_have_decl_feof_unlocked = yes; then
8345 gt_value=1
8346 else
8347 gt_value=0
8348 fi
8349
8350cat >>confdefs.h <<_ACEOF
8351#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8352_ACEOF
8353
8354
8355
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008357$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008358if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008359 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008362/* end confdefs.h. */
8363#include <stdio.h>
8364int
8365main ()
8366{
8367
8368#ifndef fgets_unlocked
8369 char *p = (char *) fgets_unlocked;
8370#endif
8371
8372 ;
8373 return 0;
8374}
8375_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008376if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008377 ac_cv_have_decl_fgets_unlocked=yes
8378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008379 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008380fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008384$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008385 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8386 gt_value=1
8387 else
8388 gt_value=0
8389 fi
8390
8391cat >>confdefs.h <<_ACEOF
8392#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8393_ACEOF
8394
8395
8396
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008398$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008399if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008400 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008401else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008403/* end confdefs.h. */
8404#include <stdio.h>
8405int
8406main ()
8407{
8408
8409#ifndef getc_unlocked
8410 char *p = (char *) getc_unlocked;
8411#endif
8412
8413 ;
8414 return 0;
8415}
8416_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008417if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008418 ac_cv_have_decl_getc_unlocked=yes
8419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008420 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008423fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008425$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008426 if test $ac_cv_have_decl_getc_unlocked = yes; then
8427 gt_value=1
8428 else
8429 gt_value=0
8430 fi
8431
8432cat >>confdefs.h <<_ACEOF
8433#define HAVE_DECL_GETC_UNLOCKED $gt_value
8434_ACEOF
8435
8436
8437
8438 case $gt_cv_func_printf_posix in
8439 *yes) HAVE_POSIX_PRINTF=1 ;;
8440 *) HAVE_POSIX_PRINTF=0 ;;
8441 esac
8442
8443 if test "$ac_cv_func_asprintf" = yes; then
8444 HAVE_ASPRINTF=1
8445 else
8446 HAVE_ASPRINTF=0
8447 fi
8448
8449 if test "$ac_cv_func_snprintf" = yes; then
8450 HAVE_SNPRINTF=1
8451 else
8452 HAVE_SNPRINTF=0
8453 fi
8454
8455 if test "$ac_cv_func_wprintf" = yes; then
8456 HAVE_WPRINTF=1
8457 else
8458 HAVE_WPRINTF=0
8459 fi
8460
8461
8462
8463
8464
8465
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008466
8467 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008468
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008469 for element in $INCICONV; do
8470 haveit=
8471 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008472
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008473 acl_save_prefix="$prefix"
8474 prefix="$acl_final_prefix"
8475 acl_save_exec_prefix="$exec_prefix"
8476 exec_prefix="$acl_final_exec_prefix"
8477 eval x=\"$x\"
8478 exec_prefix="$acl_save_exec_prefix"
8479 prefix="$acl_save_prefix"
8480
8481 if test "X$x" = "X$element"; then
8482 haveit=yes
8483 break
8484 fi
8485 done
8486 if test -z "$haveit"; then
8487 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8488 fi
8489 done
8490
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008491
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008493$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008494if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008495 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008496else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008497
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008498 am_cv_func_iconv="no, consider installing GNU libiconv"
8499 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008501/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008502#include <stdlib.h>
8503#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008504int
8505main ()
8506{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008507iconv_t cd = iconv_open("","");
8508 iconv(cd,NULL,NULL,NULL,NULL);
8509 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008510 ;
8511 return 0;
8512}
8513_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008514if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008515 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008516fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008517rm -f core conftest.err conftest.$ac_objext \
8518 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008519 if test "$am_cv_func_iconv" != yes; then
8520 am_save_LIBS="$LIBS"
8521 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008523/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008524#include <stdlib.h>
8525#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008526int
8527main ()
8528{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008529iconv_t cd = iconv_open("","");
8530 iconv(cd,NULL,NULL,NULL,NULL);
8531 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008532 ;
8533 return 0;
8534}
8535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008536if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008537 am_cv_lib_iconv=yes
8538 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008539fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008540rm -f core conftest.err conftest.$ac_objext \
8541 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008542 LIBS="$am_save_LIBS"
8543 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008547$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008548 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008550$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008551
8552 fi
8553 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008555$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008557$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008558 else
8559 CPPFLAGS="$am_save_CPPFLAGS"
8560 LIBICONV=
8561 LTLIBICONV=
8562 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008563
8564
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008565
8566 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008568$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008569 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008570 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008574/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008575
8576#include <stdlib.h>
8577#include <iconv.h>
8578extern
8579#ifdef __cplusplus
8580"C"
8581#endif
8582#if defined(__STDC__) || defined(__cplusplus)
8583size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8584#else
8585size_t iconv();
8586#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008588int
8589main ()
8590{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592 ;
8593 return 0;
8594}
8595_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008596if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008597 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008598else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008599 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008600fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008602 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 +00008603fi
8604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008605 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008607 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008608$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008609 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008610
8611cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008612#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008613_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008614
8615 fi
8616
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008617
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008619$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008620if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008621 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008622else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008624/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008625#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008626int
8627main ()
8628{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008629char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008630 ;
8631 return 0;
8632}
8633_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008634if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008635 am_cv_langinfo_codeset=yes
8636else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008637 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008638fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008639rm -f core conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008641
8642fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008644$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008645 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008647$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008649 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008650
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008651 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008652
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008654$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008655if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008656 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008657else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008660#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008661int
8662main ()
8663{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008664return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008665 ;
8666 return 0;
8667}
8668_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008669if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008670 am_cv_val_LC_MESSAGES=yes
8671else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008672 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008673fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008674rm -f core conftest.err conftest.$ac_objext \
8675 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008676fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008678$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008679 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008681$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008682
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008683 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008684
8685 fi
8686
8687 for ac_prog in bison
8688do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008689 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008690set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008692$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008693if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008694 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008695else
8696 if test -n "$INTLBISON"; then
8697 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8698else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8700for as_dir in $PATH
8701do
8702 IFS=$as_save_IFS
8703 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008704 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008705 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 -05008706 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008708 break 2
8709 fi
8710done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008711 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008712IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008713
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008714fi
8715fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008716INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008717if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008719$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008722$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008723fi
8724
Theodore Ts'oe1052142006-10-21 21:46:47 -04008725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008726 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008727done
8728
8729 if test -z "$INTLBISON"; then
8730 ac_verc_fail=yes
8731 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008733$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008734 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8735 case $ac_prog_version in
8736 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8737 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8738 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8739 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8740 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008742$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008743 fi
8744 if test $ac_verc_fail = yes; then
8745 INTLBISON=:
8746 fi
8747
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008748
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008749
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'ob0cacab2004-11-30 19:00:19 -05008753
8754
8755
8756
8757
8758
8759
8760
8761
8762
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008764$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008765 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008766if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008767 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008768else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008769 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008770fi
8771
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008773$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008774
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008776
8777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008779 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 LIBINTL=
8782 LTLIBINTL=
8783 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008784
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008785 if test "$USE_NLS" = "yes"; then
8786 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008787
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008789$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008790
Theodore Ts'oe1052142006-10-21 21:46:47 -04008791# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008792if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008793 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008794else
8795 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008796fi
8797
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008799$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008800
8801 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8802 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008803
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008804
8805
8806
8807
8808
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008810$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008811if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008812 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008813else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008816#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008817extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008818extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008819int
8820main ()
8821{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008822bindtextdomain ("", "");
8823return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008824 ;
8825 return 0;
8826}
8827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008828if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008829 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008830else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008831 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008832fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008833rm -f core conftest.err conftest.$ac_objext \
8834 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008837$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008838
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008840
8841
8842
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008843 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008844
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008845 acl_save_prefix="$prefix"
8846 prefix="$acl_final_prefix"
8847 acl_save_exec_prefix="$exec_prefix"
8848 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008849
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008850 eval additional_includedir=\"$includedir\"
8851 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008853 exec_prefix="$acl_save_exec_prefix"
8854 prefix="$acl_save_prefix"
8855
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008856
Theodore Ts'oe1052142006-10-21 21:46:47 -04008857# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008858if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008859 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008860 if test "X$withval" = "Xno"; then
8861 use_additional=no
8862 else
8863 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008864
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008865 acl_save_prefix="$prefix"
8866 prefix="$acl_final_prefix"
8867 acl_save_exec_prefix="$exec_prefix"
8868 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008870 eval additional_includedir=\"$includedir\"
8871 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008872
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008873 exec_prefix="$acl_save_exec_prefix"
8874 prefix="$acl_save_prefix"
8875
8876 else
8877 additional_includedir="$withval/include"
8878 additional_libdir="$withval/lib"
8879 fi
8880 fi
8881
Theodore Ts'oe1052142006-10-21 21:46:47 -04008882fi
8883
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008884 LIBINTL=
8885 LTLIBINTL=
8886 INCINTL=
8887 rpathdirs=
8888 ltrpathdirs=
8889 names_already_handled=
8890 names_next_round='intl '
8891 while test -n "$names_next_round"; do
8892 names_this_round="$names_next_round"
8893 names_next_round=
8894 for name in $names_this_round; do
8895 already_handled=
8896 for n in $names_already_handled; do
8897 if test "$n" = "$name"; then
8898 already_handled=yes
8899 break
8900 fi
8901 done
8902 if test -z "$already_handled"; then
8903 names_already_handled="$names_already_handled $name"
8904 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8905 eval value=\"\$HAVE_LIB$uppername\"
8906 if test -n "$value"; then
8907 if test "$value" = yes; then
8908 eval value=\"\$LIB$uppername\"
8909 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8910 eval value=\"\$LTLIB$uppername\"
8911 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8912 else
8913 :
8914 fi
8915 else
8916 found_dir=
8917 found_la=
8918 found_so=
8919 found_a=
8920 if test $use_additional = yes; then
8921 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8922 found_dir="$additional_libdir"
8923 found_so="$additional_libdir/lib$name.$shlibext"
8924 if test -f "$additional_libdir/lib$name.la"; then
8925 found_la="$additional_libdir/lib$name.la"
8926 fi
8927 else
8928 if test -f "$additional_libdir/lib$name.$libext"; then
8929 found_dir="$additional_libdir"
8930 found_a="$additional_libdir/lib$name.$libext"
8931 if test -f "$additional_libdir/lib$name.la"; then
8932 found_la="$additional_libdir/lib$name.la"
8933 fi
8934 fi
8935 fi
8936 fi
8937 if test "X$found_dir" = "X"; then
8938 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008939
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008940 acl_save_prefix="$prefix"
8941 prefix="$acl_final_prefix"
8942 acl_save_exec_prefix="$exec_prefix"
8943 exec_prefix="$acl_final_exec_prefix"
8944 eval x=\"$x\"
8945 exec_prefix="$acl_save_exec_prefix"
8946 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008947
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008948 case "$x" in
8949 -L*)
8950 dir=`echo "X$x" | sed -e 's/^X-L//'`
8951 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8952 found_dir="$dir"
8953 found_so="$dir/lib$name.$shlibext"
8954 if test -f "$dir/lib$name.la"; then
8955 found_la="$dir/lib$name.la"
8956 fi
8957 else
8958 if test -f "$dir/lib$name.$libext"; then
8959 found_dir="$dir"
8960 found_a="$dir/lib$name.$libext"
8961 if test -f "$dir/lib$name.la"; then
8962 found_la="$dir/lib$name.la"
8963 fi
8964 fi
8965 fi
8966 ;;
8967 esac
8968 if test "X$found_dir" != "X"; then
8969 break
8970 fi
8971 done
8972 fi
8973 if test "X$found_dir" != "X"; then
8974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8975 if test "X$found_so" != "X"; then
8976 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8977 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8978 else
8979 haveit=
8980 for x in $ltrpathdirs; do
8981 if test "X$x" = "X$found_dir"; then
8982 haveit=yes
8983 break
8984 fi
8985 done
8986 if test -z "$haveit"; then
8987 ltrpathdirs="$ltrpathdirs $found_dir"
8988 fi
8989 if test "$hardcode_direct" = yes; then
8990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8991 else
8992 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8993 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8994 haveit=
8995 for x in $rpathdirs; do
8996 if test "X$x" = "X$found_dir"; then
8997 haveit=yes
8998 break
8999 fi
9000 done
9001 if test -z "$haveit"; then
9002 rpathdirs="$rpathdirs $found_dir"
9003 fi
9004 else
9005 haveit=
9006 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009007
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009008 acl_save_prefix="$prefix"
9009 prefix="$acl_final_prefix"
9010 acl_save_exec_prefix="$exec_prefix"
9011 exec_prefix="$acl_final_exec_prefix"
9012 eval x=\"$x\"
9013 exec_prefix="$acl_save_exec_prefix"
9014 prefix="$acl_save_prefix"
9015
9016 if test "X$x" = "X-L$found_dir"; then
9017 haveit=yes
9018 break
9019 fi
9020 done
9021 if test -z "$haveit"; then
9022 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9023 fi
9024 if test "$hardcode_minus_L" != no; then
9025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9026 else
9027 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9028 fi
9029 fi
9030 fi
9031 fi
9032 else
9033 if test "X$found_a" != "X"; then
9034 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9035 else
9036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9037 fi
9038 fi
9039 additional_includedir=
9040 case "$found_dir" in
9041 */lib | */lib/)
9042 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9043 additional_includedir="$basedir/include"
9044 ;;
9045 esac
9046 if test "X$additional_includedir" != "X"; then
9047 if test "X$additional_includedir" != "X/usr/include"; then
9048 haveit=
9049 if test "X$additional_includedir" = "X/usr/local/include"; then
9050 if test -n "$GCC"; then
9051 case $host_os in
9052 linux*) haveit=yes;;
9053 esac
9054 fi
9055 fi
9056 if test -z "$haveit"; then
9057 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009058
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009059 acl_save_prefix="$prefix"
9060 prefix="$acl_final_prefix"
9061 acl_save_exec_prefix="$exec_prefix"
9062 exec_prefix="$acl_final_exec_prefix"
9063 eval x=\"$x\"
9064 exec_prefix="$acl_save_exec_prefix"
9065 prefix="$acl_save_prefix"
9066
9067 if test "X$x" = "X-I$additional_includedir"; then
9068 haveit=yes
9069 break
9070 fi
9071 done
9072 if test -z "$haveit"; then
9073 if test -d "$additional_includedir"; then
9074 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9075 fi
9076 fi
9077 fi
9078 fi
9079 fi
9080 if test -n "$found_la"; then
9081 save_libdir="$libdir"
9082 case "$found_la" in
9083 */* | *\\*) . "$found_la" ;;
9084 *) . "./$found_la" ;;
9085 esac
9086 libdir="$save_libdir"
9087 for dep in $dependency_libs; do
9088 case "$dep" in
9089 -L*)
9090 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9091 if test "X$additional_libdir" != "X/usr/lib"; then
9092 haveit=
9093 if test "X$additional_libdir" = "X/usr/local/lib"; then
9094 if test -n "$GCC"; then
9095 case $host_os in
9096 linux*) haveit=yes;;
9097 esac
9098 fi
9099 fi
9100 if test -z "$haveit"; then
9101 haveit=
9102 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009103
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9108 eval x=\"$x\"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9111
9112 if test "X$x" = "X-L$additional_libdir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9120 fi
9121 fi
9122 haveit=
9123 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009124
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9129 eval x=\"$x\"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9132
9133 if test "X$x" = "X-L$additional_libdir"; then
9134 haveit=yes
9135 break
9136 fi
9137 done
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9141 fi
9142 fi
9143 fi
9144 fi
9145 ;;
9146 -R*)
9147 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9149 haveit=
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9152 haveit=yes
9153 break
9154 fi
9155 done
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9158 fi
9159 haveit=
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9162 haveit=yes
9163 break
9164 fi
9165 done
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9168 fi
9169 fi
9170 ;;
9171 -l*)
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173 ;;
9174 *.la)
9175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176 ;;
9177 *)
9178 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9179 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9180 ;;
9181 esac
9182 done
9183 fi
9184 else
9185 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9186 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9187 fi
9188 fi
9189 fi
9190 done
9191 done
9192 if test "X$rpathdirs" != "X"; then
9193 if test -n "$hardcode_libdir_separator"; then
9194 alldirs=
9195 for found_dir in $rpathdirs; do
9196 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9197 done
9198 acl_save_libdir="$libdir"
9199 libdir="$alldirs"
9200 eval flag=\"$hardcode_libdir_flag_spec\"
9201 libdir="$acl_save_libdir"
9202 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9203 else
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9206 libdir="$found_dir"
9207 eval flag=\"$hardcode_libdir_flag_spec\"
9208 libdir="$acl_save_libdir"
9209 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9210 done
9211 fi
9212 fi
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9216 done
9217 fi
9218
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009220$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009221if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009222 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009223else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009224 gt_save_CPPFLAGS="$CPPFLAGS"
9225 CPPFLAGS="$CPPFLAGS $INCINTL"
9226 gt_save_LIBS="$LIBS"
9227 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009230#include <libintl.h>
9231extern int _nl_msg_cat_cntr;
9232extern
9233#ifdef __cplusplus
9234"C"
9235#endif
9236const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009237int
9238main ()
9239{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009240bindtextdomain ("", "");
9241return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009242 ;
9243 return 0;
9244}
9245_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009246if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009247 gt_cv_func_gnugettext1_libintl=yes
9248else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009249 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009250fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009251rm -f core conftest.err conftest.$ac_objext \
9252 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009253 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9254 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009256/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257#include <libintl.h>
9258extern int _nl_msg_cat_cntr;
9259extern
9260#ifdef __cplusplus
9261"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009262#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009263const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264int
9265main ()
9266{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267bindtextdomain ("", "");
9268return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269 ;
9270 return 0;
9271}
9272_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009273if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274 LIBINTL="$LIBINTL $LIBICONV"
9275 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9276 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009278fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009279rm -f core conftest.err conftest.$ac_objext \
9280 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 fi
9282 CPPFLAGS="$gt_save_CPPFLAGS"
9283 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009284fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009286$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009287 fi
9288
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009289 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9290 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291 && test "$PACKAGE" != gettext-runtime \
9292 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009293 gt_use_preinstalled_gnugettext=yes
9294 else
9295 LIBINTL=
9296 LTLIBINTL=
9297 INCINTL=
9298 fi
9299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009301 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9302 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009303 fi
9304 fi
9305
9306 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009307 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009308 USE_INCLUDED_LIBINTL=yes
9309 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9310 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9311 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009312 fi
9313
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009314 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9315 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9316 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009317 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009319
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009320 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9321 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009322
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009323$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009324
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325 else
9326 USE_NLS=no
9327 fi
9328 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009329
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009331$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009333$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009334 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009336$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009337 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9338 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9339 gt_source="external libintl"
9340 else
9341 gt_source="libc"
9342 fi
9343 else
9344 gt_source="included intl directory"
9345 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009347$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009348 fi
9349
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009350 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009351
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009352 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9353 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009355$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009357$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009358
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009359 for element in $INCINTL; do
9360 haveit=
9361 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009362
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009363 acl_save_prefix="$prefix"
9364 prefix="$acl_final_prefix"
9365 acl_save_exec_prefix="$exec_prefix"
9366 exec_prefix="$acl_final_exec_prefix"
9367 eval x=\"$x\"
9368 exec_prefix="$acl_save_exec_prefix"
9369 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009370
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009371 if test "X$x" = "X$element"; then
9372 haveit=yes
9373 break
9374 fi
9375 done
9376 if test -z "$haveit"; then
9377 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9378 fi
9379 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009380
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009381 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009382
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009384$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009385
9386
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009387$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009388
9389 fi
9390
9391 POSUB=po
9392 fi
9393
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009394
9395 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009396 BUILD_INCLUDED_LIBINTL=yes
9397 fi
9398
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009399
9400
9401
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009402
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009403 nls_cv_header_intl=
9404 nls_cv_header_libgt=
9405
9406 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009408
9409 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009411
9412 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009413
9414
9415 if test "$USE_INCLUDED_LIBINTL" = yes; then
9416 INTLOBJS="\$(GETTOBJS)"
9417 fi
9418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009419
9420 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009421
9422
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009423
9424 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009425
9426
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009427
9428
9429
9430
9431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009433$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9434set x ${MAKE-make}
9435ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009436if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009437 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009438else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009439 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009440SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009441all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009442 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009443_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009444# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009445case `${MAKE-make} -f conftest.make 2>/dev/null` in
9446 *@@@%%%=?*=@@@%%%*)
9447 eval ac_cv_prog_make_${ac_make}_set=yes;;
9448 *)
9449 eval ac_cv_prog_make_${ac_make}_set=no;;
9450esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009451rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009452fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009453if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009455$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009456 SET_MAKE=
9457else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009459$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009460 SET_MAKE="MAKE=${MAKE-make}"
9461fi
9462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009464$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009465if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009466 $as_echo_n "(cached) " >&6
9467else
9468 _cv_gnu_make_command='' ;
9469 for a in "$MAKE" make gmake gnumake ; do
9470 if test -z "$a" ; then continue ; fi ;
9471 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9472 _cv_gnu_make_command=$a ;
9473 break;
9474 fi
9475 done ;
9476
9477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009479$as_echo "$_cv_gnu_make_command" >&6; } ;
9480 if test "x$_cv_gnu_make_command" != "x" ; then
9481 ifGNUmake='' ;
9482 ifNotGNUmake='#' ;
9483 else
9484 ifGNUmake='#' ;
9485 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009487$as_echo "\"Not found\"" >&6; };
9488 fi
9489
9490
9491
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009492# Extract the first word of "ln", so it can be a program name with args.
9493set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009495$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009496if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009497 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009498else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499 case $LN in
9500 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009501 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9502 ;;
9503 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9505for as_dir in $PATH
9506do
9507 IFS=$as_save_IFS
9508 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009509 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009510 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 -05009511 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009513 break 2
9514 fi
9515done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009516 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009517IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009518
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009519 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9520 ;;
9521esac
9522fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009524if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009526$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009527else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009529$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009530fi
9531
Theodore Ts'oe1052142006-10-21 21:46:47 -04009532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009534$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535LN_S=$as_ln_s
9536if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009538$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009541$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009542fi
9543
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009544# Extract the first word of "mv", so it can be a program name with args.
9545set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009547$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009548if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009549 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009550else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009551 case $MV in
9552 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009553 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9554 ;;
9555 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557for as_dir in $PATH
9558do
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009561 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009562 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 -05009563 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009565 break 2
9566 fi
9567done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009569IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009570
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009571 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9572 ;;
9573esac
9574fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009576if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009578$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009579else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009581$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009582fi
9583
Theodore Ts'oe1052142006-10-21 21:46:47 -04009584
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009585# Extract the first word of "cp", so it can be a program name with args.
9586set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009588$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009589if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009590 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009591else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592 case $CP in
9593 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009594 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9595 ;;
9596 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9598for as_dir in $PATH
9599do
9600 IFS=$as_save_IFS
9601 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009602 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009603 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 -05009604 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606 break 2
9607 fi
9608done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009610IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009611
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009612 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9613 ;;
9614esac
9615fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009617if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009619$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009622$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009623fi
9624
Theodore Ts'oe1052142006-10-21 21:46:47 -04009625
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009626# Extract the first word of "rm", so it can be a program name with args.
9627set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009629$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009630if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009631 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009632else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009633 case $RM in
9634 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009635 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9636 ;;
9637 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9639for as_dir in $PATH
9640do
9641 IFS=$as_save_IFS
9642 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009643 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009644 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 -05009645 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009647 break 2
9648 fi
9649done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009650 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009651IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009652
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009653 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9654 ;;
9655esac
9656fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009657RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009658if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009660$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009661else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009663$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009664fi
9665
Theodore Ts'oe1052142006-10-21 21:46:47 -04009666
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009667# Extract the first word of "chmod", so it can be a program name with args.
9668set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009670$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009671if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009672 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009673else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009674 case $CHMOD in
9675 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009676 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9677 ;;
9678 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680for as_dir in $PATH
9681do
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009684 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009685 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 -05009686 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009688 break 2
9689 fi
9690done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009691 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009692IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009693
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009694 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9695 ;;
9696esac
9697fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009699if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009701$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009702else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009704$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009705fi
9706
Theodore Ts'oe1052142006-10-21 21:46:47 -04009707
Theodore Ts'o32237012005-01-17 19:13:39 -05009708for ac_prog in gawk mawk nawk awk
9709do
9710 # Extract the first word of "$ac_prog", so it can be a program name with args.
9711set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009713$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009714if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009715 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009716else
Theodore Ts'o32237012005-01-17 19:13:39 -05009717 if test -n "$AWK"; then
9718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9719else
9720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009721for as_dir in $PATH
9722do
9723 IFS=$as_save_IFS
9724 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009725 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009726 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 -05009727 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009729 break 2
9730 fi
9731done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009732 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009733IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009734
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009735fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009736fi
9737AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009738if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009740$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009741else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009743$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009744fi
9745
Theodore Ts'oe1052142006-10-21 21:46:47 -04009746
Theodore Ts'o32237012005-01-17 19:13:39 -05009747 test -n "$AWK" && break
9748done
9749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009751$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009753 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009754else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009755 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9756 then ac_cv_path_EGREP="$GREP -E"
9757 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009758 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009759 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009760 # Loop through the user's path and test for each of PROGNAME-LIST
9761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009762for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9763do
9764 IFS=$as_save_IFS
9765 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009766 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009767 for ac_exec_ext in '' $ac_executable_extensions; do
9768 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9769 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9770# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009771 # Check for GNU $ac_path_EGREP
9772case `"$ac_path_EGREP" --version 2>&1` in
9773*GNU*)
9774 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9775*)
9776 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009777 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009778 while :
9779 do
9780 cat "conftest.in" "conftest.in" >"conftest.tmp"
9781 mv "conftest.tmp" "conftest.in"
9782 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009783 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009784 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9785 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009786 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9788 # Best one so far, save it but keep looking for a better one
9789 ac_cv_path_EGREP="$ac_path_EGREP"
9790 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009791 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009792 # 10*(2^10) chars as input seems more than enough
9793 test $ac_count -gt 10 && break
9794 done
9795 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9796esac
9797
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009798 $ac_path_EGREP_found && break 3
9799 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009800 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009801 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009802IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009803 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009804 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 +01009805 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009806else
9807 ac_cv_path_EGREP=$EGREP
9808fi
9809
Theodore Ts'oe1052142006-10-21 21:46:47 -04009810 fi
9811fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009813$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009814 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009815
9816
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009817# Extract the first word of "sed", so it can be a program name with args.
9818set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009820$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009821if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009822 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009823else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824 case $SED in
9825 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009826 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9827 ;;
9828 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9830for as_dir in $PATH
9831do
9832 IFS=$as_save_IFS
9833 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009834 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009835 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 -05009836 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009838 break 2
9839 fi
9840done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009841 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009842IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009843
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009844 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9845 ;;
9846esac
9847fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009848SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009849if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009851$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009852else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009854$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009855fi
9856
Theodore Ts'oe1052142006-10-21 21:46:47 -04009857
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009858# Extract the first word of "perl", so it can be a program name with args.
9859set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009861$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009862if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009863 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009864else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009865 case $PERL in
9866 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009867 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9868 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009869 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871for as_dir in $PATH
9872do
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009875 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009876 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 -05009877 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009879 break 2
9880 fi
9881done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009882 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009883IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009884
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009885 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9886 ;;
9887esac
9888fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009889PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009890if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009892$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009895$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009896fi
9897
Theodore Ts'oe1052142006-10-21 21:46:47 -04009898
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009899# Extract the first word of "ldconfig", so it can be a program name with args.
9900set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009902$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009903if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009904 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906 case $LDCONFIG in
9907 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009908 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9909 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009910 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9912for as_dir in $PATH
9913do
9914 IFS=$as_save_IFS
9915 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009916 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009917 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 -05009918 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009920 break 2
9921 fi
9922done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009923 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009924IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009925
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009926 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9927 ;;
9928esac
9929fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009930LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009931if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009933$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009934else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009936$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009937fi
9938
Theodore Ts'oe1052142006-10-21 21:46:47 -04009939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009940if test -n "$ac_tool_prefix"; then
9941 # 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 +00009942set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009944$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009945if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009946 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009947else
9948 if test -n "$AR"; then
9949 ac_cv_prog_AR="$AR" # Let the user override the test.
9950else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9952for as_dir in $PATH
9953do
9954 IFS=$as_save_IFS
9955 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009956 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009957 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 -05009958 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009960 break 2
9961 fi
9962done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009963 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009964IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009965
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009966fi
9967fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009968AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009969if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009971$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009972else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009974$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009975fi
9976
Theodore Ts'oe1052142006-10-21 21:46:47 -04009977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009978fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009979if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009980 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009981 # Extract the first word of "ar", so it can be a program name with args.
9982set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009984$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009985if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009986 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009987else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009988 if test -n "$ac_ct_AR"; then
9989 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009990else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9992for as_dir in $PATH
9993do
9994 IFS=$as_save_IFS
9995 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009996 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009997 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 -05009998 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010000 break 2
10001 fi
10002done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010003 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010004IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010005
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010006fi
10007fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010008ac_ct_AR=$ac_cv_prog_ac_ct_AR
10009if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010011$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010012else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010014$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010015fi
10016
Theodore Ts'oe1052142006-10-21 21:46:47 -040010017 if test "x$ac_ct_AR" = x; then
10018 AR="ar"
10019 else
10020 case $cross_compiling:$ac_tool_warned in
10021yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010022{ $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 +010010023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010024ac_tool_warned=yes ;;
10025esac
10026 AR=$ac_ct_AR
10027 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010028else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010029 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010030fi
10031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010032if test -n "$ac_tool_prefix"; then
10033 # 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 +000010034set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010036$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010037if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010038 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010039else
10040 if test -n "$RANLIB"; then
10041 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10042else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10044for as_dir in $PATH
10045do
10046 IFS=$as_save_IFS
10047 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010048 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010049 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 -050010050 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010052 break 2
10053 fi
10054done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010055 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010056IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010057
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010058fi
10059fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010060RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010061if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010063$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010066$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010067fi
10068
Theodore Ts'oe1052142006-10-21 21:46:47 -040010069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010070fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010071if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010072 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010073 # Extract the first word of "ranlib", so it can be a program name with args.
10074set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010076$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010077if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010078 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010080 if test -n "$ac_ct_RANLIB"; then
10081 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010088 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010089 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 -050010090 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010092 break 2
10093 fi
10094done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010095 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010096IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010097
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010098fi
10099fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010100ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10101if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010103$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010106$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010107fi
10108
Theodore Ts'oe1052142006-10-21 21:46:47 -040010109 if test "x$ac_ct_RANLIB" = x; then
10110 RANLIB=":"
10111 else
10112 case $cross_compiling:$ac_tool_warned in
10113yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010114{ $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 +010010115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010116ac_tool_warned=yes ;;
10117esac
10118 RANLIB=$ac_ct_RANLIB
10119 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010120else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010121 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010122fi
10123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010124if test -n "$ac_tool_prefix"; then
10125 # 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 +000010126set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010128$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010129if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010130 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131else
10132 if test -n "$STRIP"; then
10133 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10134else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10136for as_dir in $PATH
10137do
10138 IFS=$as_save_IFS
10139 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010140 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010141 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 -050010142 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010144 break 2
10145 fi
10146done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010147 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010148IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010149
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010150fi
10151fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010152STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010153if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010155$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010158$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010159fi
10160
Theodore Ts'oe1052142006-10-21 21:46:47 -040010161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010162fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010163if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010164 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165 # Extract the first word of "strip", so it can be a program name with args.
10166set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010168$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010169if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010170 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010171else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010172 if test -n "$ac_ct_STRIP"; then
10173 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176for as_dir in $PATH
10177do
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010180 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010181 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 -050010182 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010184 break 2
10185 fi
10186done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010187 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010188IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010189
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010190fi
10191fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010192ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10193if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010195$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010196else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010198$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010199fi
10200
Theodore Ts'oe1052142006-10-21 21:46:47 -040010201 if test "x$ac_ct_STRIP" = x; then
10202 STRIP=":"
10203 else
10204 case $cross_compiling:$ac_tool_warned in
10205yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010206{ $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 +010010207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010208ac_tool_warned=yes ;;
10209esac
10210 STRIP=$ac_ct_STRIP
10211 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010212else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010213 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010214fi
10215
Manish Katiyar7321d942008-04-14 17:20:03 +053010216# Extract the first word of "makeinfo", so it can be a program name with args.
10217set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010219$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010220if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010221 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010222else
10223 if test -n "$MAKEINFO"; then
10224 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10225else
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010231 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010235 break 2
10236 fi
10237done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010238 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010239IFS=$as_save_IFS
10240
10241fi
10242fi
10243MAKEINFO=$ac_cv_prog_MAKEINFO
10244if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010246$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010247else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010249$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010250fi
10251
10252
10253if test "_$MAKEINFO" = "_"; then
10254 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10255else
10256 case "$MAKEINFO" in
10257 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010259*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010260$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010261*** Makeinfo is missing. Info documentation will not be built." >&2;}
10262 ;;
10263 *)
10264 ;;
10265 esac
10266fi
10267
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010268
Theodore Ts'o6c133521999-07-03 20:37:03 +000010269# See if we need a separate native compiler.
10270if test $cross_compiling = no; then
10271 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010272
Theodore Ts'o6c133521999-07-03 20:37:03 +000010273else
10274 for ac_prog in gcc cc
10275do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010277set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010279$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010280if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010281 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010282else
10283 if test -n "$BUILD_CC"; then
10284 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10285else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010288do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010289 IFS=$as_save_IFS
10290 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010291 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010292 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 -050010293 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010295 break 2
10296 fi
10297done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010298 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010299IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010300
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010301fi
10302fi
10303BUILD_CC=$ac_cv_prog_BUILD_CC
10304if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010306$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010307else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010309$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010310fi
10311
Theodore Ts'oe1052142006-10-21 21:46:47 -040010312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010313 test -n "$BUILD_CC" && break
10314done
10315
10316fi
Lukas Czernerd2bfdc72011-09-15 23:44:59 -040010317for 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 -050010318do :
10319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10321eval as_val=\$$as_ac_Header
10322 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010323 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010324#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010325_ACEOF
10326
10327fi
10328
10329done
10330
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010331for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010332do :
10333 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10334ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010335#if HAVE_SYS_QUEUE_H
10336#include <sys/queue.h>
10337#endif
10338
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010339"
10340eval as_val=\$$as_ac_Header
10341 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010342 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010344_ACEOF
10345
10346fi
10347
10348done
10349
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010350for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010351do :
10352 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010353#if HAVE_SYS_TYPES_H
10354#include <sys/types.h>
10355#endif
10356#if HAVE_SYS_SOCKET
10357#include <sys/socket.h>
10358#endif
10359
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010360"
10361if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010362 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010363#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010364_ACEOF
10365
10366fi
10367
10368done
10369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010370for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010371do :
10372 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10373if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010374 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010375#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010376_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010378ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10379if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010381$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010382
10383fi
10384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010385fi
10386done
10387
10388
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010389ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10390"
10391if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010392
10393$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010394
10395fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010396
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010397ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10398"
10399if test "x$ac_cv_type_ssize_t" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010400
10401$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010402
Theodore Ts'offf45482003-04-13 00:44:19 -040010403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010404
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010405ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10406"
10407if test "x$ac_cv_have_decl_llseek" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010408
10409$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010410
10411fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010413ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010414 #define _LARGEFILE64_SOURCE
10415 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010416"
10417if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010418
10419$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010420
10421fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010422
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010423# The cast to long int works around a bug in the HP C Compiler
10424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10426# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010428$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010429if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010430 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010431else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010432 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 -050010433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010435 if test "$ac_cv_type_short" = yes; then
10436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010438{ as_fn_set_status 77
10439as_fn_error "cannot compute sizeof (short)
10440See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010441 else
10442 ac_cv_sizeof_short=0
10443 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010444fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010446fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010448$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010449
10450
10451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010452cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010453#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010454_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010455
10456
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010457# The cast to long int works around a bug in the HP C Compiler
10458# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10459# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10460# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010462$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010463if test "${ac_cv_sizeof_int+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010464 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010466 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 -050010467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010468else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010469 if test "$ac_cv_type_int" = yes; then
10470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010472{ as_fn_set_status 77
10473as_fn_error "cannot compute sizeof (int)
10474See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010475 else
10476 ac_cv_sizeof_int=0
10477 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010478fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010479
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010480fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010482$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010483
10484
10485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010487#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010488_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010489
10490
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010491# The cast to long int works around a bug in the HP C Compiler
10492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10494# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010496$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010497if test "${ac_cv_sizeof_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010499else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010500 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 -050010501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010503 if test "$ac_cv_type_long" = yes; then
10504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010506{ as_fn_set_status 77
10507as_fn_error "cannot compute sizeof (long)
10508See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010509 else
10510 ac_cv_sizeof_long=0
10511 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010514fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010516$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010517
10518
10519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010521#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010523
10524
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010525# The cast to long int works around a bug in the HP C Compiler
10526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10528# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010530$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010531if test "${ac_cv_sizeof_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010532 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010533else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010534 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 -050010535
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010536else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010537 if test "$ac_cv_type_long_long" = yes; then
10538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010540{ as_fn_set_status 77
10541as_fn_error "cannot compute sizeof (long long)
10542See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010543 else
10544 ac_cv_sizeof_long_long=0
10545 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010547
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010548fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010550$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010551
10552
10553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010554cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010555#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010556_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010557
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010558
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010559SIZEOF_SHORT=$ac_cv_sizeof_short
10560SIZEOF_INT=$ac_cv_sizeof_int
10561SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010562SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10563
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010564
10565
10566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010568$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010569if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010570 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010571else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010572 ac_cv_c_bigendian=unknown
10573 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010575/* end confdefs.h. */
10576#ifndef __APPLE_CC__
10577 not a universal capable compiler
10578 #endif
10579 typedef int dummy;
10580
10581_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010582if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010583
10584 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010585 # there are at least two -arch flags with different values.
10586 ac_arch=
10587 ac_prev=
10588 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10589 if test -n "$ac_prev"; then
10590 case $ac_word in
10591 i?86 | x86_64 | ppc | ppc64)
10592 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10593 ac_arch=$ac_word
10594 else
10595 ac_cv_c_bigendian=universal
10596 break
10597 fi
10598 ;;
10599 esac
10600 ac_prev=
10601 elif test "x$ac_word" = "x-arch"; then
10602 ac_prev=arch
10603 fi
10604 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010605fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10607 if test $ac_cv_c_bigendian = unknown; then
10608 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010610/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010611#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010612 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614int
10615main ()
10616{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010617#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10618 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10619 && LITTLE_ENDIAN)
10620 bogus endian macros
10621 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010622
10623 ;
10624 return 0;
10625}
10626_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010627if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010628 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010630/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010631#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010632 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010634int
10635main ()
10636{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010637#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010638 not big endian
10639 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010640
10641 ;
10642 return 0;
10643}
10644_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010645if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010646 ac_cv_c_bigendian=yes
10647else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010648 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010649fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010651fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10653 fi
10654 if test $ac_cv_c_bigendian = unknown; then
10655 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010657/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010658#include <limits.h>
10659
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010660int
10661main ()
10662{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010663#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10664 bogus endian macros
10665 #endif
10666
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667 ;
10668 return 0;
10669}
10670_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010671if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010672 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010674/* end confdefs.h. */
10675#include <limits.h>
10676
10677int
10678main ()
10679{
10680#ifndef _BIG_ENDIAN
10681 not big endian
10682 #endif
10683
10684 ;
10685 return 0;
10686}
10687_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010688if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010689 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010690else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010691 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010692fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
10696 fi
10697 if test $ac_cv_c_bigendian = unknown; then
10698 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010699 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010700 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010702/* end confdefs.h. */
10703short int ascii_mm[] =
10704 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10705 short int ascii_ii[] =
10706 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10707 int use_ascii (int i) {
10708 return ascii_mm[i] + ascii_ii[i];
10709 }
10710 short int ebcdic_ii[] =
10711 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10712 short int ebcdic_mm[] =
10713 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10714 int use_ebcdic (int i) {
10715 return ebcdic_mm[i] + ebcdic_ii[i];
10716 }
10717 extern int foo;
10718
10719int
10720main ()
10721{
10722return use_ascii (foo) == use_ebcdic (foo);
10723 ;
10724 return 0;
10725}
10726_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010727if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10729 ac_cv_c_bigendian=yes
10730 fi
10731 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10732 if test "$ac_cv_c_bigendian" = unknown; then
10733 ac_cv_c_bigendian=no
10734 else
10735 # finding both strings is unlikely to happen, but who knows?
10736 ac_cv_c_bigendian=unknown
10737 fi
10738 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010739fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010743/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010744$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745int
10746main ()
10747{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010748
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010749 /* Are we little or big endian? From Harbison&Steele. */
10750 union
10751 {
10752 long int l;
10753 char c[sizeof (long int)];
10754 } u;
10755 u.l = 1;
10756 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010757
10758 ;
10759 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010760}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010761_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010762if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010763 ac_cv_c_bigendian=no
10764else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010765 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010766fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010767rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10768 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010769fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010770
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010771 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010772fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010774$as_echo "$ac_cv_c_bigendian" >&6; }
10775 case $ac_cv_c_bigendian in #(
10776 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010777 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010778;; #(
10779 no)
10780 ;; #(
10781 universal)
10782
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010783$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010784
10785 ;; #(
10786 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010787 as_fn_error "unknown endianness
10788 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010789 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010790
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010791BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010792ASM_TYPES_HEADER=./asm_types.h
10793
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010794echo "/* These defines are needed for the public ext2fs.h header file */" \
10795 > public_config.h
10796if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10797 uniq tmp_config.$$ >> public_config.h
10798else
10799 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10800fi
10801if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10802 uniq tmp_config.$$ >> public_config.h
10803else
10804 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10805fi
10806rm -f tmp_config.$$
10807PUBLIC_CONFIG_HEADER=./public_config.h
10808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010809for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010810do :
10811 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10812if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010813 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010814#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815_ACEOF
10816
10817fi
10818
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010819done
10820
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10822if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823
10824cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010825#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010826_ACEOF
10827
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010828
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010829fi
10830
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010831{ $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 +010010832$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010833if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010834 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010837/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010838#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010839int
10840main ()
10841{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010842struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010843 ;
10844 return 0;
10845}
10846_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010847if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010848 e2fsprogs_cv_struct_st_flags=yes
10849else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010850 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010851fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10853fi
10854
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010856$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010857if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010859$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010860 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010861 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010862else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010865#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010866int
10867main ()
10868{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010869struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010870 ;
10871 return 0;
10872}
10873_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010874if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010875 e2fsprogs_cv_struct_st_flags_immut=yes
10876else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010877 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010878fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10880fi
10881
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010883$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010884 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010885
10886$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010887
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010888 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010889fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010890ac_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 -050010891 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010892"
10893if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894
10895cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010896#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010897_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010898
10899fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010900
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010901if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010903$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010904if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010905 $as_echo_n "(cached) " >&6
10906else
10907 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010909/* end confdefs.h. */
10910
10911/* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10914#ifdef __cplusplus
10915extern "C"
10916#endif
10917char blkid_probe_all ();
10918int
10919main ()
10920{
10921return blkid_probe_all ();
10922 ;
10923 return 0;
10924}
10925_ACEOF
10926for ac_lib in '' blkid; do
10927 if test -z "$ac_lib"; then
10928 ac_res="none required"
10929 else
10930 ac_res=-l$ac_lib
10931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10932 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010933 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010934 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010935fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010936rm -f core conftest.err conftest.$ac_objext \
10937 conftest$ac_exeext
10938 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010939 break
10940fi
10941done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010942if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10943
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010944else
10945 ac_cv_search_blkid_probe_all=no
10946fi
10947rm conftest.$ac_ext
10948LIBS=$ac_func_search_save_LIBS
10949fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010951$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10952ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010953if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010954 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10955
10956fi
10957
10958fi
Theodore Ts'o9b3018a2011-08-11 14:56:49 -040010959for 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 -050010960do :
10961 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10962ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10963eval as_val=\$$as_ac_var
10964 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010965 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010966#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010967_ACEOF
10968
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010969fi
10970done
10971
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010972SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010974$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010975if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010976 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010977else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010978 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010979LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010981/* end confdefs.h. */
10982
Theodore Ts'oe1052142006-10-21 21:46:47 -040010983/* Override any GCC internal prototype to avoid an error.
10984 Use char because int might match the return type of a GCC
10985 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010986#ifdef __cplusplus
10987extern "C"
10988#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010989char socket ();
10990int
10991main ()
10992{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010993return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010994 ;
10995 return 0;
10996}
10997_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010998if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010999 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011000else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011001 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011002fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011003rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011005LIBS=$ac_check_lib_save_LIBS
11006fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011008$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011009if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011010 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011011fi
11012
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011013
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011015$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011016if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011017 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011018else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011021#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011022
11023_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011025 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011026 ac_cv_have_optreset=yes
11027else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011028 ac_cv_have_optreset=no
11029fi
11030rm -f conftest*
11031
11032fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011034$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011035if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011036
11037$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011038
11039fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011040
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011041SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011042ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11043if test "x$ac_cv_func_sem_init" = x""yes; then :
11044
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011045else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011047$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011049 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011050else
11051 ac_check_lib_save_LIBS=$LIBS
11052LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011054/* end confdefs.h. */
11055
11056/* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11059#ifdef __cplusplus
11060extern "C"
11061#endif
11062char sem_init ();
11063int
11064main ()
11065{
11066return sem_init ();
11067 ;
11068 return 0;
11069}
11070_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011071if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011072 ac_cv_lib_pthread_sem_init=yes
11073else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011074 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011075fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011076rm -f core conftest.err conftest.$ac_objext \
11077 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011078LIBS=$ac_check_lib_save_LIBS
11079fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011081$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011082if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11083 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011084
11085 SEM_INIT_LIB=-lpthread
11086else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011088$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011089if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011090 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011091else
11092 ac_check_lib_save_LIBS=$LIBS
11093LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011095/* end confdefs.h. */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char sem_init ();
11104int
11105main ()
11106{
11107return sem_init ();
11108 ;
11109 return 0;
11110}
11111_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011112if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011113 ac_cv_lib_rt_sem_init=yes
11114else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011115 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011116fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011117rm -f core conftest.err conftest.$ac_objext \
11118 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011119LIBS=$ac_check_lib_save_LIBS
11120fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011122$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011123if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11124 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011125
11126 SEM_INIT_LIB=-lrt
11127else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011129$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011130if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011131 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011132else
11133 ac_check_lib_save_LIBS=$LIBS
11134LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011136/* end confdefs.h. */
11137
11138/* Override any GCC internal prototype to avoid an error.
11139 Use char because int might match the return type of a GCC
11140 builtin and then its argument prototype would still apply. */
11141#ifdef __cplusplus
11142extern "C"
11143#endif
11144char sem_init ();
11145int
11146main ()
11147{
11148return sem_init ();
11149 ;
11150 return 0;
11151}
11152_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011153if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011154 ac_cv_lib_posix4_sem_init=yes
11155else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011156 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011157fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011158rm -f core conftest.err conftest.$ac_objext \
11159 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011160LIBS=$ac_check_lib_save_LIBS
11161fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011163$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011164if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11165 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011166
11167 SEM_INIT_LIB=-lposix4
11168fi
11169
11170fi
11171
11172fi
11173
11174fi
11175
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011177$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011178if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011179 UNI_DIFF_OPTS=-u
11180else
11181 UNI_DIFF_OPTS=-c
11182fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011184$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011185
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011186case "$host_os" in
11187linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011188
11189$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011190
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011191 ;;
11192esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011193LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011194CYGWIN_CMT="#"
11195UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011196case "$host_os" in
11197linux*)
11198 LINUX_CMT=
11199 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011200cygwin)
11201 CYGWIN_CMT=
11202 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011203 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011204esac
11205
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011206
11207
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011208case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011209linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011210 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11211 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011212 { $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 +010011213$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011214 fi
11215 ;;
11216esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011217case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011218linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011219 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011220 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011221 { $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 +010011222$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011223 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011225$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011226 mandir=/usr/share/man
11227 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011228 fi
11229;;
11230esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011231if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011232 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011233 root_prefix="$ac_default_prefix"
11234 else
11235 root_prefix="$prefix"
11236 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011237 root_bindir=$bindir
11238 root_sbindir=$sbindir
11239 root_libdir=$libdir
11240 root_sysconfdir=$sysconfdir
11241else
11242 root_bindir='${root_prefix}/bin'
11243 root_sbindir='${root_prefix}/sbin'
11244 root_libdir='${root_prefix}/lib'
11245 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011246fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011247if test "$bindir" != '${exec_prefix}/bin'; then
11248 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011250$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011251fi
11252if test "$sbindir" != '${exec_prefix}/sbin'; then
11253 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011255$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011256fi
11257if test "$libdir" != '${exec_prefix}/lib'; then
11258 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011260$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011261fi
11262if test "$sysconfdir" != '${prefix}/etc'; then
11263 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011265$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011266fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011267
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011268
11269
11270
11271
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011273$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011274if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011275 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011276else
11277 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011278cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011279/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011280#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281int
11282main ()
11283{
Theodore Ts'oae851481997-04-29 18:13:24 +000011284fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011285 ;
11286 return 0;
11287}
11288_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011289if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011290 ac_cv_e2fsprogs_use_static=yes
11291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011292 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011293fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011294rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011296LDFLAGS=$SAVE_LDFLAGS
11297fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011298
Theodore Ts'odefde781999-01-04 07:39:19 +000011299case "$host_os" in
11300solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011301 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011302;;
11303esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011305$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011306LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011307if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011308 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011309fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011310
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011311case "$host_os" in
11312darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011314$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011315
11316$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011317
11318 ;;
11319esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011320SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11321ET_DIR=`cd ${srcdir}/lib/et; pwd`
11322
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011323
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011324if test "$cross_compiling" = yes ; then
11325 DO_TEST_SUITE=
11326else
11327 DO_TEST_SUITE=check
11328fi
11329
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011330INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11331if test -n "$CPPFLAGS" ; then
11332 INCLUDES="$INCLUDES $CPPFLAGS"
11333fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011334if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011335 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011336fi
11337
Theodore Ts'odd947da2005-11-09 18:37:07 -040011338if test $cross_compiling = no; then
11339 BUILD_CFLAGS="$CFLAGS"
11340 BUILD_LDFLAGS="$LDFLAGS"
11341else
11342 BUILD_CFLAGS=
11343 BUILD_LDFLAGS=
11344fi
11345
11346
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011347test -d lib || mkdir lib
11348test -d include || mkdir include
11349test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011350test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011351for i in MCONFIG Makefile e2fsprogs.spec \
11352 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011353 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11354 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011355 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011356 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011357 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11358 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011359 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011360 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011361 resize/Makefile doc/Makefile intl/Makefile \
11362 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011363 if test -d `dirname ${srcdir}/$i` ; then
11364 outlist="$outlist $i"
11365 fi
11366done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011367ac_config_files="$ac_config_files $outlist"
11368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011369cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011370# This file is a shell script that caches the results of configure
11371# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011372# scripts and configure runs, see configure's option --config-cache.
11373# It is not useful on other systems. If it contains results you don't
11374# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011375#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011376# config.status only pays attention to the cache file if you give it
11377# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011378#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379# `ac_cv_env_foo' variables (set or unset) will be overridden when
11380# loading this file, other *unset* `ac_cv_foo' will be assigned the
11381# following values.
11382
11383_ACEOF
11384
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011385# The following way of writing the cache mishandles newlines in values,
11386# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011387# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011388# Ultrix sh set writes to stderr and can't be redirected directly,
11389# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011390(
11391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11392 eval ac_val=\$$ac_var
11393 case $ac_val in #(
11394 *${as_nl}*)
11395 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011396 *_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 +010011397$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011398 esac
11399 case $ac_var in #(
11400 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011401 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011402 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011403 esac ;;
11404 esac
11405 done
11406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011407 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011408 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11409 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011410 # `set' does not quote correctly, so add quotes: double-quote
11411 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412 sed -n \
11413 "s/'/'\\\\''/g;
11414 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011415 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416 *)
11417 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011418 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011419 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011420 esac |
11421 sort
11422) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011423 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011424 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011425 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011426 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11428 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011429 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11430 :end' >>confcache
11431if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11432 if test -w "$cache_file"; then
11433 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011434 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011435$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011437 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011439$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011440 fi
11441fi
11442rm -f confcache
11443
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011444test "x$prefix" = xNONE && prefix=$ac_default_prefix
11445# Let make expand exec_prefix.
11446test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11447
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011448DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011450ac_libobjs=
11451ac_ltlibobjs=
11452for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11453 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11457 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460done
11461LIBOBJS=$ac_libobjs
11462
11463LTLIBOBJS=$ac_ltlibobjs
11464
11465
11466
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011467
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011468: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011469ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470ac_clean_files_save=$ac_clean_files
11471ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011472{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011473$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011474as_write_fail=0
11475cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476#! $SHELL
11477# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011478# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011480# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011481
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482debug=false
11483ac_cs_recheck=false
11484ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011485
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011486SHELL=\${CONFIG_SHELL-$SHELL}
11487export SHELL
11488_ASEOF
11489cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11490## -------------------- ##
11491## M4sh Initialization. ##
11492## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011493
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011494# Be more Bourne compatible
11495DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497 emulate sh
11498 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500 # is contrary to our usage. Disable this feature.
11501 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011502 setopt NO_GLOB_SUBST
11503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011504 case `(set -o) 2>/dev/null` in #(
11505 *posix*) :
11506 set -o posix ;; #(
11507 *) :
11508 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011509esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011510fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011511
11512
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011513as_nl='
11514'
11515export as_nl
11516# Printing a long string crashes Solaris 7 /usr/bin/printf.
11517as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011520# Prefer a ksh shell builtin over an external printf program on Solaris,
11521# but without wasting forks for bash or zsh.
11522if test -z "$BASH_VERSION$ZSH_VERSION" \
11523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11524 as_echo='print -r --'
11525 as_echo_n='print -rn --'
11526elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011527 as_echo='printf %s\n'
11528 as_echo_n='printf %s'
11529else
11530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11532 as_echo_n='/usr/ucb/echo -n'
11533 else
11534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11535 as_echo_n_body='eval
11536 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011537 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011538 *"$as_nl"*)
11539 expr "X$arg" : "X\\(.*\\)$as_nl";
11540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11541 esac;
11542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11543 '
11544 export as_echo_n_body
11545 as_echo_n='sh -c $as_echo_n_body as_echo'
11546 fi
11547 export as_echo_body
11548 as_echo='sh -c $as_echo_body as_echo'
11549fi
11550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011551# The user is always right.
11552if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011553 PATH_SEPARATOR=:
11554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11556 PATH_SEPARATOR=';'
11557 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011558fi
11559
Theodore Ts'oe1052142006-10-21 21:46:47 -040011560
11561# IFS
11562# We need space, tab and new line, in precisely that order. Quoting is
11563# there to prevent editors from complaining about space-tab.
11564# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11565# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011566IFS=" "" $as_nl"
11567
11568# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011569case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011570 *[\\/]* ) as_myself=$0 ;;
11571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11577 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011578IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579
Theodore Ts'oe1052142006-10-21 21:46:47 -040011580 ;;
11581esac
11582# We did not find ourselves, most probably we were run as `sh COMMAND'
11583# in which case we are not to be found in the path.
11584if test "x$as_myself" = x; then
11585 as_myself=$0
11586fi
11587if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011589 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590fi
11591
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011592# Unset variables that we do not need and which cause bugs (e.g. in
11593# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11594# suppresses any "Segmentation fault" message there. '((' could
11595# trigger a bug in pdksh 5.2.14.
11596for as_var in BASH_ENV ENV MAIL MAILPATH
11597do eval test x\${$as_var+set} = xset \
11598 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011599done
11600PS1='$ '
11601PS2='> '
11602PS4='+ '
11603
11604# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011605LC_ALL=C
11606export LC_ALL
11607LANGUAGE=C
11608export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011609
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011610# CDPATH.
11611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11612
11613
11614# as_fn_error ERROR [LINENO LOG_FD]
11615# ---------------------------------
11616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11618# script with status $?, using 1 if that was 0.
11619as_fn_error ()
11620{
11621 as_status=$?; test $as_status -eq 0 && as_status=1
11622 if test "$3"; then
11623 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11625 fi
11626 $as_echo "$as_me: error: $1" >&2
11627 as_fn_exit $as_status
11628} # as_fn_error
11629
11630
11631# as_fn_set_status STATUS
11632# -----------------------
11633# Set $? to STATUS, without forking.
11634as_fn_set_status ()
11635{
11636 return $1
11637} # as_fn_set_status
11638
11639# as_fn_exit STATUS
11640# -----------------
11641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11642as_fn_exit ()
11643{
11644 set +e
11645 as_fn_set_status $1
11646 exit $1
11647} # as_fn_exit
11648
11649# as_fn_unset VAR
11650# ---------------
11651# Portably unset VAR.
11652as_fn_unset ()
11653{
11654 { eval $1=; unset $1;}
11655}
11656as_unset=as_fn_unset
11657# as_fn_append VAR VALUE
11658# ----------------------
11659# Append the text in VALUE to the end of the definition contained in VAR. Take
11660# advantage of any shell optimizations that allow amortized linear growth over
11661# repeated appends, instead of the typical quadratic growth present in naive
11662# implementations.
11663if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11664 eval 'as_fn_append ()
11665 {
11666 eval $1+=\$2
11667 }'
11668else
11669 as_fn_append ()
11670 {
11671 eval $1=\$$1\$2
11672 }
11673fi # as_fn_append
11674
11675# as_fn_arith ARG...
11676# ------------------
11677# Perform arithmetic evaluation on the ARGs, and store the result in the
11678# global $as_val. Take advantage of shells that can avoid forks. The arguments
11679# must be portable across $(()) and expr.
11680if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11681 eval 'as_fn_arith ()
11682 {
11683 as_val=$(( $* ))
11684 }'
11685else
11686 as_fn_arith ()
11687 {
11688 as_val=`expr "$@" || test $? -eq 1`
11689 }
11690fi # as_fn_arith
11691
11692
Theodore Ts'oe1052142006-10-21 21:46:47 -040011693if expr a : '\(a\)' >/dev/null 2>&1 &&
11694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11695 as_expr=expr
11696else
11697 as_expr=false
11698fi
11699
11700if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11701 as_basename=basename
11702else
11703 as_basename=false
11704fi
11705
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11707 as_dirname=dirname
11708else
11709 as_dirname=false
11710fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011711
Theodore Ts'oe1052142006-10-21 21:46:47 -040011712as_me=`$as_basename -- "$0" ||
11713$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11714 X"$0" : 'X\(//\)$' \| \
11715 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011716$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011717 sed '/^.*\/\([^/][^/]*\)\/*$/{
11718 s//\1/
11719 q
11720 }
11721 /^X\/\(\/\/\)$/{
11722 s//\1/
11723 q
11724 }
11725 /^X\/\(\/\).*/{
11726 s//\1/
11727 q
11728 }
11729 s/.*/./; q'`
11730
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011731# Avoid depending upon Character Ranges.
11732as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11734as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11735as_cr_digits='0123456789'
11736as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011737
11738ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011739case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011740-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011741 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 xy) ECHO_C='\c';;
11744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11745 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746 esac;;
11747*)
11748 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011749esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750
11751rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011752if test -d conf$$.dir; then
11753 rm -f conf$$.dir/conf$$.file
11754else
11755 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011756 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011757fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758if (echo >conf$$.file) 2>/dev/null; then
11759 if ln -s conf$$.file conf$$ 2>/dev/null; then
11760 as_ln_s='ln -s'
11761 # ... but there are two gotchas:
11762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11764 # In both cases, we have to default to `cp -p'.
11765 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11766 as_ln_s='cp -p'
11767 elif ln conf$$.file conf$$ 2>/dev/null; then
11768 as_ln_s=ln
11769 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011770 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011771 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772else
11773 as_ln_s='cp -p'
11774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011775rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11776rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011777
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011778
11779# as_fn_mkdir_p
11780# -------------
11781# Create "$as_dir" as a directory, including parents if necessary.
11782as_fn_mkdir_p ()
11783{
11784
11785 case $as_dir in #(
11786 -*) as_dir=./$as_dir;;
11787 esac
11788 test -d "$as_dir" || eval $as_mkdir_p || {
11789 as_dirs=
11790 while :; do
11791 case $as_dir in #(
11792 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11793 *) as_qdir=$as_dir;;
11794 esac
11795 as_dirs="'$as_qdir' $as_dirs"
11796 as_dir=`$as_dirname -- "$as_dir" ||
11797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11798 X"$as_dir" : 'X\(//\)[^/]' \| \
11799 X"$as_dir" : 'X\(//\)$' \| \
11800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11801$as_echo X"$as_dir" |
11802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11803 s//\1/
11804 q
11805 }
11806 /^X\(\/\/\)[^/].*/{
11807 s//\1/
11808 q
11809 }
11810 /^X\(\/\/\)$/{
11811 s//\1/
11812 q
11813 }
11814 /^X\(\/\).*/{
11815 s//\1/
11816 q
11817 }
11818 s/.*/./; q'`
11819 test -d "$as_dir" && break
11820 done
11821 test -z "$as_dirs" || eval "mkdir $as_dirs"
11822 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11823
11824
11825} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011826if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011827 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828else
11829 test -d ./-p && rmdir ./-p
11830 as_mkdir_p=false
11831fi
11832
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011833if test -x / >/dev/null 2>&1; then
11834 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011836 if ls -dL / >/dev/null 2>&1; then
11837 as_ls_L_option=L
11838 else
11839 as_ls_L_option=
11840 fi
11841 as_test_x='
11842 eval sh -c '\''
11843 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011844 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011845 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011846 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011847 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011848 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011849 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011850 ???[sx]*):;;*)false;;esac;fi
11851 '\'' sh
11852 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011853fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011854as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011855
11856# Sed expression to map a string onto a valid CPP name.
11857as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11858
11859# Sed expression to map a string onto a valid variable name.
11860as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11861
11862
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011863exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011864## ----------------------------------- ##
11865## Main body of $CONFIG_STATUS script. ##
11866## ----------------------------------- ##
11867_ASEOF
11868test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11871# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873# values after options handling.
11874ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011876generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011877
11878 CONFIG_FILES = $CONFIG_FILES
11879 CONFIG_HEADERS = $CONFIG_HEADERS
11880 CONFIG_LINKS = $CONFIG_LINKS
11881 CONFIG_COMMANDS = $CONFIG_COMMANDS
11882 $ $0 $@
11883
Theodore Ts'oe1052142006-10-21 21:46:47 -040011884on `(hostname || uname -n) 2>/dev/null | sed 1q`
11885"
11886
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887_ACEOF
11888
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889case $ac_config_files in *"
11890"*) set x $ac_config_files; shift; ac_config_files=$*;;
11891esac
11892
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011893case $ac_config_headers in *"
11894"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11895esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011896
11897
11898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011899# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011900config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011901config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011902config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011903
Theodore Ts'oe1052142006-10-21 21:46:47 -040011904_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011906cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011908\`$as_me' instantiates files and other configuration actions
11909from templates according to the current configuration. Unless the files
11910and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011911
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011912Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011913
11914 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011915 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011916 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917 -q, --quiet, --silent
11918 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919 -d, --debug don't remove temporary files
11920 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011921 --file=FILE[:TEMPLATE]
11922 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011923 --header=FILE[:TEMPLATE]
11924 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011925
11926Configuration files:
11927$config_files
11928
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011929Configuration headers:
11930$config_headers
11931
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011932Configuration commands:
11933$config_commands
11934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936
Theodore Ts'oe1052142006-10-21 21:46:47 -040011937_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011938cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011939ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940ac_cs_version="\\
11941config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011942configured by $0, generated by GNU Autoconf 2.65,
11943 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011944
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011945Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946This config.status script is free software; the Free Software Foundation
11947gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011948
11949ac_pwd='$ac_pwd'
11950srcdir='$srcdir'
11951INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011952AWK='$AWK'
11953test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011954_ACEOF
11955
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011956cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11957# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958ac_need_defaults=:
11959while test $# != 0
11960do
11961 case $1 in
11962 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011963 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11964 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965 ac_shift=:
11966 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011967 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 ac_option=$1
11969 ac_optarg=$2
11970 ac_shift=shift
11971 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011972 esac
11973
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974 case $ac_option in
11975 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11977 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011979 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011980 --config | --confi | --conf | --con | --co | --c )
11981 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983 debug=: ;;
11984 --file | --fil | --fi | --f )
11985 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011986 case $ac_optarg in
11987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11988 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011989 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011990 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011991 --header | --heade | --head | --hea )
11992 $ac_shift
11993 case $ac_optarg in
11994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11995 esac
11996 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11997 ac_need_defaults=false;;
11998 --he | --h)
11999 # Conflict between --help and --header
12000 as_fn_error "ambiguous option: \`$1'
12001Try \`$0 --help' for more information.";;
12002 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12005 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12006 ac_cs_silent=: ;;
12007
12008 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012009 -*) as_fn_error "unrecognized option: \`$1'
12010Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012012 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012013 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012015 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016 shift
12017done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012018
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012020
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021if $ac_cs_silent; then
12022 exec 6>/dev/null
12023 ac_configure_extra_args="$ac_configure_extra_args --silent"
12024fi
12025
12026_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012027cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012028if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012029 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12030 shift
12031 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12032 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012033 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012034 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035fi
12036
12037_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012038cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012039exec 5>>config.log
12040{
12041 echo
12042 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12043## Running $as_me. ##
12044_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012045 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012046} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047
Theodore Ts'oe1052142006-10-21 21:46:47 -040012048_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012051# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012053# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012055 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012057 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12058 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012060
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061_ACEOF
12062
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012063cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064
12065# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012066for ac_config_target in $ac_config_targets
12067do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012069 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012070 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12071 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12072
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012073 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074 esac
12075done
12076
Theodore Ts'oe1052142006-10-21 21:46:47 -040012077
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078# If the user did not use the arguments to specify the items to instantiate,
12079# then the envvar interface is used. Set only those that are not.
12080# We use the long form for the default assignment because of an extremely
12081# bizarre bug on SunOS 4.1.3.
12082if $ac_need_defaults; then
12083 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012084 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12086fi
12087
12088# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012091# Hook for its removal unless debugging.
12092# Note that there is a small window in which the directory will not be cleaned:
12093# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094$debug ||
12095{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012096 tmp=
12097 trap 'exit_status=$?
12098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12099' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012100 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102# Create a (secure) tmp directory for tmp files.
12103
12104{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106 test -n "$tmp" && test -d "$tmp"
12107} ||
12108{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012109 tmp=./conf$$-$RANDOM
12110 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012111} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012112
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012113# Set up the scripts for CONFIG_FILES section.
12114# No need to generate them if there are no CONFIG_FILES.
12115# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012116if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012118if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12119 ac_cs_awk_getline=:
12120 ac_cs_awk_pipe_init=
12121 ac_cs_awk_read_file='
12122 while ((getline aline < (F[key])) > 0)
12123 print(aline)
12124 close(F[key])'
12125 ac_cs_awk_pipe_fini=
12126else
12127 ac_cs_awk_getline=false
12128 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12129 ac_cs_awk_read_file='
12130 print "|#_!!_#|"
12131 print "cat " F[key] " &&"
12132 '$ac_cs_awk_pipe_init
12133 # The final `:' finishes the AND list.
12134 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12135fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012136ac_cr=`echo X | tr X '\015'`
12137# On cygwin, bash can eat \r inside `` if the user requested igncr.
12138# But we know of no other shell where ac_cr would be empty at this
12139# point, so we can use a bashism as a fallback.
12140if test "x$ac_cr" = x; then
12141 eval ac_cr=\$\'\\r\'
12142fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012143ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12144if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146else
12147 ac_cs_awk_cr=$ac_cr
12148fi
12149
12150echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151_ACEOF
12152
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012153# Create commands to substitute file output variables.
12154{
12155 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12156 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12157 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12158 echo "_ACAWK" &&
12159 echo "_ACEOF"
12160} >conf$$files.sh &&
12161. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012162 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012163rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012164
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012165{
12166 echo "cat >conf$$subs.awk <<_ACEOF" &&
12167 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12168 echo "_ACEOF"
12169} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012170 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012171ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172ac_delim='%!_!# '
12173for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012174 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12178 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012179 break
12180 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012181 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012182 else
12183 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012184 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012187
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012188cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12189cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012190_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012191sed -n '
12192h
12193s/^/S["/; s/!.*/"]=/
12194p
12195g
12196s/^[^!]*!//
12197:repl
12198t repl
12199s/'"$ac_delim"'$//
12200t delim
12201:nl
12202h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012203s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012204t more1
12205s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12206p
12207n
12208b repl
12209:more1
12210s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12211p
12212g
12213s/.\{148\}//
12214t nl
12215:delim
12216h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012217s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012218t more2
12219s/["\\]/\\&/g; s/^/"/; s/$/"/
12220p
12221b
12222:more2
12223s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12224p
12225g
12226s/.\{148\}//
12227t delim
12228' <conf$$subs.awk | sed '
12229/^[^""]/{
12230 N
12231 s/\n//
12232}
12233' >>$CONFIG_STATUS || ac_write_fail=1
12234rm -f conf$$subs.awk
12235cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12236_ACAWK
12237cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12238 for (key in S) S_is_set[key] = 1
12239 FS = ""
12240 \$ac_cs_awk_pipe_init
12241}
12242{
12243 line = $ 0
12244 nfields = split(line, field, "@")
12245 substed = 0
12246 len = length(field[1])
12247 for (i = 2; i < nfields; i++) {
12248 key = field[i]
12249 keylen = length(key)
12250 if (S_is_set[key]) {
12251 value = S[key]
12252 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12253 len += length(value) + length(field[++i])
12254 substed = 1
12255 } else
12256 len += 1 + keylen
12257 }
12258 if (nfields == 3 && !substed) {
12259 key = field[2]
12260 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12261 \$ac_cs_awk_read_file
12262 next
12263 }
12264 }
12265 print line
12266}
12267\$ac_cs_awk_pipe_fini
12268_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012269_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12271if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12273else
12274 cat
12275fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012276 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012278
12279# VPATH may cause trouble with some makes, so we remove $(srcdir),
12280# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12281# trailing colons and then remove the whole line if VPATH becomes empty
12282# (actually we leave an empty line to preserve line numbers).
12283if test "x$srcdir" = x.; then
12284 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12285s/:*\$(srcdir):*/:/
12286s/:*\${srcdir}:*/:/
12287s/:*@srcdir@:*/:/
12288s/^\([^=]*=[ ]*\):*/\1/
12289s/:*$//
12290s/^[^=]*=[ ]*$//
12291}'
12292fi
12293
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012295fi # test -n "$CONFIG_FILES"
12296
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012297# Set up the scripts for CONFIG_HEADERS section.
12298# No need to generate them if there are no CONFIG_HEADERS.
12299# This happens for instance with `./config.status Makefile'.
12300if test -n "$CONFIG_HEADERS"; then
12301cat >"$tmp/defines.awk" <<\_ACAWK ||
12302BEGIN {
12303_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012304
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012305# Transform confdefs.h into an awk script `defines.awk', embedded as
12306# here-document in config.status, that substitutes the proper values into
12307# config.h.in to produce config.h.
12308
12309# Create a delimiter string that does not exist in confdefs.h, to ease
12310# handling of long lines.
12311ac_delim='%!_!# '
12312for ac_last_try in false false :; do
12313 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12314 if test -z "$ac_t"; then
12315 break
12316 elif $ac_last_try; then
12317 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12318 else
12319 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12320 fi
12321done
12322
12323# For the awk script, D is an array of macro values keyed by name,
12324# likewise P contains macro parameters if any. Preserve backslash
12325# newline sequences.
12326
12327ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12328sed -n '
12329s/.\{148\}/&'"$ac_delim"'/g
12330t rset
12331:rset
12332s/^[ ]*#[ ]*define[ ][ ]*/ /
12333t def
12334d
12335:def
12336s/\\$//
12337t bsnl
12338s/["\\]/\\&/g
12339s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12340D["\1"]=" \3"/p
12341s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12342d
12343:bsnl
12344s/["\\]/\\&/g
12345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12346D["\1"]=" \3\\\\\\n"\\/p
12347t cont
12348s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12349t cont
12350d
12351:cont
12352n
12353s/.\{148\}/&'"$ac_delim"'/g
12354t clear
12355:clear
12356s/\\$//
12357t bsnlc
12358s/["\\]/\\&/g; s/^/"/; s/$/"/p
12359d
12360:bsnlc
12361s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12362b cont
12363' <confdefs.h | sed '
12364s/'"$ac_delim"'/"\\\
12365"/g' >>$CONFIG_STATUS || ac_write_fail=1
12366
12367cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12368 for (key in D) D_is_set[key] = 1
12369 FS = ""
12370}
12371/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12372 line = \$ 0
12373 split(line, arg, " ")
12374 if (arg[1] == "#") {
12375 defundef = arg[2]
12376 mac1 = arg[3]
12377 } else {
12378 defundef = substr(arg[1], 2)
12379 mac1 = arg[2]
12380 }
12381 split(mac1, mac2, "(") #)
12382 macro = mac2[1]
12383 prefix = substr(line, 1, index(line, defundef) - 1)
12384 if (D_is_set[macro]) {
12385 # Preserve the white space surrounding the "#".
12386 print prefix "define", macro P[macro] D[macro]
12387 next
12388 } else {
12389 # Replace #undef with comments. This is necessary, for example,
12390 # in the case of _POSIX_SOURCE, which is predefined and required
12391 # on some systems where configure will not decide to define it.
12392 if (defundef == "undef") {
12393 print "/*", prefix defundef, macro, "*/"
12394 next
12395 }
12396 }
12397}
12398{ print }
12399_ACAWK
12400_ACEOF
12401cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12403fi # test -n "$CONFIG_HEADERS"
12404
12405
12406eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012407shift
12408for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012409do
12410 case $ac_tag in
12411 :[FHLC]) ac_mode=$ac_tag; continue;;
12412 esac
12413 case $ac_mode$ac_tag in
12414 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012415 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012416 :[FH]-) ac_tag=-:-;;
12417 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12418 esac
12419 ac_save_IFS=$IFS
12420 IFS=:
12421 set x $ac_tag
12422 IFS=$ac_save_IFS
12423 shift
12424 ac_file=$1
12425 shift
12426
12427 case $ac_mode in
12428 :L) ac_source=$1;;
12429 :[FH])
12430 ac_file_inputs=
12431 for ac_f
12432 do
12433 case $ac_f in
12434 -) ac_f="$tmp/stdin";;
12435 *) # Look for the file first in the build tree, then in the source tree
12436 # (if the path is not absolute). The absolute path cannot be DOS-style,
12437 # because $ac_f cannot contain `:'.
12438 test -f "$ac_f" ||
12439 case $ac_f in
12440 [\\/$]*) false;;
12441 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12442 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012443 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012444 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012446 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012447 done
12448
12449 # Let's still pretend it is `configure' which instantiates (i.e., don't
12450 # use $as_me), people would be surprised to read:
12451 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012452 configure_input='Generated from '`
12453 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12454 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012455 if test x"$ac_file" != x-; then
12456 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012458$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012459 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012460 # Neutralize special characters interpreted by sed in replacement strings.
12461 case $configure_input in #(
12462 *\&* | *\|* | *\\* )
12463 ac_sed_conf_input=`$as_echo "$configure_input" |
12464 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12465 *) ac_sed_conf_input=$configure_input;;
12466 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012467
12468 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012469 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012470 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012471 esac
12472 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012473 esac
12474
Theodore Ts'oe1052142006-10-21 21:46:47 -040012475 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012476$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12477 X"$ac_file" : 'X\(//\)[^/]' \| \
12478 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012479 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012480$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12482 s//\1/
12483 q
12484 }
12485 /^X\(\/\/\)[^/].*/{
12486 s//\1/
12487 q
12488 }
12489 /^X\(\/\/\)$/{
12490 s//\1/
12491 q
12492 }
12493 /^X\(\/\).*/{
12494 s//\1/
12495 q
12496 }
12497 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012498 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499 ac_builddir=.
12500
Theodore Ts'oe1052142006-10-21 21:46:47 -040012501case "$ac_dir" in
12502.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12503*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012504 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012505 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012506 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012507 case $ac_top_builddir_sub in
12508 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12509 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12510 esac ;;
12511esac
12512ac_abs_top_builddir=$ac_pwd
12513ac_abs_builddir=$ac_pwd$ac_dir_suffix
12514# for backward compatibility:
12515ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516
12517case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012518 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520 ac_top_srcdir=$ac_top_builddir_sub
12521 ac_abs_top_srcdir=$ac_pwd ;;
12522 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012523 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012524 ac_top_srcdir=$srcdir
12525 ac_abs_top_srcdir=$srcdir ;;
12526 *) # Relative name.
12527 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12528 ac_top_srcdir=$ac_top_build_prefix$srcdir
12529 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012531ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012533
Theodore Ts'oe1052142006-10-21 21:46:47 -040012534 case $ac_mode in
12535 :F)
12536 #
12537 # CONFIG_FILE
12538 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012539
12540 case $INSTALL in
12541 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012542 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012543 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012545
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012547# If the template does not know about datarootdir, expand it.
12548# FIXME: This hack should be removed a few years after 2.60.
12549ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012550ac_sed_dataroot='
12551/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012552 p
12553 q
12554}
12555/@datadir@/p
12556/@docdir@/p
12557/@infodir@/p
12558/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012559/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012560case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561*datarootdir*) ac_datarootdir_seen=yes;;
12562*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012563 { $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 +010012564$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012565_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012567 ac_datarootdir_hack='
12568 s&@datadir@&$datadir&g
12569 s&@docdir@&$docdir&g
12570 s&@infodir@&$infodir&g
12571 s&@localedir@&$localedir&g
12572 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012573 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012574esac
12575_ACEOF
12576
12577# Neutralize VPATH when `$srcdir' = `.'.
12578# Shell code in configure.ac might set extrasub.
12579# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012580cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12581ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012582$extrasub
12583_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585:t
12586/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012587s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012588s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012589s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012590s&@srcdir@&$ac_srcdir&;t t
12591s&@abs_srcdir@&$ac_abs_srcdir&;t t
12592s&@top_srcdir@&$ac_top_srcdir&;t t
12593s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12594s&@builddir@&$ac_builddir&;t t
12595s&@abs_builddir@&$ac_abs_builddir&;t t
12596s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12597s&@INSTALL@&$ac_INSTALL&;t t
12598$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012599"
12600eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12601if $ac_cs_awk_getline; then
12602 $AWK -f "$tmp/subs.awk"
12603else
12604 $AWK -f "$tmp/subs.awk" | $SHELL
12605fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012606 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12609 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12610 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012611 { $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 -040012612which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012613$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012614which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012615
Theodore Ts'oe1052142006-10-21 21:46:47 -040012616 rm -f "$tmp/stdin"
12617 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012618 -) cat "$tmp/out" && rm -f "$tmp/out";;
12619 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12620 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012622 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012623 :H)
12624 #
12625 # CONFIG_HEADER
12626 #
12627 if test x"$ac_file" != x-; then
12628 {
12629 $as_echo "/* $configure_input */" \
12630 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12631 } >"$tmp/config.h" \
12632 || as_fn_error "could not create $ac_file" "$LINENO" 5
12633 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12635$as_echo "$as_me: $ac_file is unchanged" >&6;}
12636 else
12637 rm -f "$ac_file"
12638 mv "$tmp/config.h" "$ac_file" \
12639 || as_fn_error "could not create $ac_file" "$LINENO" 5
12640 fi
12641 else
12642 $as_echo "/* $configure_input */" \
12643 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12644 || as_fn_error "could not create -" "$LINENO" 5
12645 fi
12646 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012647
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012648 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012649$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012650 ;;
12651 esac
12652
12653
12654 case $ac_file$ac_mode in
12655 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012656 for ac_file in $CONFIG_FILES; do
12657 # Support "outfile[:infile[:infile...]]"
12658 case "$ac_file" in
12659 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012660 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012661 # PO directories have a Makefile.in generated from Makefile.in.in.
12662 case "$ac_file" in */Makefile.in)
12663 # Adjust a relative srcdir.
12664 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12665 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12666 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12667 # In autoconf-2.13 it is called $ac_given_srcdir.
12668 # In autoconf-2.50 it is called $srcdir.
12669 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12670 case "$ac_given_srcdir" in
12671 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12672 /*) top_srcdir="$ac_given_srcdir" ;;
12673 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12674 esac
12675 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12676 rm -f "$ac_dir/POTFILES"
12677 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12678 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 -050012679 POMAKEFILEDEPS="POTFILES.in"
12680 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012681 # on $ac_dir but don't depend on user-specified configuration
12682 # parameters.
12683 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12684 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012685 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012686 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12687 fi
12688 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12689 # Hide the ALL_LINGUAS assigment from automake.
12690 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012691 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12692 else
12693 # The set of available languages was given in configure.in.
12694 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012695 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696 # Compute POFILES
12697 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12698 # Compute UPDATEPOFILES
12699 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12700 # Compute DUMMYPOFILES
12701 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12702 # Compute GMOFILES
12703 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012704 case "$ac_given_srcdir" in
12705 .) srcdirpre= ;;
12706 *) srcdirpre='$(srcdir)/' ;;
12707 esac
12708 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012709 UPDATEPOFILES=
12710 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012711 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012712 for lang in $ALL_LINGUAS; do
12713 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012714 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12715 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012716 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012717 done
12718 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12719 # environment variable.
12720 INST_LINGUAS=
12721 if test -n "$ALL_LINGUAS"; then
12722 for presentlang in $ALL_LINGUAS; do
12723 useit=no
12724 if test "%UNSET%" != "$LINGUAS"; then
12725 desiredlanguages="$LINGUAS"
12726 else
12727 desiredlanguages="$ALL_LINGUAS"
12728 fi
12729 for desiredlang in $desiredlanguages; do
12730 # Use the presentlang catalog if desiredlang is
12731 # a. equal to presentlang, or
12732 # b. a variant of presentlang (because in this case,
12733 # presentlang can be used as a fallback for messages
12734 # which are not translated in the desiredlang catalog).
12735 case "$desiredlang" in
12736 "$presentlang"*) useit=yes;;
12737 esac
12738 done
12739 if test $useit = yes; then
12740 INST_LINGUAS="$INST_LINGUAS $presentlang"
12741 fi
12742 done
12743 fi
12744 CATALOGS=
12745 if test -n "$INST_LINGUAS"; then
12746 for lang in $INST_LINGUAS; do
12747 CATALOGS="$CATALOGS $lang.gmo"
12748 done
12749 fi
12750 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751 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 -040012752 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12753 if test -f "$f"; then
12754 case "$f" in
12755 *.orig | *.bak | *~) ;;
12756 *) cat "$f" >> "$ac_dir/Makefile" ;;
12757 esac
12758 fi
12759 done
12760 fi
12761 ;;
12762 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012763 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012764
Theodore Ts'oe1052142006-10-21 21:46:47 -040012765 esac
12766done # for ac_tag
12767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012769as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012771ac_clean_files=$ac_clean_files_save
12772
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012773test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012774 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012775
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012776
12777# configure is writing to config.log, and then calls config.status.
12778# config.status does its own redirection, appending to config.log.
12779# Unfortunately, on DOS this fails, as config.log is still kept open
12780# by configure, so config.status won't be able to write to it; its
12781# output is simply discarded. So we exec the FD to /dev/null,
12782# effectively closing config.log, so it can be properly (re)opened and
12783# appended to by config.status. When coming back to configure, we
12784# need to make the FD available again.
12785if test "$no_create" != yes; then
12786 ac_cs_success=:
12787 ac_config_status_args=
12788 test "$silent" = yes &&
12789 ac_config_status_args="$ac_config_status_args --quiet"
12790 exec 5>/dev/null
12791 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12792 exec 5>>config.log
12793 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12794 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012795 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012796fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012797if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012799$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12800fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012801
Theodore Ts'oee683a12005-02-05 15:53:56 -050012802if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi