blob: 732119efc333a54a3dd666e0144da3d162e142e9 [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
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400716ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400717E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400718LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400719SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400720LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721MAINTAINER_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100722CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400723RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500724DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732host_os
733host_vendor
734host_cpu
735host
736build_os
737build_vendor
738build_cpu
739build
740E2FSPROGS_PKGVER
741E2FSPROGS_VERSION
742E2FSPROGS_DAY
743E2FSPROGS_MONTH
744E2FSPROGS_YEAR
745target_alias
746host_alias
747build_alias
748LIBS
749ECHO_T
750ECHO_N
751ECHO_C
752DEFS
753mandir
754localedir
755libdir
756psdir
757pdfdir
758dvidir
759htmldir
760infodir
761docdir
762oldincludedir
763includedir
764localstatedir
765sharedstatedir
766sysconfdir
767datadir
768datarootdir
769libexecdir
770sbindir
771bindir
772program_transform_name
773prefix
774exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500775PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100776PACKAGE_BUGREPORT
777PACKAGE_STRING
778PACKAGE_VERSION
779PACKAGE_TARNAME
780PACKAGE_NAME
781PATH_SEPARATOR
782SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400783ac_subst_files='MCONFIG
784MAKEFILE_ELF
785MAKEFILE_BSDLIB
786MAKEFILE_PROFILE
787MAKEFILE_CHECKER
788MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400789ASM_TYPES_HEADER
790PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100791ac_user_opts='
792enable_option_checking
793with_diet_libc
794with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100795with_ccopts
796with_ldopts
797with_root_prefix
798enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400799enable_symlink_install
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400800enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400801enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400802enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100803enable_compression
804enable_htree
805enable_elf_shlibs
806enable_bsd_shlibs
807enable_profile
808enable_checker
809enable_jbd_debug
810enable_blkid_debug
811enable_testio_debug
812enable_libuuid
813enable_libblkid
Theodore Ts'o7becb202011-11-14 10:40:43 -0500814enable_quota
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100815enable_debugfs
816enable_imager
817enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500818enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100819enable_fsck
820enable_e2initrd_helper
821enable_tls
822enable_uuidd
823enable_nls
824with_gnu_ld
825enable_rpath
826with_libiconv_prefix
827with_included_gettext
828with_libintl_prefix
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400829with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100830'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400831 ac_precious_vars='build_alias
832host_alias
833target_alias
834CC
835CFLAGS
836LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400837LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400838CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400839CPP
840PKG_CONFIG'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000842
843# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500844ac_init_help=
845ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100846ac_unrecognized_opts=
847ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000848# The variables have the same names as the options, with
849# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500850cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000851exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000852no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000853no_recursion=
854prefix=NONE
855program_prefix=NONE
856program_suffix=NONE
857program_transform_name=s,x,x,
858silent=
859site=
860srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000861verbose=
862x_includes=NONE
863x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864
865# Installation directory options.
866# These are left unexpanded so users can "make install exec_prefix=/foo"
867# and all the variables that are supposed to be based on exec_prefix
868# by default will actually change.
869# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400870# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000871bindir='${exec_prefix}/bin'
872sbindir='${exec_prefix}/sbin'
873libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400874datarootdir='${prefix}/share'
875datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000876sysconfdir='${prefix}/etc'
877sharedstatedir='${prefix}/com'
878localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000879includedir='${prefix}/include'
880oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881docdir='${datarootdir}/doc/${PACKAGE}'
882infodir='${datarootdir}/info'
883htmldir='${docdir}'
884dvidir='${docdir}'
885pdfdir='${docdir}'
886psdir='${docdir}'
887libdir='${exec_prefix}/lib'
888localedir='${datarootdir}/locale'
889mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000891ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400892ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000893for ac_option
894do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400897 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000898 ac_prev=
899 continue
900 fi
901
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902 case $ac_option in
903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *) ac_optarg=yes ;;
905 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906
907 # Accept the important Cygnus configure options, so we can diagnose typos.
908
Theodore Ts'oe1052142006-10-21 21:46:47 -0400909 case $ac_dashdash$ac_option in
910 --)
911 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000912
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000913 -bindir | --bindir | --bindi | --bind | --bin | --bi)
914 ac_prev=bindir ;;
915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000917
918 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500919 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000920 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500921 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000922
923 -cache-file | --cache-file | --cache-fil | --cache-fi \
924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
925 ac_prev=cache_file ;;
926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500928 cache_file=$ac_optarg ;;
929
930 --config-cache | -C)
931 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000932
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400935 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500936 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
939 | --dataroo | --dataro | --datar)
940 ac_prev=datarootdir ;;
941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
943 datarootdir=$ac_optarg ;;
944
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000945 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000947 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500949 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100950 ac_useropt_orig=$ac_useropt
951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
952 case $ac_user_opts in
953 *"
954"enable_$ac_useropt"
955"*) ;;
956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
957 ac_unrecognized_sep=', ';;
958 esac
959 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400960
961 -docdir | --docdir | --docdi | --doc | --do)
962 ac_prev=docdir ;;
963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
964 docdir=$ac_optarg ;;
965
966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
967 ac_prev=dvidir ;;
968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
969 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000970
971 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000973 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500975 as_fn_error "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100976 ac_useropt_orig=$ac_useropt
977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
978 case $ac_user_opts in
979 *"
980"enable_$ac_useropt"
981"*) ;;
982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
983 ac_unrecognized_sep=', ';;
984 esac
985 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000986
987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
989 | --exec | --exe | --ex)
990 ac_prev=exec_prefix ;;
991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
993 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500994 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000995
996 -gas | --gas | --ga | --g)
997 # Obsolete; use --with-gas.
998 with_gas=yes ;;
999
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001000 -help | --help | --hel | --he | -h)
1001 ac_init_help=long ;;
1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1003 ac_init_help=recursive ;;
1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1005 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001006
1007 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001008 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001009 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001010 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001011
Theodore Ts'oe1052142006-10-21 21:46:47 -04001012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1013 ac_prev=htmldir ;;
1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1015 | --ht=*)
1016 htmldir=$ac_optarg ;;
1017
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001018 -includedir | --includedir | --includedi | --included | --include \
1019 | --includ | --inclu | --incl | --inc)
1020 ac_prev=includedir ;;
1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1022 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001023 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001024
1025 -infodir | --infodir | --infodi | --infod | --info | --inf)
1026 ac_prev=infodir ;;
1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001028 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001029
1030 -libdir | --libdir | --libdi | --libd)
1031 ac_prev=libdir ;;
1032 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001033 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001034
1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1036 | --libexe | --libex | --libe)
1037 ac_prev=libexecdir ;;
1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1039 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001040 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001041
Theodore Ts'oe1052142006-10-21 21:46:47 -04001042 -localedir | --localedir | --localedi | --localed | --locale)
1043 ac_prev=localedir ;;
1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1045 localedir=$ac_optarg ;;
1046
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001047 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001048 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001049 ac_prev=localstatedir ;;
1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001052 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001053
1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1055 ac_prev=mandir ;;
1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001057 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001058
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001059 -nfp | --nfp | --nf)
1060 # Obsolete; use --without-fp.
1061 with_fp=no ;;
1062
1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065 no_create=yes ;;
1066
1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1069 no_recursion=yes ;;
1070
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1073 | --oldin | --oldi | --old | --ol | --o)
1074 ac_prev=oldincludedir ;;
1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001079
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1081 ac_prev=prefix ;;
1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001083 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001084
1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1086 | --program-pre | --program-pr | --program-p)
1087 ac_prev=program_prefix ;;
1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001090 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001091
1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1093 | --program-suf | --program-su | --program-s)
1094 ac_prev=program_suffix ;;
1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001098
1099 -program-transform-name | --program-transform-name \
1100 | --program-transform-nam | --program-transform-na \
1101 | --program-transform-n | --program-transform- \
1102 | --program-transform | --program-transfor \
1103 | --program-transfo | --program-transf \
1104 | --program-trans | --program-tran \
1105 | --progr-tra | --program-tr | --program-t)
1106 ac_prev=program_transform_name ;;
1107 -program-transform-name=* | --program-transform-name=* \
1108 | --program-transform-nam=* | --program-transform-na=* \
1109 | --program-transform-n=* | --program-transform-=* \
1110 | --program-transform=* | --program-transfor=* \
1111 | --program-transfo=* | --program-transf=* \
1112 | --program-trans=* | --program-tran=* \
1113 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115
Theodore Ts'oe1052142006-10-21 21:46:47 -04001116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1117 ac_prev=pdfdir ;;
1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1119 pdfdir=$ac_optarg ;;
1120
1121 -psdir | --psdir | --psdi | --psd | --ps)
1122 ac_prev=psdir ;;
1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1124 psdir=$ac_optarg ;;
1125
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1128 silent=yes ;;
1129
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1131 ac_prev=sbindir ;;
1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1133 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001135
1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1138 | --sharedst | --shareds | --shared | --share | --shar \
1139 | --sha | --sh)
1140 ac_prev=sharedstatedir ;;
1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1144 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001146
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001147 -site | --site | --sit)
1148 ac_prev=site ;;
1149 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001150 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001151
1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1153 ac_prev=srcdir ;;
1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001155 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1158 | --syscon | --sysco | --sysc | --sys | --sy)
1159 ac_prev=sysconfdir ;;
1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001163
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001164 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168
1169 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1170 verbose=yes ;;
1171
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001172 -version | --version | --versio | --versi | --vers | -V)
1173 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001174
1175 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001177 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001179 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001180 ac_useropt_orig=$ac_useropt
1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1182 case $ac_user_opts in
1183 *"
1184"with_$ac_useropt"
1185"*) ;;
1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1187 ac_unrecognized_sep=', ';;
1188 esac
1189 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001190
1191 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001193 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001195 as_fn_error "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001196 ac_useropt_orig=$ac_useropt
1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1198 case $ac_user_opts in
1199 *"
1200"with_$ac_useropt"
1201"*) ;;
1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1203 ac_unrecognized_sep=', ';;
1204 esac
1205 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001206
1207 --x)
1208 # Obsolete; use --with-x.
1209 with_x=yes ;;
1210
1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1212 | --x-incl | --x-inc | --x-in | --x-i)
1213 ac_prev=x_includes ;;
1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001216 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001217
1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1220 ac_prev=x_libraries ;;
1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001225 -*) as_fn_error "unrecognized option: \`$ac_option'
1226Try \`$0 --help' for more information."
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001227 ;;
1228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 *=*)
1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1231 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001232 case $ac_envvar in #(
1233 '' | [0-9]* | *[!_$as_cr_alnum]* )
1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1235 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001236 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001237 export $ac_envvar ;;
1238
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001239 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245 ;;
1246
1247 esac
1248done
1249
1250if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001252 as_fn_error "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253fi
1254
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255if test -n "$ac_unrecognized_opts"; then
1256 case $enable_option_checking in
1257 no) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 esac
1261fi
1262
1263# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1265 datadir sysconfdir sharedstatedir localstatedir includedir \
1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1267 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001269 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001270 # Remove trailing slashes.
1271 case $ac_val in
1272 */ )
1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1274 eval $ac_var=\$ac_val;;
1275 esac
1276 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001277 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001278 [\\/$]* | ?:[\\/]* ) continue;;
1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001282done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001284# There might be people who depend on the old broken behavior: `$host'
1285# used to hold the argument of --host etc.
1286# FIXME: To remove some day.
1287build=$build_alias
1288host=$host_alias
1289target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001291# FIXME: To remove some day.
1292if test "x$host_alias" != x; then
1293 if test "x$build_alias" = x; then
1294 cross_compiling=maybe
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001295 $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 -05001296 If a cross compiler is detected then cross compile mode will be used." >&2
1297 elif test "x$build_alias" != "x$host_alias"; then
1298 cross_compiling=yes
1299 fi
1300fi
1301
1302ac_tool_prefix=
1303test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304
1305test "$silent" = yes && exec 6>/dev/null
1306
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001307
Theodore Ts'oe1052142006-10-21 21:46:47 -04001308ac_pwd=`pwd` && test -n "$ac_pwd" &&
1309ac_ls_di=`ls -di .` &&
1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001311 as_fn_error "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001312test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001313 as_fn_error "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314
1315
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001316# Find the source files, if location was not specified.
1317if test -z "$srcdir"; then
1318 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001319 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001320 ac_confdir=`$as_dirname -- "$as_myself" ||
1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1322 X"$as_myself" : 'X\(//\)[^/]' \| \
1323 X"$as_myself" : 'X\(//\)$' \| \
1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1325$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)[^/].*/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\/\)$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\).*/{
1339 s//\1/
1340 q
1341 }
1342 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001343 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001344 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001345 srcdir=..
1346 fi
1347else
1348 ac_srcdir_defaulted=no
1349fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001350if test ! -r "$srcdir/$ac_unique_file"; then
1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001353fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1355ac_abs_confdir=`(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001357 pwd)`
1358# When building in place, set srcdir=.
1359if test "$ac_abs_confdir" = "$ac_pwd"; then
1360 srcdir=.
1361fi
1362# Remove unnecessary trailing slashes from srcdir.
1363# Double slashes in file names in object file debugging info
1364# mess up M-x gdb in Emacs.
1365case $srcdir in
1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367esac
1368for ac_var in $ac_precious_vars; do
1369 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1370 eval ac_env_${ac_var}_value=\$${ac_var}
1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1372 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001374
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375#
1376# Report the --help message.
1377#
1378if test "$ac_init_help" = "long"; then
1379 # Omit some internal or obsolete options to make the list less imposing.
1380 # This message is too long to be a string in the A/UX 3.1 sh.
1381 cat <<_ACEOF
1382\`configure' configures this package to adapt to many kinds of systems.
1383
1384Usage: $0 [OPTION]... [VAR=VALUE]...
1385
1386To assign environment variables (e.g., CC, CFLAGS...), specify them as
1387VAR=VALUE. See below for descriptions of some of the useful variables.
1388
1389Defaults for the options are specified in brackets.
1390
1391Configuration:
1392 -h, --help display this help and exit
1393 --help=short display options specific to this package
1394 --help=recursive display the short help of all the included packages
1395 -V, --version display version information and exit
1396 -q, --quiet, --silent do not print \`checking...' messages
1397 --cache-file=FILE cache test results in FILE [disabled]
1398 -C, --config-cache alias for \`--cache-file=config.cache'
1399 -n, --no-create do not create output files
1400 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001402Installation directories:
1403 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001404 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001406 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001407
1408By default, \`make install' will install all the files in
1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1410an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1411for instance \`--prefix=\$HOME'.
1412
1413For better control, use the options below.
1414
1415Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001416 --bindir=DIR user executables [EPREFIX/bin]
1417 --sbindir=DIR system admin executables [EPREFIX/sbin]
1418 --libexecdir=DIR program executables [EPREFIX/libexec]
1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1422 --libdir=DIR object code libraries [EPREFIX/lib]
1423 --includedir=DIR C header files [PREFIX/include]
1424 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1427 --infodir=DIR info documentation [DATAROOTDIR/info]
1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1429 --mandir=DIR man documentation [DATAROOTDIR/man]
1430 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1431 --htmldir=DIR html documentation [DOCDIR]
1432 --dvidir=DIR dvi documentation [DOCDIR]
1433 --pdfdir=DIR pdf documentation [DOCDIR]
1434 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435_ACEOF
1436
1437 cat <<\_ACEOF
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
1441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1442_ACEOF
1443fi
1444
1445if test -n "$ac_init_help"; then
1446
1447 cat <<\_ACEOF
1448
1449Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001450 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001453 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001454 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001455 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001456 --enable-symlink-build use symlinks while building instead of hard links
1457 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001458 --enable-compression enable EXPERIMENTAL compression support
1459 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001460 --enable-elf-shlibs select ELF shared libraries
1461 --enable-bsd-shlibs select BSD shared libraries
1462 --enable-profile build profiling libraries
1463 --enable-checker build checker libraries
1464 --enable-jbd-debug enable journal debugging
1465 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001466 --disable-testio-debug disable the use of the test I/O manager for debugging
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001467 --disable-libuuid do not build private uuid library
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001468 --disable-libblkid do not build private blkid library
Theodore Ts'o7becb202011-11-14 10:40:43 -05001469 --enable-libquota enable quota support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001470 --disable-debugfs disable support of debugfs program
1471 --disable-imager disable support of e2image program
1472 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001473 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474 --enable-fsck build fsck wrapper program
1475 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001476 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001477 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478 --disable-nls do not use Native Language Support
1479 --disable-rpath do not hardcode runtime library paths
1480
1481Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001484 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001485 --with-cc no longer supported, use CC= instead
1486 --with-ccopts no longer supported, use CFLAGS= instead
1487 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1489 --with-gnu-ld assume the C compiler uses GNU ld default=no
1490 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1491 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1492 --with-included-gettext use the GNU gettext library included here
1493 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1494 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001495 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001496
1497Some influential environment variables:
1498 CC C compiler command
1499 CFLAGS C compiler flags
1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1501 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001502 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001504 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001505 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001506 PKG_CONFIG path to pkg-config utility
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001511Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001513ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001522 ac_builddir=.
1523
Theodore Ts'oe1052142006-10-21 21:46:47 -04001524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001528 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001539
1540case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001541 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001555
Theodore Ts'oe1052142006-10-21 21:46:47 -04001556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568 done
1569fi
1570
Theodore Ts'oe1052142006-10-21 21:46:47 -04001571test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572if $ac_init_version; then
1573 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001574configure
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001575generated by GNU Autoconf 2.65
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001577Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001581 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588# ac_fn_c_try_compile LINENO
1589# --------------------------
1590# Try to compile conftest.$ac_ext, and return whether this succeeded.
1591ac_fn_c_try_compile ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620fi
1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001622 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001623
1624} # ac_fn_c_try_compile
1625
1626# ac_fn_c_try_link LINENO
1627# -----------------------
1628# Try to link conftest.$ac_ext, and return whether this succeeded.
1629ac_fn_c_try_link ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 rm -f conftest.$ac_objext conftest$ac_exeext
1633 if { { ac_try="$ac_link"
1634case "(($ac_try" in
1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1636 *) ac_try_echo=$ac_try;;
1637esac
1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1639$as_echo "$ac_try_echo"; } >&5
1640 (eval "$ac_link") 2>conftest.err
1641 ac_status=$?
1642 if test -s conftest.err; then
1643 grep -v '^ *+' conftest.err >conftest.er1
1644 cat conftest.er1 >&5
1645 mv -f conftest.er1 conftest.err
1646 fi
1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648 test $ac_status = 0; } && {
1649 test -z "$ac_c_werror_flag" ||
1650 test ! -s conftest.err
1651 } && test -s conftest$ac_exeext && {
1652 test "$cross_compiling" = yes ||
1653 $as_test_x conftest$ac_exeext
1654 }; then :
1655 ac_retval=0
1656else
1657 $as_echo "$as_me: failed program was:" >&5
1658sed 's/^/| /' conftest.$ac_ext >&5
1659
1660 ac_retval=1
1661fi
1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1664 # interfere with the next link command; also delete a directory that is
1665 # left behind by Apple's compiler. We do this before executing the actions.
1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001668 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001669
1670} # ac_fn_c_try_link
1671
1672# ac_fn_c_try_cpp LINENO
1673# ----------------------
1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } >/dev/null && {
1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 }; then :
1697 ac_retval=0
1698else
1699 $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703fi
1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001705 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001706
1707} # ac_fn_c_try_cpp
1708
Theodore Ts'od1154eb2011-09-18 17:34:37 -04001709# ac_fn_c_try_run LINENO
1710# ----------------------
1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1712# that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_link") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727 { { case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_try") 2>&5
1734 ac_status=$?
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; }; }; then :
1737 ac_retval=0
1738else
1739 $as_echo "$as_me: program exited with status $ac_status" >&5
1740 $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743 ac_retval=$ac_status
1744fi
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1747 as_fn_set_status $ac_retval
1748
1749} # ac_fn_c_try_run
1750
1751# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1752# -------------------------------------------
1753# Tests whether TYPE exists after having included INCLUDES, setting cache
1754# variable VAR accordingly.
1755ac_fn_c_check_type ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 $as_echo_n "(cached) " >&6
1762else
1763 eval "$3=no"
1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1765/* end confdefs.h. */
1766$4
1767int
1768main ()
1769{
1770if (sizeof ($2))
1771 return 0;
1772 ;
1773 return 0;
1774}
1775_ACEOF
1776if ac_fn_c_try_compile "$LINENO"; then :
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779$4
1780int
1781main ()
1782{
1783if (sizeof (($2)))
1784 return 0;
1785 ;
1786 return 0;
1787}
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790
1791else
1792 eval "$3=yes"
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797fi
1798eval ac_res=\$$3
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1800$as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1802
1803} # ac_fn_c_check_type
1804
1805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1806# -------------------------------------------------------
1807# Tests whether HEADER exists and can be compiled using the include files in
1808# INCLUDES, setting the cache variable VAR accordingly.
1809ac_fn_c_check_header_compile ()
1810{
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1813$as_echo_n "checking for $2... " >&6; }
1814if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1815 $as_echo_n "(cached) " >&6
1816else
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818/* end confdefs.h. */
1819$4
1820#include <$2>
1821_ACEOF
1822if ac_fn_c_try_compile "$LINENO"; then :
1823 eval "$3=yes"
1824else
1825 eval "$3=no"
1826fi
1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828fi
1829eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831$as_echo "$ac_res" >&6; }
1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1833
1834} # ac_fn_c_check_header_compile
1835
1836# ac_fn_c_check_func LINENO FUNC VAR
1837# ----------------------------------
1838# Tests whether FUNC exists, setting the cache variable VAR accordingly
1839ac_fn_c_check_func ()
1840{
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1845 $as_echo_n "(cached) " >&6
1846else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848/* end confdefs.h. */
1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851#define $2 innocuous_$2
1852
1853/* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858#ifdef __STDC__
1859# include <limits.h>
1860#else
1861# include <assert.h>
1862#endif
1863
1864#undef $2
1865
1866/* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869#ifdef __cplusplus
1870extern "C"
1871#endif
1872char $2 ();
1873/* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876#if defined __stub_$2 || defined __stub___$2
1877choke me
1878#endif
1879
1880int
1881main ()
1882{
1883return $2 ();
1884 ;
1885 return 0;
1886}
1887_ACEOF
1888if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890else
1891 eval "$3=no"
1892fi
1893rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895fi
1896eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898$as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900
1901} # ac_fn_c_check_func
1902
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001903# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1904# -------------------------------------------------------
1905# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1906# the include files in INCLUDES and setting the cache variable VAR
1907# accordingly.
1908ac_fn_c_check_header_mongrel ()
1909{
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913$as_echo_n "checking for $2... " >&6; }
1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915 $as_echo_n "(cached) " >&6
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920else
1921 # Is the header compilable?
1922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1923$as_echo_n "checking $2 usability... " >&6; }
1924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925/* end confdefs.h. */
1926$4
1927#include <$2>
1928_ACEOF
1929if ac_fn_c_try_compile "$LINENO"; then :
1930 ac_header_compiler=yes
1931else
1932 ac_header_compiler=no
1933fi
1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1936$as_echo "$ac_header_compiler" >&6; }
1937
1938# Is the header present?
1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1940$as_echo_n "checking $2 presence... " >&6; }
1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943#include <$2>
1944_ACEOF
1945if ac_fn_c_try_cpp "$LINENO"; then :
1946 ac_header_preproc=yes
1947else
1948 ac_header_preproc=no
1949fi
1950rm -f conftest.err conftest.$ac_ext
1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1952$as_echo "$ac_header_preproc" >&6; }
1953
1954# So? What about this header?
1955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1956 yes:no: )
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1958$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1960$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1961 ;;
1962 no:yes:* )
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1964$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1966$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1968$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1970$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 ;;
1974esac
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976$as_echo_n "checking for $2... " >&6; }
1977if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1978 $as_echo_n "(cached) " >&6
1979else
1980 eval "$3=\$ac_header_compiler"
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985fi
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1987
1988} # ac_fn_c_check_header_mongrel
1989
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001990# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1991# --------------------------------------------
1992# Tries to find the compile-time value of EXPR in a program that includes
1993# INCLUDES, setting VAR accordingly. Returns whether the value could be
1994# computed
1995ac_fn_c_compute_int ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if test "$cross_compiling" = yes; then
1999 # Depending upon the size, compute the lo and hi bounds.
2000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001/* end confdefs.h. */
2002$4
2003int
2004main ()
2005{
2006static int test_array [1 - 2 * !(($2) >= 0)];
2007test_array [0] = 0
2008
2009 ;
2010 return 0;
2011}
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_lo=0 ac_mid=0
2015 while :; do
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h. */
2018$4
2019int
2020main ()
2021{
2022static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2023test_array [0] = 0
2024
2025 ;
2026 return 0;
2027}
2028_ACEOF
2029if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_hi=$ac_mid; break
2031else
2032 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2033 if test $ac_lo -le $ac_mid; then
2034 ac_lo= ac_hi=
2035 break
2036 fi
2037 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 done
2041else
2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h. */
2044$4
2045int
2046main ()
2047{
2048static int test_array [1 - 2 * !(($2) < 0)];
2049test_array [0] = 0
2050
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_compile "$LINENO"; then :
2056 ac_hi=-1 ac_mid=-1
2057 while :; do
2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059/* end confdefs.h. */
2060$4
2061int
2062main ()
2063{
2064static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2065test_array [0] = 0
2066
2067 ;
2068 return 0;
2069}
2070_ACEOF
2071if ac_fn_c_try_compile "$LINENO"; then :
2072 ac_lo=$ac_mid; break
2073else
2074 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2075 if test $ac_mid -le $ac_hi; then
2076 ac_lo= ac_hi=
2077 break
2078 fi
2079 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2080fi
2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 done
2083else
2084 ac_lo= ac_hi=
2085fi
2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089# Binary search between lo and hi bounds.
2090while test "x$ac_lo" != "x$ac_hi"; do
2091 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h. */
2094$4
2095int
2096main ()
2097{
2098static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2099test_array [0] = 0
2100
2101 ;
2102 return 0;
2103}
2104_ACEOF
2105if ac_fn_c_try_compile "$LINENO"; then :
2106 ac_hi=$ac_mid
2107else
2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2109fi
2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2111done
2112case $ac_lo in #((
2113?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2114'') ac_retval=1 ;;
2115esac
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118/* end confdefs.h. */
2119$4
2120static long int longval () { return $2; }
2121static unsigned long int ulongval () { return $2; }
2122#include <stdio.h>
2123#include <stdlib.h>
2124int
2125main ()
2126{
2127
2128 FILE *f = fopen ("conftest.val", "w");
2129 if (! f)
2130 return 1;
2131 if (($2) < 0)
2132 {
2133 long int i = longval ();
2134 if (i != ($2))
2135 return 1;
2136 fprintf (f, "%ld", i);
2137 }
2138 else
2139 {
2140 unsigned long int i = ulongval ();
2141 if (i != ($2))
2142 return 1;
2143 fprintf (f, "%lu", i);
2144 }
2145 /* Do not output a trailing newline, as this causes \r\n confusion
2146 on some platforms. */
2147 return ferror (f) || fclose (f) != 0;
2148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_run "$LINENO"; then :
2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2155else
2156 ac_retval=1
2157fi
2158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2159 conftest.$ac_objext conftest.beam conftest.$ac_ext
2160rm -f conftest.val
2161
2162 fi
2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002164 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002165
2166} # ac_fn_c_compute_int
2167
2168# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2169# ----------------------------------------------------
2170# Tries to find if the field MEMBER exists in type AGGR, after including
2171# INCLUDES, setting cache variable VAR accordingly.
2172ac_fn_c_check_member ()
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2176$as_echo_n "checking for $2.$3... " >&6; }
2177if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2179else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$5
2183int
2184main ()
2185{
2186static $2 ac_aggr;
2187if (ac_aggr.$3)
2188return 0;
2189 ;
2190 return 0;
2191}
2192_ACEOF
2193if ac_fn_c_try_compile "$LINENO"; then :
2194 eval "$4=yes"
2195else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197/* end confdefs.h. */
2198$5
2199int
2200main ()
2201{
2202static $2 ac_aggr;
2203if (sizeof ac_aggr.$3)
2204return 0;
2205 ;
2206 return 0;
2207}
2208_ACEOF
2209if ac_fn_c_try_compile "$LINENO"; then :
2210 eval "$4=yes"
2211else
2212 eval "$4=no"
2213fi
2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2215fi
2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2217fi
2218eval ac_res=\$$4
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2220$as_echo "$ac_res" >&6; }
2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2222
2223} # ac_fn_c_check_member
2224
2225# ac_fn_c_check_decl LINENO SYMBOL VAR
2226# ------------------------------------
2227# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2228ac_fn_c_check_decl ()
2229{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2232$as_echo_n "checking whether $2 is declared... " >&6; }
2233if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2234 $as_echo_n "(cached) " >&6
2235else
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237/* end confdefs.h. */
2238$4
2239int
2240main ()
2241{
2242#ifndef $2
2243 (void) $2;
2244#endif
2245
2246 ;
2247 return 0;
2248}
2249_ACEOF
2250if ac_fn_c_try_compile "$LINENO"; then :
2251 eval "$3=yes"
2252else
2253 eval "$3=no"
2254fi
2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256fi
2257eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259$as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261
2262} # ac_fn_c_check_decl
Theodore Ts'oe1052142006-10-21 21:46:47 -04002263cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002264This file contains any messages produced by compilers while
2265running configure, to aid debugging if configure makes a mistake.
2266
2267It was created by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002268generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002269
2270 $ $0 $@
2271
2272_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002273exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002274{
2275cat <<_ASUNAME
2276## --------- ##
2277## Platform. ##
2278## --------- ##
2279
2280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284uname -v = `(uname -v) 2>/dev/null || echo unknown`
2285
2286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2288
2289/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2296
2297_ASUNAME
2298
2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300for as_dir in $PATH
2301do
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002304 $as_echo "PATH: $as_dir"
2305 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002306IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002307
2308} >&5
2309
2310cat >&5 <<_ACEOF
2311
2312
2313## ----------- ##
2314## Core tests. ##
2315## ----------- ##
2316
2317_ACEOF
2318
2319
2320# Keep a trace of the command line.
2321# Strip out --no-create and --no-recursion so they do not pile up.
2322# Strip out --silent because we don't want to record it for future runs.
2323# Also quote any args containing shell meta-characters.
2324# Make two passes to allow for proper duplicate-argument suppression.
2325ac_configure_args=
2326ac_configure_args0=
2327ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002328ac_must_keep_next=false
2329for ac_pass in 1 2
2330do
2331 for ac_arg
2332 do
2333 case $ac_arg in
2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336 | -silent | --silent | --silen | --sile | --sil)
2337 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002338 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002340 esac
2341 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002343 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002344 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002345 if test $ac_must_keep_next = true; then
2346 ac_must_keep_next=false # Got value, back to normal.
2347 else
2348 case $ac_arg in
2349 *=* | --config-cache | -C | -disable-* | --disable-* \
2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352 | -with-* | --with-* | -without-* | --without-* | --x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 esac
2356 ;;
2357 -* ) ac_must_keep_next=true ;;
2358 esac
2359 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002360 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002361 ;;
2362 esac
2363 done
2364done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002365{ ac_configure_args0=; unset ac_configure_args0;}
2366{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367
2368# When interrupted or exit'd, cleanup temporary files, and complete
2369# config.log. We remove comments because anyway the quotes in there
2370# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002371# WARNING: Use '\'' to represent an apostrophe within the trap.
2372# 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 -05002373trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2375 {
2376 echo
2377
2378 cat <<\_ASBOX
2379## ---------------- ##
2380## Cache variables. ##
2381## ---------------- ##
2382_ASBOX
2383 echo
2384 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002385(
2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2387 eval ac_val=\$$ac_var
2388 case $ac_val in #(
2389 *${as_nl}*)
2390 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002391 *_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 +01002392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002393 esac
2394 case $ac_var in #(
2395 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002397 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002398 esac ;;
2399 esac
2400 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002401 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2403 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002404 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002405 "s/'\''/'\''\\\\'\'''\''/g;
2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2407 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002408 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002410 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002411 esac |
2412 sort
2413)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002414 echo
2415
2416 cat <<\_ASBOX
2417## ----------------- ##
2418## Output variables. ##
2419## ----------------- ##
2420_ASBOX
2421 echo
2422 for ac_var in $ac_subst_vars
2423 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002424 eval ac_val=\$$ac_var
2425 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002427 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002428 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002429 done | sort
2430 echo
2431
2432 if test -n "$ac_subst_files"; then
2433 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04002434## ------------------- ##
2435## File substitutions. ##
2436## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002437_ASBOX
2438 echo
2439 for ac_var in $ac_subst_files
2440 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 eval ac_val=\$$ac_var
2442 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002444 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002445 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 done | sort
2447 echo
2448 fi
2449
2450 if test -s confdefs.h; then
2451 cat <<\_ASBOX
2452## ----------- ##
2453## confdefs.h. ##
2454## ----------- ##
2455_ASBOX
2456 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002457 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002458 echo
2459 fi
2460 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002461 $as_echo "$as_me: caught signal $ac_signal"
2462 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002464 rm -f core *.core core.conftest.* &&
2465 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002467' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002468for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002469 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470done
2471ac_signal=0
2472
2473# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002476$as_echo "/* confdefs.h */" > confdefs.h
2477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002478# Predefined preprocessor variables.
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_NAME "$PACKAGE_NAME"
2482_ACEOF
2483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486_ACEOF
2487
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_VERSION "$PACKAGE_VERSION"
2490_ACEOF
2491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_STRING "$PACKAGE_STRING"
2494_ACEOF
2495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498_ACEOF
2499
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002500cat >>confdefs.h <<_ACEOF
2501#define PACKAGE_URL "$PACKAGE_URL"
2502_ACEOF
2503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504
2505# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002506# Prefer an explicitly selected file to automatically selected ones.
2507ac_site_file1=NONE
2508ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509if test -n "$CONFIG_SITE"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002510 ac_site_file1=$CONFIG_SITE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002512 ac_site_file1=$prefix/share/config.site
2513 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002515 ac_site_file1=$ac_default_prefix/share/config.site
2516 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002517fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002518for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002519do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002520 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002521 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002523$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002524 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002525 . "$ac_site_file"
2526 fi
2527done
2528
2529if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002530 # Some versions of bash will fail to source /dev/null (special files
2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002534$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002536 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2537 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 esac
2539 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002542$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 >$cache_file
2544fi
2545
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002546as_fn_append ac_header_list " stdlib.h"
2547as_fn_append ac_header_list " unistd.h"
2548as_fn_append ac_header_list " sys/param.h"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549# Check that the precious variables saved in the cache have kept the same
2550# value.
2551ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2554 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002555 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2556 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557 case $ac_old_set,$ac_new_set in
2558 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559 { $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 +01002560$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 -05002561 ac_cache_corrupted=: ;;
2562 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002563 { $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 +01002564$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565 ac_cache_corrupted=: ;;
2566 ,);;
2567 *)
2568 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002569 # differences in whitespace do not lead to failure.
2570 ac_old_val_w=`echo x $ac_old_val`
2571 ac_new_val_w=`echo x $ac_new_val`
2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002573 { $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 +01002574$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2575 ac_cache_corrupted=:
2576 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002577 { $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 +01002578$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2579 eval $ac_var=\$ac_old_val
2580 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002582$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002584$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585 fi;;
2586 esac
2587 # Pass precious variables to config.status.
2588 if test "$ac_new_set" = set; then
2589 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 *) ac_arg=$ac_var=$ac_new_val ;;
2592 esac
2593 case " $ac_configure_args " in
2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002595 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002596 esac
2597 fi
2598done
2599if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002602 { $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 +01002603$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002604 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002605fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002606## -------------------- ##
2607## Main body of script. ##
2608## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002609
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002610ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002611ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2614ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002616
2617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002618ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002619for ac_dir in config "$srcdir"/config; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002620 for ac_t in install-sh install.sh shtool; do
2621 if test -f "$ac_dir/$ac_t"; then
2622 ac_aux_dir=$ac_dir
2623 ac_install_sh="$ac_aux_dir/$ac_t -c"
2624 break 2
2625 fi
2626 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002627done
2628if test -z "$ac_aux_dir"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002629 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 +00002630fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002631
2632# These three variables are undocumented and unsupported,
2633# and are intended to be withdrawn in a future Autoconf release.
2634# They can cause serious problems if a builder's source tree is in a directory
2635# whose full name contains unusual characters.
2636ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2637ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2638ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2639
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002640
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002641ac_config_headers="$ac_config_headers lib/config.h"
2642
2643
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002644MCONFIG=./MCONFIG
2645
Theodore Ts'o74becf31997-04-26 14:37:06 +00002646BINARY_TYPE=bin
2647E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2648 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2649DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2650 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05002651E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00002652MONTH=`echo $DATE | awk -F- '{print $2}'`
2653YEAR=`echo $DATE | awk -F- '{print $3}'`
2654
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002655if expr $YEAR ">" 1900 > /dev/null ; then
2656 E2FSPROGS_YEAR=$YEAR
2657elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002658 E2FSPROGS_YEAR=19$YEAR
2659else
2660 E2FSPROGS_YEAR=20$YEAR
2661fi
2662
2663case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002664Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2665Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2666Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2667Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2668May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2669Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2670Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2671Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2672Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2673Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2674Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2675Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002676*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002678esac
2679
Andreas Dilger927566a2006-11-12 19:41:25 -05002680base_ver=`echo $E2FSPROGS_VERSION | \
2681 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002682
2683date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2684
2685case $E2FSPROGS_VERSION in
2686*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04002687 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05002688 ;;
2689*)
2690 E2FSPROGS_PKGVER="$base_ver"
2691 ;;
2692esac
2693
2694unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002695{ $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 +01002696$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002698$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002699
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002700
2701
2702
Andreas Dilger927566a2006-11-12 19:41:25 -05002703
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002704# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002705$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002706 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002707
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709$as_echo_n "checking build system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002710if test "${ac_cv_build+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002711 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002713 ac_build_alias=$build_alias
2714test "x$ac_build_alias" = x &&
2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716test "x$ac_build_alias" = x &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002717 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002718ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002719 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002721fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002723$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002724case $ac_cv_build in
2725*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002726*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002727esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002728build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002729ac_save_IFS=$IFS; IFS='-'
2730set x $ac_cv_build
2731shift
2732build_cpu=$1
2733build_vendor=$2
2734shift; shift
2735# Remember, the first character of IFS is used to create $*,
2736# except with old shells:
2737build_os=$*
2738IFS=$ac_save_IFS
2739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002740
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002743$as_echo_n "checking host system type... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002744if test "${ac_cv_host+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002745 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002746else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002747 if test "x$host_alias" = x; then
2748 ac_cv_host=$ac_cv_build
2749else
2750 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002751 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002752fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002753
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002754fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002756$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002757case $ac_cv_host in
2758*-*-*) ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002759*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002760esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002761host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002762ac_save_IFS=$IFS; IFS='-'
2763set x $ac_cv_host
2764shift
2765host_cpu=$1
2766host_vendor=$2
2767shift; shift
2768# Remember, the first character of IFS is used to create $*,
2769# except with old shells:
2770host_os=$*
2771IFS=$ac_save_IFS
2772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002773
2774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002775DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002776ac_ext=c
2777ac_cpp='$CPP $CPPFLAGS'
2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2780ac_compiler_gnu=$ac_cv_c_compiler_gnu
2781if test -n "$ac_tool_prefix"; then
2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2783set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002785$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002786if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002787 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002788else
2789 if test -n "$CC"; then
2790 ac_cv_prog_CC="$CC" # Let the user override the test.
2791else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793for as_dir in $PATH
2794do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002797 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002798 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 -05002799 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002801 break 2
2802 fi
2803done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002804 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002805IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002806
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002807fi
2808fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002809CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002810if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002812$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002813else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002815$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002816fi
2817
Theodore Ts'oe1052142006-10-21 21:46:47 -04002818
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002819fi
2820if test -z "$ac_cv_prog_CC"; then
2821 ac_ct_CC=$CC
2822 # Extract the first word of "gcc", so it can be a program name with args.
2823set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002825$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002827 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002828else
2829 if test -n "$ac_ct_CC"; then
2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2831else
2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833for as_dir in $PATH
2834do
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002837 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002838 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 -05002839 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002841 break 2
2842 fi
2843done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002844 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002846
2847fi
2848fi
2849ac_ct_CC=$ac_cv_prog_ac_ct_CC
2850if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002852$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002853else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002855$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002856fi
2857
Theodore Ts'oe1052142006-10-21 21:46:47 -04002858 if test "x$ac_ct_CC" = x; then
2859 CC=""
2860 else
2861 case $cross_compiling:$ac_tool_warned in
2862yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002863{ $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 +01002864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002865ac_tool_warned=yes ;;
2866esac
2867 CC=$ac_ct_CC
2868 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002869else
2870 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002871fi
2872
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002873if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874 if test -n "$ac_tool_prefix"; then
2875 # 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 -05002876set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002878$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002879if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002880 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002881else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886for as_dir in $PATH
2887do
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002890 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002891 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 -05002892 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002894 break 2
2895 fi
2896done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002897 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002898IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002899
2900fi
2901fi
2902CC=$ac_cv_prog_CC
2903if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002905$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002906else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002908$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002909fi
2910
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002913fi
2914if test -z "$CC"; then
2915 # Extract the first word of "cc", so it can be a program name with args.
2916set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002918$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002919if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002920 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921else
2922 if test -n "$CC"; then
2923 ac_cv_prog_CC="$CC" # Let the user override the test.
2924else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002925 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002931 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002932 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 -05002933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2934 ac_prog_rejected=yes
2935 continue
2936 fi
2937 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002939 break 2
2940 fi
2941done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002943IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002945if test $ac_prog_rejected = yes; then
2946 # We found a bogon in the path, so make sure we never use it.
2947 set dummy $ac_cv_prog_CC
2948 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002949 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002950 # We chose a different compiler from the bogus one.
2951 # However, it has the same basename, so the bogon will be chosen
2952 # first if we set CC to just the basename; use the full file name.
2953 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002955 fi
2956fi
2957fi
2958fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002959CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002960if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002962$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002963else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002965$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002966fi
2967
Theodore Ts'oe1052142006-10-21 21:46:47 -04002968
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969fi
2970if test -z "$CC"; then
2971 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002972 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973 do
2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002977$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002978if test "${ac_cv_prog_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002979 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002980else
2981 if test -n "$CC"; then
2982 ac_cv_prog_CC="$CC" # Let the user override the test.
2983else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985for as_dir in $PATH
2986do
2987 IFS=$as_save_IFS
2988 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002989 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002990 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 -05002991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002993 break 2
2994 fi
2995done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002996 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002997IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002998
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002999fi
3000fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003001CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003002if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003004$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003005else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003007$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003008fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003009
Theodore Ts'oe1052142006-10-21 21:46:47 -04003010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011 test -n "$CC" && break
3012 done
3013fi
3014if test -z "$CC"; then
3015 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003016 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003017do
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003021$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003023 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003024else
3025 if test -n "$ac_ct_CC"; then
3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3027else
3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003034 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 -05003035 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003038 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003040 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003041IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042
3043fi
3044fi
3045ac_ct_CC=$ac_cv_prog_ac_ct_CC
3046if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003048$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003051$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003052fi
3053
Theodore Ts'oe1052142006-10-21 21:46:47 -04003054
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003055 test -n "$ac_ct_CC" && break
3056done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003057
Theodore Ts'oe1052142006-10-21 21:46:47 -04003058 if test "x$ac_ct_CC" = x; then
3059 CC=""
3060 else
3061 case $cross_compiling:$ac_tool_warned in
3062yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003063{ $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 +01003064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003065ac_tool_warned=yes ;;
3066esac
3067 CC=$ac_ct_CC
3068 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003069fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003070
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003072
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003073
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003076as_fn_error "no acceptable C compiler found in \$PATH
3077See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078
3079# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003081set X $ac_compile
3082ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003083for ac_option in --version -v -V -qversion; do
3084 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003085case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3088esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3090$as_echo "$ac_try_echo"; } >&5
3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003092 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003093 if test -s conftest.err; then
3094 sed '10a\
3095... rest of stderr output deleted ...
3096 10q' conftest.err >conftest.er1
3097 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003099 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3101 test $ac_status = 0; }
3102done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003105/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003107int
3108main ()
3109{
3110
3111 ;
3112 return 0;
3113}
3114_ACEOF
3115ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117# Try to create an executable without -o first, disregard a.out.
3118# It will help us diagnose broken compilers, and finding out an intuition
3119# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3121$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3123
3124# The possible output files:
3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3126
Theodore Ts'oe1052142006-10-21 21:46:47 -04003127ac_rmfiles=
3128for ac_file in $ac_files
3129do
3130 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003132 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3133 esac
3134done
3135rm -f $ac_rmfiles
3136
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003137if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003138case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3141esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003144 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3150# in a Makefile. We should not override ac_cv_exeext if it was cached,
3151# so that the user can short-circuit this test for compilers unknown to
3152# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003153for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003154do
3155 test -f "$ac_file" || continue
3156 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003158 ;;
3159 [ab].out )
3160 # We found the default executable, but exeext='' is most
3161 # certainly right.
3162 break;;
3163 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003165 then :; else
3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3167 fi
3168 # We set ac_cv_exeext here because the later test for it is not
3169 # safe: cross compilers may not add the suffix if given an `-o'
3170 # argument, so we may need to know it at that point already.
3171 # Even if this section looks crufty: it has the advantage of
3172 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003173 break;;
3174 * )
3175 break;;
3176 esac
3177done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003178test "$ac_cv_exeext" = no && ac_cv_exeext=
3179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003180else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003181 ac_file=''
3182fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003183if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3185$as_echo "no" >&6; }
3186$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003187sed 's/^/| /' conftest.$ac_ext >&5
3188
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191{ as_fn_set_status 77
3192as_fn_error "C compiler cannot create executables
3193See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003194else
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3196$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3199$as_echo_n "checking for C compiler default output file name... " >&6; }
3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3201$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003202ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003203
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003204rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003205ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003207$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003208if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003209case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003215 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003216 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3221# work properly (i.e., refer to `conftest.exe'), while it won't with
3222# `rm'.
3223for ac_file in conftest.exe conftest conftest.*; do
3224 test -f "$ac_file" || continue
3225 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003228 break;;
3229 * ) break;;
3230 esac
3231done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003232else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003235as_fn_error "cannot compute suffix of executables: cannot compile and link
3236See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003237fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003238rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003240$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003241
3242rm -f conftest.$ac_ext
3243EXEEXT=$ac_cv_exeext
3244ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h. */
3247#include <stdio.h>
3248int
3249main ()
3250{
3251FILE *f = fopen ("conftest.out", "w");
3252 return ferror (f) || fclose (f) != 0;
3253
3254 ;
3255 return 0;
3256}
3257_ACEOF
3258ac_clean_files="$ac_clean_files conftest.out"
3259# Check that the compiler produces executables we can run. If not, either
3260# the compiler is broken, or we cross compile.
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3262$as_echo_n "checking whether we are cross compiling... " >&6; }
3263if test "$cross_compiling" != yes; then
3264 { { ac_try="$ac_link"
3265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_link") 2>&5
3272 ac_status=$?
3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }
3275 if { ac_try='./conftest$ac_cv_exeext'
3276 { { case "(($ac_try" in
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3279esac
3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281$as_echo "$ac_try_echo"; } >&5
3282 (eval "$ac_try") 2>&5
3283 ac_status=$?
3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285 test $ac_status = 0; }; }; then
3286 cross_compiling=no
3287 else
3288 if test "$cross_compiling" = maybe; then
3289 cross_compiling=yes
3290 else
3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error "cannot run C compiled programs.
3294If you meant to cross compile, use \`--host'.
3295See \`config.log' for more details." "$LINENO" 5; }
3296 fi
3297 fi
3298fi
3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3300$as_echo "$cross_compiling" >&6; }
3301
3302rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3303ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003305$as_echo_n "checking for suffix of object files... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003306if test "${ac_cv_objext+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003307 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003308else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003310/* end confdefs.h. */
3311
3312int
3313main ()
3314{
3315
3316 ;
3317 return 0;
3318}
3319_ACEOF
3320rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003321if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003328 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003332 for ac_file in conftest.o conftest.obj conftest.*; do
3333 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003334 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3337 break;;
3338 esac
3339done
3340else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003341 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342sed 's/^/| /' conftest.$ac_ext >&5
3343
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003346as_fn_error "cannot compute suffix of object files: cannot compile
3347See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003348fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349rm -f conftest.$ac_cv_objext conftest.$ac_ext
3350fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003352$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353OBJEXT=$ac_cv_objext
3354ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003355{ $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 +01003356$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003357if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003358 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003361/* end confdefs.h. */
3362
3363int
3364main ()
3365{
3366#ifndef __GNUC__
3367 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003368#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003370 ;
3371 return 0;
3372}
3373_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003374if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003375 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003376else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003377 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003378fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003380ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003382fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003384$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3385if test $ac_compiler_gnu = yes; then
3386 GCC=yes
3387else
3388 GCC=
3389fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003390ac_test_CFLAGS=${CFLAGS+set}
3391ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003393$as_echo_n "checking whether $CC accepts -g... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003394if test "${ac_cv_prog_cc_g+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003395 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003396else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003397 ac_save_c_werror_flag=$ac_c_werror_flag
3398 ac_c_werror_flag=yes
3399 ac_cv_prog_cc_g=no
3400 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003402/* end confdefs.h. */
3403
3404int
3405main ()
3406{
3407
3408 ;
3409 return 0;
3410}
3411_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003412if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003413 ac_cv_prog_cc_g=yes
3414else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003415 CFLAGS=""
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003417/* end confdefs.h. */
3418
3419int
3420main ()
3421{
3422
3423 ;
3424 return 0;
3425}
3426_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003427if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003428
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003429else
3430 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003431 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003433/* end confdefs.h. */
3434
3435int
3436main ()
3437{
3438
3439 ;
3440 return 0;
3441}
3442_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003443if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003444 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003445fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451 ac_c_werror_flag=$ac_save_c_werror_flag
3452fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003454$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003455if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003457elif test $ac_cv_prog_cc_g = yes; then
3458 if test "$GCC" = yes; then
3459 CFLAGS="-g -O2"
3460 else
3461 CFLAGS="-g"
3462 fi
3463else
3464 if test "$GCC" = yes; then
3465 CFLAGS="-O2"
3466 else
3467 CFLAGS=
3468 fi
3469fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003471$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003472if test "${ac_cv_prog_cc_c89+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003473 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003475 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478/* end confdefs.h. */
3479#include <stdarg.h>
3480#include <stdio.h>
3481#include <sys/types.h>
3482#include <sys/stat.h>
3483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3484struct buf { int x; };
3485FILE * (*rcsopen) (struct buf *, struct stat *, int);
3486static char *e (p, i)
3487 char **p;
3488 int i;
3489{
3490 return p[i];
3491}
3492static char *f (char * (*g) (char **, int), char **p, ...)
3493{
3494 char *s;
3495 va_list v;
3496 va_start (v,p);
3497 s = g (p, va_arg (v,int));
3498 va_end (v);
3499 return s;
3500}
3501
3502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3503 function prototypes and stuff, but not '\xHH' hex character constants.
3504 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3507 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003508 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003509int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3510
Theodore Ts'oe1052142006-10-21 21:46:47 -04003511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3512 inside strings and character constants. */
3513#define FOO(x) 'x'
3514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516int test (int i, double x);
3517struct s1 {int (*f) (int a);};
3518struct s2 {int (*f) (double a);};
3519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3520int argc;
3521char **argv;
3522int
3523main ()
3524{
3525return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3526 ;
3527 return 0;
3528}
3529_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003532do
3533 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003534 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003535 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003537rm -f core conftest.err conftest.$ac_objext
3538 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003539done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003540rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003541CC=$ac_save_CC
3542
3543fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544# AC_CACHE_VAL
3545case "x$ac_cv_prog_cc_c89" in
3546 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003548$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003551$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003552 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003555$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003556esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003557if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003558
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003559fi
3560
3561ac_ext=c
3562ac_cpp='$CPP $CPPFLAGS'
3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3565ac_compiler_gnu=$ac_cv_c_compiler_gnu
3566
3567
3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3569$as_echo_n "checking for dlopen in -ldl... " >&6; }
3570if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
3571 $as_echo_n "(cached) " >&6
3572else
3573 ac_check_lib_save_LIBS=$LIBS
3574LIBS="-ldl $LIBS"
3575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576/* end confdefs.h. */
3577
3578/* Override any GCC internal prototype to avoid an error.
3579 Use char because int might match the return type of a GCC
3580 builtin and then its argument prototype would still apply. */
3581#ifdef __cplusplus
3582extern "C"
3583#endif
3584char dlopen ();
3585int
3586main ()
3587{
3588return dlopen ();
3589 ;
3590 return 0;
3591}
3592_ACEOF
3593if ac_fn_c_try_link "$LINENO"; then :
3594 ac_cv_lib_dl_dlopen=yes
3595else
3596 ac_cv_lib_dl_dlopen=no
3597fi
3598rm -f core conftest.err conftest.$ac_objext \
3599 conftest$ac_exeext conftest.$ac_ext
3600LIBS=$ac_check_lib_save_LIBS
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3603$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
3604if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
3605 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003606
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003607$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3608
3609fi
3610
3611
3612WITH_DIET_LIBC=
3613
3614# Check whether --with-diet-libc was given.
3615if test "${with_diet_libc+set}" = set; then :
3616 withval=$with_diet_libc; CC="diet cc -nostdinc"
3617WITH_DIET_LIBC=yes
3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
3619$as_echo "CC=$CC" >&6; }
3620fi
3621
3622# Check whether --with-cc was given.
3623if test "${with_cc+set}" = set; then :
3624 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5
3625fi
3626
3627
3628# Check whether --with-ccopts was given.
3629if test "${with_ccopts+set}" = set; then :
3630 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
3631fi
3632
3633
3634# Check whether --with-ldopts was given.
3635if test "${with_ldopts+set}" = set; then :
3636 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
3637fi
3638
3639ac_ext=c
3640ac_cpp='$CPP $CPPFLAGS'
3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644if test -n "$ac_tool_prefix"; then
3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3646set dummy ${ac_tool_prefix}gcc; ac_word=$2
3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648$as_echo_n "checking for $ac_word... " >&6; }
3649if test "${ac_cv_prog_CC+set}" = set; then :
3650 $as_echo_n "(cached) " >&6
3651else
3652 if test -n "$CC"; then
3653 ac_cv_prog_CC="$CC" # Let the user override the test.
3654else
3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656for as_dir in $PATH
3657do
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3665 fi
3666done
3667 done
3668IFS=$as_save_IFS
3669
3670fi
3671fi
3672CC=$ac_cv_prog_CC
3673if test -n "$CC"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3675$as_echo "$CC" >&6; }
3676else
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678$as_echo "no" >&6; }
3679fi
3680
3681
3682fi
3683if test -z "$ac_cv_prog_CC"; then
3684 ac_ct_CC=$CC
3685 # Extract the first word of "gcc", so it can be a program name with args.
3686set dummy gcc; ac_word=$2
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3688$as_echo_n "checking for $ac_word... " >&6; }
3689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3690 $as_echo_n "(cached) " >&6
3691else
3692 if test -n "$ac_ct_CC"; then
3693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3694else
3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696for as_dir in $PATH
3697do
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 ac_cv_prog_ac_ct_CC="gcc"
3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3704 break 2
3705 fi
3706done
3707 done
3708IFS=$as_save_IFS
3709
3710fi
3711fi
3712ac_ct_CC=$ac_cv_prog_ac_ct_CC
3713if test -n "$ac_ct_CC"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3715$as_echo "$ac_ct_CC" >&6; }
3716else
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718$as_echo "no" >&6; }
3719fi
3720
3721 if test "x$ac_ct_CC" = x; then
3722 CC=""
3723 else
3724 case $cross_compiling:$ac_tool_warned in
3725yes:)
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3728ac_tool_warned=yes ;;
3729esac
3730 CC=$ac_ct_CC
3731 fi
3732else
3733 CC="$ac_cv_prog_CC"
3734fi
3735
3736if test -z "$CC"; then
3737 if test -n "$ac_tool_prefix"; then
3738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3739set dummy ${ac_tool_prefix}cc; ac_word=$2
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3741$as_echo_n "checking for $ac_word... " >&6; }
3742if test "${ac_cv_prog_CC+set}" = set; then :
3743 $as_echo_n "(cached) " >&6
3744else
3745 if test -n "$CC"; then
3746 ac_cv_prog_CC="$CC" # Let the user override the test.
3747else
3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3749for as_dir in $PATH
3750do
3751 IFS=$as_save_IFS
3752 test -z "$as_dir" && as_dir=.
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3755 ac_cv_prog_CC="${ac_tool_prefix}cc"
3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3757 break 2
3758 fi
3759done
3760 done
3761IFS=$as_save_IFS
3762
3763fi
3764fi
3765CC=$ac_cv_prog_CC
3766if test -n "$CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768$as_echo "$CC" >&6; }
3769else
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771$as_echo "no" >&6; }
3772fi
3773
3774
3775 fi
3776fi
3777if test -z "$CC"; then
3778 # Extract the first word of "cc", so it can be a program name with args.
3779set dummy cc; ac_word=$2
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781$as_echo_n "checking for $ac_word... " >&6; }
3782if test "${ac_cv_prog_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784else
3785 if test -n "$CC"; then
3786 ac_cv_prog_CC="$CC" # Let the user override the test.
3787else
3788 ac_prog_rejected=no
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
3794 for ac_exec_ext in '' $ac_executable_extensions; do
3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3797 ac_prog_rejected=yes
3798 continue
3799 fi
3800 ac_cv_prog_CC="cc"
3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3802 break 2
3803 fi
3804done
3805 done
3806IFS=$as_save_IFS
3807
3808if test $ac_prog_rejected = yes; then
3809 # We found a bogon in the path, so make sure we never use it.
3810 set dummy $ac_cv_prog_CC
3811 shift
3812 if test $# != 0; then
3813 # We chose a different compiler from the bogus one.
3814 # However, it has the same basename, so the bogon will be chosen
3815 # first if we set CC to just the basename; use the full file name.
3816 shift
3817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3818 fi
3819fi
3820fi
3821fi
3822CC=$ac_cv_prog_CC
3823if test -n "$CC"; then
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3825$as_echo "$CC" >&6; }
3826else
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3828$as_echo "no" >&6; }
3829fi
3830
3831
3832fi
3833if test -z "$CC"; then
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in cl.exe
3836 do
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840$as_echo_n "checking for $ac_word... " >&6; }
3841if test "${ac_cv_prog_CC+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3843else
3844 if test -n "$CC"; then
3845 ac_cv_prog_CC="$CC" # Let the user override the test.
3846else
3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848for as_dir in $PATH
3849do
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3857 fi
3858done
3859 done
3860IFS=$as_save_IFS
3861
3862fi
3863fi
3864CC=$ac_cv_prog_CC
3865if test -n "$CC"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3867$as_echo "$CC" >&6; }
3868else
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870$as_echo "no" >&6; }
3871fi
3872
3873
3874 test -n "$CC" && break
3875 done
3876fi
3877if test -z "$CC"; then
3878 ac_ct_CC=$CC
3879 for ac_prog in cl.exe
3880do
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882set dummy $ac_prog; ac_word=$2
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884$as_echo_n "checking for $ac_word... " >&6; }
3885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887else
3888 if test -n "$ac_ct_CC"; then
3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3890else
3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892for as_dir in $PATH
3893do
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_CC="$ac_prog"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3901 fi
3902done
3903 done
3904IFS=$as_save_IFS
3905
3906fi
3907fi
3908ac_ct_CC=$ac_cv_prog_ac_ct_CC
3909if test -n "$ac_ct_CC"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3911$as_echo "$ac_ct_CC" >&6; }
3912else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914$as_echo "no" >&6; }
3915fi
3916
3917
3918 test -n "$ac_ct_CC" && break
3919done
3920
3921 if test "x$ac_ct_CC" = x; then
3922 CC=""
3923 else
3924 case $cross_compiling:$ac_tool_warned in
3925yes:)
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3928ac_tool_warned=yes ;;
3929esac
3930 CC=$ac_ct_CC
3931 fi
3932fi
3933
3934fi
3935
3936
3937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939as_fn_error "no acceptable C compiler found in \$PATH
3940See \`config.log' for more details." "$LINENO" 5; }
3941
3942# Provide some information about the compiler.
3943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3944set X $ac_compile
3945ac_compiler=$2
3946for ac_option in --version -v -V -qversion; do
3947 { { ac_try="$ac_compiler $ac_option >&5"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3953$as_echo "$ac_try_echo"; } >&5
3954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3955 ac_status=$?
3956 if test -s conftest.err; then
3957 sed '10a\
3958... rest of stderr output deleted ...
3959 10q' conftest.err >conftest.er1
3960 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003961 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003962 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }
3965done
3966
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3969if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3970 $as_echo_n "(cached) " >&6
3971else
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h. */
3974
3975int
3976main ()
3977{
3978#ifndef __GNUC__
3979 choke me
3980#endif
3981
3982 ;
3983 return 0;
3984}
3985_ACEOF
3986if ac_fn_c_try_compile "$LINENO"; then :
3987 ac_compiler_gnu=yes
3988else
3989 ac_compiler_gnu=no
3990fi
3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3996$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3997if test $ac_compiler_gnu = yes; then
3998 GCC=yes
3999else
4000 GCC=
4001fi
4002ac_test_CFLAGS=${CFLAGS+set}
4003ac_save_CFLAGS=$CFLAGS
4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4005$as_echo_n "checking whether $CC accepts -g... " >&6; }
4006if test "${ac_cv_prog_cc_g+set}" = set; then :
4007 $as_echo_n "(cached) " >&6
4008else
4009 ac_save_c_werror_flag=$ac_c_werror_flag
4010 ac_c_werror_flag=yes
4011 ac_cv_prog_cc_g=no
4012 CFLAGS="-g"
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014/* end confdefs.h. */
4015
4016int
4017main ()
4018{
4019
4020 ;
4021 return 0;
4022}
4023_ACEOF
4024if ac_fn_c_try_compile "$LINENO"; then :
4025 ac_cv_prog_cc_g=yes
4026else
4027 CFLAGS=""
4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4029/* end confdefs.h. */
4030
4031int
4032main ()
4033{
4034
4035 ;
4036 return 0;
4037}
4038_ACEOF
4039if ac_fn_c_try_compile "$LINENO"; then :
4040
4041else
4042 ac_c_werror_flag=$ac_save_c_werror_flag
4043 CFLAGS="-g"
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045/* end confdefs.h. */
4046
4047int
4048main ()
4049{
4050
4051 ;
4052 return 0;
4053}
4054_ACEOF
4055if ac_fn_c_try_compile "$LINENO"; then :
4056 ac_cv_prog_cc_g=yes
4057fi
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061fi
4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 ac_c_werror_flag=$ac_save_c_werror_flag
4064fi
4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4066$as_echo "$ac_cv_prog_cc_g" >&6; }
4067if test "$ac_test_CFLAGS" = set; then
4068 CFLAGS=$ac_save_CFLAGS
4069elif test $ac_cv_prog_cc_g = yes; then
4070 if test "$GCC" = yes; then
4071 CFLAGS="-g -O2"
4072 else
4073 CFLAGS="-g"
4074 fi
4075else
4076 if test "$GCC" = yes; then
4077 CFLAGS="-O2"
4078 else
4079 CFLAGS=
4080 fi
4081fi
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4084if test "${ac_cv_prog_cc_c89+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086else
4087 ac_cv_prog_cc_c89=no
4088ac_save_CC=$CC
4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <stdarg.h>
4092#include <stdio.h>
4093#include <sys/types.h>
4094#include <sys/stat.h>
4095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4096struct buf { int x; };
4097FILE * (*rcsopen) (struct buf *, struct stat *, int);
4098static char *e (p, i)
4099 char **p;
4100 int i;
4101{
4102 return p[i];
4103}
4104static char *f (char * (*g) (char **, int), char **p, ...)
4105{
4106 char *s;
4107 va_list v;
4108 va_start (v,p);
4109 s = g (p, va_arg (v,int));
4110 va_end (v);
4111 return s;
4112}
4113
4114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4115 function prototypes and stuff, but not '\xHH' hex character constants.
4116 These don't provoke an error unfortunately, instead are silently treated
4117 as 'x'. The following induces an error, until -std is added to get
4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4119 array size at least. It's necessary to write '\x00'==0 to get something
4120 that's true only with -std. */
4121int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4122
4123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4124 inside strings and character constants. */
4125#define FOO(x) 'x'
4126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4127
4128int test (int i, double x);
4129struct s1 {int (*f) (int a);};
4130struct s2 {int (*f) (double a);};
4131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132int argc;
4133char **argv;
4134int
4135main ()
4136{
4137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4138 ;
4139 return 0;
4140}
4141_ACEOF
4142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4144do
4145 CC="$ac_save_CC $ac_arg"
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_cv_prog_cc_c89=$ac_arg
4148fi
4149rm -f core conftest.err conftest.$ac_objext
4150 test "x$ac_cv_prog_cc_c89" != "xno" && break
4151done
4152rm -f conftest.$ac_ext
4153CC=$ac_save_CC
4154
4155fi
4156# AC_CACHE_VAL
4157case "x$ac_cv_prog_cc_c89" in
4158 x)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4160$as_echo "none needed" >&6; } ;;
4161 xno)
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4163$as_echo "unsupported" >&6; } ;;
4164 *)
4165 CC="$CC $ac_cv_prog_cc_c89"
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4168esac
4169if test "x$ac_cv_prog_cc_c89" != xno; then :
4170
4171fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004173ac_ext=c
4174ac_cpp='$CPP $CPPFLAGS'
4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004179if test "$GCC" = yes; then
4180 RDYNAMIC="-rdynamic"
4181
4182fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004183ac_ext=c
4184ac_cpp='$CPP $CPPFLAGS'
4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4187ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004189$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004190# On Suns, sometimes $CPP names a directory.
4191if test -n "$CPP" && test -d "$CPP"; then
4192 CPP=
4193fi
4194if test -z "$CPP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004195 if test "${ac_cv_prog_CPP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004196 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004197else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004198 # Double quotes because CPP needs to be expanded
4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200 do
4201 ac_preproc_ok=false
4202for ac_c_preproc_warn_flag in '' yes
4203do
4204 # Use a header file that comes with gcc, so configuring glibc
4205 # with a fresh cross-compiler works.
4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4207 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004208 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004209 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004211/* end confdefs.h. */
4212#ifdef __STDC__
4213# include <limits.h>
4214#else
4215# include <assert.h>
4216#endif
4217 Syntax error
4218_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004219if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004220
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004221else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004222 # Broken: fails on valid input.
4223continue
4224fi
4225rm -f conftest.err conftest.$ac_ext
4226
Theodore Ts'oe1052142006-10-21 21:46:47 -04004227 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004228 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004230/* end confdefs.h. */
4231#include <ac_nonexistent.h>
4232_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004233if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004234 # Broken: success on invalid input.
4235continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004236else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004237 # Passes both tests.
4238ac_preproc_ok=:
4239break
4240fi
4241rm -f conftest.err conftest.$ac_ext
4242
4243done
4244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4245rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004246if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004247 break
4248fi
4249
4250 done
4251 ac_cv_prog_CPP=$CPP
4252
4253fi
4254 CPP=$ac_cv_prog_CPP
4255else
4256 ac_cv_prog_CPP=$CPP
4257fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004259$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004260ac_preproc_ok=false
4261for ac_c_preproc_warn_flag in '' yes
4262do
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004270/* end confdefs.h. */
4271#ifdef __STDC__
4272# include <limits.h>
4273#else
4274# include <assert.h>
4275#endif
4276 Syntax error
4277_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004278if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004279
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004280else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281 # Broken: fails on valid input.
4282continue
4283fi
4284rm -f conftest.err conftest.$ac_ext
4285
Theodore Ts'oe1052142006-10-21 21:46:47 -04004286 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004289/* end confdefs.h. */
4290#include <ac_nonexistent.h>
4291_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004292if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293 # Broken: success on invalid input.
4294continue
4295else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296 # Passes both tests.
4297ac_preproc_ok=:
4298break
4299fi
4300rm -f conftest.err conftest.$ac_ext
4301
4302done
4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4304rm -f conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004305if $ac_preproc_ok; then :
4306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004307else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004310as_fn_error "C preprocessor \"$CPP\" fails sanity check
4311See \`config.log' for more details." "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004312fi
4313
4314ac_ext=c
4315ac_cpp='$CPP $CPPFLAGS'
4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4318ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004321$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004322if test "$GCC" = yes
4323then
4324 case "$host_cpu" in
4325 alpha) addcflags="-mieee" ;;
4326 esac
4327fi
4328if test "x$addcflags" != x
4329then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004331$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004332 CFLAGS="$addcflags $CFLAGS"
4333else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004335$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004336fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004337LIB_EXT=.a
4338STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004339PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340
Theodore Ts'oe1052142006-10-21 21:46:47 -04004341# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004342if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004343 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004344else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004345 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004346fi
4347# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004348if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004349 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004350then
4351 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004353$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004354else
4355 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004357$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004358fi
4359
4360else
4361 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004363$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004364
Theodore Ts'oe1052142006-10-21 21:46:47 -04004365fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004366
Theodore Ts'oe1052142006-10-21 21:46:47 -04004367
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004368# Check whether --enable-symlink-install was given.
4369if test "${enable_symlink_install+set}" = set; then :
4370 enableval=$enable_symlink_install; if test "$enableval" = "no"
4371then
4372 LINK_INSTALL_FLAGS=-f
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4374$as_echo "Disabling symlinks for install" >&6; }
4375else
4376 LINK_INSTALL_FLAGS=-sf
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4378$as_echo "Enabling symlinks for install" >&6; }
4379fi
4380
4381else
4382 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4384$as_echo "Disabling symlinks for install by default" >&6; }
4385
4386fi
4387
4388
4389# Check whether --enable-symlink-relative-symlinks was given.
4390if test "${enable_symlink_relative_symlinks+set}" = set; then :
4391 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4392then
4393 SYMLINK_RELATIVE=
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4395$as_echo "Disabling relative symlinks for install" >&6; }
4396else
4397 SYMLINK_RELATIVE=--relative
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4399$as_echo "Enabling symlinks for install" >&6; }
4400fi
4401
4402else
4403 SYMLINK_RELATIVE=
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4405$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004406
4407fi
4408
4409
4410# Check whether --enable-symlink-build was given.
4411if test "${enable_symlink_build+set}" = set; then :
4412 enableval=$enable_symlink_build; if test "$enableval" = "no"
4413then
4414 LINK_BUILD_FLAGS=
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4416$as_echo "Disabling symlinks for build" >&6; }
4417else
4418 LINK_BUILD_FLAGS=-s
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4420$as_echo "Enabling symlinks for build" >&6; }
4421fi
4422
4423else
4424 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4426$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004427
4428fi
4429
4430
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004431# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004432if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004433 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4434then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004436$as_echo "Disabling verbose make commands" >&6; }
4437 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004438 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004439 Q=@
4440else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004442$as_echo "Enabling verbose make commands" >&6; }
4443 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004444 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004445 Q=
4446fi
4447
4448else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004450$as_echo "Disabling verbose make commands" >&6; }
4451E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004452ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004453Q=@
4454
4455fi
4456
4457
4458
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004459
Theodore Ts'oe1052142006-10-21 21:46:47 -04004460# Check whether --enable-compression was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004461if test "${enable_compression+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004462 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00004463then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004465$as_echo "Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004466else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004467
4468$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h
Theodore Ts'o19178752000-02-11 15:55:07 +00004469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004471$as_echo "Enabling compression support" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004473$as_echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00004474fi
4475
4476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004478$as_echo "Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00004479
Theodore Ts'oe1052142006-10-21 21:46:47 -04004480fi
4481
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004482
Theodore Ts'oe1052142006-10-21 21:46:47 -04004483# Check whether --enable-htree was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004484if test "${enable_htree+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004485 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004486then
4487 HTREE_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004489$as_echo "Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004490else
4491 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004492 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004495$as_echo "Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004496fi
4497
4498else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004499 HTREE_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004500$as_echo "#define ENABLE_HTREE 1" >>confdefs.h
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04004501
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004503$as_echo "Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004504
Theodore Ts'oe1052142006-10-21 21:46:47 -04004505fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04004506
Theodore Ts'oe1052142006-10-21 21:46:47 -04004507
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004508E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004509LDFLAG_DYNAMIC=
4510PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004511# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004512if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004513 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004514then
4515 ELF_CMT=#
4516 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004518$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004519else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004520 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004521 ELF_CMT=
4522 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004523 case "$host_os" in
4524 solaris2.*)
4525 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4526 ;;
4527 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004528 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004529 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004530 PRIVATE_LIBS_CMT=#
4531 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004533$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004534fi
4535
4536else
4537 MAKEFILE_ELF=/dev/null
4538ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004540$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004541
Theodore Ts'oe1052142006-10-21 21:46:47 -04004542fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004543
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004544
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545
4546# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004547if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004548 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004549then
4550 BSDLIB_CMT=#
4551 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004553$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004554else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004555 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004556 BSDLIB_CMT=
4557 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004558 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004559 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004560 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004561 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4562 LIB_EXT=.dylib
4563 ;;
4564 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004566$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004567fi
4568
4569else
4570 MAKEFILE_BSDLIB=/dev/null
4571BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004573$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004574
Theodore Ts'oe1052142006-10-21 21:46:47 -04004575fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004576
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004577
Theodore Ts'oe1052142006-10-21 21:46:47 -04004578
4579# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004580if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004581 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004582then
4583 PROFILE_CMT=#
4584 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004586$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004587else
4588 PROFILE_CMT=
4589 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4590 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004592$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004593fi
4594
4595else
4596 PROFILE_CMT=#
4597MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004599$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004600
Theodore Ts'oe1052142006-10-21 21:46:47 -04004601fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004602
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004603
Theodore Ts'oe1052142006-10-21 21:46:47 -04004604
4605# Check whether --enable-checker was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004606if test "${enable_checker+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004608then
4609 CHECKER_CMT=#
4610 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004612$as_echo "Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004613else
4614 CHECKER_CMT=
4615 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004617$as_echo "Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004618fi
4619
4620else
4621 CHECKER_CMT=#
4622MAKEFILE_CHECKER=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004624$as_echo "Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004625
Theodore Ts'oe1052142006-10-21 21:46:47 -04004626fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004627
4628
4629
4630
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004631
Theodore Ts'oe1052142006-10-21 21:46:47 -04004632
Theodore Ts'o55da9872008-09-02 23:12:38 -04004633
4634
Theodore Ts'oe1052142006-10-21 21:46:47 -04004635# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004636if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004637 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004638then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004640$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004641else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004642
4643$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004644
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004646$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004647fi
4648
4649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004651$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00004652
Theodore Ts'oe1052142006-10-21 21:46:47 -04004653fi
4654
4655# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004656if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004657 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004658then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004660$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004661else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004662
4663$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004664
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004666$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004667fi
4668
4669else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004671$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004672
Theodore Ts'oe1052142006-10-21 21:46:47 -04004673fi
4674
4675# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004676if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04004677 enableval=$enable_testio_debug;
4678if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004679then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004681$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04004682 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004683else
Theodore Ts'oaf773652008-09-01 11:27:27 -04004684 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004685 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004686
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004688$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004689fi
4690
4691else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004693$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004694$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04004695
4696TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004697
Theodore Ts'oe1052142006-10-21 21:46:47 -04004698fi
4699
Theodore Ts'oaf773652008-09-01 11:27:27 -04004700
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004701
4702
4703if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4704 if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004708$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004709if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004710 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004711else
4712 case $PKG_CONFIG in
4713 [\\/]* | ?:[\\/]*)
4714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4715 ;;
4716 *)
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718for as_dir in $PATH
4719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004722 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004726 break 2
4727 fi
4728done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004729 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004730IFS=$as_save_IFS
4731
4732 ;;
4733esac
4734fi
4735PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4736if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004738$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004739else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004741$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004742fi
4743
4744
4745fi
4746if test -z "$ac_cv_path_PKG_CONFIG"; then
4747 ac_pt_PKG_CONFIG=$PKG_CONFIG
4748 # Extract the first word of "pkg-config", so it can be a program name with args.
4749set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004751$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004752if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004753 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004754else
4755 case $ac_pt_PKG_CONFIG in
4756 [\\/]* | ?:[\\/]*)
4757 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4758 ;;
4759 *)
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004765 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004769 break 2
4770 fi
4771done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004772 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004773IFS=$as_save_IFS
4774
4775 ;;
4776esac
4777fi
4778ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4779if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004781$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004782else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004784$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004785fi
4786
4787 if test "x$ac_pt_PKG_CONFIG" = x; then
4788 PKG_CONFIG=""
4789 else
4790 case $cross_compiling:$ac_tool_warned in
4791yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004792{ $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 +01004793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004794ac_tool_warned=yes ;;
4795esac
4796 PKG_CONFIG=$ac_pt_PKG_CONFIG
4797 fi
4798else
4799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4800fi
4801
4802fi
4803if test -n "$PKG_CONFIG"; then
4804 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004805 { $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 +01004806$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004807 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004809$as_echo "yes" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004810 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004812$as_echo "no" >&6; }
4813 PKG_CONFIG=""
4814 fi
4815
4816fi
4817LIBUUID=
4818DEPLIBUUID=
4819STATIC_LIBUUID=
4820DEPSTATIC_LIBUUID=
4821PROFILED_LIBUUID=
4822DEPPROFILED_LIBUUID=
4823UUID_CMT=
4824# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004825if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004826 enableval=$enable_libuuid; if test "$enableval" = "no"
4827then
4828 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004829 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004830 fi
4831
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004833$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004834if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004835 $as_echo_n "(cached) " >&6
4836else
4837 ac_check_lib_save_LIBS=$LIBS
4838LIBS="-luuid $LIBUUID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004840/* end confdefs.h. */
4841
4842/* Override any GCC internal prototype to avoid an error.
4843 Use char because int might match the return type of a GCC
4844 builtin and then its argument prototype would still apply. */
4845#ifdef __cplusplus
4846extern "C"
4847#endif
4848char uuid_generate ();
4849int
4850main ()
4851{
4852return uuid_generate ();
4853 ;
4854 return 0;
4855}
4856_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004857if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004858 ac_cv_lib_uuid_uuid_generate=yes
4859else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004860 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004861fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004862rm -f core conftest.err conftest.$ac_objext \
4863 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004864LIBS=$ac_check_lib_save_LIBS
4865fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004867$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004868if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004869 LIBUUID=`$PKG_CONFIG --libs uuid`;
4870 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
4871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004872 as_fn_error "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004873fi
4874
4875 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004877$as_echo "Disabling private uuid library" >&6; }
4878else
4879 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4880 DEPLIBUUID=$LIBUUID
4881 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4882 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4883 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4884 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004886$as_echo "Enabling private uuid library" >&6; }
4887fi
4888
4889else
4890 LIBUUID='$(LIB)/libuuid'$LIB_EXT
4891DEPLIBUUID=$LIBUUID
4892STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
4893DEPSTATIC_LIBUUID=$STATIC_LIBUUID
4894PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
4895DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004897$as_echo "Enabling private uuid library by default" >&6; }
4898
4899fi
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4911 if test -n "$ac_tool_prefix"; then
4912 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4913set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004915$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004916if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004917 $as_echo_n "(cached) " >&6
4918else
4919 case $PKG_CONFIG in
4920 [\\/]* | ?:[\\/]*)
4921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4922 ;;
4923 *)
4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4925for as_dir in $PATH
4926do
4927 IFS=$as_save_IFS
4928 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004929 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004933 break 2
4934 fi
4935done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004936 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004937IFS=$as_save_IFS
4938
4939 ;;
4940esac
4941fi
4942PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4943if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004945$as_echo "$PKG_CONFIG" >&6; }
4946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004948$as_echo "no" >&6; }
4949fi
4950
4951
4952fi
4953if test -z "$ac_cv_path_PKG_CONFIG"; then
4954 ac_pt_PKG_CONFIG=$PKG_CONFIG
4955 # Extract the first word of "pkg-config", so it can be a program name with args.
4956set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004959if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004960 $as_echo_n "(cached) " >&6
4961else
4962 case $ac_pt_PKG_CONFIG in
4963 [\\/]* | ?:[\\/]*)
4964 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4965 ;;
4966 *)
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968for as_dir in $PATH
4969do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004972 for ac_exec_ext in '' $ac_executable_extensions; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004976 break 2
4977 fi
4978done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004979 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004980IFS=$as_save_IFS
4981
4982 ;;
4983esac
4984fi
4985ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4986if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004988$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4989else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004991$as_echo "no" >&6; }
4992fi
4993
4994 if test "x$ac_pt_PKG_CONFIG" = x; then
4995 PKG_CONFIG=""
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004999{ $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 +01005000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001ac_tool_warned=yes ;;
5002esac
5003 PKG_CONFIG=$ac_pt_PKG_CONFIG
5004 fi
5005else
5006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5007fi
5008
5009fi
5010if test -n "$PKG_CONFIG"; then
5011 _pkg_min_version=0.9.0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005012 { $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 +01005013$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5014 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005016$as_echo "yes" >&6; }
5017 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005019$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005020 PKG_CONFIG=""
5021 fi
5022
5023fi
5024LIBBLKID=
5025DEPLIBBLKID=
5026STATIC_LIBBLKID=
5027DEPSTATIC_LIBBLKID=
5028PROFILED_LIBBLKID=
5029DEPPROFILED_LIBBLKID=
5030BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005031
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005032# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005033if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005034 enableval=$enable_libblkid; if test "$enableval" = "no"
5035then
5036 if test -z "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005037 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005038 fi
5039
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005041$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005042if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005043 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005044else
5045 ac_check_lib_save_LIBS=$LIBS
5046LIBS="-lblkid $LIBBLKID $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005048/* end confdefs.h. */
5049
5050/* Override any GCC internal prototype to avoid an error.
5051 Use char because int might match the return type of a GCC
5052 builtin and then its argument prototype would still apply. */
5053#ifdef __cplusplus
5054extern "C"
5055#endif
5056char blkid_get_cache ();
5057int
5058main ()
5059{
5060return blkid_get_cache ();
5061 ;
5062 return 0;
5063}
5064_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005066 ac_cv_lib_blkid_blkid_get_cache=yes
5067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005069fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005070rm -f core conftest.err conftest.$ac_objext \
5071 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005072LIBS=$ac_check_lib_save_LIBS
5073fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005076if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005077 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5078 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5079else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080 as_fn_error "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005081fi
5082
5083 BLKID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005086else
5087 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5088 DEPLIBBLKID=$LIBBLKID
5089 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5090 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5091 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5092 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005094
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005096$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005097fi
5098
5099else
5100 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5101DEPLIBBLKID=$LIBBLKID
5102STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5103DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5104PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5105DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005106$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005107
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005109$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005110
5111fi
5112
5113
5114
5115
5116
5117
5118
5119
Aditya Kalif239fef2011-07-20 11:40:02 -07005120
5121
5122if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5123 if test -n "$ac_tool_prefix"; then
5124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5125set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127$as_echo_n "checking for $ac_word... " >&6; }
5128if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130else
5131 case $PKG_CONFIG in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5134 ;;
5135 *)
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147done
5148 done
5149IFS=$as_save_IFS
5150
5151 ;;
5152esac
5153fi
5154PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5155if test -n "$PKG_CONFIG"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5157$as_echo "$PKG_CONFIG" >&6; }
5158else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160$as_echo "no" >&6; }
5161fi
5162
5163
5164fi
5165if test -z "$ac_cv_path_PKG_CONFIG"; then
5166 ac_pt_PKG_CONFIG=$PKG_CONFIG
5167 # Extract the first word of "pkg-config", so it can be a program name with args.
5168set dummy pkg-config; ac_word=$2
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170$as_echo_n "checking for $ac_word... " >&6; }
5171if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
5172 $as_echo_n "(cached) " >&6
5173else
5174 case $ac_pt_PKG_CONFIG in
5175 [\\/]* | ?:[\\/]*)
5176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5177 ;;
5178 *)
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190done
5191 done
5192IFS=$as_save_IFS
5193
5194 ;;
5195esac
5196fi
5197ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5198if test -n "$ac_pt_PKG_CONFIG"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5200$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5201else
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5203$as_echo "no" >&6; }
5204fi
5205
5206 if test "x$ac_pt_PKG_CONFIG" = x; then
5207 PKG_CONFIG=""
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210yes:)
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5213ac_tool_warned=yes ;;
5214esac
5215 PKG_CONFIG=$ac_pt_PKG_CONFIG
5216 fi
5217else
5218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5219fi
5220
5221fi
5222if test -n "$PKG_CONFIG"; then
5223 _pkg_min_version=0.9.0
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5225$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5228$as_echo "yes" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231$as_echo "no" >&6; }
5232 PKG_CONFIG=""
5233 fi
5234
5235fi
Theodore Ts'o7becb202011-11-14 10:40:43 -05005236
5237# Check whether --enable-quota was given.
5238if test "${enable_quota+set}" = set; then :
5239 enableval=$enable_quota; if test "$enableval" = "no"
Aditya Kalif239fef2011-07-20 11:40:02 -07005240then
Theodore Ts'o7becb202011-11-14 10:40:43 -05005241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5
5242$as_echo "Disabling quota support" >&6; }
5243else
5244 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h
Aditya Kalif239fef2011-07-20 11:40:02 -07005245
Theodore Ts'o7becb202011-11-14 10:40:43 -05005246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5
5247$as_echo "Enabling quota support" >&6; }
Aditya Kalif239fef2011-07-20 11:40:02 -07005248fi
5249
5250else
Theodore Ts'o7becb202011-11-14 10:40:43 -05005251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5
5252$as_echo "Disabling quota support by default" >&6; }
5253
5254fi
5255
5256LIBQUOTA='$(LIB)/libquota'$LIB_EXT
Aditya Kalif239fef2011-07-20 11:40:02 -07005257DEPLIBQUOTA=$LIBQUOTA
5258STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT
5259DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA
5260PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT
5261DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA
Aditya Kalif239fef2011-07-20 11:40:02 -07005262
5263
5264
5265
5266
5267
5268
Theodore Ts'oe1052142006-10-21 21:46:47 -04005269# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005270if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005271 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005272then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005274$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005275 DEBUGFS_CMT="#"
5276else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005277 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005279$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005280fi
5281
5282else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005284$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005285DEBUGFS_CMT=
5286
Theodore Ts'oe1052142006-10-21 21:46:47 -04005287fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005288
Theodore Ts'oe1052142006-10-21 21:46:47 -04005289
5290# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005291if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005292 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005293then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005296 IMAGER_CMT="#"
5297else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005298 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005300$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005301fi
5302
5303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005305$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005306IMAGER_CMT=
5307
Theodore Ts'oe1052142006-10-21 21:46:47 -04005308fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005309
Theodore Ts'oe1052142006-10-21 21:46:47 -04005310
5311# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005312if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005313 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005314then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005316$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005317 RESIZER_CMT="#"
5318else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005319 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005321$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005322fi
5323
5324else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005326$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005327RESIZER_CMT=
5328
Theodore Ts'oe1052142006-10-21 21:46:47 -04005329fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005330
Theodore Ts'oe1052142006-10-21 21:46:47 -04005331
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005332# Check whether --enable-defrag was given.
5333if test "${enable_defrag+set}" = set; then :
5334 enableval=$enable_defrag; if test "$enableval" = "no"
5335then
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5337$as_echo "Disabling e4defrag support" >&6; }
5338 DEFRAG_CMT="#"
5339else
5340 DEFRAG_CMT=
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5342$as_echo "Enabling e4defrag support" >&6; }
5343fi
5344
5345else
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
5347$as_echo "Enabling e4defrag support by default" >&6; }
5348DEFRAG_CMT=
5349
5350fi
5351
5352
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005354if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005355 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005356then
5357 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005359$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005360else
5361 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005363$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005364fi
5365
5366else
5367 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005368 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005369 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005371$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005372 ;;
5373 *)
5374 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005376$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005377esac
5378
Theodore Ts'oe1052142006-10-21 21:46:47 -04005379fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005380
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005381
Theodore Ts'oe1052142006-10-21 21:46:47 -04005382
5383# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005384if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005385 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005386then
5387 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005389$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005390else
5391 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005394fi
5395
5396else
5397 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005399$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005400
Theodore Ts'oe1052142006-10-21 21:46:47 -04005401fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005402
5403
Theodore Ts'oe1052142006-10-21 21:46:47 -04005404
Theodore Ts'o32493942007-12-31 10:45:01 -05005405# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005407 enableval=$enable_tls; if test "$enableval" = "no"
5408then
5409 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005411$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005412else
5413 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005415$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005416fi
5417
5418else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005419 if test -n "$WITH_DIET_LIBC"
5420then
5421 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422 { $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 +01005423$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005424else
5425 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005427$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005428fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005429
5430fi
5431
5432if test "$try_tls" = "yes"
5433then
5434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005436$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005437 if test "${ac_cv_tls+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005438 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005439else
5440
5441 ax_tls_keywords="__thread __declspec(thread) none"
5442 for ax_tls_keyword in $ax_tls_keywords; do
5443 case $ax_tls_keyword in
5444 none) ac_cv_tls=none ; break ;;
5445 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005447/* end confdefs.h. */
5448#include <stdlib.h>
5449 static void
5450 foo(void) {
5451 static $ax_tls_keyword int bar;
5452 exit(1);
5453 }
5454int
5455main ()
5456{
5457
5458 ;
5459 return 0;
5460}
5461_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005463 ac_cv_tls=$ax_tls_keyword ; break
5464else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005465 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005466
5467fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469 esac
5470 done
5471
5472fi
5473
5474
5475 if test "$ac_cv_tls" != "none"; then
5476
5477cat >>confdefs.h <<_ACEOF
5478#define TLS $ac_cv_tls
5479_ACEOF
5480
5481 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005483$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005484
5485fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005486
Theodore Ts'o5610f992007-12-31 11:16:56 -05005487# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005488if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005489 enableval=$enable_uuidd; if test "$enableval" = "no"
5490then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005493 UUIDD_CMT="#"
5494else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005495 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005496
5497 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005499$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005500fi
5501
5502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005503 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005504
5505UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005507$as_echo "Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005508
5509fi
5510
5511
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005512MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005514GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005515PACKAGE=e2fsprogs
5516VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005517VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005519cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005520#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005521_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005522
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005524cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005525#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005526_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005527
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005528
5529
5530
5531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005533$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5534set x ${MAKE-make}
5535ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005536if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005537 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005538else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005539 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005540SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005541all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04005542 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005543_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005544# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04005545case `${MAKE-make} -f conftest.make 2>/dev/null` in
5546 *@@@%%%=?*=@@@%%%*)
5547 eval ac_cv_prog_make_${ac_make}_set=yes;;
5548 *)
5549 eval ac_cv_prog_make_${ac_make}_set=no;;
5550esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005551rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005552fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005553if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005555$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005556 SET_MAKE=
5557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005559$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005560 SET_MAKE="MAKE=${MAKE-make}"
5561fi
5562
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005563# Find a good install program. We prefer a C program (faster),
5564# so one script is as good as another. But avoid the broken or
5565# incompatible versions:
5566# SysV /etc/install, /usr/sbin/install
5567# SunOS /usr/etc/install
5568# IRIX /sbin/install
5569# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005570# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5572# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005574# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005575# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005576# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005578$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005579if test -z "$INSTALL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005580if test "${ac_cv_path_install+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005581 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005582else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584for as_dir in $PATH
5585do
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005588 # Account for people who put trailing slashes in PATH elements.
5589case $as_dir/ in #((
5590 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005593 /usr/ucb/* ) ;;
5594 *)
5595 # OSF1 and SCO ODT 3.0 have their own names for install.
5596 # Don't use installbsd from OSF since it installs stuff as root
5597 # by default.
5598 for ac_prog in ginstall scoinst install; do
5599 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005600 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 -04005601 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005603 # AIX install. It has an incompatible calling convention.
5604 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005605 elif test $ac_prog = install &&
5606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5607 # program-specific install script used by HP pwplus--don't use.
5608 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005609 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005610 rm -rf conftest.one conftest.two conftest.dir
5611 echo one > conftest.one
5612 echo two > conftest.two
5613 mkdir conftest.dir
5614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5615 test -s conftest.one && test -s conftest.two &&
5616 test -s conftest.dir/conftest.one &&
5617 test -s conftest.dir/conftest.two
5618 then
5619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5620 break 3
5621 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005622 fi
5623 fi
5624 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005625 done
5626 ;;
5627esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005628
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005629 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005630IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005631
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005632rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005633
5634fi
5635 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005636 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005637 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04005638 # As a last resort, use the slow shell script. Don't cache a
5639 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005640 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04005641 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005642 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005643 fi
5644fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005646$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005647
5648# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5649# It thinks the first close brace ends the variable substitution.
5650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5651
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005653
5654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5655
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005656
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005657 MKINSTALLDIRS=
5658 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005659 case "$ac_aux_dir" in
5660 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5661 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5662 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005663 fi
5664 if test -z "$MKINSTALLDIRS"; then
5665 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5666 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04005667
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005668
5669
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005671$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04005672 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005673if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005674 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005675else
5676 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04005677fi
5678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005680$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005681
5682
5683
5684
5685
5686
5687# Prepare PATH_SEPARATOR.
5688# The user is always right.
5689if test "${PATH_SEPARATOR+set}" != set; then
5690 echo "#! /bin/sh" >conf$$.sh
5691 echo "exit 0" >>conf$$.sh
5692 chmod +x conf$$.sh
5693 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5694 PATH_SEPARATOR=';'
5695 else
5696 PATH_SEPARATOR=:
5697 fi
5698 rm -f conf$$.sh
5699fi
5700
5701# Find out how to test for executable files. Don't use a zero-byte file,
5702# as systems may use methods other than mode bits to determine executability.
5703cat >conf$$.file <<_ASEOF
5704#! /bin/sh
5705exit 0
5706_ASEOF
5707chmod +x conf$$.file
5708if test -x conf$$.file >/dev/null 2>&1; then
5709 ac_executable_p="test -x"
5710else
5711 ac_executable_p="test -f"
5712fi
5713rm -f conf$$.file
5714
5715# Extract the first word of "msgfmt", so it can be a program name with args.
5716set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005718$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005719if test "${ac_cv_path_MSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005721else
5722 case "$MSGFMT" in
5723 [\\/]* | ?:[\\/]*)
5724 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5725 ;;
5726 *)
5727 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5728 for ac_dir in $PATH; do
5729 IFS="$ac_save_IFS"
5730 test -z "$ac_dir" && ac_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5733 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5734 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5735 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5736 break 2
5737 fi
5738 fi
5739 done
5740 done
5741 IFS="$ac_save_IFS"
5742 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5743 ;;
5744esac
5745fi
5746MSGFMT="$ac_cv_path_MSGFMT"
5747if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005749$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005750else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005752$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005753fi
5754
5755 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5756set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005758$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759if test "${ac_cv_path_GMSGFMT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005760 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005761else
5762 case $GMSGFMT in
5763 [\\/]* | ?:[\\/]*)
5764 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5765 ;;
5766 *)
5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768for as_dir in $PATH
5769do
5770 IFS=$as_save_IFS
5771 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005773 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 -05005774 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005776 break 2
5777 fi
5778done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005779 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005781
5782 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5783 ;;
5784esac
5785fi
5786GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005787if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005790else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005793fi
5794
5795
5796
Theodore Ts'oe1052142006-10-21 21:46:47 -04005797
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005798# Prepare PATH_SEPARATOR.
5799# The user is always right.
5800if test "${PATH_SEPARATOR+set}" != set; then
5801 echo "#! /bin/sh" >conf$$.sh
5802 echo "exit 0" >>conf$$.sh
5803 chmod +x conf$$.sh
5804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5805 PATH_SEPARATOR=';'
5806 else
5807 PATH_SEPARATOR=:
5808 fi
5809 rm -f conf$$.sh
5810fi
5811
5812# Find out how to test for executable files. Don't use a zero-byte file,
5813# as systems may use methods other than mode bits to determine executability.
5814cat >conf$$.file <<_ASEOF
5815#! /bin/sh
5816exit 0
5817_ASEOF
5818chmod +x conf$$.file
5819if test -x conf$$.file >/dev/null 2>&1; then
5820 ac_executable_p="test -x"
5821else
5822 ac_executable_p="test -f"
5823fi
5824rm -f conf$$.file
5825
5826# Extract the first word of "xgettext", so it can be a program name with args.
5827set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005829$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005830if test "${ac_cv_path_XGETTEXT+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005831 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005832else
5833 case "$XGETTEXT" in
5834 [\\/]* | ?:[\\/]*)
5835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5836 ;;
5837 *)
5838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5839 for ac_dir in $PATH; do
5840 IFS="$ac_save_IFS"
5841 test -z "$ac_dir" && ac_dir=.
5842 for ac_exec_ext in '' $ac_executable_extensions; do
5843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5844 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5845 (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
5846 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5847 break 2
5848 fi
5849 fi
5850 done
5851 done
5852 IFS="$ac_save_IFS"
5853 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5854 ;;
5855esac
5856fi
5857XGETTEXT="$ac_cv_path_XGETTEXT"
5858if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005860$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005861else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005863$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005864fi
5865
5866 rm -f messages.po
5867
5868
5869# Prepare PATH_SEPARATOR.
5870# The user is always right.
5871if test "${PATH_SEPARATOR+set}" != set; then
5872 echo "#! /bin/sh" >conf$$.sh
5873 echo "exit 0" >>conf$$.sh
5874 chmod +x conf$$.sh
5875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5876 PATH_SEPARATOR=';'
5877 else
5878 PATH_SEPARATOR=:
5879 fi
5880 rm -f conf$$.sh
5881fi
5882
5883# Find out how to test for executable files. Don't use a zero-byte file,
5884# as systems may use methods other than mode bits to determine executability.
5885cat >conf$$.file <<_ASEOF
5886#! /bin/sh
5887exit 0
5888_ASEOF
5889chmod +x conf$$.file
5890if test -x conf$$.file >/dev/null 2>&1; then
5891 ac_executable_p="test -x"
5892else
5893 ac_executable_p="test -f"
5894fi
5895rm -f conf$$.file
5896
5897# Extract the first word of "msgmerge", so it can be a program name with args.
5898set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005900$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005901if test "${ac_cv_path_MSGMERGE+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005902 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005903else
5904 case "$MSGMERGE" in
5905 [\\/]* | ?:[\\/]*)
5906 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5907 ;;
5908 *)
5909 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5910 for ac_dir in $PATH; do
5911 IFS="$ac_save_IFS"
5912 test -z "$ac_dir" && ac_dir=.
5913 for ac_exec_ext in '' $ac_executable_extensions; do
5914 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5915 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5916 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5917 break 2
5918 fi
5919 fi
5920 done
5921 done
5922 IFS="$ac_save_IFS"
5923 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5924 ;;
5925esac
5926fi
5927MSGMERGE="$ac_cv_path_MSGMERGE"
5928if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005930$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005931else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005933$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005934fi
5935
5936
5937 if test "$GMSGFMT" != ":"; then
5938 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5939 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5940 : ;
5941 else
5942 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005943 { $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 +01005944$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005945 GMSGFMT=":"
5946 fi
5947 fi
5948
5949 if test "$XGETTEXT" != ":"; then
5950 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5951 (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
5952 : ;
5953 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005954 { $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 +01005955$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005956 XGETTEXT=":"
5957 fi
5958 rm -f messages.po
5959 fi
5960
Theodore Ts'oe1052142006-10-21 21:46:47 -04005961 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005962
5963
5964if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5966set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005968$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005969if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005970 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005971else
5972 if test -n "$RANLIB"; then
5973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5974else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5976for as_dir in $PATH
5977do
5978 IFS=$as_save_IFS
5979 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005980 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005981 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 -05005982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005984 break 2
5985 fi
5986done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005987 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04005988IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005989
5990fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005991fi
5992RANLIB=$ac_cv_prog_RANLIB
5993if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005995$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005996else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005998$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006000
Theodore Ts'oe1052142006-10-21 21:46:47 -04006001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002fi
6003if test -z "$ac_cv_prog_RANLIB"; then
6004 ac_ct_RANLIB=$RANLIB
6005 # Extract the first word of "ranlib", so it can be a program name with args.
6006set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006008$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006010 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006011else
6012 if test -n "$ac_ct_RANLIB"; then
6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018 IFS=$as_save_IFS
6019 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006020 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006021 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 -05006022 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024 break 2
6025 fi
6026done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006027 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006028IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030fi
6031fi
6032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6033if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006035$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006036else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006038$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006039fi
6040
Theodore Ts'oe1052142006-10-21 21:46:47 -04006041 if test "x$ac_ct_RANLIB" = x; then
6042 RANLIB=":"
6043 else
6044 case $cross_compiling:$ac_tool_warned in
6045yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006046{ $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 +01006047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006048ac_tool_warned=yes ;;
6049esac
6050 RANLIB=$ac_ct_RANLIB
6051 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052else
6053 RANLIB="$ac_cv_prog_RANLIB"
6054fi
6055
6056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006058$as_echo_n "checking for strerror in -lcposix... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006059if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006060 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061else
6062 ac_check_lib_save_LIBS=$LIBS
6063LIBS="-lcposix $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006065/* end confdefs.h. */
6066
Theodore Ts'oe1052142006-10-21 21:46:47 -04006067/* Override any GCC internal prototype to avoid an error.
6068 Use char because int might match the return type of a GCC
6069 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006070#ifdef __cplusplus
6071extern "C"
6072#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006073char strerror ();
6074int
6075main ()
6076{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006077return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006078 ;
6079 return 0;
6080}
6081_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006082if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083 ac_cv_lib_cposix_strerror=yes
6084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006085 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006086fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006087rm -f core conftest.err conftest.$ac_objext \
6088 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089LIBS=$ac_check_lib_save_LIBS
6090fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006093if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 LIBS="$LIBS -lcposix"
6095fi
6096
6097
6098
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006099
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6101$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6102if test "${ac_cv_path_GREP+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104else
6105 if test -z "$GREP"; then
6106 ac_path_GREP_found=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6110do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_prog in grep ggrep; do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6117# Check for GNU ac_path_GREP and select it if it is found.
6118 # Check for GNU $ac_path_GREP
6119case `"$ac_path_GREP" --version 2>&1` in
6120*GNU*)
6121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6122*)
6123 ac_count=0
6124 $as_echo_n 0123456789 >"conftest.in"
6125 while :
6126 do
6127 cat "conftest.in" "conftest.in" >"conftest.tmp"
6128 mv "conftest.tmp" "conftest.in"
6129 cp "conftest.in" "conftest.nl"
6130 $as_echo 'GREP' >> "conftest.nl"
6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6133 as_fn_arith $ac_count + 1 && ac_count=$as_val
6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6135 # Best one so far, save it but keep looking for a better one
6136 ac_cv_path_GREP="$ac_path_GREP"
6137 ac_path_GREP_max=$ac_count
6138 fi
6139 # 10*(2^10) chars as input seems more than enough
6140 test $ac_count -gt 10 && break
6141 done
6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6143esac
6144
6145 $ac_path_GREP_found && break 3
6146 done
6147 done
6148 done
6149IFS=$as_save_IFS
6150 if test -z "$ac_cv_path_GREP"; then
6151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6152 fi
6153else
6154 ac_cv_path_GREP=$GREP
6155fi
6156
6157fi
6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6159$as_echo "$ac_cv_path_GREP" >&6; }
6160 GREP="$ac_cv_path_GREP"
6161
6162
6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6164$as_echo_n "checking for egrep... " >&6; }
6165if test "${ac_cv_path_EGREP+set}" = set; then :
6166 $as_echo_n "(cached) " >&6
6167else
6168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6169 then ac_cv_path_EGREP="$GREP -E"
6170 else
6171 if test -z "$EGREP"; then
6172 ac_path_EGREP_found=false
6173 # Loop through the user's path and test for each of PROGNAME-LIST
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6176do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_prog in egrep; do
6180 for ac_exec_ext in '' $ac_executable_extensions; do
6181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6183# Check for GNU ac_path_EGREP and select it if it is found.
6184 # Check for GNU $ac_path_EGREP
6185case `"$ac_path_EGREP" --version 2>&1` in
6186*GNU*)
6187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6188*)
6189 ac_count=0
6190 $as_echo_n 0123456789 >"conftest.in"
6191 while :
6192 do
6193 cat "conftest.in" "conftest.in" >"conftest.tmp"
6194 mv "conftest.tmp" "conftest.in"
6195 cp "conftest.in" "conftest.nl"
6196 $as_echo 'EGREP' >> "conftest.nl"
6197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6199 as_fn_arith $ac_count + 1 && ac_count=$as_val
6200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6201 # Best one so far, save it but keep looking for a better one
6202 ac_cv_path_EGREP="$ac_path_EGREP"
6203 ac_path_EGREP_max=$ac_count
6204 fi
6205 # 10*(2^10) chars as input seems more than enough
6206 test $ac_count -gt 10 && break
6207 done
6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6209esac
6210
6211 $ac_path_EGREP_found && break 3
6212 done
6213 done
6214 done
6215IFS=$as_save_IFS
6216 if test -z "$ac_cv_path_EGREP"; then
6217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6218 fi
6219else
6220 ac_cv_path_EGREP=$EGREP
6221fi
6222
6223 fi
6224fi
6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6226$as_echo "$ac_cv_path_EGREP" >&6; }
6227 EGREP="$ac_cv_path_EGREP"
6228
6229
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6231$as_echo_n "checking for ANSI C header files... " >&6; }
6232if test "${ac_cv_header_stdc+set}" = set; then :
6233 $as_echo_n "(cached) " >&6
6234else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6236/* end confdefs.h. */
6237#include <stdlib.h>
6238#include <stdarg.h>
6239#include <string.h>
6240#include <float.h>
6241
6242int
6243main ()
6244{
6245
6246 ;
6247 return 0;
6248}
6249_ACEOF
6250if ac_fn_c_try_compile "$LINENO"; then :
6251 ac_cv_header_stdc=yes
6252else
6253 ac_cv_header_stdc=no
6254fi
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256
6257if test $ac_cv_header_stdc = yes; then
6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261#include <string.h>
6262
6263_ACEOF
6264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6265 $EGREP "memchr" >/dev/null 2>&1; then :
6266
6267else
6268 ac_cv_header_stdc=no
6269fi
6270rm -f conftest*
6271
6272fi
6273
6274if test $ac_cv_header_stdc = yes; then
6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6277/* end confdefs.h. */
6278#include <stdlib.h>
6279
6280_ACEOF
6281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6282 $EGREP "free" >/dev/null 2>&1; then :
6283
6284else
6285 ac_cv_header_stdc=no
6286fi
6287rm -f conftest*
6288
6289fi
6290
6291if test $ac_cv_header_stdc = yes; then
6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6293 if test "$cross_compiling" = yes; then :
6294 :
6295else
6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6297/* end confdefs.h. */
6298#include <ctype.h>
6299#include <stdlib.h>
6300#if ((' ' & 0x0FF) == 0x020)
6301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6303#else
6304# define ISLOWER(c) \
6305 (('a' <= (c) && (c) <= 'i') \
6306 || ('j' <= (c) && (c) <= 'r') \
6307 || ('s' <= (c) && (c) <= 'z'))
6308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6309#endif
6310
6311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6312int
6313main ()
6314{
6315 int i;
6316 for (i = 0; i < 256; i++)
6317 if (XOR (islower (i), ISLOWER (i))
6318 || toupper (i) != TOUPPER (i))
6319 return 2;
6320 return 0;
6321}
6322_ACEOF
6323if ac_fn_c_try_run "$LINENO"; then :
6324
6325else
6326 ac_cv_header_stdc=no
6327fi
6328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6329 conftest.$ac_objext conftest.beam conftest.$ac_ext
6330fi
6331
6332fi
6333fi
6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6335$as_echo "$ac_cv_header_stdc" >&6; }
6336if test $ac_cv_header_stdc = yes; then
6337
6338$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6339
6340fi
6341
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006343$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006344if test "${ac_cv_c_const+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006345 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006348/* end confdefs.h. */
6349
6350int
6351main ()
6352{
6353/* FIXME: Include the comments suggested by Paul. */
6354#ifndef __cplusplus
6355 /* Ultrix mips cc rejects this. */
6356 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006357 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006358 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006359 char const *const *pcpcc;
6360 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361 /* NEC SVR4.0.2 mips cc rejects this. */
6362 struct point {int x, y;};
6363 static struct point const zero = {0,0};
6364 /* AIX XL C 1.02.0.0 rejects this.
6365 It does not let you subtract one const X* pointer from another in
6366 an arm of an if-expression whose if-part is not a constant
6367 expression */
6368 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006369 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006370 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006371 ++pcpcc;
6372 ppc = (char**) pcpcc;
6373 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006374 { /* SCO 3.2v4 cc rejects this. */
6375 char *t;
6376 char const *s = 0 ? (char *) 0 : (char const *) 0;
6377
6378 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006379 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006380 }
6381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6382 int x[] = {25, 17};
6383 const int *foo = &x[0];
6384 ++foo;
6385 }
6386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6387 typedef const int *iptr;
6388 iptr p = 0;
6389 ++p;
6390 }
6391 { /* AIX XL C 1.02.0.0 rejects this saying
6392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6393 struct s { int j; const int *ap[3]; };
6394 struct s *b; b->j = 5;
6395 }
6396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6397 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04006398 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006400 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401#endif
6402
6403 ;
6404 return 0;
6405}
6406_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006407if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006408 ac_cv_c_const=yes
6409else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006410 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006413fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006415$as_echo "$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416if test $ac_cv_c_const = no; then
6417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006418$as_echo "#define const /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006419
6420fi
6421
6422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006424$as_echo_n "checking for signed... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006425if test "${bh_cv_c_signed+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006426 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006427else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006429/* end confdefs.h. */
6430
6431int
6432main ()
6433{
6434signed char x;
6435 ;
6436 return 0;
6437}
6438_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006439if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006440 bh_cv_c_signed=yes
6441else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006442 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006443fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006447$as_echo "$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006448 if test $bh_cv_c_signed = no; then
6449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006450$as_echo "#define signed /**/" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451
6452 fi
6453
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006455$as_echo_n "checking for inline... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006456if test "${ac_cv_c_inline+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006457 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006458else
6459 ac_cv_c_inline=no
6460for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006462/* end confdefs.h. */
6463#ifndef __cplusplus
6464typedef int foo_t;
6465static $ac_kw foo_t static_foo () {return 0; }
6466$ac_kw foo_t foo () {return 0; }
6467#endif
6468
6469_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006470if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006471 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006475done
6476
6477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006479$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006481case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006482 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483 *)
6484 case $ac_cv_c_inline in
6485 no) ac_val=;;
6486 *) ac_val=$ac_cv_c_inline;;
6487 esac
6488 cat >>confdefs.h <<_ACEOF
6489#ifndef __cplusplus
6490#define inline $ac_val
6491#endif
6492_ACEOF
6493 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006494esac
6495
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006496# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6498 inttypes.h stdint.h unistd.h
6499do :
6500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6502"
6503eval as_val=\$$as_ac_Header
6504 if test "x$as_val" = x""yes; then :
6505 cat >>confdefs.h <<_ACEOF
6506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507_ACEOF
6508
6509fi
6510
6511done
6512
6513
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006514ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6515if test "x$ac_cv_type_off_t" = x""yes; then :
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006516
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006517else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518
6519cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006520#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006521_ACEOF
6522
6523fi
6524
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006525ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6526if test "x$ac_cv_type_size_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006528else
6529
6530cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006531#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006532_ACEOF
6533
6534fi
6535
6536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006538$as_echo_n "checking for long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006539if test "${ac_cv_type_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006540 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543/* end confdefs.h. */
6544long long ll = 1LL; int i = 63;
6545int
6546main ()
6547{
6548long long llmax = (long long) -1;
6549 return ll << i | ll >> i | llmax / ll | llmax % ll;
6550 ;
6551 return 0;
6552}
6553_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006554if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006555 ac_cv_type_long_long=yes
6556else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006563$as_echo "$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006564 if test $ac_cv_type_long_long = yes; then
6565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006566$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567
6568 fi
6569
6570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006572$as_echo_n "checking for long double... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006573if test "${gt_cv_c_long_double+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
6576 if test "$GCC" = yes; then
6577 gt_cv_c_long_double=yes
6578 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580/* end confdefs.h. */
6581
6582 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6583 long double foo = 0.0;
6584 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6585 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6586
6587int
6588main ()
6589{
6590
6591 ;
6592 return 0;
6593}
6594_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006595if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596 gt_cv_c_long_double=yes
6597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006598 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006599fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601 fi
6602fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006604$as_echo "$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605 if test $gt_cv_c_long_double = yes; then
6606
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006607$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608
6609 fi
6610
6611
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006613$as_echo_n "checking for wchar_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006614if test "${gt_cv_c_wchar_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006615 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006616else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618/* end confdefs.h. */
6619#include <stddef.h>
6620 wchar_t foo = (wchar_t)'\0';
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_wchar_t=yes
6631else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 gt_cv_c_wchar_t=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 -05006635fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006637$as_echo "$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006638 if test $gt_cv_c_wchar_t = yes; then
6639
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641
6642 fi
6643
6644
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006646$as_echo_n "checking for wint_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006647if test "${gt_cv_c_wint_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006648 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006649else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651/* end confdefs.h. */
6652#include <wchar.h>
6653 wint_t foo = (wchar_t)'\0';
6654int
6655main ()
6656{
6657
6658 ;
6659 return 0;
6660}
6661_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006662if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006663 gt_cv_c_wint_t=yes
6664else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006665 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670$as_echo "$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006671 if test $gt_cv_c_wint_t = yes; then
6672
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006673$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674
6675 fi
6676
6677
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006679$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006680if test "${jm_ac_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006681 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684/* end confdefs.h. */
6685#include <sys/types.h>
6686#include <inttypes.h>
6687int
6688main ()
6689{
6690uintmax_t i = (uintmax_t) -1;
6691 ;
6692 return 0;
6693}
6694_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006695if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696 jm_ac_cv_header_inttypes_h=yes
6697else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006698 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006703$as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006704 if test $jm_ac_cv_header_inttypes_h = yes; then
6705
6706cat >>confdefs.h <<_ACEOF
6707#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6708_ACEOF
6709
6710 fi
6711
6712
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006714$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006715if test "${jm_ac_cv_header_stdint_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006716 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719/* end confdefs.h. */
6720#include <sys/types.h>
6721#include <stdint.h>
6722int
6723main ()
6724{
6725uintmax_t i = (uintmax_t) -1;
6726 ;
6727 return 0;
6728}
6729_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006730if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731 jm_ac_cv_header_stdint_h=yes
6732else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006733 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006736fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006738$as_echo "$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006739 if test $jm_ac_cv_header_stdint_h = yes; then
6740
6741cat >>confdefs.h <<_ACEOF
6742#define HAVE_STDINT_H_WITH_UINTMAX 1
6743_ACEOF
6744
6745 fi
6746
6747
6748
6749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006751$as_echo_n "checking for intmax_t... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006752if test "${gt_cv_c_intmax_t+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006753 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006756/* end confdefs.h. */
6757
6758#include <stddef.h>
6759#include <stdlib.h>
6760#if HAVE_STDINT_H_WITH_UINTMAX
6761#include <stdint.h>
6762#endif
6763#if HAVE_INTTYPES_H_WITH_UINTMAX
6764#include <inttypes.h>
6765#endif
6766
6767int
6768main ()
6769{
6770intmax_t x = -1;
6771 ;
6772 return 0;
6773}
6774_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006775if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006776 gt_cv_c_intmax_t=yes
6777else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006778 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006783$as_echo "$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784 if test $gt_cv_c_intmax_t = yes; then
6785
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006787
6788 fi
6789
6790
6791
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006793$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006794if test "${gt_cv_func_printf_posix+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006795 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006796else
6797
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006798 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006801/* end confdefs.h. */
6802
6803#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
6804 notposix
6805#endif
6806
6807_ACEOF
6808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006809 $EGREP "notposix" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006810 gt_cv_func_printf_posix="guessing no"
6811else
6812 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006813fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006814rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006815
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816
6817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006819/* end confdefs.h. */
6820
6821#include <stdio.h>
6822#include <string.h>
6823/* The string "%2$d %1$d", with dollar characters protected from the shell's
6824 dollar expansion (possibly an autoconf bug). */
6825static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
6826static char buf[100];
6827int main ()
6828{
6829 sprintf (buf, format, 33, 55);
6830 return (strcmp (buf, "55 33") != 0);
6831}
6832_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006833if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834 gt_cv_func_printf_posix=yes
6835else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006836 gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006837fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6839 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006840fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006841
Theodore Ts'oe1052142006-10-21 21:46:47 -04006842
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006843fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006845$as_echo "$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846 case $gt_cv_func_printf_posix in
6847 *yes)
6848
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006849$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850
6851 ;;
6852 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006853
6854# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6855# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006857$as_echo_n "checking for working alloca.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858if test "${ac_cv_working_alloca_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006859 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006860else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006863#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864int
6865main ()
6866{
6867char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006868 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006869 ;
6870 return 0;
6871}
6872_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006873if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006874 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006878rm -f core conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006880fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006882$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883if test $ac_cv_working_alloca_h = yes; then
6884
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006885$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006886
6887fi
6888
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006890$as_echo_n "checking for alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006891if test "${ac_cv_func_alloca_works+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006892 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006896#ifdef __GNUC__
6897# define alloca __builtin_alloca
6898#else
6899# ifdef _MSC_VER
6900# include <malloc.h>
6901# define alloca _alloca
6902# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006903# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006904# include <alloca.h>
6905# else
6906# ifdef _AIX
6907 #pragma alloca
6908# else
6909# ifndef alloca /* predefined by HP cc +Olibcalls */
6910char *alloca ();
6911# endif
6912# endif
6913# endif
6914# endif
6915#endif
6916
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006917int
6918main ()
6919{
6920char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006921 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922 ;
6923 return 0;
6924}
6925_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006926if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006927 ac_cv_func_alloca_works=yes
6928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006929 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006931rm -f core conftest.err conftest.$ac_objext \
6932 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006935$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006937if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006939$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006940
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006941else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6943# that cause trouble. Some versions do not even contain alloca or
6944# contain a buggy version. If you still want to use their alloca,
6945# use ar to extract alloca.o from them instead of compiling alloca.c.
6946
Theodore Ts'oe1052142006-10-21 21:46:47 -04006947ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950
6951
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006953$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954if test "${ac_cv_os_cray+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006958/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006959#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960webecray
6961#else
6962wenotbecray
6963#endif
6964
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006965_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006967 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006968 ac_cv_os_cray=yes
6969else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006970 ac_cv_os_cray=no
6971fi
6972rm -f conftest*
6973
6974fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006976$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006977if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6981eval as_val=\$$as_ac_var
6982 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006983
6984cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006985#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989fi
6990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006991 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006992fi
6993
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006995$as_echo_n "checking stack direction for C alloca... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996if test "${ac_cv_c_stack_direction+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006997 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006998else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007000 ac_cv_c_stack_direction=0
7001else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007004$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006find_stack_direction ()
7007{
7008 static char *addr = 0;
7009 auto char dummy;
7010 if (addr == 0)
7011 {
7012 addr = &dummy;
7013 return find_stack_direction ();
7014 }
7015 else
7016 return (&dummy > addr) ? 1 : -1;
7017}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018
7019int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020main ()
7021{
Theodore Ts'oe1052142006-10-21 21:46:47 -04007022 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007023}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007025if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026 ac_cv_c_stack_direction=1
7027else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007028 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007029fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7031 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007032fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007036$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039_ACEOF
7040
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007041
7042fi
7043
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007044
7045
7046
7047 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007048do :
7049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7051"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007052eval as_val=\$$as_ac_Header
7053 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056_ACEOF
7057
7058fi
7059
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060done
7061
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007062
7063
7064
7065
7066
7067
7068
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007069for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007070do :
7071 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7072if test "x$ac_cv_func_getpagesize" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007074#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007075_ACEOF
7076
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007077fi
7078done
7079
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007081$as_echo_n "checking for working mmap... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007082if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007083 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007085 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007086 ac_cv_func_mmap_fixed_mapped=no
7087else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089/* end confdefs.h. */
7090$ac_includes_default
7091/* malloc might have been renamed as rpl_malloc. */
7092#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007093
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007094/* Thanks to Mike Haertel and Jim Avera for this test.
7095 Here is a matrix of mmap possibilities:
7096 mmap private not fixed
7097 mmap private fixed at somewhere currently unmapped
7098 mmap private fixed at somewhere already mapped
7099 mmap shared not fixed
7100 mmap shared fixed at somewhere currently unmapped
7101 mmap shared fixed at somewhere already mapped
7102 For private mappings, we should verify that changes cannot be read()
7103 back from the file, nor mmap's back from the file at a different
7104 address. (There have been systems where private was not correctly
7105 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007107 like early versions of FreeBSD and possibly contemporary NetBSD.)
7108 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007109 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110
7111 Grep wants private fixed already mapped.
7112 The main things grep needs to know about mmap are:
7113 * does it exist and is it safe to write into the mmap'd area
7114 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007115
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007116#include <fcntl.h>
7117#include <sys/mman.h>
7118
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007119#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120char *malloc ();
7121#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007122
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007124#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125# ifdef _SC_PAGESIZE
7126# define getpagesize() sysconf(_SC_PAGESIZE)
7127# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007128# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007129# include <sys/param.h>
7130# ifdef EXEC_PAGESIZE
7131# define getpagesize() EXEC_PAGESIZE
7132# else /* no EXEC_PAGESIZE */
7133# ifdef NBPG
7134# define getpagesize() NBPG * CLSIZE
7135# ifndef CLSIZE
7136# define CLSIZE 1
7137# endif /* no CLSIZE */
7138# else /* no NBPG */
7139# ifdef NBPC
7140# define getpagesize() NBPC
7141# else /* no NBPC */
7142# ifdef PAGESIZE
7143# define getpagesize() PAGESIZE
7144# endif /* PAGESIZE */
7145# endif /* no NBPC */
7146# endif /* no NBPG */
7147# endif /* no EXEC_PAGESIZE */
7148# else /* no HAVE_SYS_PARAM_H */
7149# define getpagesize() 8192 /* punt totally */
7150# endif /* no HAVE_SYS_PARAM_H */
7151# endif /* no _SC_PAGESIZE */
7152
7153#endif /* no HAVE_GETPAGESIZE */
7154
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007155int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007157{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007158 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007159 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007161 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007165 /* First, make a file with some known garbage in it. */
7166 data = (char *) malloc (pagesize);
7167 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007168 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007169 for (i = 0; i < pagesize; ++i)
7170 *(data + i) = rand ();
7171 umask (0);
7172 fd = creat ("conftest.mmap", 0600);
7173 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007174 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007176 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007178
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007179 /* Next, check that the tail of a page is zero-filled. File must have
7180 non-zero length, otherwise we risk SIGBUS for entire page. */
7181 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7182 if (fd2 < 0)
7183 return 4;
7184 cdata2 = "";
7185 if (write (fd2, cdata2, 1) != 1)
7186 return 5;
7187 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7188 if (data2 == MAP_FAILED)
7189 return 6;
7190 for (i = 0; i < pagesize; ++i)
7191 if (*(data2 + i))
7192 return 7;
7193 close (fd2);
7194 if (munmap (data2, pagesize))
7195 return 8;
7196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007197 /* Next, try to mmap the file at a fixed address which already has
7198 something else allocated at it. If we can, also make sure that
7199 we see the same garbage. */
7200 fd = open ("conftest.mmap", O_RDWR);
7201 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007202 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7204 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007205 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206 for (i = 0; i < pagesize; ++i)
7207 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007208 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007209
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210 /* Finally, make sure that changes to the mapped area do not
7211 percolate back to the file as seen by read(). (This is a bug on
7212 some variants of i386 svr4.0.) */
7213 for (i = 0; i < pagesize; ++i)
7214 *(data2 + i) = *(data2 + i) + 1;
7215 data3 = (char *) malloc (pagesize);
7216 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007217 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007219 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220 for (i = 0; i < pagesize; ++i)
7221 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007222 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007224 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007226_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007227if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007228 ac_cv_func_mmap_fixed_mapped=yes
7229else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007230 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007231fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7233 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007238$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007239if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007241$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242
7243fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007244rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007247 { $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 +01007248$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 -05007249if test "${ac_cv_gnu_library_2_1+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007250 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007251else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007254
7255#include <features.h>
7256#ifdef __GNU_LIBRARY__
7257 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7258 Lucky GNU user
7259 #endif
7260#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261
7262_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007264 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007265 ac_cv_gnu_library_2_1=yes
7266else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007267 ac_cv_gnu_library_2_1=no
7268fi
7269rm -f conftest*
7270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271
7272
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007273fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007275$as_echo "$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007276
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007277 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007278
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007279
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007280
7281
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007283$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007284if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007285 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007286else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007287
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007288 if test "$cross_compiling" = yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007289
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007290 # Guess based on the CPU.
7291 case "$host_cpu" in
7292 alpha* | i3456786 | m68k | s390*)
7293 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7294 *)
7295 gt_cv_int_divbyzero_sigfpe="guessing no";;
7296 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007297
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007300/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301
7302#include <stdlib.h>
7303#include <signal.h>
7304
7305static void
7306#ifdef __cplusplus
7307sigfpe_handler (int sig)
7308#else
7309sigfpe_handler (sig) int sig;
7310#endif
7311{
7312 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7313 exit (sig != SIGFPE);
7314}
7315
7316int x = 1;
7317int y = 0;
7318int z;
7319int nan;
7320
7321int main ()
7322{
7323 signal (SIGFPE, sigfpe_handler);
7324/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7325#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7326 signal (SIGTRAP, sigfpe_handler);
7327#endif
7328/* Linux/SPARC yields signal SIGILL. */
7329#if defined (__sparc__) && defined (__linux__)
7330 signal (SIGILL, sigfpe_handler);
7331#endif
7332
7333 z = x / y;
7334 nan = y / y;
7335 exit (1);
7336}
7337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007339if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007340 gt_cv_int_divbyzero_sigfpe=yes
7341else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007343fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7345 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346fi
7347
Theodore Ts'oe1052142006-10-21 21:46:47 -04007348
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007349fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007351$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007352 case "$gt_cv_int_divbyzero_sigfpe" in
7353 *yes) value=1;;
7354 *) value=0;;
7355 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356
7357cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007358#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007360
7361
7362
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007364$as_echo_n "checking for unsigned long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007365if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007366 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007369/* end confdefs.h. */
7370unsigned long long ull = 1ULL; int i = 63;
7371int
7372main ()
7373{
7374unsigned long long ullmax = (unsigned long long) -1;
7375 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
7376 ;
7377 return 0;
7378}
7379_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007380if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 ac_cv_type_unsigned_long_long=yes
7382else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007383 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007384fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007385rm -f core conftest.err conftest.$ac_objext \
7386 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007387fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007389$as_echo "$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007390 if test $ac_cv_type_unsigned_long_long = yes; then
7391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007392$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007393
7394 fi
7395
7396
7397
7398
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007399 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 -05007400
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007401 test $ac_cv_type_unsigned_long_long = yes \
7402 && ac_type='unsigned long long' \
7403 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007404
7405cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007406#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007407_ACEOF
7408
7409 else
7410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007411$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007412
7413 fi
7414
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007415
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007417$as_echo_n "checking for inttypes.h... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007418if test "${gt_cv_header_inttypes_h+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007419 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007420else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007421
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007423/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007424#include <sys/types.h>
7425#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426int
7427main ()
7428{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007430 ;
7431 return 0;
7432}
7433_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007434if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007435 gt_cv_header_inttypes_h=yes
7436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007437 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007438fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440
7441fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007443$as_echo "$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007444 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445
7446cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007447#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007448_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007449
7450 fi
7451
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007454 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007455 { $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 +01007456$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007457if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007458 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007459else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007463#include <inttypes.h>
7464#ifdef PRId32
7465char *p = PRId32;
7466#endif
7467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007468int
7469main ()
7470{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472 ;
7473 return 0;
7474}
7475_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007476if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477 gt_cv_inttypes_pri_broken=no
7478else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007479 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007480fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482
7483fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007485$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007486 fi
7487 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488
7489cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007490#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007491_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007492
7493 fi
7494
7495
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007496 for ac_header in stdint.h
7497do :
7498 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7499if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007501#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007502_ACEOF
7503
7504fi
7505
7506done
7507
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007509$as_echo_n "checking for SIZE_MAX... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007510 result=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007512/* end confdefs.h. */
7513
7514#include <limits.h>
7515#if HAVE_STDINT_H
7516#include <stdint.h>
7517#endif
7518#ifdef SIZE_MAX
7519Found it
7520#endif
7521
7522_ACEOF
7523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007524 $EGREP "Found it" >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007525 result=yes
7526fi
7527rm -f conftest*
7528
7529 if test -z "$result"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530 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 -05007531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007533 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007535
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007536
7537 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then :
7538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007540 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007541fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007542
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007543
7544 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
7545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007546else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007547 result=?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007548fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007549
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007551 if test "$fits_in_uint" = 1; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553/* end confdefs.h. */
7554#include <stddef.h>
7555 extern size_t foo;
7556 extern unsigned long foo;
7557
7558int
7559main ()
7560{
7561
7562 ;
7563 return 0;
7564}
7565_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007566if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007567 fits_in_uint=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007570 fi
7571 if test -z "$result"; then
7572 if test "$fits_in_uint" = 1; then
7573 result="$res_hi$res_lo"U
7574 else
7575 result="$res_hi$res_lo"UL
7576 fi
7577 else
7578 result='~(size_t)0'
7579 fi
7580 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007582$as_echo "$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007583 if test "$result" != yes; then
7584
7585cat >>confdefs.h <<_ACEOF
7586#define SIZE_MAX $result
7587_ACEOF
7588
7589 fi
7590
7591
7592
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007593 for ac_header in stdint.h
7594do :
7595 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
7596if test "x$ac_cv_header_stdint_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007598#define HAVE_STDINT_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599_ACEOF
7600
7601fi
7602
7603done
7604
7605
7606
7607 if test "X$prefix" = "XNONE"; then
7608 acl_final_prefix="$ac_default_prefix"
7609 else
7610 acl_final_prefix="$prefix"
7611 fi
7612 if test "X$exec_prefix" = "XNONE"; then
7613 acl_final_exec_prefix='${prefix}'
7614 else
7615 acl_final_exec_prefix="$exec_prefix"
7616 fi
7617 acl_save_prefix="$prefix"
7618 prefix="$acl_final_prefix"
7619 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7620 prefix="$acl_save_prefix"
7621
7622
Theodore Ts'oe1052142006-10-21 21:46:47 -04007623# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007624if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007626else
7627 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007628fi
7629
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630# Prepare PATH_SEPARATOR.
7631# The user is always right.
7632if test "${PATH_SEPARATOR+set}" != set; then
7633 echo "#! /bin/sh" >conf$$.sh
7634 echo "exit 0" >>conf$$.sh
7635 chmod +x conf$$.sh
7636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7637 PATH_SEPARATOR=';'
7638 else
7639 PATH_SEPARATOR=:
7640 fi
7641 rm -f conf$$.sh
7642fi
7643ac_prog=ld
7644if test "$GCC" = yes; then
7645 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007647$as_echo_n "checking for ld used by GCC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648 case $host in
7649 *-*-mingw*)
7650 # gcc leaves a trailing carriage return which upsets mingw
7651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7652 *)
7653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7654 esac
7655 case $ac_prog in
7656 # Accept absolute paths.
7657 [\\/]* | [A-Za-z]:[\\/]*)
7658 re_direlt='/[^/][^/]*/\.\./'
7659 # Canonicalize the path of ld
7660 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7662 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7663 done
7664 test -z "$LD" && LD="$ac_prog"
7665 ;;
7666 "")
7667 # If it fails, then pretend we aren't using GCC.
7668 ac_prog=ld
7669 ;;
7670 *)
7671 # If it is relative, then search for the first ld in PATH.
7672 with_gnu_ld=unknown
7673 ;;
7674 esac
7675elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007677$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007680$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007681fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007682if test "${acl_cv_path_LD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007683 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007684else
7685 if test -z "$LD"; then
7686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7687 for ac_dir in $PATH; do
7688 test -z "$ac_dir" && ac_dir=.
7689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7690 acl_cv_path_LD="$ac_dir/$ac_prog"
7691 # Check to see if the program is GNU ld. I'd rather use --version,
7692 # but apparently some GNU ld's only accept -v.
7693 # Break only if it was the GNU/non-GNU ld that we prefer.
7694 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7695 *GNU* | *'with BFD'*)
7696 test "$with_gnu_ld" != no && break ;;
7697 *)
7698 test "$with_gnu_ld" != yes && break ;;
7699 esac
7700 fi
7701 done
7702 IFS="$ac_save_ifs"
7703else
7704 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7705fi
7706fi
7707
7708LD="$acl_cv_path_LD"
7709if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007711$as_echo "$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}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007714$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007716test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007719if test "${acl_cv_prog_gnu_ld+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007720 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721else
7722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
7723case `$LD -v 2>&1 </dev/null` in
7724*GNU* | *'with BFD'*)
7725 acl_cv_prog_gnu_ld=yes ;;
7726*)
7727 acl_cv_prog_gnu_ld=no ;;
7728esac
7729fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007731$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007732with_gnu_ld=$acl_cv_prog_gnu_ld
7733
7734
7735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007737$as_echo_n "checking for shared library run path origin... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007738if test "${acl_cv_rpath+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007739 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007740else
7741
7742 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7744 . ./conftest.sh
7745 rm -f ./conftest.sh
7746 acl_cv_rpath=done
7747
7748fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007750$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007751 wl="$acl_cv_wl"
7752 libext="$acl_cv_libext"
7753 shlibext="$acl_cv_shlibext"
7754 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7755 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7756 hardcode_direct="$acl_cv_hardcode_direct"
7757 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007758 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007759if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007760 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007761else
7762 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007763fi
7764
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007765
7766
7767
7768
7769
7770
7771
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007772 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007773
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007774 acl_save_prefix="$prefix"
7775 prefix="$acl_final_prefix"
7776 acl_save_exec_prefix="$exec_prefix"
7777 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007778
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007779 eval additional_includedir=\"$includedir\"
7780 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007781
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007782 exec_prefix="$acl_save_exec_prefix"
7783 prefix="$acl_save_prefix"
7784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007785
Theodore Ts'oe1052142006-10-21 21:46:47 -04007786# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007787if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007788 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007789 if test "X$withval" = "Xno"; then
7790 use_additional=no
7791 else
7792 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007793
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007794 acl_save_prefix="$prefix"
7795 prefix="$acl_final_prefix"
7796 acl_save_exec_prefix="$exec_prefix"
7797 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007798
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007799 eval additional_includedir=\"$includedir\"
7800 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007801
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007802 exec_prefix="$acl_save_exec_prefix"
7803 prefix="$acl_save_prefix"
7804
7805 else
7806 additional_includedir="$withval/include"
7807 additional_libdir="$withval/lib"
7808 fi
7809 fi
7810
Theodore Ts'oe1052142006-10-21 21:46:47 -04007811fi
7812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007813 LIBICONV=
7814 LTLIBICONV=
7815 INCICONV=
7816 rpathdirs=
7817 ltrpathdirs=
7818 names_already_handled=
7819 names_next_round='iconv '
7820 while test -n "$names_next_round"; do
7821 names_this_round="$names_next_round"
7822 names_next_round=
7823 for name in $names_this_round; do
7824 already_handled=
7825 for n in $names_already_handled; do
7826 if test "$n" = "$name"; then
7827 already_handled=yes
7828 break
7829 fi
7830 done
7831 if test -z "$already_handled"; then
7832 names_already_handled="$names_already_handled $name"
7833 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7834 eval value=\"\$HAVE_LIB$uppername\"
7835 if test -n "$value"; then
7836 if test "$value" = yes; then
7837 eval value=\"\$LIB$uppername\"
7838 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7839 eval value=\"\$LTLIB$uppername\"
7840 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7841 else
7842 :
7843 fi
7844 else
7845 found_dir=
7846 found_la=
7847 found_so=
7848 found_a=
7849 if test $use_additional = yes; then
7850 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7851 found_dir="$additional_libdir"
7852 found_so="$additional_libdir/lib$name.$shlibext"
7853 if test -f "$additional_libdir/lib$name.la"; then
7854 found_la="$additional_libdir/lib$name.la"
7855 fi
7856 else
7857 if test -f "$additional_libdir/lib$name.$libext"; then
7858 found_dir="$additional_libdir"
7859 found_a="$additional_libdir/lib$name.$libext"
7860 if test -f "$additional_libdir/lib$name.la"; then
7861 found_la="$additional_libdir/lib$name.la"
7862 fi
7863 fi
7864 fi
7865 fi
7866 if test "X$found_dir" = "X"; then
7867 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007868
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007869 acl_save_prefix="$prefix"
7870 prefix="$acl_final_prefix"
7871 acl_save_exec_prefix="$exec_prefix"
7872 exec_prefix="$acl_final_exec_prefix"
7873 eval x=\"$x\"
7874 exec_prefix="$acl_save_exec_prefix"
7875 prefix="$acl_save_prefix"
7876
7877 case "$x" in
7878 -L*)
7879 dir=`echo "X$x" | sed -e 's/^X-L//'`
7880 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7881 found_dir="$dir"
7882 found_so="$dir/lib$name.$shlibext"
7883 if test -f "$dir/lib$name.la"; then
7884 found_la="$dir/lib$name.la"
7885 fi
7886 else
7887 if test -f "$dir/lib$name.$libext"; then
7888 found_dir="$dir"
7889 found_a="$dir/lib$name.$libext"
7890 if test -f "$dir/lib$name.la"; then
7891 found_la="$dir/lib$name.la"
7892 fi
7893 fi
7894 fi
7895 ;;
7896 esac
7897 if test "X$found_dir" != "X"; then
7898 break
7899 fi
7900 done
7901 fi
7902 if test "X$found_dir" != "X"; then
7903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7904 if test "X$found_so" != "X"; then
7905 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7907 else
7908 haveit=
7909 for x in $ltrpathdirs; do
7910 if test "X$x" = "X$found_dir"; then
7911 haveit=yes
7912 break
7913 fi
7914 done
7915 if test -z "$haveit"; then
7916 ltrpathdirs="$ltrpathdirs $found_dir"
7917 fi
7918 if test "$hardcode_direct" = yes; then
7919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7920 else
7921 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7923 haveit=
7924 for x in $rpathdirs; do
7925 if test "X$x" = "X$found_dir"; then
7926 haveit=yes
7927 break
7928 fi
7929 done
7930 if test -z "$haveit"; then
7931 rpathdirs="$rpathdirs $found_dir"
7932 fi
7933 else
7934 haveit=
7935 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007936
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007937 acl_save_prefix="$prefix"
7938 prefix="$acl_final_prefix"
7939 acl_save_exec_prefix="$exec_prefix"
7940 exec_prefix="$acl_final_exec_prefix"
7941 eval x=\"$x\"
7942 exec_prefix="$acl_save_exec_prefix"
7943 prefix="$acl_save_prefix"
7944
7945 if test "X$x" = "X-L$found_dir"; then
7946 haveit=yes
7947 break
7948 fi
7949 done
7950 if test -z "$haveit"; then
7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7952 fi
7953 if test "$hardcode_minus_L" != no; then
7954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7955 else
7956 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7957 fi
7958 fi
7959 fi
7960 fi
7961 else
7962 if test "X$found_a" != "X"; then
7963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7964 else
7965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7966 fi
7967 fi
7968 additional_includedir=
7969 case "$found_dir" in
7970 */lib | */lib/)
7971 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7972 additional_includedir="$basedir/include"
7973 ;;
7974 esac
7975 if test "X$additional_includedir" != "X"; then
7976 if test "X$additional_includedir" != "X/usr/include"; then
7977 haveit=
7978 if test "X$additional_includedir" = "X/usr/local/include"; then
7979 if test -n "$GCC"; then
7980 case $host_os in
7981 linux*) haveit=yes;;
7982 esac
7983 fi
7984 fi
7985 if test -z "$haveit"; then
7986 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007987
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007988 acl_save_prefix="$prefix"
7989 prefix="$acl_final_prefix"
7990 acl_save_exec_prefix="$exec_prefix"
7991 exec_prefix="$acl_final_exec_prefix"
7992 eval x=\"$x\"
7993 exec_prefix="$acl_save_exec_prefix"
7994 prefix="$acl_save_prefix"
7995
7996 if test "X$x" = "X-I$additional_includedir"; then
7997 haveit=yes
7998 break
7999 fi
8000 done
8001 if test -z "$haveit"; then
8002 if test -d "$additional_includedir"; then
8003 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8004 fi
8005 fi
8006 fi
8007 fi
8008 fi
8009 if test -n "$found_la"; then
8010 save_libdir="$libdir"
8011 case "$found_la" in
8012 */* | *\\*) . "$found_la" ;;
8013 *) . "./$found_la" ;;
8014 esac
8015 libdir="$save_libdir"
8016 for dep in $dependency_libs; do
8017 case "$dep" in
8018 -L*)
8019 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8020 if test "X$additional_libdir" != "X/usr/lib"; then
8021 haveit=
8022 if test "X$additional_libdir" = "X/usr/local/lib"; then
8023 if test -n "$GCC"; then
8024 case $host_os in
8025 linux*) haveit=yes;;
8026 esac
8027 fi
8028 fi
8029 if test -z "$haveit"; then
8030 haveit=
8031 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008032
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008033 acl_save_prefix="$prefix"
8034 prefix="$acl_final_prefix"
8035 acl_save_exec_prefix="$exec_prefix"
8036 exec_prefix="$acl_final_exec_prefix"
8037 eval x=\"$x\"
8038 exec_prefix="$acl_save_exec_prefix"
8039 prefix="$acl_save_prefix"
8040
8041 if test "X$x" = "X-L$additional_libdir"; then
8042 haveit=yes
8043 break
8044 fi
8045 done
8046 if test -z "$haveit"; then
8047 if test -d "$additional_libdir"; then
8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8049 fi
8050 fi
8051 haveit=
8052 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008053
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008054 acl_save_prefix="$prefix"
8055 prefix="$acl_final_prefix"
8056 acl_save_exec_prefix="$exec_prefix"
8057 exec_prefix="$acl_final_exec_prefix"
8058 eval x=\"$x\"
8059 exec_prefix="$acl_save_exec_prefix"
8060 prefix="$acl_save_prefix"
8061
8062 if test "X$x" = "X-L$additional_libdir"; then
8063 haveit=yes
8064 break
8065 fi
8066 done
8067 if test -z "$haveit"; then
8068 if test -d "$additional_libdir"; then
8069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8070 fi
8071 fi
8072 fi
8073 fi
8074 ;;
8075 -R*)
8076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8077 if test "$enable_rpath" != no; then
8078 haveit=
8079 for x in $rpathdirs; do
8080 if test "X$x" = "X$dir"; then
8081 haveit=yes
8082 break
8083 fi
8084 done
8085 if test -z "$haveit"; then
8086 rpathdirs="$rpathdirs $dir"
8087 fi
8088 haveit=
8089 for x in $ltrpathdirs; do
8090 if test "X$x" = "X$dir"; then
8091 haveit=yes
8092 break
8093 fi
8094 done
8095 if test -z "$haveit"; then
8096 ltrpathdirs="$ltrpathdirs $dir"
8097 fi
8098 fi
8099 ;;
8100 -l*)
8101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8102 ;;
8103 *.la)
8104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8105 ;;
8106 *)
8107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8109 ;;
8110 esac
8111 done
8112 fi
8113 else
8114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8116 fi
8117 fi
8118 fi
8119 done
8120 done
8121 if test "X$rpathdirs" != "X"; then
8122 if test -n "$hardcode_libdir_separator"; then
8123 alldirs=
8124 for found_dir in $rpathdirs; do
8125 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8126 done
8127 acl_save_libdir="$libdir"
8128 libdir="$alldirs"
8129 eval flag=\"$hardcode_libdir_flag_spec\"
8130 libdir="$acl_save_libdir"
8131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8132 else
8133 for found_dir in $rpathdirs; do
8134 acl_save_libdir="$libdir"
8135 libdir="$found_dir"
8136 eval flag=\"$hardcode_libdir_flag_spec\"
8137 libdir="$acl_save_libdir"
8138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8139 done
8140 fi
8141 fi
8142 if test "X$ltrpathdirs" != "X"; then
8143 for found_dir in $ltrpathdirs; do
8144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8145 done
8146 fi
8147
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008148
8149
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151
8152
8153
8154
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008155 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
8156if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008157
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008159
8160$as_echo "#define ptrdiff_t long" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008161
8162
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008164
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008165 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 -04008166stdlib.h string.h unistd.h sys/param.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008167do :
8168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8170eval as_val=\$$as_ac_Header
8171 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008172 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008174_ACEOF
8175
8176fi
8177
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008178done
8179
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008180 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008181mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
8182strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
8183__fsetlocking
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008184do :
8185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
8187eval as_val=\$$as_ac_var
8188 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008189 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008191_ACEOF
8192
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008193fi
8194done
8195
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008197
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008199$as_echo_n "checking whether _snprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008200if test "${ac_cv_have_decl__snprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008201 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008204/* end confdefs.h. */
8205#include <stdio.h>
8206int
8207main ()
8208{
8209
8210#ifndef _snprintf
8211 char *p = (char *) _snprintf;
8212#endif
8213
8214 ;
8215 return 0;
8216}
8217_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008218if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008219 ac_cv_have_decl__snprintf=yes
8220else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008221 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008222fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008224fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008226$as_echo "$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008227 if test $ac_cv_have_decl__snprintf = yes; then
8228 gt_value=1
8229 else
8230 gt_value=0
8231 fi
8232
8233cat >>confdefs.h <<_ACEOF
8234#define HAVE_DECL__SNPRINTF $gt_value
8235_ACEOF
8236
8237
8238
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008240$as_echo_n "checking whether _snwprintf is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008241if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008242 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008243else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008245/* end confdefs.h. */
8246#include <stdio.h>
8247int
8248main ()
8249{
8250
8251#ifndef _snwprintf
8252 char *p = (char *) _snwprintf;
8253#endif
8254
8255 ;
8256 return 0;
8257}
8258_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008259if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008260 ac_cv_have_decl__snwprintf=yes
8261else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008262 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008265fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008267$as_echo "$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008268 if test $ac_cv_have_decl__snwprintf = yes; then
8269 gt_value=1
8270 else
8271 gt_value=0
8272 fi
8273
8274cat >>confdefs.h <<_ACEOF
8275#define HAVE_DECL__SNWPRINTF $gt_value
8276_ACEOF
8277
8278
8279
8280
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008282$as_echo_n "checking whether feof_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008283if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008284 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008285else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008287/* end confdefs.h. */
8288#include <stdio.h>
8289int
8290main ()
8291{
8292
8293#ifndef feof_unlocked
8294 char *p = (char *) feof_unlocked;
8295#endif
8296
8297 ;
8298 return 0;
8299}
8300_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008301if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008302 ac_cv_have_decl_feof_unlocked=yes
8303else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008304 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008305fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008307fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008309$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008310 if test $ac_cv_have_decl_feof_unlocked = yes; then
8311 gt_value=1
8312 else
8313 gt_value=0
8314 fi
8315
8316cat >>confdefs.h <<_ACEOF
8317#define HAVE_DECL_FEOF_UNLOCKED $gt_value
8318_ACEOF
8319
8320
8321
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008323$as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008324if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008325 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008326else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008328/* end confdefs.h. */
8329#include <stdio.h>
8330int
8331main ()
8332{
8333
8334#ifndef fgets_unlocked
8335 char *p = (char *) fgets_unlocked;
8336#endif
8337
8338 ;
8339 return 0;
8340}
8341_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008342if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008343 ac_cv_have_decl_fgets_unlocked=yes
8344else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008345 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008346fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008348fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008350$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008351 if test $ac_cv_have_decl_fgets_unlocked = yes; then
8352 gt_value=1
8353 else
8354 gt_value=0
8355 fi
8356
8357cat >>confdefs.h <<_ACEOF
8358#define HAVE_DECL_FGETS_UNLOCKED $gt_value
8359_ACEOF
8360
8361
8362
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008364$as_echo_n "checking whether getc_unlocked is declared... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008365if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008366 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008367else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008369/* end confdefs.h. */
8370#include <stdio.h>
8371int
8372main ()
8373{
8374
8375#ifndef getc_unlocked
8376 char *p = (char *) getc_unlocked;
8377#endif
8378
8379 ;
8380 return 0;
8381}
8382_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008383if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384 ac_cv_have_decl_getc_unlocked=yes
8385else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008386 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008389fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008391$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008392 if test $ac_cv_have_decl_getc_unlocked = yes; then
8393 gt_value=1
8394 else
8395 gt_value=0
8396 fi
8397
8398cat >>confdefs.h <<_ACEOF
8399#define HAVE_DECL_GETC_UNLOCKED $gt_value
8400_ACEOF
8401
8402
8403
8404 case $gt_cv_func_printf_posix in
8405 *yes) HAVE_POSIX_PRINTF=1 ;;
8406 *) HAVE_POSIX_PRINTF=0 ;;
8407 esac
8408
8409 if test "$ac_cv_func_asprintf" = yes; then
8410 HAVE_ASPRINTF=1
8411 else
8412 HAVE_ASPRINTF=0
8413 fi
8414
8415 if test "$ac_cv_func_snprintf" = yes; then
8416 HAVE_SNPRINTF=1
8417 else
8418 HAVE_SNPRINTF=0
8419 fi
8420
8421 if test "$ac_cv_func_wprintf" = yes; then
8422 HAVE_WPRINTF=1
8423 else
8424 HAVE_WPRINTF=0
8425 fi
8426
8427
8428
8429
8430
8431
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008432
8433 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008434
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008435 for element in $INCICONV; do
8436 haveit=
8437 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008438
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008439 acl_save_prefix="$prefix"
8440 prefix="$acl_final_prefix"
8441 acl_save_exec_prefix="$exec_prefix"
8442 exec_prefix="$acl_final_exec_prefix"
8443 eval x=\"$x\"
8444 exec_prefix="$acl_save_exec_prefix"
8445 prefix="$acl_save_prefix"
8446
8447 if test "X$x" = "X$element"; then
8448 haveit=yes
8449 break
8450 fi
8451 done
8452 if test -z "$haveit"; then
8453 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8454 fi
8455 done
8456
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008459$as_echo_n "checking for iconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008460if test "${am_cv_func_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008461 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008462else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008463
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008464 am_cv_func_iconv="no, consider installing GNU libiconv"
8465 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008467/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008468#include <stdlib.h>
8469#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008470int
8471main ()
8472{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008473iconv_t cd = iconv_open("","");
8474 iconv(cd,NULL,NULL,NULL,NULL);
8475 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008476 ;
8477 return 0;
8478}
8479_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008480if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008481 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008482fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008483rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008485 if test "$am_cv_func_iconv" != yes; then
8486 am_save_LIBS="$LIBS"
8487 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008489/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008490#include <stdlib.h>
8491#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008492int
8493main ()
8494{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008495iconv_t cd = iconv_open("","");
8496 iconv(cd,NULL,NULL,NULL,NULL);
8497 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008498 ;
8499 return 0;
8500}
8501_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008502if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008503 am_cv_lib_iconv=yes
8504 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008505fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008506rm -f core conftest.err conftest.$ac_objext \
8507 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008508 LIBS="$am_save_LIBS"
8509 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04008510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008513$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008514 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008515
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008516$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008517
8518 fi
8519 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008521$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008523$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008524 else
8525 CPPFLAGS="$am_save_CPPFLAGS"
8526 LIBICONV=
8527 LTLIBICONV=
8528 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008529
8530
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008531
8532 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008534$as_echo_n "checking for iconv declaration... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008535 if test "${am_cv_proto_iconv+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008536 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008537else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008538
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008540/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008541
8542#include <stdlib.h>
8543#include <iconv.h>
8544extern
8545#ifdef __cplusplus
8546"C"
8547#endif
8548#if defined(__STDC__) || defined(__cplusplus)
8549size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8550#else
8551size_t iconv();
8552#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008554int
8555main ()
8556{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008558 ;
8559 return 0;
8560}
8561_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008562if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008563 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008564else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008565 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008568 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 +00008569fi
8570
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008571 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008573 }$am_cv_proto_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008574$as_echo "${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04008575 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008576
8577cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008578#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008579_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008580
8581 fi
8582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008583
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008585$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008586if test "${am_cv_langinfo_codeset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008587 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008588else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008590/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008591#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008592int
8593main ()
8594{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008595char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008596 ;
8597 return 0;
8598}
8599_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008600if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008601 am_cv_langinfo_codeset=yes
8602else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008603 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008604fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008607
8608fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008610$as_echo "$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008611 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008612
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008613$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008614
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008615 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008616
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008617 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008618
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008620$as_echo_n "checking for LC_MESSAGES... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008621if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008622 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008623else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008625/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008626#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008627int
8628main ()
8629{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008630return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008631 ;
8632 return 0;
8633}
8634_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008635if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008636 am_cv_val_LC_MESSAGES=yes
8637else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008638 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008639fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008640rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008642fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008644$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008645 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008646
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008647$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008648
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008649 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008650
8651 fi
8652
8653 for ac_prog in bison
8654do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008655 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008656set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008658$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008659if test "${ac_cv_prog_INTLBISON+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008660 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008661else
8662 if test -n "$INTLBISON"; then
8663 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
8664else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666for as_dir in $PATH
8667do
8668 IFS=$as_save_IFS
8669 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008670 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008671 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 -05008672 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008674 break 2
8675 fi
8676done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008677 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04008678IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008679
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008680fi
8681fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008682INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008683if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008685$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008688$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008689fi
8690
Theodore Ts'oe1052142006-10-21 21:46:47 -04008691
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008692 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008693done
8694
8695 if test -z "$INTLBISON"; then
8696 ac_verc_fail=yes
8697 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008699$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008700 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
8701 case $ac_prog_version in
8702 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
8703 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
8704 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
8705 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
8706 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008708$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008709 fi
8710 if test $ac_verc_fail = yes; then
8711 INTLBISON=:
8712 fi
8713
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008714
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008715
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008716
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008717
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008719
8720
8721
8722
8723
8724
8725
8726
8727
8728
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008730$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008731 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008732if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008733 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008734else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008735 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008736fi
8737
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008739$as_echo "$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008740
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008741
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008742
8743
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008745 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008747 LIBINTL=
8748 LTLIBINTL=
8749 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008750
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008751 if test "$USE_NLS" = "yes"; then
8752 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008753
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008755$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008756
Theodore Ts'oe1052142006-10-21 21:46:47 -04008757# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008758if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008759 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008760else
8761 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008762fi
8763
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008765$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008766
8767 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8768 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008770
8771
8772
8773
8774
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008776$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008777if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008778 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008779else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008781/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008782#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008783extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008784extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785int
8786main ()
8787{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008788bindtextdomain ("", "");
8789return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008790 ;
8791 return 0;
8792}
8793_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008794if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008795 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008796else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008797 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008798fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008799rm -f core conftest.err conftest.$ac_objext \
8800 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008801fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01008803$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008804
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008805 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008806
8807
8808
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008809 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8821
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008822
Theodore Ts'oe1052142006-10-21 21:46:47 -04008823# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008824if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008825 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 if test "X$withval" = "Xno"; then
8827 use_additional=no
8828 else
8829 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008835
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836 eval additional_includedir=\"$includedir\"
8837 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008838
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8841
8842 else
8843 additional_includedir="$withval/include"
8844 additional_libdir="$withval/lib"
8845 fi
8846 fi
8847
Theodore Ts'oe1052142006-10-21 21:46:47 -04008848fi
8849
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008850 LIBINTL=
8851 LTLIBINTL=
8852 INCINTL=
8853 rpathdirs=
8854 ltrpathdirs=
8855 names_already_handled=
8856 names_next_round='intl '
8857 while test -n "$names_next_round"; do
8858 names_this_round="$names_next_round"
8859 names_next_round=
8860 for name in $names_this_round; do
8861 already_handled=
8862 for n in $names_already_handled; do
8863 if test "$n" = "$name"; then
8864 already_handled=yes
8865 break
8866 fi
8867 done
8868 if test -z "$already_handled"; then
8869 names_already_handled="$names_already_handled $name"
8870 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8871 eval value=\"\$HAVE_LIB$uppername\"
8872 if test -n "$value"; then
8873 if test "$value" = yes; then
8874 eval value=\"\$LIB$uppername\"
8875 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8876 eval value=\"\$LTLIB$uppername\"
8877 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8878 else
8879 :
8880 fi
8881 else
8882 found_dir=
8883 found_la=
8884 found_so=
8885 found_a=
8886 if test $use_additional = yes; then
8887 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8888 found_dir="$additional_libdir"
8889 found_so="$additional_libdir/lib$name.$shlibext"
8890 if test -f "$additional_libdir/lib$name.la"; then
8891 found_la="$additional_libdir/lib$name.la"
8892 fi
8893 else
8894 if test -f "$additional_libdir/lib$name.$libext"; then
8895 found_dir="$additional_libdir"
8896 found_a="$additional_libdir/lib$name.$libext"
8897 if test -f "$additional_libdir/lib$name.la"; then
8898 found_la="$additional_libdir/lib$name.la"
8899 fi
8900 fi
8901 fi
8902 fi
8903 if test "X$found_dir" = "X"; then
8904 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008905
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008906 acl_save_prefix="$prefix"
8907 prefix="$acl_final_prefix"
8908 acl_save_exec_prefix="$exec_prefix"
8909 exec_prefix="$acl_final_exec_prefix"
8910 eval x=\"$x\"
8911 exec_prefix="$acl_save_exec_prefix"
8912 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008913
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008914 case "$x" in
8915 -L*)
8916 dir=`echo "X$x" | sed -e 's/^X-L//'`
8917 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8918 found_dir="$dir"
8919 found_so="$dir/lib$name.$shlibext"
8920 if test -f "$dir/lib$name.la"; then
8921 found_la="$dir/lib$name.la"
8922 fi
8923 else
8924 if test -f "$dir/lib$name.$libext"; then
8925 found_dir="$dir"
8926 found_a="$dir/lib$name.$libext"
8927 if test -f "$dir/lib$name.la"; then
8928 found_la="$dir/lib$name.la"
8929 fi
8930 fi
8931 fi
8932 ;;
8933 esac
8934 if test "X$found_dir" != "X"; then
8935 break
8936 fi
8937 done
8938 fi
8939 if test "X$found_dir" != "X"; then
8940 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
8941 if test "X$found_so" != "X"; then
8942 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8944 else
8945 haveit=
8946 for x in $ltrpathdirs; do
8947 if test "X$x" = "X$found_dir"; then
8948 haveit=yes
8949 break
8950 fi
8951 done
8952 if test -z "$haveit"; then
8953 ltrpathdirs="$ltrpathdirs $found_dir"
8954 fi
8955 if test "$hardcode_direct" = yes; then
8956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8957 else
8958 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8959 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8960 haveit=
8961 for x in $rpathdirs; do
8962 if test "X$x" = "X$found_dir"; then
8963 haveit=yes
8964 break
8965 fi
8966 done
8967 if test -z "$haveit"; then
8968 rpathdirs="$rpathdirs $found_dir"
8969 fi
8970 else
8971 haveit=
8972 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008973
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008974 acl_save_prefix="$prefix"
8975 prefix="$acl_final_prefix"
8976 acl_save_exec_prefix="$exec_prefix"
8977 exec_prefix="$acl_final_exec_prefix"
8978 eval x=\"$x\"
8979 exec_prefix="$acl_save_exec_prefix"
8980 prefix="$acl_save_prefix"
8981
8982 if test "X$x" = "X-L$found_dir"; then
8983 haveit=yes
8984 break
8985 fi
8986 done
8987 if test -z "$haveit"; then
8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
8989 fi
8990 if test "$hardcode_minus_L" != no; then
8991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
8992 else
8993 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
8994 fi
8995 fi
8996 fi
8997 fi
8998 else
8999 if test "X$found_a" != "X"; then
9000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9001 else
9002 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9003 fi
9004 fi
9005 additional_includedir=
9006 case "$found_dir" in
9007 */lib | */lib/)
9008 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9009 additional_includedir="$basedir/include"
9010 ;;
9011 esac
9012 if test "X$additional_includedir" != "X"; then
9013 if test "X$additional_includedir" != "X/usr/include"; then
9014 haveit=
9015 if test "X$additional_includedir" = "X/usr/local/include"; then
9016 if test -n "$GCC"; then
9017 case $host_os in
9018 linux*) haveit=yes;;
9019 esac
9020 fi
9021 fi
9022 if test -z "$haveit"; then
9023 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009024
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009025 acl_save_prefix="$prefix"
9026 prefix="$acl_final_prefix"
9027 acl_save_exec_prefix="$exec_prefix"
9028 exec_prefix="$acl_final_exec_prefix"
9029 eval x=\"$x\"
9030 exec_prefix="$acl_save_exec_prefix"
9031 prefix="$acl_save_prefix"
9032
9033 if test "X$x" = "X-I$additional_includedir"; then
9034 haveit=yes
9035 break
9036 fi
9037 done
9038 if test -z "$haveit"; then
9039 if test -d "$additional_includedir"; then
9040 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9041 fi
9042 fi
9043 fi
9044 fi
9045 fi
9046 if test -n "$found_la"; then
9047 save_libdir="$libdir"
9048 case "$found_la" in
9049 */* | *\\*) . "$found_la" ;;
9050 *) . "./$found_la" ;;
9051 esac
9052 libdir="$save_libdir"
9053 for dep in $dependency_libs; do
9054 case "$dep" in
9055 -L*)
9056 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9057 if test "X$additional_libdir" != "X/usr/lib"; then
9058 haveit=
9059 if test "X$additional_libdir" = "X/usr/local/lib"; then
9060 if test -n "$GCC"; then
9061 case $host_os in
9062 linux*) haveit=yes;;
9063 esac
9064 fi
9065 fi
9066 if test -z "$haveit"; then
9067 haveit=
9068 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009069
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009070 acl_save_prefix="$prefix"
9071 prefix="$acl_final_prefix"
9072 acl_save_exec_prefix="$exec_prefix"
9073 exec_prefix="$acl_final_exec_prefix"
9074 eval x=\"$x\"
9075 exec_prefix="$acl_save_exec_prefix"
9076 prefix="$acl_save_prefix"
9077
9078 if test "X$x" = "X-L$additional_libdir"; then
9079 haveit=yes
9080 break
9081 fi
9082 done
9083 if test -z "$haveit"; then
9084 if test -d "$additional_libdir"; then
9085 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
9086 fi
9087 fi
9088 haveit=
9089 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009090
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009091 acl_save_prefix="$prefix"
9092 prefix="$acl_final_prefix"
9093 acl_save_exec_prefix="$exec_prefix"
9094 exec_prefix="$acl_final_exec_prefix"
9095 eval x=\"$x\"
9096 exec_prefix="$acl_save_exec_prefix"
9097 prefix="$acl_save_prefix"
9098
9099 if test "X$x" = "X-L$additional_libdir"; then
9100 haveit=yes
9101 break
9102 fi
9103 done
9104 if test -z "$haveit"; then
9105 if test -d "$additional_libdir"; then
9106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
9107 fi
9108 fi
9109 fi
9110 fi
9111 ;;
9112 -R*)
9113 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9114 if test "$enable_rpath" != no; then
9115 haveit=
9116 for x in $rpathdirs; do
9117 if test "X$x" = "X$dir"; then
9118 haveit=yes
9119 break
9120 fi
9121 done
9122 if test -z "$haveit"; then
9123 rpathdirs="$rpathdirs $dir"
9124 fi
9125 haveit=
9126 for x in $ltrpathdirs; do
9127 if test "X$x" = "X$dir"; then
9128 haveit=yes
9129 break
9130 fi
9131 done
9132 if test -z "$haveit"; then
9133 ltrpathdirs="$ltrpathdirs $dir"
9134 fi
9135 fi
9136 ;;
9137 -l*)
9138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9139 ;;
9140 *.la)
9141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9142 ;;
9143 *)
9144 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9146 ;;
9147 esac
9148 done
9149 fi
9150 else
9151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9153 fi
9154 fi
9155 fi
9156 done
9157 done
9158 if test "X$rpathdirs" != "X"; then
9159 if test -n "$hardcode_libdir_separator"; then
9160 alldirs=
9161 for found_dir in $rpathdirs; do
9162 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
9163 done
9164 acl_save_libdir="$libdir"
9165 libdir="$alldirs"
9166 eval flag=\"$hardcode_libdir_flag_spec\"
9167 libdir="$acl_save_libdir"
9168 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9169 else
9170 for found_dir in $rpathdirs; do
9171 acl_save_libdir="$libdir"
9172 libdir="$found_dir"
9173 eval flag=\"$hardcode_libdir_flag_spec\"
9174 libdir="$acl_save_libdir"
9175 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9176 done
9177 fi
9178 fi
9179 if test "X$ltrpathdirs" != "X"; then
9180 for found_dir in $ltrpathdirs; do
9181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9182 done
9183 fi
9184
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009186$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009187if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009188 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009189else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009190 gt_save_CPPFLAGS="$CPPFLAGS"
9191 CPPFLAGS="$CPPFLAGS $INCINTL"
9192 gt_save_LIBS="$LIBS"
9193 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009195/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009196#include <libintl.h>
9197extern int _nl_msg_cat_cntr;
9198extern
9199#ifdef __cplusplus
9200"C"
9201#endif
9202const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009203int
9204main ()
9205{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009206bindtextdomain ("", "");
9207return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009208 ;
9209 return 0;
9210}
9211_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009212if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009213 gt_cv_func_gnugettext1_libintl=yes
9214else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009215 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009216fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009217rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -05009219 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
9220 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009223#include <libintl.h>
9224extern int _nl_msg_cat_cntr;
9225extern
9226#ifdef __cplusplus
9227"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009228#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009229const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009230int
9231main ()
9232{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233bindtextdomain ("", "");
9234return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235 ;
9236 return 0;
9237}
9238_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009239if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009240 LIBINTL="$LIBINTL $LIBICONV"
9241 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9242 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009243
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009244fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009245rm -f core conftest.err conftest.$ac_objext \
9246 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009247 fi
9248 CPPFLAGS="$gt_save_CPPFLAGS"
9249 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009250fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009252$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009253 fi
9254
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009255 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
9256 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009257 && test "$PACKAGE" != gettext-runtime \
9258 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259 gt_use_preinstalled_gnugettext=yes
9260 else
9261 LIBINTL=
9262 LTLIBINTL=
9263 INCINTL=
9264 fi
9265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
9268 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009269 fi
9270 fi
9271
9272 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009273 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009274 USE_INCLUDED_LIBINTL=yes
9275 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
9276 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
9277 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009278 fi
9279
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9281 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9282 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009283 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009284
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009285
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009286 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9287 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009289$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291 else
9292 USE_NLS=no
9293 fi
9294 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009295
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009297$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009299$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009302$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009303 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9304 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
9305 gt_source="external libintl"
9306 else
9307 gt_source="libc"
9308 fi
9309 else
9310 gt_source="included intl directory"
9311 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009313$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009314 fi
9315
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009316 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009317
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009318 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
9319 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009321$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009323$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325 for element in $INCINTL; do
9326 haveit=
9327 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009328
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009329 acl_save_prefix="$prefix"
9330 prefix="$acl_final_prefix"
9331 acl_save_exec_prefix="$exec_prefix"
9332 exec_prefix="$acl_final_exec_prefix"
9333 eval x=\"$x\"
9334 exec_prefix="$acl_save_exec_prefix"
9335 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009336
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009337 if test "X$x" = "X$element"; then
9338 haveit=yes
9339 break
9340 fi
9341 done
9342 if test -z "$haveit"; then
9343 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9344 fi
9345 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009346
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009347 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009348
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009349
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009350$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009351
9352
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009353$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009354
9355 fi
9356
9357 POSUB=po
9358 fi
9359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009360
9361 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009362 BUILD_INCLUDED_LIBINTL=yes
9363 fi
9364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009365
9366
9367
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009368
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009369 nls_cv_header_intl=
9370 nls_cv_header_libgt=
9371
9372 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009373
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009374
9375 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009376
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009377
9378 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009379
9380
9381 if test "$USE_INCLUDED_LIBINTL" = yes; then
9382 INTLOBJS="\$(GETTOBJS)"
9383 fi
9384
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009385
9386 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009387
9388
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009389
9390 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009391
9392
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009393
9394
9395
9396
9397
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009399$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9400set x ${MAKE-make}
9401ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009402if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009403 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009404else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009405 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04009406SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009407all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04009408 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009409_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009410# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009411case `${MAKE-make} -f conftest.make 2>/dev/null` in
9412 *@@@%%%=?*=@@@%%%*)
9413 eval ac_cv_prog_make_${ac_make}_set=yes;;
9414 *)
9415 eval ac_cv_prog_make_${ac_make}_set=no;;
9416esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009417rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009418fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009419if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009421$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009422 SET_MAKE=
9423else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009425$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009426 SET_MAKE="MAKE=${MAKE-make}"
9427fi
9428
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009430$as_echo_n "checking for GNU make... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009431if test "${_cv_gnu_make_command+set}" = set; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009432 $as_echo_n "(cached) " >&6
9433else
9434 _cv_gnu_make_command='' ;
9435 for a in "$MAKE" make gmake gnumake ; do
9436 if test -z "$a" ; then continue ; fi ;
9437 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9438 _cv_gnu_make_command=$a ;
9439 break;
9440 fi
9441 done ;
9442
9443fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009445$as_echo "$_cv_gnu_make_command" >&6; } ;
9446 if test "x$_cv_gnu_make_command" != "x" ; then
9447 ifGNUmake='' ;
9448 ifNotGNUmake='#' ;
9449 else
9450 ifGNUmake='#' ;
9451 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -04009453$as_echo "\"Not found\"" >&6; };
9454 fi
9455
9456
9457
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009458# Extract the first word of "ln", so it can be a program name with args.
9459set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009461$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009462if test "${ac_cv_path_LN+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009463 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009464else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009465 case $LN in
9466 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009467 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9468 ;;
9469 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471for as_dir in $PATH
9472do
9473 IFS=$as_save_IFS
9474 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009475 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009476 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 -05009477 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479 break 2
9480 fi
9481done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009483IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009484
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009485 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9486 ;;
9487esac
9488fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009489LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009490if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009492$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009493else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009495$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009496fi
9497
Theodore Ts'oe1052142006-10-21 21:46:47 -04009498
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009500$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501LN_S=$as_ln_s
9502if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009504$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009507$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00009508fi
9509
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009510# Extract the first word of "mv", so it can be a program name with args.
9511set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009513$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009514if test "${ac_cv_path_MV+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009515 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009516else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517 case $MV in
9518 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009519 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9520 ;;
9521 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9523for as_dir in $PATH
9524do
9525 IFS=$as_save_IFS
9526 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009527 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009528 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 -05009529 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531 break 2
9532 fi
9533done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009534 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009535IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009536
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009537 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9538 ;;
9539esac
9540fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009541MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009542if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009544$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009547$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009548fi
9549
Theodore Ts'oe1052142006-10-21 21:46:47 -04009550
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009551# Extract the first word of "cp", so it can be a program name with args.
9552set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009554$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009555if test "${ac_cv_path_CP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009556 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009557else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009558 case $CP in
9559 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009560 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9561 ;;
9562 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564for as_dir in $PATH
9565do
9566 IFS=$as_save_IFS
9567 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009568 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009569 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 -05009570 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572 break 2
9573 fi
9574done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009575 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009576IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009577
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009578 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9579 ;;
9580esac
9581fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009583if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009585$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009586else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009588$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009589fi
9590
Theodore Ts'oe1052142006-10-21 21:46:47 -04009591
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009592# Extract the first word of "rm", so it can be a program name with args.
9593set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009595$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009596if test "${ac_cv_path_RM+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009597 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009598else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599 case $RM in
9600 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009601 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9602 ;;
9603 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9605for as_dir in $PATH
9606do
9607 IFS=$as_save_IFS
9608 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009609 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009610 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 -05009611 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613 break 2
9614 fi
9615done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009616 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009617IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009618
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009619 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9620 ;;
9621esac
9622fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009624if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009626$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009627else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009629$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009630fi
9631
Theodore Ts'oe1052142006-10-21 21:46:47 -04009632
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009633# Extract the first word of "chmod", so it can be a program name with args.
9634set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009636$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009637if test "${ac_cv_path_CHMOD+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009638 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009639else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640 case $CHMOD in
9641 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009642 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9643 ;;
9644 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646for as_dir in $PATH
9647do
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009650 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009651 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 -05009652 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009654 break 2
9655 fi
9656done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009657 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009658IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009660 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9661 ;;
9662esac
9663fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009664CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009665if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009667$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009668else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009670$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009671fi
9672
Theodore Ts'oe1052142006-10-21 21:46:47 -04009673
Theodore Ts'o32237012005-01-17 19:13:39 -05009674for ac_prog in gawk mawk nawk awk
9675do
9676 # Extract the first word of "$ac_prog", so it can be a program name with args.
9677set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009679$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009680if test "${ac_cv_prog_AWK+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009681 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009682else
Theodore Ts'o32237012005-01-17 19:13:39 -05009683 if test -n "$AWK"; then
9684 ac_cv_prog_AWK="$AWK" # Let the user override the test.
9685else
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687for as_dir in $PATH
9688do
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009691 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009692 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 -05009693 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009695 break 2
9696 fi
9697done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009698 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009699IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009700
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009701fi
Theodore Ts'o32237012005-01-17 19:13:39 -05009702fi
9703AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009704if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009706$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009707else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009709$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009710fi
9711
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712
Theodore Ts'o32237012005-01-17 19:13:39 -05009713 test -n "$AWK" && break
9714done
9715
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009717$as_echo_n "checking for egrep... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009718if test "${ac_cv_path_EGREP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009719 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -05009720else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9722 then ac_cv_path_EGREP="$GREP -E"
9723 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009724 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009725 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009726 # Loop through the user's path and test for each of PROGNAME-LIST
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -04009728for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9729do
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009732 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
9735 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
9736# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -04009737 # Check for GNU $ac_path_EGREP
9738case `"$ac_path_EGREP" --version 2>&1` in
9739*GNU*)
9740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9741*)
9742 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009743 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744 while :
9745 do
9746 cat "conftest.in" "conftest.in" >"conftest.tmp"
9747 mv "conftest.tmp" "conftest.in"
9748 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009749 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -04009750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009752 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -04009753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9754 # Best one so far, save it but keep looking for a better one
9755 ac_cv_path_EGREP="$ac_path_EGREP"
9756 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -05009757 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009758 # 10*(2^10) chars as input seems more than enough
9759 test $ac_count -gt 10 && break
9760 done
9761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9762esac
9763
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009764 $ac_path_EGREP_found && break 3
9765 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009766 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009767 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009768IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009769 if test -z "$ac_cv_path_EGREP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009770 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 +01009771 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009772else
9773 ac_cv_path_EGREP=$EGREP
9774fi
9775
Theodore Ts'oe1052142006-10-21 21:46:47 -04009776 fi
9777fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009779$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04009780 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -05009781
9782
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009783# Extract the first word of "sed", so it can be a program name with args.
9784set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009786$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009787if test "${ac_cv_path_SED+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009788 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009789else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009790 case $SED in
9791 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009792 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9793 ;;
9794 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9796for as_dir in $PATH
9797do
9798 IFS=$as_save_IFS
9799 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009800 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009801 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 -05009802 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009804 break 2
9805 fi
9806done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009807 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009808IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009809
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009810 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9811 ;;
9812esac
9813fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009814SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009815if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009817$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009818else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009820$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009821fi
9822
Theodore Ts'oe1052142006-10-21 21:46:47 -04009823
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009824# Extract the first word of "perl", so it can be a program name with args.
9825set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009827$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009828if test "${ac_cv_path_PERL+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009829 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009830else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831 case $PERL in
9832 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009833 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9834 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009835 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837for as_dir in $PATH
9838do
9839 IFS=$as_save_IFS
9840 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009841 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009842 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 -05009843 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009845 break 2
9846 fi
9847done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009848 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009849IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009850
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009851 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
9852 ;;
9853esac
9854fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009855PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009856if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009858$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009859else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009861$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +00009862fi
9863
Theodore Ts'oe1052142006-10-21 21:46:47 -04009864
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009865# Extract the first word of "ldconfig", so it can be a program name with args.
9866set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009868$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009869if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009870 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009871else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009872 case $LDCONFIG in
9873 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009874 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
9875 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009876 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878for as_dir in $PATH
9879do
9880 IFS=$as_save_IFS
9881 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009882 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009883 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 -05009884 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009886 break 2
9887 fi
9888done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009889 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009890IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009891
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009892 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
9893 ;;
9894esac
9895fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009896LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009897if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009899$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009902$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +00009903fi
9904
Theodore Ts'oe1052142006-10-21 21:46:47 -04009905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009906if test -n "$ac_tool_prefix"; then
9907 # 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 +00009908set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009910$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009911if test "${ac_cv_prog_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009912 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009913else
9914 if test -n "$AR"; then
9915 ac_cv_prog_AR="$AR" # Let the user override the test.
9916else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9918for as_dir in $PATH
9919do
9920 IFS=$as_save_IFS
9921 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009922 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009923 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 -05009924 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009926 break 2
9927 fi
9928done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009929 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009930IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009931
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009932fi
9933fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009934AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009935if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009937$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009938else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009940$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009941fi
9942
Theodore Ts'oe1052142006-10-21 21:46:47 -04009943
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009944fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009945if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009947 # Extract the first word of "ar", so it can be a program name with args.
9948set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009950$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009951if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009952 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009953else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009954 if test -n "$ac_ct_AR"; then
9955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958for as_dir in $PATH
9959do
9960 IFS=$as_save_IFS
9961 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009962 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009963 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 -05009964 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009966 break 2
9967 fi
9968done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009969 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009970IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009971
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009972fi
9973fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974ac_ct_AR=$ac_cv_prog_ac_ct_AR
9975if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009977$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009978else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009980$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009981fi
9982
Theodore Ts'oe1052142006-10-21 21:46:47 -04009983 if test "x$ac_ct_AR" = x; then
9984 AR="ar"
9985 else
9986 case $cross_compiling:$ac_tool_warned in
9987yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009988{ $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 +01009989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04009990ac_tool_warned=yes ;;
9991esac
9992 AR=$ac_ct_AR
9993 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009995 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009996fi
9997
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009998if test -n "$ac_tool_prefix"; then
9999 # 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 +000010000set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010002$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010003if test "${ac_cv_prog_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010004 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010005else
10006 if test -n "$RANLIB"; then
10007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10010for as_dir in $PATH
10011do
10012 IFS=$as_save_IFS
10013 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010014 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010015 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 -050010016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010018 break 2
10019 fi
10020done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010021 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010022IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010023
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010024fi
10025fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010026RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010027if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010029$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010030else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010032$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010033fi
10034
Theodore Ts'oe1052142006-10-21 21:46:47 -040010035
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010036fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010037if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010038 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010039 # Extract the first word of "ranlib", so it can be a program name with args.
10040set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010042$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010044 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010045else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010046 if test -n "$ac_ct_RANLIB"; then
10047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10050for as_dir in $PATH
10051do
10052 IFS=$as_save_IFS
10053 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010054 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010055 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 -050010056 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010058 break 2
10059 fi
10060done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010061 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010062IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010063
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010064fi
10065fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10067if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010069$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010072$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010073fi
10074
Theodore Ts'oe1052142006-10-21 21:46:47 -040010075 if test "x$ac_ct_RANLIB" = x; then
10076 RANLIB=":"
10077 else
10078 case $cross_compiling:$ac_tool_warned in
10079yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010080{ $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 +010010081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010082ac_tool_warned=yes ;;
10083esac
10084 RANLIB=$ac_ct_RANLIB
10085 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010086else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010087 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010088fi
10089
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010090if test -n "$ac_tool_prefix"; then
10091 # 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 +000010092set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010094$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010095if test "${ac_cv_prog_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010096 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010097else
10098 if test -n "$STRIP"; then
10099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10102for as_dir in $PATH
10103do
10104 IFS=$as_save_IFS
10105 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010106 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010107 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 -050010108 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010110 break 2
10111 fi
10112done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010113 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010114IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010115
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010116fi
10117fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010118STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010119if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010121$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010124$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010125fi
10126
Theodore Ts'oe1052142006-10-21 21:46:47 -040010127
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010128fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010129if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010130 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010131 # Extract the first word of "strip", so it can be a program name with args.
10132set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010134$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010135if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010136 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010137else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010138 if test -n "$ac_ct_STRIP"; then
10139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010140else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142for as_dir in $PATH
10143do
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010146 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010147 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 -050010148 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010150 break 2
10151 fi
10152done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010153 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010154IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010155
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010156fi
10157fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10159if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010161$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010162else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010164$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010165fi
10166
Theodore Ts'oe1052142006-10-21 21:46:47 -040010167 if test "x$ac_ct_STRIP" = x; then
10168 STRIP=":"
10169 else
10170 case $cross_compiling:$ac_tool_warned in
10171yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010172{ $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 +010010173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040010174ac_tool_warned=yes ;;
10175esac
10176 STRIP=$ac_ct_STRIP
10177 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010178else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010179 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010180fi
10181
Manish Katiyar7321d942008-04-14 17:20:03 +053010182# Extract the first word of "makeinfo", so it can be a program name with args.
10183set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010185$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010186if test "${ac_cv_prog_MAKEINFO+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010187 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053010188else
10189 if test -n "$MAKEINFO"; then
10190 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195 IFS=$as_save_IFS
10196 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010197 for ac_exec_ext in '' $ac_executable_extensions; do
Manish Katiyar7321d942008-04-14 17:20:03 +053010198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053010201 break 2
10202 fi
10203done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010204 done
Manish Katiyar7321d942008-04-14 17:20:03 +053010205IFS=$as_save_IFS
10206
10207fi
10208fi
10209MAKEINFO=$ac_cv_prog_MAKEINFO
10210if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010212$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010213else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010215$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053010216fi
10217
10218
10219if test "_$MAKEINFO" = "_"; then
10220 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
10221else
10222 case "$MAKEINFO" in
10223 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010225*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010226$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053010227*** Makeinfo is missing. Info documentation will not be built." >&2;}
10228 ;;
10229 *)
10230 ;;
10231 esac
10232fi
10233
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010234
Theodore Ts'o6c133521999-07-03 20:37:03 +000010235# See if we need a separate native compiler.
10236if test $cross_compiling = no; then
10237 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010238
Theodore Ts'o6c133521999-07-03 20:37:03 +000010239else
10240 for ac_prog in gcc cc
10241do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010242 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000010243set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010245$as_echo_n "checking for $ac_word... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010246if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010247 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000010248else
10249 if test -n "$BUILD_CC"; then
10250 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10251else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010254do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010255 IFS=$as_save_IFS
10256 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010257 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010258 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 -050010259 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010261 break 2
10262 fi
10263done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010264 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010265IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267fi
10268fi
10269BUILD_CC=$ac_cv_prog_BUILD_CC
10270if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010272$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010273else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010275$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010276fi
10277
Theodore Ts'oe1052142006-10-21 21:46:47 -040010278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010279 test -n "$BUILD_CC" && break
10280done
10281
10282fi
Mike Frysinger677fc912012-03-06 20:13:54 -050010283for 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 -050010284do :
10285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10286ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10287eval as_val=\$$as_ac_Header
10288 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010289 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010291_ACEOF
10292
10293fi
10294
10295done
10296
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010297for ac_header in sys/disk.h sys/mount.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010298do :
10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10300ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010301#if HAVE_SYS_QUEUE_H
10302#include <sys/queue.h>
10303#endif
10304
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010305"
10306eval as_val=\$$as_ac_Header
10307 if test "x$as_val" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010308 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010310_ACEOF
10311
10312fi
10313
10314done
10315
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010316for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010317do :
10318 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010319#if HAVE_SYS_TYPES_H
10320#include <sys/types.h>
10321#endif
10322#if HAVE_SYS_SOCKET
10323#include <sys/socket.h>
10324#endif
10325
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010326"
10327if test "x$ac_cv_header_net_if_h" = x""yes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010328 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010329#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050010330_ACEOF
10331
10332fi
10333
10334done
10335
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010336for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010337do :
10338 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10339if test "x$ac_cv_func_vprintf" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010340 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010341#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010342_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010343
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010344ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10345if test "x$ac_cv_func__doprnt" = x""yes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010346
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010347$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010348
10349fi
10350
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010351fi
10352done
10353
10354
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010355ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10356"
10357if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010358
10359$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010360
10361fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010362
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010363ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10364"
10365if test "x$ac_cv_type_ssize_t" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010366
10367$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010368
Theodore Ts'offf45482003-04-13 00:44:19 -040010369fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010370
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010371ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10372"
10373if test "x$ac_cv_have_decl_llseek" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010374
10375$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040010376
10377fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010378
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010379ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010380 #define _LARGEFILE64_SOURCE
10381 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010382"
10383if test "x$ac_cv_have_decl_lseek64" = x""yes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010384
10385$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000010386
10387fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050010388
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010389# The cast to long int works around a bug in the HP C Compiler
10390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10392# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010394$as_echo_n "checking size of short... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010395if test "${ac_cv_sizeof_short+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010396 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010397else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010398 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 -050010399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010401 if test "$ac_cv_type_short" = yes; then
10402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010404{ as_fn_set_status 77
10405as_fn_error "cannot compute sizeof (short)
10406See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010407 else
10408 ac_cv_sizeof_short=0
10409 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010410fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010411
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010412fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010414$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010415
10416
10417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010418cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010419#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010421
10422
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 int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010428$as_echo_n "checking size of int... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010429if test "${ac_cv_sizeof_int+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 (int))" "ac_cv_sizeof_int" "$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_int" = 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 (int)
10440See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010441 else
10442 ac_cv_sizeof_int=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_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010448$as_echo "$ac_cv_sizeof_int" >&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_INT $ac_cv_sizeof_int
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 long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010462$as_echo_n "checking size of long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010463if test "${ac_cv_sizeof_long+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 (long))" "ac_cv_sizeof_long" "$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_long" = 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 (long)
10474See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010475 else
10476 ac_cv_sizeof_long=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_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010482$as_echo "$ac_cv_sizeof_long" >&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_LONG $ac_cv_sizeof_long
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 long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010496$as_echo_n "checking size of long long... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010497if test "${ac_cv_sizeof_long_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 long))" "ac_cv_sizeof_long_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_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 long)
10508See \`config.log' for more details." "$LINENO" 5; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010509 else
10510 ac_cv_sizeof_long_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_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010516$as_echo "$ac_cv_sizeof_long_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'ofc6d9d51997-04-29 14:51:31 +000010521#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010522_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010523
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010524
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010525SIZEOF_SHORT=$ac_cv_sizeof_short
10526SIZEOF_INT=$ac_cv_sizeof_int
10527SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010528SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
10529
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010530
10531
10532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010534$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010535if test "${ac_cv_c_bigendian+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010536 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010537else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010538 ac_cv_c_bigendian=unknown
10539 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010541/* end confdefs.h. */
10542#ifndef __APPLE_CC__
10543 not a universal capable compiler
10544 #endif
10545 typedef int dummy;
10546
10547_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010548if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010549
10550 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010551 # there are at least two -arch flags with different values.
10552 ac_arch=
10553 ac_prev=
10554 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10555 if test -n "$ac_prev"; then
10556 case $ac_word in
10557 i?86 | x86_64 | ppc | ppc64)
10558 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10559 ac_arch=$ac_word
10560 else
10561 ac_cv_c_bigendian=universal
10562 break
10563 fi
10564 ;;
10565 esac
10566 ac_prev=
10567 elif test "x$ac_word" = "x-arch"; then
10568 ac_prev=arch
10569 fi
10570 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010571fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10573 if test $ac_cv_c_bigendian = unknown; then
10574 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010576/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010577#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010578 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010580int
10581main ()
10582{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010583#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10585 && LITTLE_ENDIAN)
10586 bogus endian macros
10587 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588
10589 ;
10590 return 0;
10591}
10592_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010593if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010594 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010596/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010597#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010598 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600int
10601main ()
10602{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010603#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010604 not big endian
10605 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010606
10607 ;
10608 return 0;
10609}
10610_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010611if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010612 ac_cv_c_bigendian=yes
10613else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010614 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010615fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010617fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10619 fi
10620 if test $ac_cv_c_bigendian = unknown; then
10621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010623/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010624#include <limits.h>
10625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010626int
10627main ()
10628{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010629#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10630 bogus endian macros
10631 #endif
10632
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010633 ;
10634 return 0;
10635}
10636_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010637if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010638 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010640/* end confdefs.h. */
10641#include <limits.h>
10642
10643int
10644main ()
10645{
10646#ifndef _BIG_ENDIAN
10647 not big endian
10648 #endif
10649
10650 ;
10651 return 0;
10652}
10653_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010654if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010655 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010656else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010657 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010658fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010660fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10662 fi
10663 if test $ac_cv_c_bigendian = unknown; then
10664 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010665 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010666 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010668/* end confdefs.h. */
10669short int ascii_mm[] =
10670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10671 short int ascii_ii[] =
10672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10673 int use_ascii (int i) {
10674 return ascii_mm[i] + ascii_ii[i];
10675 }
10676 short int ebcdic_ii[] =
10677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10678 short int ebcdic_mm[] =
10679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10680 int use_ebcdic (int i) {
10681 return ebcdic_mm[i] + ebcdic_ii[i];
10682 }
10683 extern int foo;
10684
10685int
10686main ()
10687{
10688return use_ascii (foo) == use_ebcdic (foo);
10689 ;
10690 return 0;
10691}
10692_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010693if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10695 ac_cv_c_bigendian=yes
10696 fi
10697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10698 if test "$ac_cv_c_bigendian" = unknown; then
10699 ac_cv_c_bigendian=no
10700 else
10701 # finding both strings is unlikely to happen, but who knows?
10702 ac_cv_c_bigendian=unknown
10703 fi
10704 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010705fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010707else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010709/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040010710$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010711int
10712main ()
10713{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010714
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010715 /* Are we little or big endian? From Harbison&Steele. */
10716 union
10717 {
10718 long int l;
10719 char c[sizeof (long int)];
10720 } u;
10721 u.l = 1;
10722 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723
10724 ;
10725 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010726}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010728if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010729 ac_cv_c_bigendian=no
10730else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010731 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010732fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10734 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010735fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010736
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010737 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010738fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010740$as_echo "$ac_cv_c_bigendian" >&6; }
10741 case $ac_cv_c_bigendian in #(
10742 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010743 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010744;; #(
10745 no)
10746 ;; #(
10747 universal)
10748
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010749$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010750
10751 ;; #(
10752 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010753 as_fn_error "unknown endianness
10754 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010755 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000010756
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010757BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040010758ASM_TYPES_HEADER=./asm_types.h
10759
Theodore Ts'o488c75a2008-06-07 08:55:21 -040010760echo "/* These defines are needed for the public ext2fs.h header file */" \
10761 > public_config.h
10762if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
10763 uniq tmp_config.$$ >> public_config.h
10764else
10765 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
10766fi
10767if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
10768 uniq tmp_config.$$ >> public_config.h
10769else
10770 echo "#undef WORDS_BIGENDIAN" >> public_config.h
10771fi
10772rm -f tmp_config.$$
10773PUBLIC_CONFIG_HEADER=./public_config.h
10774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010776do :
10777 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
10778if test "x$ac_cv_header_inttypes_h" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010780#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781_ACEOF
10782
10783fi
10784
Theodore Ts'o0c193f82003-08-01 14:26:23 -040010785done
10786
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010787ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10788if test "x$ac_cv_type_intptr_t" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789
10790cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010791#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792_ACEOF
10793
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050010794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010795fi
10796
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010797{ $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 +010010798$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010799if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010800 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010803/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010804#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010805int
10806main ()
10807{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010808struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010809 ;
10810 return 0;
10811}
10812_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010813if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010814 e2fsprogs_cv_struct_st_flags=yes
10815else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010816 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819fi
10820
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010822$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010823if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010825$as_echo_n "checking whether st_flags field is useful... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010826 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010827 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010828else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010830/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010831#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010832int
10833main ()
10834{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010835struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010836 ;
10837 return 0;
10838}
10839_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010840if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010841 e2fsprogs_cv_struct_st_flags_immut=yes
10842else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010843 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10846fi
10847
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010849$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010850 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040010851
10852$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010853
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000010854 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010855fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010856ac_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 -050010857 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010858"
10859if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010860
10861cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010862#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010863_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050010864
10865fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010866
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010867if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010869$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010870if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010871 $as_echo_n "(cached) " >&6
10872else
10873 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010875/* end confdefs.h. */
10876
10877/* Override any GCC internal prototype to avoid an error.
10878 Use char because int might match the return type of a GCC
10879 builtin and then its argument prototype would still apply. */
10880#ifdef __cplusplus
10881extern "C"
10882#endif
10883char blkid_probe_all ();
10884int
10885main ()
10886{
10887return blkid_probe_all ();
10888 ;
10889 return 0;
10890}
10891_ACEOF
10892for ac_lib in '' blkid; do
10893 if test -z "$ac_lib"; then
10894 ac_res="none required"
10895 else
10896 ac_res=-l$ac_lib
10897 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10898 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010899 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010900 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010901fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010902rm -f core conftest.err conftest.$ac_objext \
10903 conftest$ac_exeext
10904 if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010905 break
10906fi
10907done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010908if test "${ac_cv_search_blkid_probe_all+set}" = set; then :
10909
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010910else
10911 ac_cv_search_blkid_probe_all=no
10912fi
10913rm conftest.$ac_ext
10914LIBS=$ac_func_search_save_LIBS
10915fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010917$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
10918ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010919if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050010920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10921
10922fi
10923
10924fi
Theodore Ts'o3b802e42012-05-28 10:38:06 -040010925for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010926do :
10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10928ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10929eval as_val=\$$as_ac_var
10930 if test "x$as_val" = x""yes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010931 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010933_ACEOF
10934
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010935fi
10936done
10937
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010938SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010940$as_echo_n "checking for socket in -lsocket... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010941if test "${ac_cv_lib_socket_socket+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010942 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010943else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010944 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010945LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010947/* end confdefs.h. */
10948
Theodore Ts'oe1052142006-10-21 21:46:47 -040010949/* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010952#ifdef __cplusplus
10953extern "C"
10954#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010955char socket ();
10956int
10957main ()
10958{
Theodore Ts'oe1052142006-10-21 21:46:47 -040010959return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010960 ;
10961 return 0;
10962}
10963_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010964if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010965 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010966else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010967 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010968fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010969rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010971LIBS=$ac_check_lib_save_LIBS
10972fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010974$as_echo "$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010975if test "x$ac_cv_lib_socket_socket" = x""yes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010976 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010977fi
10978
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010979
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010981$as_echo_n "checking for optreset... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010982if test "${ac_cv_have_optreset+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010983 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010984else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010986/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010987#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010988
10989_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010991 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010992 ac_cv_have_optreset=yes
10993else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010994 ac_cv_have_optreset=no
10995fi
10996rm -f conftest*
10997
10998fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011000$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011001if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011002
11003$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011004
11005fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011006
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011007SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011008ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
11009if test "x$ac_cv_func_sem_init" = x""yes; then :
11010
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011013$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011014if test "${ac_cv_lib_pthread_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011015 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011016else
11017 ac_check_lib_save_LIBS=$LIBS
11018LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011020/* end confdefs.h. */
11021
11022/* Override any GCC internal prototype to avoid an error.
11023 Use char because int might match the return type of a GCC
11024 builtin and then its argument prototype would still apply. */
11025#ifdef __cplusplus
11026extern "C"
11027#endif
11028char sem_init ();
11029int
11030main ()
11031{
11032return sem_init ();
11033 ;
11034 return 0;
11035}
11036_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011037if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011038 ac_cv_lib_pthread_sem_init=yes
11039else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011040 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011041fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011042rm -f core conftest.err conftest.$ac_objext \
11043 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011044LIBS=$ac_check_lib_save_LIBS
11045fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011047$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011048if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then :
11049 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011050
11051 SEM_INIT_LIB=-lpthread
11052else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011054$as_echo_n "checking for sem_init in -lrt... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011055if test "${ac_cv_lib_rt_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011056 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011057else
11058 ac_check_lib_save_LIBS=$LIBS
11059LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011061/* end confdefs.h. */
11062
11063/* Override any GCC internal prototype to avoid an error.
11064 Use char because int might match the return type of a GCC
11065 builtin and then its argument prototype would still apply. */
11066#ifdef __cplusplus
11067extern "C"
11068#endif
11069char sem_init ();
11070int
11071main ()
11072{
11073return sem_init ();
11074 ;
11075 return 0;
11076}
11077_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011078if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011079 ac_cv_lib_rt_sem_init=yes
11080else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011081 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011082fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011083rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011085LIBS=$ac_check_lib_save_LIBS
11086fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011088$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011089if test "x$ac_cv_lib_rt_sem_init" = x""yes; then :
11090 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011091
11092 SEM_INIT_LIB=-lrt
11093else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011095$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011096if test "${ac_cv_lib_posix4_sem_init+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011097 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011098else
11099 ac_check_lib_save_LIBS=$LIBS
11100LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011102/* end confdefs.h. */
11103
11104/* Override any GCC internal prototype to avoid an error.
11105 Use char because int might match the return type of a GCC
11106 builtin and then its argument prototype would still apply. */
11107#ifdef __cplusplus
11108extern "C"
11109#endif
11110char sem_init ();
11111int
11112main ()
11113{
11114return sem_init ();
11115 ;
11116 return 0;
11117}
11118_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011119if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011120 ac_cv_lib_posix4_sem_init=yes
11121else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011122 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011123fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011124rm -f core conftest.err conftest.$ac_objext \
11125 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011126LIBS=$ac_check_lib_save_LIBS
11127fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011129$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011130if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then :
11131 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040011132
11133 SEM_INIT_LIB=-lposix4
11134fi
11135
11136fi
11137
11138fi
11139
11140fi
11141
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011143$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040011144if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011145 UNI_DIFF_OPTS=-u
11146else
11147 UNI_DIFF_OPTS=-c
11148fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011150$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040011151
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011152case "$host_os" in
11153linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011154
11155$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011156
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000011157 ;;
11158esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011159LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011160CYGWIN_CMT="#"
11161UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011162case "$host_os" in
11163linux*)
11164 LINUX_CMT=
11165 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040011166cygwin)
11167 CYGWIN_CMT=
11168 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040011169 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040011170esac
11171
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011172
11173
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011174case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011175linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011176 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
11177 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011178 { $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 +010011179$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011180 fi
11181 ;;
11182esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011183case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011184linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011185 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011186 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011187 { $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 +010011188$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011189 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011191$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040011192 mandir=/usr/share/man
11193 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011194 fi
11195;;
11196esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011197if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000011198 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011199 root_prefix="$ac_default_prefix"
11200 else
11201 root_prefix="$prefix"
11202 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040011203 root_bindir=$bindir
11204 root_sbindir=$sbindir
11205 root_libdir=$libdir
11206 root_sysconfdir=$sysconfdir
11207else
11208 root_bindir='${root_prefix}/bin'
11209 root_sbindir='${root_prefix}/sbin'
11210 root_libdir='${root_prefix}/lib'
11211 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011212fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011213if test "$bindir" != '${exec_prefix}/bin'; then
11214 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011216$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011217fi
11218if test "$sbindir" != '${exec_prefix}/sbin'; then
11219 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011221$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011222fi
11223if test "$libdir" != '${exec_prefix}/lib'; then
11224 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011226$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011227fi
11228if test "$sysconfdir" != '${prefix}/etc'; then
11229 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011231$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050011232fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000011233
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011234
11235
11236
11237
Theodore Ts'o55e00a22011-09-18 23:53:23 -040011238
11239# Check whether --with-multiarch was given.
11240if test "${with_multiarch+set}" = set; then :
11241 withval=$with_multiarch; libdir=$libdir/$withval
11242root_libdir=$root_libdir/$withval
11243
11244fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011246$as_echo_n "checking whether linker accepts -static... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011247if test "${ac_cv_e2fsprogs_use_static+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011248 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000011249else
11250 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011252/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000011253#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011254int
11255main ()
11256{
Theodore Ts'oae851481997-04-29 18:13:24 +000011257fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011258 ;
11259 return 0;
11260}
11261_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011262if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000011263 ac_cv_e2fsprogs_use_static=yes
11264else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011265 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000011266fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011267rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000011269LDFLAGS=$SAVE_LDFLAGS
11270fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011271
Theodore Ts'odefde781999-01-04 07:39:19 +000011272case "$host_os" in
11273solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011274 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000011275;;
11276esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011278$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000011279LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000011280if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011281 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000011282fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011283
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011284case "$host_os" in
11285darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011287$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011288
11289$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011290
11291 ;;
11292esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011293SS_DIR=`cd ${srcdir}/lib/ss; pwd`
11294ET_DIR=`cd ${srcdir}/lib/et; pwd`
11295
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011296
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011297if test "$cross_compiling" = yes ; then
11298 DO_TEST_SUITE=
11299else
11300 DO_TEST_SUITE=check
11301fi
11302
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011303INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
11304if test -n "$CPPFLAGS" ; then
11305 INCLUDES="$INCLUDES $CPPFLAGS"
11306fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011307if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011308 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040011309fi
11310
Theodore Ts'odd947da2005-11-09 18:37:07 -040011311if test $cross_compiling = no; then
Theodore Ts'oc1986ec2012-06-13 15:29:13 -040011312 BUILD_CFLAGS="$CFLAGS $CPPFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040011313 BUILD_LDFLAGS="$LDFLAGS"
11314else
11315 BUILD_CFLAGS=
11316 BUILD_LDFLAGS=
11317fi
11318
11319
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011320test -d lib || mkdir lib
11321test -d include || mkdir include
11322test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000011323test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050011324for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040011325 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040011326 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
11327 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011328 lib/uuid/Makefile lib/uuid/uuid_types.h \
Aditya Kalif239fef2011-07-20 11:40:02 -070011329 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \
Theodore Ts'oe6441862005-01-26 12:59:25 -050011330 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
11331 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050011332 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011333 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020011334 resize/Makefile doc/Makefile intl/Makefile \
11335 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050011336 if test -d `dirname ${srcdir}/$i` ; then
11337 outlist="$outlist $i"
11338 fi
11339done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011340ac_config_files="$ac_config_files $outlist"
11341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011342cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011343# This file is a shell script that caches the results of configure
11344# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011345# scripts and configure runs, see configure's option --config-cache.
11346# It is not useful on other systems. If it contains results you don't
11347# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349# config.status only pays attention to the cache file if you give it
11350# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011351#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011352# `ac_cv_env_foo' variables (set or unset) will be overridden when
11353# loading this file, other *unset* `ac_cv_foo' will be assigned the
11354# following values.
11355
11356_ACEOF
11357
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011358# The following way of writing the cache mishandles newlines in values,
11359# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011360# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011361# Ultrix sh set writes to stderr and can't be redirected directly,
11362# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011363(
11364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11365 eval ac_val=\$$ac_var
11366 case $ac_val in #(
11367 *${as_nl}*)
11368 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011369 *_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 +010011370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011371 esac
11372 case $ac_var in #(
11373 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011375 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011376 esac ;;
11377 esac
11378 done
11379
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011380 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011381 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11382 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011383 # `set' does not quote correctly, so add quotes: double-quote
11384 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 sed -n \
11386 "s/'/'\\\\''/g;
11387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011388 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389 *)
11390 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011392 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011393 esac |
11394 sort
11395) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011397 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011398 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040011399 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11401 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040011402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11403 :end' >>confcache
11404if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11405 if test -w "$cache_file"; then
11406 test "x$cache_file" != "x/dev/null" &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011408$as_echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011410 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011412$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011413 fi
11414fi
11415rm -f confcache
11416
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011417test "x$prefix" = xNONE && prefix=$ac_default_prefix
11418# Let make expand exec_prefix.
11419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11420
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011421DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011422
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011423ac_libobjs=
11424ac_ltlibobjs=
11425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11426 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11430 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433done
11434LIBOBJS=$ac_libobjs
11435
11436LTLIBOBJS=$ac_ltlibobjs
11437
11438
11439
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011440
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011441: ${CONFIG_STATUS=./config.status}
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011442ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011443ac_clean_files_save=$ac_clean_files
11444ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011447as_write_fail=0
11448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449#! $SHELL
11450# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011451# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011452# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011453# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011454
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455debug=false
11456ac_cs_recheck=false
11457ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011459SHELL=\${CONFIG_SHELL-$SHELL}
11460export SHELL
11461_ASEOF
11462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11463## -------------------- ##
11464## M4sh Initialization. ##
11465## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040011466
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011467# Be more Bourne compatible
11468DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470 emulate sh
11471 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473 # is contrary to our usage. Disable this feature.
11474 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011475 setopt NO_GLOB_SUBST
11476else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011477 case `(set -o) 2>/dev/null` in #(
11478 *posix*) :
11479 set -o posix ;; #(
11480 *) :
11481 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011482esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011483fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011484
11485
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011486as_nl='
11487'
11488export as_nl
11489# Printing a long string crashes Solaris 7 /usr/bin/printf.
11490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011493# Prefer a ksh shell builtin over an external printf program on Solaris,
11494# but without wasting forks for bash or zsh.
11495if test -z "$BASH_VERSION$ZSH_VERSION" \
11496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11497 as_echo='print -r --'
11498 as_echo_n='print -rn --'
11499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011500 as_echo='printf %s\n'
11501 as_echo_n='printf %s'
11502else
11503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11505 as_echo_n='/usr/ucb/echo -n'
11506 else
11507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11508 as_echo_n_body='eval
11509 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011510 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011511 *"$as_nl"*)
11512 expr "X$arg" : "X\\(.*\\)$as_nl";
11513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11514 esac;
11515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11516 '
11517 export as_echo_n_body
11518 as_echo_n='sh -c $as_echo_n_body as_echo'
11519 fi
11520 export as_echo_body
11521 as_echo='sh -c $as_echo_body as_echo'
11522fi
11523
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011524# The user is always right.
11525if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011526 PATH_SEPARATOR=:
11527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11529 PATH_SEPARATOR=';'
11530 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531fi
11532
Theodore Ts'oe1052142006-10-21 21:46:47 -040011533
11534# IFS
11535# We need space, tab and new line, in precisely that order. Quoting is
11536# there to prevent editors from complaining about space-tab.
11537# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11538# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011539IFS=" "" $as_nl"
11540
11541# Find who we are. Look in the path if we contain no directory separator.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011542case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011543 *[\\/]* ) as_myself=$0 ;;
11544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011545for as_dir in $PATH
11546do
11547 IFS=$as_save_IFS
11548 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11550 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011551IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011552
Theodore Ts'oe1052142006-10-21 21:46:47 -040011553 ;;
11554esac
11555# We did not find ourselves, most probably we were run as `sh COMMAND'
11556# in which case we are not to be found in the path.
11557if test "x$as_myself" = x; then
11558 as_myself=$0
11559fi
11560if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011562 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040011563fi
11564
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011565# Unset variables that we do not need and which cause bugs (e.g. in
11566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11567# suppresses any "Segmentation fault" message there. '((' could
11568# trigger a bug in pdksh 5.2.14.
11569for as_var in BASH_ENV ENV MAIL MAILPATH
11570do eval test x\${$as_var+set} = xset \
11571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040011572done
11573PS1='$ '
11574PS2='> '
11575PS4='+ '
11576
11577# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011578LC_ALL=C
11579export LC_ALL
11580LANGUAGE=C
11581export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040011582
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011583# CDPATH.
11584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11585
11586
11587# as_fn_error ERROR [LINENO LOG_FD]
11588# ---------------------------------
11589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11591# script with status $?, using 1 if that was 0.
11592as_fn_error ()
11593{
11594 as_status=$?; test $as_status -eq 0 && as_status=1
11595 if test "$3"; then
11596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11598 fi
11599 $as_echo "$as_me: error: $1" >&2
11600 as_fn_exit $as_status
11601} # as_fn_error
11602
11603
11604# as_fn_set_status STATUS
11605# -----------------------
11606# Set $? to STATUS, without forking.
11607as_fn_set_status ()
11608{
11609 return $1
11610} # as_fn_set_status
11611
11612# as_fn_exit STATUS
11613# -----------------
11614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11615as_fn_exit ()
11616{
11617 set +e
11618 as_fn_set_status $1
11619 exit $1
11620} # as_fn_exit
11621
11622# as_fn_unset VAR
11623# ---------------
11624# Portably unset VAR.
11625as_fn_unset ()
11626{
11627 { eval $1=; unset $1;}
11628}
11629as_unset=as_fn_unset
11630# as_fn_append VAR VALUE
11631# ----------------------
11632# Append the text in VALUE to the end of the definition contained in VAR. Take
11633# advantage of any shell optimizations that allow amortized linear growth over
11634# repeated appends, instead of the typical quadratic growth present in naive
11635# implementations.
11636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11637 eval 'as_fn_append ()
11638 {
11639 eval $1+=\$2
11640 }'
11641else
11642 as_fn_append ()
11643 {
11644 eval $1=\$$1\$2
11645 }
11646fi # as_fn_append
11647
11648# as_fn_arith ARG...
11649# ------------------
11650# Perform arithmetic evaluation on the ARGs, and store the result in the
11651# global $as_val. Take advantage of shells that can avoid forks. The arguments
11652# must be portable across $(()) and expr.
11653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11654 eval 'as_fn_arith ()
11655 {
11656 as_val=$(( $* ))
11657 }'
11658else
11659 as_fn_arith ()
11660 {
11661 as_val=`expr "$@" || test $? -eq 1`
11662 }
11663fi # as_fn_arith
11664
11665
Theodore Ts'oe1052142006-10-21 21:46:47 -040011666if expr a : '\(a\)' >/dev/null 2>&1 &&
11667 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11668 as_expr=expr
11669else
11670 as_expr=false
11671fi
11672
11673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11674 as_basename=basename
11675else
11676 as_basename=false
11677fi
11678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11680 as_dirname=dirname
11681else
11682 as_dirname=false
11683fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684
Theodore Ts'oe1052142006-10-21 21:46:47 -040011685as_me=`$as_basename -- "$0" ||
11686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11687 X"$0" : 'X\(//\)$' \| \
11688 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011689$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040011690 sed '/^.*\/\([^/][^/]*\)\/*$/{
11691 s//\1/
11692 q
11693 }
11694 /^X\/\(\/\/\)$/{
11695 s//\1/
11696 q
11697 }
11698 /^X\/\(\/\).*/{
11699 s//\1/
11700 q
11701 }
11702 s/.*/./; q'`
11703
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704# Avoid depending upon Character Ranges.
11705as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11707as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11708as_cr_digits='0123456789'
11709as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040011710
11711ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011712case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040011713-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011714 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040011715 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011716 xy) ECHO_C='\c';;
11717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11718 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011719 esac;;
11720*)
11721 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011722esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723
11724rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725if test -d conf$$.dir; then
11726 rm -f conf$$.dir/conf$$.file
11727else
11728 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011729 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040011730fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011731if (echo >conf$$.file) 2>/dev/null; then
11732 if ln -s conf$$.file conf$$ 2>/dev/null; then
11733 as_ln_s='ln -s'
11734 # ... but there are two gotchas:
11735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11737 # In both cases, we have to default to `cp -p'.
11738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11739 as_ln_s='cp -p'
11740 elif ln conf$$.file conf$$ 2>/dev/null; then
11741 as_ln_s=ln
11742 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743 as_ln_s='cp -p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011744 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745else
11746 as_ln_s='cp -p'
11747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11749rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011751
11752# as_fn_mkdir_p
11753# -------------
11754# Create "$as_dir" as a directory, including parents if necessary.
11755as_fn_mkdir_p ()
11756{
11757
11758 case $as_dir in #(
11759 -*) as_dir=./$as_dir;;
11760 esac
11761 test -d "$as_dir" || eval $as_mkdir_p || {
11762 as_dirs=
11763 while :; do
11764 case $as_dir in #(
11765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11766 *) as_qdir=$as_dir;;
11767 esac
11768 as_dirs="'$as_qdir' $as_dirs"
11769 as_dir=`$as_dirname -- "$as_dir" ||
11770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11771 X"$as_dir" : 'X\(//\)[^/]' \| \
11772 X"$as_dir" : 'X\(//\)$' \| \
11773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11774$as_echo X"$as_dir" |
11775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11776 s//\1/
11777 q
11778 }
11779 /^X\(\/\/\)[^/].*/{
11780 s//\1/
11781 q
11782 }
11783 /^X\(\/\/\)$/{
11784 s//\1/
11785 q
11786 }
11787 /^X\(\/\).*/{
11788 s//\1/
11789 q
11790 }
11791 s/.*/./; q'`
11792 test -d "$as_dir" && break
11793 done
11794 test -z "$as_dirs" || eval "mkdir $as_dirs"
11795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11796
11797
11798} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011799if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011800 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011801else
11802 test -d ./-p && rmdir ./-p
11803 as_mkdir_p=false
11804fi
11805
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011806if test -x / >/dev/null 2>&1; then
11807 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040011808else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011809 if ls -dL / >/dev/null 2>&1; then
11810 as_ls_L_option=L
11811 else
11812 as_ls_L_option=
11813 fi
11814 as_test_x='
11815 eval sh -c '\''
11816 if test -d "$1"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011817 test -d "$1/.";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011818 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011819 case $1 in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011820 -*)set "./$1";;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011821 esac;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011823 ???[sx]*):;;*)false;;esac;fi
11824 '\'' sh
11825 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040011826fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011827as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011828
11829# Sed expression to map a string onto a valid CPP name.
11830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11831
11832# Sed expression to map a string onto a valid variable name.
11833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11834
11835
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011836exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011837## ----------------------------------- ##
11838## Main body of $CONFIG_STATUS script. ##
11839## ----------------------------------- ##
11840_ASEOF
11841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11844# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011845# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846# values after options handling.
11847ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011848This file was extended by $as_me, which was
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011849generated by GNU Autoconf 2.65. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011850
11851 CONFIG_FILES = $CONFIG_FILES
11852 CONFIG_HEADERS = $CONFIG_HEADERS
11853 CONFIG_LINKS = $CONFIG_LINKS
11854 CONFIG_COMMANDS = $CONFIG_COMMANDS
11855 $ $0 $@
11856
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857on `(hostname || uname -n) 2>/dev/null | sed 1q`
11858"
11859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011860_ACEOF
11861
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011862case $ac_config_files in *"
11863"*) set x $ac_config_files; shift; ac_config_files=$*;;
11864esac
11865
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011866case $ac_config_headers in *"
11867"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11868esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011869
11870
11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011872# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011873config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011874config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011876
Theodore Ts'oe1052142006-10-21 21:46:47 -040011877_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011878
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011881\`$as_me' instantiates files and other configuration actions
11882from templates according to the current configuration. Unless the files
11883and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011884
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011885Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886
11887 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011888 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011889 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011890 -q, --quiet, --silent
11891 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011892 -d, --debug don't remove temporary files
11893 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011894 --file=FILE[:TEMPLATE]
11895 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011896 --header=FILE[:TEMPLATE]
11897 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011898
11899Configuration files:
11900$config_files
11901
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011902Configuration headers:
11903$config_headers
11904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905Configuration commands:
11906$config_commands
11907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011908Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011909
Theodore Ts'oe1052142006-10-21 21:46:47 -040011910_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011912ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011913ac_cs_version="\\
11914config.status
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011915configured by $0, generated by GNU Autoconf 2.65,
11916 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011917
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011918Copyright (C) 2009 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919This config.status script is free software; the Free Software Foundation
11920gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040011921
11922ac_pwd='$ac_pwd'
11923srcdir='$srcdir'
11924INSTALL='$INSTALL'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011925AWK='$AWK'
11926test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011927_ACEOF
11928
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11930# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011931ac_need_defaults=:
11932while test $# != 0
11933do
11934 case $1 in
11935 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040011936 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 ac_shift=:
11939 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941 ac_option=$1
11942 ac_optarg=$2
11943 ac_shift=shift
11944 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011945 esac
11946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011947 case $ac_option in
11948 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11950 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011952 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040011953 --config | --confi | --conf | --con | --co | --c )
11954 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011956 debug=: ;;
11957 --file | --fil | --fi | --f )
11958 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011959 case $ac_optarg in
11960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11961 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011962 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040011964 --header | --heade | --head | --hea )
11965 $ac_shift
11966 case $ac_optarg in
11967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11968 esac
11969 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11970 ac_need_defaults=false;;
11971 --he | --h)
11972 # Conflict between --help and --header
11973 as_fn_error "ambiguous option: \`$1'
11974Try \`$0 --help' for more information.";;
11975 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011976 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11978 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11979 ac_cs_silent=: ;;
11980
11981 # This is an error.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011982 -*) as_fn_error "unrecognized option: \`$1'
11983Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011985 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011986 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011988 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011989 shift
11990done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994if $ac_cs_silent; then
11995 exec 6>/dev/null
11996 ac_configure_extra_args="$ac_configure_extra_args --silent"
11997fi
11998
11999_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001if \$ac_cs_recheck; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012002 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12003 shift
12004 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12005 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012006 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012007 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012008fi
12009
12010_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012012exec 5>>config.log
12013{
12014 echo
12015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12016## Running $as_me. ##
12017_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012018 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012019} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012020
Theodore Ts'oe1052142006-10-21 21:46:47 -040012021_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023#
Theodore Ts'oe1052142006-10-21 21:46:47 -040012024# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012026# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012028 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012030 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12031 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012032
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034_ACEOF
12035
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012037
12038# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012039for ac_config_target in $ac_config_targets
12040do
Theodore Ts'oe1052142006-10-21 21:46:47 -040012041 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012042 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012043 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12044 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
12045
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012046 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047 esac
12048done
12049
Theodore Ts'oe1052142006-10-21 21:46:47 -040012050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051# If the user did not use the arguments to specify the items to instantiate,
12052# then the envvar interface is used. Set only those that are not.
12053# We use the long form for the default assignment because of an extremely
12054# bizarre bug on SunOS 4.1.3.
12055if $ac_need_defaults; then
12056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12059fi
12060
12061# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040012062# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012063# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012064# Hook for its removal unless debugging.
12065# Note that there is a small window in which the directory will not be cleaned:
12066# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067$debug ||
12068{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012069 tmp=
12070 trap 'exit_status=$?
12071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12072' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012073 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075# Create a (secure) tmp directory for tmp files.
12076
12077{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079 test -n "$tmp" && test -d "$tmp"
12080} ||
12081{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012082 tmp=./conf$$-$RANDOM
12083 (umask 077 && mkdir "$tmp")
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012084} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012085
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012086# Set up the scripts for CONFIG_FILES section.
12087# No need to generate them if there are no CONFIG_FILES.
12088# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012089if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012091if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
12092 ac_cs_awk_getline=:
12093 ac_cs_awk_pipe_init=
12094 ac_cs_awk_read_file='
12095 while ((getline aline < (F[key])) > 0)
12096 print(aline)
12097 close(F[key])'
12098 ac_cs_awk_pipe_fini=
12099else
12100 ac_cs_awk_getline=false
12101 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
12102 ac_cs_awk_read_file='
12103 print "|#_!!_#|"
12104 print "cat " F[key] " &&"
12105 '$ac_cs_awk_pipe_init
12106 # The final `:' finishes the AND list.
12107 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
12108fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109ac_cr=`echo X | tr X '\015'`
12110# On cygwin, bash can eat \r inside `` if the user requested igncr.
12111# But we know of no other shell where ac_cr would be empty at this
12112# point, so we can use a bashism as a fallback.
12113if test "x$ac_cr" = x; then
12114 eval ac_cr=\$\'\\r\'
12115fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012116ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12117if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012118 ac_cs_awk_cr='\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012119else
12120 ac_cs_awk_cr=$ac_cr
12121fi
12122
12123echo 'BEGIN {' >"$tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012124_ACEOF
12125
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012126# Create commands to substitute file output variables.
12127{
12128 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
12129 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
12130 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
12131 echo "_ACAWK" &&
12132 echo "_ACEOF"
12133} >conf$$files.sh &&
12134. ./conf$$files.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012136rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012137
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012138{
12139 echo "cat >conf$$subs.awk <<_ACEOF" &&
12140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12141 echo "_ACEOF"
12142} >conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012144ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145ac_delim='%!_!# '
12146for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012147 . ./conf$$subs.sh ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012149
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12151 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040012152 break
12153 elif $ac_last_try; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012155 else
12156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012158done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012159rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12162cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040012163_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012164sed -n '
12165h
12166s/^/S["/; s/!.*/"]=/
12167p
12168g
12169s/^[^!]*!//
12170:repl
12171t repl
12172s/'"$ac_delim"'$//
12173t delim
12174:nl
12175h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012176s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012177t more1
12178s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12179p
12180n
12181b repl
12182:more1
12183s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12184p
12185g
12186s/.\{148\}//
12187t nl
12188:delim
12189h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040012190s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012191t more2
12192s/["\\]/\\&/g; s/^/"/; s/$/"/
12193p
12194b
12195:more2
12196s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12197p
12198g
12199s/.\{148\}//
12200t delim
12201' <conf$$subs.awk | sed '
12202/^[^""]/{
12203 N
12204 s/\n//
12205}
12206' >>$CONFIG_STATUS || ac_write_fail=1
12207rm -f conf$$subs.awk
12208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12209_ACAWK
12210cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12211 for (key in S) S_is_set[key] = 1
12212 FS = ""
12213 \$ac_cs_awk_pipe_init
12214}
12215{
12216 line = $ 0
12217 nfields = split(line, field, "@")
12218 substed = 0
12219 len = length(field[1])
12220 for (i = 2; i < nfields; i++) {
12221 key = field[i]
12222 keylen = length(key)
12223 if (S_is_set[key]) {
12224 value = S[key]
12225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12226 len += length(value) + length(field[++i])
12227 substed = 1
12228 } else
12229 len += 1 + keylen
12230 }
12231 if (nfields == 3 && !substed) {
12232 key = field[2]
12233 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
12234 \$ac_cs_awk_read_file
12235 next
12236 }
12237 }
12238 print line
12239}
12240\$ac_cs_awk_pipe_fini
12241_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040012242_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12246else
12247 cat
12248fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012249 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012250_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012251
12252# VPATH may cause trouble with some makes, so we remove $(srcdir),
12253# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12254# trailing colons and then remove the whole line if VPATH becomes empty
12255# (actually we leave an empty line to preserve line numbers).
12256if test "x$srcdir" = x.; then
12257 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12258s/:*\$(srcdir):*/:/
12259s/:*\${srcdir}:*/:/
12260s/:*@srcdir@:*/:/
12261s/^\([^=]*=[ ]*\):*/\1/
12262s/:*$//
12263s/^[^=]*=[ ]*$//
12264}'
12265fi
12266
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268fi # test -n "$CONFIG_FILES"
12269
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012270# Set up the scripts for CONFIG_HEADERS section.
12271# No need to generate them if there are no CONFIG_HEADERS.
12272# This happens for instance with `./config.status Makefile'.
12273if test -n "$CONFIG_HEADERS"; then
12274cat >"$tmp/defines.awk" <<\_ACAWK ||
12275BEGIN {
12276_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012278# Transform confdefs.h into an awk script `defines.awk', embedded as
12279# here-document in config.status, that substitutes the proper values into
12280# config.h.in to produce config.h.
12281
12282# Create a delimiter string that does not exist in confdefs.h, to ease
12283# handling of long lines.
12284ac_delim='%!_!# '
12285for ac_last_try in false false :; do
12286 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12287 if test -z "$ac_t"; then
12288 break
12289 elif $ac_last_try; then
12290 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12291 else
12292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12293 fi
12294done
12295
12296# For the awk script, D is an array of macro values keyed by name,
12297# likewise P contains macro parameters if any. Preserve backslash
12298# newline sequences.
12299
12300ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12301sed -n '
12302s/.\{148\}/&'"$ac_delim"'/g
12303t rset
12304:rset
12305s/^[ ]*#[ ]*define[ ][ ]*/ /
12306t def
12307d
12308:def
12309s/\\$//
12310t bsnl
12311s/["\\]/\\&/g
12312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12313D["\1"]=" \3"/p
12314s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12315d
12316:bsnl
12317s/["\\]/\\&/g
12318s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12319D["\1"]=" \3\\\\\\n"\\/p
12320t cont
12321s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12322t cont
12323d
12324:cont
12325n
12326s/.\{148\}/&'"$ac_delim"'/g
12327t clear
12328:clear
12329s/\\$//
12330t bsnlc
12331s/["\\]/\\&/g; s/^/"/; s/$/"/p
12332d
12333:bsnlc
12334s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12335b cont
12336' <confdefs.h | sed '
12337s/'"$ac_delim"'/"\\\
12338"/g' >>$CONFIG_STATUS || ac_write_fail=1
12339
12340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12341 for (key in D) D_is_set[key] = 1
12342 FS = ""
12343}
12344/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12345 line = \$ 0
12346 split(line, arg, " ")
12347 if (arg[1] == "#") {
12348 defundef = arg[2]
12349 mac1 = arg[3]
12350 } else {
12351 defundef = substr(arg[1], 2)
12352 mac1 = arg[2]
12353 }
12354 split(mac1, mac2, "(") #)
12355 macro = mac2[1]
12356 prefix = substr(line, 1, index(line, defundef) - 1)
12357 if (D_is_set[macro]) {
12358 # Preserve the white space surrounding the "#".
12359 print prefix "define", macro P[macro] D[macro]
12360 next
12361 } else {
12362 # Replace #undef with comments. This is necessary, for example,
12363 # in the case of _POSIX_SOURCE, which is predefined and required
12364 # on some systems where configure will not decide to define it.
12365 if (defundef == "undef") {
12366 print "/*", prefix defundef, macro, "*/"
12367 next
12368 }
12369 }
12370}
12371{ print }
12372_ACAWK
12373_ACEOF
12374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12375 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12376fi # test -n "$CONFIG_HEADERS"
12377
12378
12379eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012380shift
12381for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040012382do
12383 case $ac_tag in
12384 :[FHLC]) ac_mode=$ac_tag; continue;;
12385 esac
12386 case $ac_mode$ac_tag in
12387 :[FHL]*:*);;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012388 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012389 :[FH]-) ac_tag=-:-;;
12390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12391 esac
12392 ac_save_IFS=$IFS
12393 IFS=:
12394 set x $ac_tag
12395 IFS=$ac_save_IFS
12396 shift
12397 ac_file=$1
12398 shift
12399
12400 case $ac_mode in
12401 :L) ac_source=$1;;
12402 :[FH])
12403 ac_file_inputs=
12404 for ac_f
12405 do
12406 case $ac_f in
12407 -) ac_f="$tmp/stdin";;
12408 *) # Look for the file first in the build tree, then in the source tree
12409 # (if the path is not absolute). The absolute path cannot be DOS-style,
12410 # because $ac_f cannot contain `:'.
12411 test -f "$ac_f" ||
12412 case $ac_f in
12413 [\\/$]*) false;;
12414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12415 esac ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012416 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012417 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012418 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012419 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040012420 done
12421
12422 # Let's still pretend it is `configure' which instantiates (i.e., don't
12423 # use $as_me), people would be surprised to read:
12424 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012425 configure_input='Generated from '`
12426 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12427 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012428 if test x"$ac_file" != x-; then
12429 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012431$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012432 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012433 # Neutralize special characters interpreted by sed in replacement strings.
12434 case $configure_input in #(
12435 *\&* | *\|* | *\\* )
12436 ac_sed_conf_input=`$as_echo "$configure_input" |
12437 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12438 *) ac_sed_conf_input=$configure_input;;
12439 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012440
12441 case $ac_tag in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012442 *:-:* | *:-) cat >"$tmp/stdin" \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012443 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012444 esac
12445 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012446 esac
12447
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12450 X"$ac_file" : 'X\(//\)[^/]' \| \
12451 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040012452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012453$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040012454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12455 s//\1/
12456 q
12457 }
12458 /^X\(\/\/\)[^/].*/{
12459 s//\1/
12460 q
12461 }
12462 /^X\(\/\/\)$/{
12463 s//\1/
12464 q
12465 }
12466 /^X\(\/\).*/{
12467 s//\1/
12468 q
12469 }
12470 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012471 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472 ac_builddir=.
12473
Theodore Ts'oe1052142006-10-21 21:46:47 -040012474case "$ac_dir" in
12475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12476*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012478 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040012480 case $ac_top_builddir_sub in
12481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12483 esac ;;
12484esac
12485ac_abs_top_builddir=$ac_pwd
12486ac_abs_builddir=$ac_pwd$ac_dir_suffix
12487# for backward compatibility:
12488ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489
12490case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012491 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012492 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012493 ac_top_srcdir=$ac_top_builddir_sub
12494 ac_abs_top_srcdir=$ac_pwd ;;
12495 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012497 ac_top_srcdir=$srcdir
12498 ac_abs_top_srcdir=$srcdir ;;
12499 *) # Relative name.
12500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12501 ac_top_srcdir=$ac_top_build_prefix$srcdir
12502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012503esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040012504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012506
Theodore Ts'oe1052142006-10-21 21:46:47 -040012507 case $ac_mode in
12508 :F)
12509 #
12510 # CONFIG_FILE
12511 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012512
12513 case $INSTALL in
12514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040012518
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012520# If the template does not know about datarootdir, expand it.
12521# FIXME: This hack should be removed a few years after 2.60.
12522ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012523ac_sed_dataroot='
12524/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012525 p
12526 q
12527}
12528/@datadir@/p
12529/@docdir@/p
12530/@infodir@/p
12531/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012532/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040012534*datarootdir*) ac_datarootdir_seen=yes;;
12535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536 { $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 +010012537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012538_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040012540 ac_datarootdir_hack='
12541 s&@datadir@&$datadir&g
12542 s&@docdir@&$docdir&g
12543 s&@infodir@&$infodir&g
12544 s&@localedir@&$localedir&g
12545 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012546 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012547esac
12548_ACEOF
12549
12550# Neutralize VPATH when `$srcdir' = `.'.
12551# Shell code in configure.ac might set extrasub.
12552# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555$extrasub
12556_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012558:t
12559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012560s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012561s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012562s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040012563s&@srcdir@&$ac_srcdir&;t t
12564s&@abs_srcdir@&$ac_abs_srcdir&;t t
12565s&@top_srcdir@&$ac_top_srcdir&;t t
12566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12567s&@builddir@&$ac_builddir&;t t
12568s&@abs_builddir@&$ac_abs_builddir&;t t
12569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12570s&@INSTALL@&$ac_INSTALL&;t t
12571$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012572"
12573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
12574if $ac_cs_awk_getline; then
12575 $AWK -f "$tmp/subs.awk"
12576else
12577 $AWK -f "$tmp/subs.awk" | $SHELL
12578fi >$tmp/out \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012579 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012580
Theodore Ts'oe1052142006-10-21 21:46:47 -040012581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012584 { $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 -040012585which seems to be undefined. Please make sure it is defined." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012586$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012587which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012588
Theodore Ts'oe1052142006-10-21 21:46:47 -040012589 rm -f "$tmp/stdin"
12590 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012591 -) cat "$tmp/out" && rm -f "$tmp/out";;
12592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12593 esac \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012594 || as_fn_error "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012595 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012596 :H)
12597 #
12598 # CONFIG_HEADER
12599 #
12600 if test x"$ac_file" != x-; then
12601 {
12602 $as_echo "/* $configure_input */" \
12603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12604 } >"$tmp/config.h" \
12605 || as_fn_error "could not create $ac_file" "$LINENO" 5
12606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12608$as_echo "$as_me: $ac_file is unchanged" >&6;}
12609 else
12610 rm -f "$ac_file"
12611 mv "$tmp/config.h" "$ac_file" \
12612 || as_fn_error "could not create $ac_file" "$LINENO" 5
12613 fi
12614 else
12615 $as_echo "/* $configure_input */" \
12616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12617 || as_fn_error "could not create -" "$LINENO" 5
12618 fi
12619 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012622$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012623 ;;
12624 esac
12625
12626
12627 case $ac_file$ac_mode in
12628 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012629 for ac_file in $CONFIG_FILES; do
12630 # Support "outfile[:infile[:infile...]]"
12631 case "$ac_file" in
12632 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000012633 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012634 # PO directories have a Makefile.in generated from Makefile.in.in.
12635 case "$ac_file" in */Makefile.in)
12636 # Adjust a relative srcdir.
12637 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12638 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12639 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12640 # In autoconf-2.13 it is called $ac_given_srcdir.
12641 # In autoconf-2.50 it is called $srcdir.
12642 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12643 case "$ac_given_srcdir" in
12644 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12645 /*) top_srcdir="$ac_given_srcdir" ;;
12646 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
12647 esac
12648 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12649 rm -f "$ac_dir/POTFILES"
12650 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12651 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 -050012652 POMAKEFILEDEPS="POTFILES.in"
12653 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012654 # on $ac_dir but don't depend on user-specified configuration
12655 # parameters.
12656 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12657 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012658 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012659 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12660 fi
12661 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12662 # Hide the ALL_LINGUAS assigment from automake.
12663 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012664 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
12665 else
12666 # The set of available languages was given in configure.in.
12667 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012668 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669 # Compute POFILES
12670 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
12671 # Compute UPDATEPOFILES
12672 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
12673 # Compute DUMMYPOFILES
12674 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
12675 # Compute GMOFILES
12676 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012677 case "$ac_given_srcdir" in
12678 .) srcdirpre= ;;
12679 *) srcdirpre='$(srcdir)/' ;;
12680 esac
12681 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012682 UPDATEPOFILES=
12683 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012684 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012685 for lang in $ALL_LINGUAS; do
12686 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012687 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12688 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012689 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040012690 done
12691 # CATALOGS depends on both $ac_dir and the user's LINGUAS
12692 # environment variable.
12693 INST_LINGUAS=
12694 if test -n "$ALL_LINGUAS"; then
12695 for presentlang in $ALL_LINGUAS; do
12696 useit=no
12697 if test "%UNSET%" != "$LINGUAS"; then
12698 desiredlanguages="$LINGUAS"
12699 else
12700 desiredlanguages="$ALL_LINGUAS"
12701 fi
12702 for desiredlang in $desiredlanguages; do
12703 # Use the presentlang catalog if desiredlang is
12704 # a. equal to presentlang, or
12705 # b. a variant of presentlang (because in this case,
12706 # presentlang can be used as a fallback for messages
12707 # which are not translated in the desiredlang catalog).
12708 case "$desiredlang" in
12709 "$presentlang"*) useit=yes;;
12710 esac
12711 done
12712 if test $useit = yes; then
12713 INST_LINGUAS="$INST_LINGUAS $presentlang"
12714 fi
12715 done
12716 fi
12717 CATALOGS=
12718 if test -n "$INST_LINGUAS"; then
12719 for lang in $INST_LINGUAS; do
12720 CATALOGS="$CATALOGS $lang.gmo"
12721 done
12722 fi
12723 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012724 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 -040012725 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12726 if test -f "$f"; then
12727 case "$f" in
12728 *.orig | *.bak | *~) ;;
12729 *) cat "$f" >> "$ac_dir/Makefile" ;;
12730 esac
12731 fi
12732 done
12733 fi
12734 ;;
12735 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012736 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012737
Theodore Ts'oe1052142006-10-21 21:46:47 -040012738 esac
12739done # for ac_tag
12740
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012742as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012743_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744ac_clean_files=$ac_clean_files_save
12745
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012746test $ac_write_fail = 0 ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012749
12750# configure is writing to config.log, and then calls config.status.
12751# config.status does its own redirection, appending to config.log.
12752# Unfortunately, on DOS this fails, as config.log is still kept open
12753# by configure, so config.status won't be able to write to it; its
12754# output is simply discarded. So we exec the FD to /dev/null,
12755# effectively closing config.log, so it can be properly (re)opened and
12756# appended to by config.status. When coming back to configure, we
12757# need to make the FD available again.
12758if test "$no_create" != yes; then
12759 ac_cs_success=:
12760 ac_config_status_args=
12761 test "$silent" = yes &&
12762 ac_config_status_args="$ac_config_status_args --quiet"
12763 exec 5>/dev/null
12764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12765 exec 5>>config.log
12766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12767 # would make configure fail if this is the last instruction.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012768 $ac_cs_success || as_fn_exit $?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012769fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012770if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12773fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012774
Theodore Ts'oee683a12005-02-05 15:53:56 -050012775if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi